Commits

Keiji Matsuzaki committed ec318a7

change in logic the from windo.onload to DOMContentLoaded

Comments (0)

Files changed (2)

question_4/sample_1/index.html

     <div id="odds-elements">
     </div>
     <script type="text/javascript" src="pollution.js"></script>
-    <script type="text/javascript">
-      // <![CDATA[
-      view_odds_value();
-      // ]]>
-    </script>
   </body>
 </html>

question_4/sample_1/pollution.js

     return '<span>' + _r.join(', ') + '</span>';
   })();
 };
+
+if(document.addEventListener){
+  document.addEventListener('DOMContentLoaded', view_odds_value, false);
+}
+