JSFiddle - React, Tailwind, and code Playground
by Nic Scozzaro
HTML
<script type="text/javascript">
var reset = function(){
DISQUS.reset({
reload: true,
config: function () {
this.page.identifier = 'newid1';
this.page.url = 'http://example.com/#!newid';
this.page.title = "New Page Title";
this.language = "fr";
}
});
};
var reset2 = function(){
DISQUS.reset({
reload: true,
config: function () {
this.page.identifier = 'newid2';
this.page.url = 'http://example.com/#!newid2';
}
});
};
var reset3 = function(){
DISQUS.reset({
reload: true,
config: function () {
this.page.identifier = 'newid3';
this.page.url = 'http://example.com/#!newid3';
}
});
};
</script>
<button onclick=reset();>Reload Disqus 1</button>
<button onclick=reset2();>Reload Disqus 2</button>
<button onclick=reset3();>Reload Disqus 3</button>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
// required: replace example with your forum shortname
var disqus_shortname = 'example';
var disqus_identifier = 'newidentifier';
var disqus_url = 'http://example.com/newthread';
var disqus_developer = '1';
var disqus_config = function () {
this.language = "ru";
};
/* * * 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);
})();
</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>