Commit f7303ba1 by doszhang

dos

parent 21e5d2bc
......@@ -30,7 +30,7 @@ function preloadimages(obj, complete_cb, progress_cb) {
var picUrl = window.base_resource_url + '/image2/';
var preloadImageList = [
// picUrl + 'share.png',
picUrl + 'share.jpg',
];
if ($('div').length > 0) {
$.each($('div'), function (index, val) {
......@@ -87,28 +87,7 @@ const linkAddress = {
'link20': 'https://mp.weixin.qq.com/mp/homepage?__biz=MzU4OTQ0ODQ5OQ==&hid=7&sn=259750919ccdb2b34a17e2e64d3fb8ea&scene=1&devicetype=iOS12.3.1&version=1700092d&lang=zh_CN&nettype=3G+&ascene=7&session_us=gh_a1afb9b2b88b&fontScale=100&wx_header=1'
};
var readingJson = {
// 'link1':0,
// 'link2':0,
// 'link3':0,
// 'link4':0,
// 'link5':0,
// 'link6':0,
// 'link7':0,
// 'link8':0,
// 'link9':0,
// 'link10':0,
// 'link11':0,
// 'link12':0,
// 'link13':0,
// 'link14':0,
// 'link15':0,
// 'link16':0,
// 'link17':0,
// 'link18':0,
// 'link19':0,
// 'link20':0
};
var readingJson = {};
let play = 'music';
let videoBreak = false;
......@@ -120,9 +99,7 @@ const video1 = document.getElementById("video1");
const video2 = document.getElementById("video2");
const video3 = document.getElementById("video3");
$('.page1').show();
preloadimages(preloadImageList, function () {
// $('.home-page').show();
}, function (progress) {});
preloadimages(preloadImageList, function () {}, function (progress) {});
$(document).ready(function () {
for (let i = 0; i < 21; i++) {
......@@ -136,48 +113,25 @@ $(document).ready(function () {
}
}
$("input").on("blur", function () {
window.scroll(0, 0); //失焦后强制让页面归位
});
// $('.logo').css('top',getTranslateDistance(15));
video1.addEventListener('pause', function () {
if (video1.paused && video2.paused && video3.paused) {
$('#music')[0].play();
}
// if (videoBreak) {
// videoBreak = false;
// } else {
// }
});
video2.addEventListener('pause', function () {
if (video1.paused && video2.paused && video3.paused) {
$('#music')[0].play();
}
// if (videoBreak) {
// videoBreak = false;
// } else {
// $('#music')[0].play();
// }
});
video3.addEventListener('pause', function () {
if (video1.paused && video2.paused && video3.paused) {
$('#music')[0].play();
}
// if (videoBreak) {
// videoBreak = false;
// } else {
// $('#music')[0].play();
// }
});
video1.addEventListener('play', function () {
console.log('1 play');
play = 'video1';
$('#music')[0].pause();
video2.pause();
......@@ -294,11 +248,11 @@ function jumpTolink(event) {
if (event.data.index || event.data.index == 0) {
const index = event.data.index;
readingJson['link' + index] = 1;
console.log(readingJson);
setCookie('reading', JSON.stringify(readingJson));
}
// window.location.href = link;
window.location.href = link;
}
......
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