Browse code

Fix src unsafe error

hiromipaw authored on16/06/2017 12:58:39
Showing2 changed files
... ...
@@ -56,7 +56,7 @@
56 56
    License: Public Domain (http://www.stemkoski.com/stupid-simple-jquery-accordion-menu/#comment-32882) */
57 57
   </script>
58 58
 </head>
59
-<body onload="resetAll()" onunload="">
59
+<body class="onload">
60 60
     <span class="hidden" id="version-data">
61 61
         { "torbrowserbundledir" : "<version-torbrowserbundledir>",
62 62
           "torbrowserbundle" : "<version-torbrowserbundle>",
... ...
@@ -63,7 +63,8 @@ $(function(){
63 63
 });
64 64
 
65 65
 $(document).ready(function () {
66
-
66
+    $('.onload').ready(resetAll;
67
+      
67 68
     $('.jump').click(function(event){
68 69
       //prevent the default action for the click event
69 70
       //event.preventDefault();
... ...
@@ -83,7 +84,7 @@ $(document).ready(function () {
83 84
 //      $('html, body').animate({scrollTop:target_top}, 1000);
84 85
     });
85 86
 
86
-      
87
+
87 88
     // Bind an event to window.onhashchange
88 89
     $(window).bind( 'hashchange', function(e) {
89 90
 
... ...
@@ -95,7 +96,7 @@ $(document).ready(function () {
95 96
 
96 97
 	  $('.easy').css('display', 'none');
97 98
       }
98
-      
99
+
99 100
       if(url == 'windows'){
100 101
 	$('.easy.windows').css('display', 'block');
101 102
       } else if(url == 'mac'){
... ...
@@ -109,7 +110,7 @@ $(document).ready(function () {
109 110
 	  $(function(){OScheck();});
110 111
       }
111 112
     });
112
-    
113
+
113 114
     // Since the event is only triggered when the hash changes, we need to trigger
114 115
     // the event now, to handle the hash the page may have loaded with.
115 116
     $(window).trigger( 'hashchange' );