"Widget:DISQUS"의 두 판 사이의 차이

미미위키
잔글
잔글
12번째 줄: 12번째 줄:
 
<script type="text/javascript">
 
<script type="text/javascript">
 
     /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
 
     /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
    var disqus_shortname = '<!--{$id|escape:'mimiiwiki '}-->'; // required: replace example with your forum shortname
 
    <!--{if (isset($uniqid))}-->var disqus_identifier = '<!--{$uniqid|escape:'quotes'}-->';<!--{/if}-->
 
    <!--{if (isset($url))}-->var disqus_url = '<!--{$url|escape:'quotes'}-->';<!--{/if}-->
 
 
 
     var disqus_config = function () {
 
     var disqus_config = function () {
 
     <!--{if (isset($url))}-->this.page.url = '<!--{$url|escape:'quotes'}-->';<!--{/if}-->
 
     <!--{if (isset($url))}-->this.page.url = '<!--{$url|escape:'quotes'}-->';<!--{/if}-->
21번째 줄: 17번째 줄:
 
     };
 
     };
  
    /* * * DON'T EDIT BELOW THIS LINE * * */
+
(function() {
    (function() {
+
var d = document, s = d.createElement('script');
        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+
s.src = 'https://mimiiwiki.disqus.com/embed.js';
        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
+
s.setAttribute('data-timestamp', +new Date());
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+
(d.head || d.body).appendChild(s);
    })();
+
})();
 +
 
 +
 
 
</script>
 
</script>
 
<noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
 
<noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
 
<a href="//disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a></includeonly>
 
<a href="//disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a></includeonly>

2018년 9월 16일 (일) 02:45 판

This widget allows you to embed DISQUS Comments on your wiki page.

Created by Sergey Chernyshev

Using this widget

For information on how to use this widget, see widget description page on MediaWikiWidgets.org.

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:DISQUS article.