Author: sebb
Date: Wed Apr 17 16:07:12 2024
New Revision: 1917064

URL: http://svn.apache.org/viewvc?rev=1917064&view=rev
Log:
Report if cannot download from snoot.io

Modified:
    comdev/projects.apache.org/trunk/site/statistics.html

Modified: comdev/projects.apache.org/trunk/site/statistics.html
URL: 
http://svn.apache.org/viewvc/comdev/projects.apache.org/trunk/site/statistics.html?rev=1917064&r1=1917063&r2=1917064&view=diff
==============================================================================
--- comdev/projects.apache.org/trunk/site/statistics.html (original)
+++ comdev/projects.apache.org/trunk/site/statistics.html Wed Apr 17 16:07:12 
2024
@@ -9,6 +9,17 @@
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/jquery.dataTables.min.js" type="text/javascript"></script>
    <script src="js/script.js" type="text/javascript"></script>
+   <script>
+    var loadError=false;
+    window.onload = function() {
+      if (loadError) {
+         document.getElementById("contents").innerHTML = "Sorry, the data 
could not be loaded from https://www.snoot.io/";;
+      };
+    };
+    function failed(item) {
+        loadError=true;
+    }
+   </script>
    <style type="text/css">
       .snoot-widget img {
          vertical-align: middle;
@@ -133,8 +144,8 @@
    Copyright&copy; 2020, the Apache Software Foundation. Licensed under the <a 
href="https://www.apache.org/licenses/LICENSE-2.0";>Apache License, Version 
2.0</a><br/>
    Apache&reg; and the Apache feather logo are trademarks of The Apache 
Software Foundation.
 </div>
-<script src="https://www.snoot.io/js/snoot.all.3.js";></script>
-<script src="https://www.snoot.io/publish/bundle.js";></script>
-<script src="https://www.snoot.io/js/worldmap.js";></script>
+<script src="https://www.snoot.io/js/snoot.all.3.js"; 
onerror="failed(this)"></script>
+<script src="https://www.snoot.io/publish/bundle.js"; 
onerror="failed(this)"></script>
+<script src="https://www.snoot.io/js/worldmap.js"; 
onerror="failed(this)"></script>
 </body>
 </html>


Reply via email to