|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + |
| 4 | +<head> |
| 5 | + |
| 6 | + <meta charset="utf-8"> |
| 7 | + <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 8 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 9 | + <meta name="author" content="Hello Fangaming"> |
| 10 | + <meta property="og:title" content="Disqus Comments" /> |
| 11 | + |
| 12 | + <title>Disqus Comments - Hello Fangaming</title> |
| 13 | + |
| 14 | + <!-- Bootstrap Core CSS --> |
| 15 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha512-Dop/vW3iOtayerlYAqCgkVr2aTr2ErwwTYOvRFUpzl2VhCMJyjQF0Q9TjUXIo6JhuM/3i0vVEt2e/7QQmnHQqw==" crossorigin="anonymous" referrerpolicy="no-referrer" /> |
| 16 | + <link rel="shortcut icon" href="/favicon.ico"> |
| 17 | + |
| 18 | + <!-- Wiki CSS --> |
| 19 | + <link rel="stylesheet" href="styles_wiki.css"> |
| 20 | + |
| 21 | +</head> |
| 22 | + |
| 23 | +<body> |
| 24 | + |
| 25 | + <!-- Navigation --> |
| 26 | + <nav id="top" class="navbar navbar-default" role="navigation"> |
| 27 | + <div class="container"> |
| 28 | + <!-- Brand and toggle get grouped for better mobile display --> |
| 29 | + <div class="navbar-header"> |
| 30 | + <a class="navbar-brand" href="/wiki/"><img src="../img/hf/hf_emblem_white.svg" class="hf-icon"></img> Hello Fangaming</a> |
| 31 | + </div> |
| 32 | + </div> |
| 33 | + <!-- /.container --> |
| 34 | + </nav> |
| 35 | + |
| 36 | + <!-- Page Content --> |
| 37 | + <div class="container fullheight"> |
| 38 | + |
| 39 | + <ol class="breadcrumb"> |
| 40 | + <li><a href="/wiki/">Wiki</a></li> |
| 41 | + <li><a href="/wiki/#other">Other</a></li> |
| 42 | + <li class="active">Disqus Comments</li> |
| 43 | + </ol> |
| 44 | + |
| 45 | + <!-- Item Heading --> |
| 46 | + <div class="row"> |
| 47 | + <div class="col-lg-12"> |
| 48 | + <h1 class="page-header">Disqus Comments</h1> |
| 49 | + <p>Disqus was used as the comments system on the Hello Fangaming website between 2016-2025. You can see old comments posted using the Disqus comment system here.</p> |
| 50 | + </div> |
| 51 | + <div class="col-lg-12 text-center"> |
| 52 | + <select id="thread_selector"></select> |
| 53 | + <hr> |
| 54 | + </div> |
| 55 | + <div id = "comments_container" class="col-lg-12"> |
| 56 | + <div class="panel panel-default"> |
| 57 | + <div class="panel-heading"></div> |
| 58 | + <div class="panel-body"></div> |
| 59 | + </div> |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + <!-- /.row --> |
| 63 | + |
| 64 | + </div> |
| 65 | + <!-- /.container --> |
| 66 | + |
| 67 | + <div style="padding: 1.5em;"></div> |
| 68 | + |
| 69 | + <!-- Footer --> |
| 70 | + <footer> |
| 71 | + <div class="container"> |
| 72 | + <div class="row footer-in"> |
| 73 | + <div class="col-lg-12"> |
| 74 | + <p class="pull-right"><a class="glyphicon glyphicon-chevron-up smoothscroll" href="#top"></a></p> |
| 75 | + <p><strong>2006-<script>var d = new Date(); document.write(d.getFullYear());</script> Hello Fangaming</strong></p> |
| 76 | + </div> |
| 77 | + </div> |
| 78 | + </div> |
| 79 | + </footer> |
| 80 | + |
| 81 | + <!-- jQuery --> |
| 82 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js" integrity="sha512-DUC8yqWf7ez3JD1jszxCWSVB0DMP78eOyBpMa5aJki1bIRARykviOuImIczkxlj1KhVSyS16w2FSQetkD4UU2w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> |
| 83 | + |
| 84 | + <!-- Bootstrap Core JavaScript --> |
| 85 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha512-oBTprMeNEKCnqfuqKd6sbvFzmFQtlXS3e0C/RGFV0hD6QzhHV+ODfaQbAlmY6/q0ubbwlAM/nCJjkrgA3waLzg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> |
| 86 | + |
| 87 | + <!-- Global site tag (gtag.js) - Google Analytics --> |
| 88 | + <script async src="https://www.googletagmanager.com/gtag/js?id=G-2M3SSEVX2Y"></script> |
| 89 | + <script> |
| 90 | + window.dataLayer = window.dataLayer || []; |
| 91 | + function gtag(){dataLayer.push(arguments);} |
| 92 | + gtag('js', new Date()); |
| 93 | + gtag('config', 'G-2M3SSEVX2Y'); |
| 94 | + </script> |
| 95 | + |
| 96 | + <!-- Smooth Scroller --> |
| 97 | + <script> |
| 98 | + $(function() { |
| 99 | + $('.smoothscroll').click(function() { |
| 100 | + var target = $(this.hash); |
| 101 | + target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); |
| 102 | + if (target.length) { |
| 103 | + $('html,body').animate({ |
| 104 | + scrollTop: target.offset().top |
| 105 | + }, 500); |
| 106 | + return false; |
| 107 | + } |
| 108 | + }); |
| 109 | + }); |
| 110 | + </script> |
| 111 | + |
| 112 | + <!-- Disqus Comments Loader --> |
| 113 | + <script type="text/javascript"> |
| 114 | + var threads = undefined; |
| 115 | + var posts = undefined; |
| 116 | + //Update comments |
| 117 | + var update = function(id) { |
| 118 | + window.location.hash = threads[id].title; |
| 119 | + $('#comments_container').empty(); |
| 120 | + var thread_id = threads[id].dsq_id; |
| 121 | + $.each(posts, function(index, value){ |
| 122 | + if (value.thread.dsq_id===thread_id){ |
| 123 | + $('#comments_container').append($('<div class="panel panel-default"><div class="panel-heading"><strong>' |
| 124 | + +value.author.name |
| 125 | + +'</strong><span class="text-muted" style="float:right;">' |
| 126 | + +value.createdAt.substring(0,10) |
| 127 | + +'</span></div><div class="panel-body">' |
| 128 | + +value.message |
| 129 | + +'</div></div>')); |
| 130 | + } |
| 131 | + }); |
| 132 | + } |
| 133 | + //Start |
| 134 | + $( document ).ready(function() { |
| 135 | + //JSON LOAD |
| 136 | + var default_id = 0; |
| 137 | + $.getJSON("disqus.json", function(result){ |
| 138 | + threads = result.disqus.thread; |
| 139 | + posts = result.disqus.post; |
| 140 | + $.each(threads, function(index, value){ |
| 141 | + $('#thread_selector') |
| 142 | + .append($("<option></option>") |
| 143 | + .attr("value",index) |
| 144 | + .text(value.title)); |
| 145 | + if (location.hash.replaceAll('%20',' ')=="#"+value.title) default_id = index; |
| 146 | + }); |
| 147 | + }); |
| 148 | + setTimeout(function(){ update(default_id); $("#thread_selector").val(default_id);}, 100); |
| 149 | + //Select Update |
| 150 | + $("#thread_selector").change(function(){ |
| 151 | + update($(this).val()); |
| 152 | + }); |
| 153 | + }); |
| 154 | + </script> |
| 155 | + |
| 156 | +</body> |
| 157 | + |
| 158 | +</html> |
0 commit comments