Commit 31b05100 by doszhang

dos

parent 171030bf
...@@ -61,7 +61,7 @@ preloadimages(preloadImageList, function () {}, function (progress) {}); ...@@ -61,7 +61,7 @@ preloadimages(preloadImageList, function () {}, function (progress) {});
$(document).ready(function () { $(document).ready(function () {
carousel(10);
document.addEventListener('touchstart', function () {}, false); document.addEventListener('touchstart', function () {}, false);
// for (let i = 0; i < 21; i++) { // for (let i = 0; i < 21; i++) {
// $('.read' + i).show().addClass('read'); // $('.read' + i).show().addClass('read');
...@@ -130,6 +130,15 @@ function showRead(event) { ...@@ -130,6 +130,15 @@ function showRead(event) {
$('.read' + index).show(); $('.read' + index).show();
} }
function carousel(time) {
let index = 1;
setInterval(() => {
$('.gif-block div').hide();
$('.block7-img' + index).show();
index = ((index + 1) > 6) ? 1 : index + 1;
}, time);
}
function getTranslateDistance(cardinal = 0, abs = false) { function getTranslateDistance(cardinal = 0, abs = false) {
var wrapInnerTransform = $('.wrap-inner').css('transform'); var wrapInnerTransform = $('.wrap-inner').css('transform');
......
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