[tor-commits] [webwml/master] Fix src unsafe error

hiro at torproject.org hiro at torproject.org
Fri Jun 16 11:06:38 UTC 2017


commit 42b034e7e47da92bd2852b63376a4d9c394f1e72
Author: hiromipaw <hiro at torproject.org>
Date:   Fri Jun 16 12:58:39 2017 +0200

    Fix src unsafe error
---
 include/dlhead.wmi | 2 +-
 js/dlpage01.js     | 9 +++++----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/include/dlhead.wmi b/include/dlhead.wmi
index 87fc98b..d600ee8 100644
--- a/include/dlhead.wmi
+++ b/include/dlhead.wmi
@@ -56,7 +56,7 @@
    License: Public Domain (http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/#comment-32882) */
   </script>
 </head>
-<body onload="resetAll()" onunload="">
+<body class="onload">
     <span class="hidden" id="version-data">
         { "torbrowserbundledir" : "<version-torbrowserbundledir>",
           "torbrowserbundle" : "<version-torbrowserbundle>",
diff --git a/js/dlpage01.js b/js/dlpage01.js
index ddbd519..9efe042 100644
--- a/js/dlpage01.js
+++ b/js/dlpage01.js
@@ -63,7 +63,8 @@ $(function(){
 });
 
 $(document).ready(function () {
-
+    $('.onload').ready(resetAll;
+      
     $('.jump').click(function(event){
       //prevent the default action for the click event
       //event.preventDefault();
@@ -83,7 +84,7 @@ $(document).ready(function () {
 //      $('html, body').animate({scrollTop:target_top}, 1000);
     });
 
-      
+
     // Bind an event to window.onhashchange
     $(window).bind( 'hashchange', function(e) {
 
@@ -95,7 +96,7 @@ $(document).ready(function () {
 
 	  $('.easy').css('display', 'none');
       }
-      
+
       if(url == 'windows'){
 	$('.easy.windows').css('display', 'block');
       } else if(url == 'mac'){
@@ -109,7 +110,7 @@ $(document).ready(function () {
 	  $(function(){OScheck();});
       }
     });
-    
+
     // Since the event is only triggered when the hash changes, we need to trigger
     // the event now, to handle the hash the page may have loaded with.
     $(window).trigger( 'hashchange' );





More information about the tor-commits mailing list