Commit 57f56b65 by doszhang

dos

parent feed7768
...@@ -107,26 +107,26 @@ preloadimages(preloadImageList, function () {}, function (progress) {}); ...@@ -107,26 +107,26 @@ preloadimages(preloadImageList, function () {}, function (progress) {});
$(document).ready(function () { $(document).ready(function () {
var EventUtil = { // var EventUtil = {
addHandler: function (element, type, handler) { // addHandler: function (element, type, handler) {
if (element.addEventListener) { // if (element.addEventListener) {
element.addEventListener(type, handler, false); // element.addEventListener(type, handler, false);
} else if (element.attachEvent) { // } else if (element.attachEvent) {
element.attachEvent("on" + type, handler); // element.attachEvent("on" + type, handler);
} else { // } else {
element["on" + type] = handler; // element["on" + type] = handler;
} // }
} // }
}; // };
(function () { // (function () {
EventUtil.addHandler(window, "pageshow", function (event) { // EventUtil.addHandler(window, "pageshow", function (event) {
try { // try {
$('#music')[0].play(); // $('#music')[0].play();
} catch (error) { // } catch (error) {
alert(error) // alert(error)
} // }
}); // });
})(); // })();
for (let i = 0; i < 21; i++) { for (let i = 0; i < 21; i++) {
$('.read' + i).hide(); $('.read' + i).hide();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment