Commit 8bdbfd27 by doszhang

dos

parent f4a88bff
...@@ -63,6 +63,7 @@ preloadimages(preloadImageList, function () {}, function (progress) {}); ...@@ -63,6 +63,7 @@ preloadimages(preloadImageList, function () {}, function (progress) {});
$(document).ready(function () { $(document).ready(function () {
carousel(100); carousel(100);
document.addEventListener('touchstart', function () {}, false); document.addEventListener('touchstart', function () {}, false);
$(window).on('scroll', pageOnScroll);
// for (let i = 0; i < 21; i++) { // for (let i = 0; i < 21; i++) {
// $('.read' + i).show().addClass('read'); // $('.read' + i).show().addClass('read');
// $('.link' + i).hide(); // $('.link' + i).hide();
...@@ -130,6 +131,10 @@ function showRead(event) { ...@@ -130,6 +131,10 @@ function showRead(event) {
$('.read' + index).show(); $('.read' + index).show();
} }
function pageOnScroll(event) {
console.log(event)
}
function carousel(time) { function carousel(time) {
let index = 1; let index = 1;
setInterval(() => { setInterval(() => {
......
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