1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
| <!DOCTYPE HTML>
<html>
<head>
<title>Disqus AJAX Test Site</title>
</head>
<body>
<div>
<pre>
cklasnclkasnclanclasnclkasnclascasc
ascnknascklnaskcnaskc
nalcknlakscnlask
</pre>
</div>
<div id="disqus_thread"></div>
<button onclick="reset('newid1', 'http://example.com/unique-path-to-article1/', 'Article Title 2', 'en');">Load article 1 (English)</button>
<button onclick="reset('newid2', 'http://example.com/unique-path-to-article2/', 'Article Title 2', 'fr');">Load article 2 (Franch)</button>
<button onclick="reset('newid3', 'http://example.com/unique-path-to-article3/', 'Article Title 3', 'zh');">Load article 3 (Chinese)</button>
<button onclick="reset('newid4', 'http://example.com/unique-path-to-article4/', 'Article Title 4', 'ru');">Load article 4 (Russian)</button>
<!-- <div id="disqus_thread"></div> -->
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'example';
var disqus_identifier = 'newid1';
var disqus_url = 'http://example.com/unique-path-to-article-1/';
var disqus_config = function () {
this.language = "en";
};
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
/* * * Disqus Reset Function * * */
var reset = function (newIdentifier, newUrl, newTitle, newLanguage) {
DISQUS.reset({
reload: true,
config: function () {
this.page.identifier = newIdentifier;
this.page.url = newUrl;
this.page.title = newTitle;
this.language = newLanguage;
}
});
};
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
</body>
</html>
|