Revision: 8449
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8449&view=rev
Author:   mdboom
Date:     2010-06-21 13:19:11 +0000 (Mon, 21 Jun 2010)

Log Message:
-----------
[3015217] Don't add piwik code to html docs by default
This prevents the web browser from making remote http requests when browsing 
the docs locally.

Modified Paths:
--------------
    trunk/matplotlib/doc/_templates/layout.html

Modified: trunk/matplotlib/doc/_templates/layout.html
===================================================================
--- trunk/matplotlib/doc/_templates/layout.html 2010-06-21 08:51:30 UTC (rev 
8448)
+++ trunk/matplotlib/doc/_templates/layout.html 2010-06-21 13:19:11 UTC (rev 
8449)
@@ -13,17 +13,24 @@
 {% block relbar1 %}
 <!-- Piwik -->
 <script type="text/javascript">
-var pkBaseURL = (("https:" == document.location.protocol) ? 
"https://apps.sourceforge.net/piwik/matplotlib/"; : 
"http://apps.sourceforge.net/piwik/matplotlib/";);
-document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' 
type='text/javascript'%3E%3C/script%3E"));
-</script><script type="text/javascript">
-piwik_action_name = '';
-piwik_idsite = 1;
-piwik_url = pkBaseURL + "piwik.php";
-piwik_log(piwik_action_name, piwik_idsite, piwik_url);
+if ("matplotlib.sourceforge.net" == document.location.hostname ||
+    "matplotlib.sf.net" == document.location.hostname) {
+  var pkBaseURL = (("https:" == document.location.protocol) ? 
"https://apps.sourceforge.net/piwik/matplotlib/"; : 
"http://apps.sourceforge.net/piwik/matplotlib/";);
+  document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' 
type='text/javascript'%3E%3C/script%3E"));
+}
 </script>
-<object><noscript><p><img 
src="http://apps.sourceforge.net/piwik/matplotlib/piwik.php?idsite=1"; 
alt="piwik"/></p></noscript></object>
+<script type="text/javascript">
+if ("matplotlib.sourceforge.net" == document.location.hostname ||
+    "matplotlib.sf.net" == document.location.hostname) {
+  piwik_action_name = '';
+  piwik_idsite = 1;
+  piwik_url = pkBaseURL + "piwik.php";
+  piwik_log(piwik_action_name, piwik_idsite, piwik_url);
+  document.write(unescape('%3Cobject%3E%3Cnoscript%3E%3Cp%3E%3Cimg 
src="http://apps.sourceforge.net/piwik/matplotlib/piwik.php?idsite=1"; 
alt="piwik"/%3E%3C/p%3E%3C/noscript%3E%3C/object%3E'));
+}
+</script>
 <!-- End Piwik Tag -->
-<link rel="shortcut icon" href="_static/favicon.ico"> 
+<link rel="shortcut icon" href="_static/favicon.ico">
 
 <div style="background-color: white; text-align: left; padding: 10px 10px 15px 
15px">
 <a href="{{ pathto('index') }}"><img src="{{


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to