Commit 79fc6af8 by doszhang

dos

parent b5d6fd35
...@@ -54,6 +54,8 @@ var readingJson = {}; ...@@ -54,6 +54,8 @@ var readingJson = {};
let play = 'music'; let play = 'music';
let musicStatus = true; let musicStatus = true;
let scrollHandleTimer;
$('.video1').append('<video controls poster="/Public/static/image2/video1.jpg" webkit-playsinline="webkit-playsinline" playsinline="playsinline" x5-playsinline="x5-playsinline" x-webkit-airplay="allow" src="http://media.izhida.cn/pingan-journal-1.mp4" id="video1"></video>'); $('.video1').append('<video controls poster="/Public/static/image2/video1.jpg" webkit-playsinline="webkit-playsinline" playsinline="playsinline" x5-playsinline="x5-playsinline" x-webkit-airplay="allow" src="http://media.izhida.cn/pingan-journal-1.mp4" id="video1"></video>');
const video1 = document.getElementById("video1"); const video1 = document.getElementById("video1");
$('.page1').show(); $('.page1').show();
...@@ -132,6 +134,8 @@ function showRead(event) { ...@@ -132,6 +134,8 @@ function showRead(event) {
} }
function pageOnScroll(event) { function pageOnScroll(event) {
clearTimeout(scrollHandleTimer)
setTimeout(() => {
const top = $('.wrap').scrollTop(); const top = $('.wrap').scrollTop();
console.log(top); console.log(top);
if (top > 600 && top < 2800) { if (top > 600 && top < 2800) {
...@@ -142,9 +146,13 @@ function pageOnScroll(event) { ...@@ -142,9 +146,13 @@ function pageOnScroll(event) {
$('.block4').show().addClass('animate'); $('.block4').show().addClass('animate');
} else if (top > 4700 && top < 5400) { } else if (top > 4700 && top < 5400) {
$('.block5').show().addClass('animate'); $('.block5').show().addClass('animate');
} else if (top > 5400) { } else if (top > 5400 && top < 6000) {
$('.block6').show().addClass('animate'); $('.block6').show().addClass('animate');
} else if (top > 6000) {
$('.block7').show().addClass('animate');
} }
}, 300)
} }
function carousel(time) { function carousel(time) {
......
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