Commit 57f56b65 by doszhang

dos

parent feed7768
......@@ -107,26 +107,26 @@ preloadimages(preloadImageList, function () {}, function (progress) {});
$(document).ready(function () {
var EventUtil = {
addHandler: function (element, type, handler) {
if (element.addEventListener) {
element.addEventListener(type, handler, false);
} else if (element.attachEvent) {
element.attachEvent("on" + type, handler);
} else {
element["on" + type] = handler;
}
}
};
(function () {
EventUtil.addHandler(window, "pageshow", function (event) {
try {
$('#music')[0].play();
} catch (error) {
alert(error)
}
});
})();
// var EventUtil = {
// addHandler: function (element, type, handler) {
// if (element.addEventListener) {
// element.addEventListener(type, handler, false);
// } else if (element.attachEvent) {
// element.attachEvent("on" + type, handler);
// } else {
// element["on" + type] = handler;
// }
// }
// };
// (function () {
// EventUtil.addHandler(window, "pageshow", function (event) {
// try {
// $('#music')[0].play();
// } catch (error) {
// alert(error)
// }
// });
// })();
for (let i = 0; i < 21; i++) {
$('.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