httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1335564 - /httpd/httpd/trunk/docs/manual/bind.html.en
Date Tue, 08 May 2012 15:05:50 GMT
Author: humbedooh
Date: Tue May  8 15:05:50 2012
New Revision: 1335564

URL: http://svn.apache.org/viewvc?rev=1335564&view=rev
Log:
Testing nd's suggestion on using document.write

Modified:
    httpd/httpd/trunk/docs/manual/bind.html.en

Modified: httpd/httpd/trunk/docs/manual/bind.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/bind.html.en?rev=1335564&r1=1335563&r2=1335564&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/bind.html.en (original)
+++ httpd/httpd/trunk/docs/manual/bind.html.en Tue May  8 15:05:50 2012
@@ -195,19 +195,20 @@ Listen 192.0.2.1:80
 <a href="./ko/bind.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a>
|
 <a href="./tr/bind.html" hreflang="tr" rel="alternate" title="Türkçe">&nbsp;tr&nbsp;</a></p>
 </div><div class="top"><a href="#page-header"><img src="./images/up.gif"
alt="top" /></a></div><div class="section"><h2><a id="comments_section"
name="comments_section">Comments</a></h2><div class="warning"><strong>This
section is experimental!</strong><br />Comments placed here should not be expected

-to last beyond the testing phase of this system, nor do we in any way guarantee that we'll
read them.</div><div id="disqus_thread" /><script type="text/javascript"><!--//--><![CDATA[//><!--
+to last beyond the testing phase of this system, nor do we in any way guarantee that we'll
read them.</div>
+<script type="text/javascript"><!--//--><![CDATA[//><!--
 var lang = 'en';
 var disqus_shortname = 'httpd';
 var disqus_identifier = window.location.href.replace(/(current|trunk)/, "2.4").replace(/\/[a-z]{2}\//,
"/").replace(window.location.protocol, "http:") + '.' + lang;
 if (disqus_identifier.indexOf("httpd.apache.org") != -1) {
+    document.write('<div id="disqus_thread" />');
     (function() {
                 var dsq = document.createElement('script'); dsq.type = 'text/javascript';
dsq.async = true;
                 dsq.src = window.location.protocol + '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
         })();
 } else {
-    var text = document.createTextNode("Comments have been disabled for offline viewing.");
-    document.getElementById('disqus_thread').appendChild(text);
+    document.write("Comments have been disabled for offline viewing.");
 }
 //--><!]]></script></div><div id="footer">
 <p class="apache">Copyright 2012 The Apache Software Foundation.<br />Licensed
under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version
2.0</a>.</p>



Mime
View raw message