Commit 331705d3 by doszhang

dos

parent f5c0ea74
...@@ -72,13 +72,16 @@ preloadimages(preloadImageList, function () { ...@@ -72,13 +72,16 @@ preloadimages(preloadImageList, function () {
if (browser.versions.weixin) { if (browser.versions.weixin) {
let musicTime = setInterval(function () { let musicTime = setInterval(function () {
if ($('#music')[0].currentTime > 0) { if ($('#music')[0].currentTime > 0) {
initPage();
$('.page1').show(); $('.page1').show();
clearInterval(musicTime); clearInterval(musicTime);
} }
}, 100); }, 100);
} else { } else {
initPage();
$('.page1').show(); $('.page1').show();
} }
$('input[name=name]').attr('placeholder', '姓名').attr('id', 'name');; $('input[name=name]').attr('placeholder', '姓名').attr('id', 'name');;
$('input[name=business]').attr('placeholder', '业务号').attr('type', 'tel').attr('maxlength', 10); $('input[name=business]').attr('placeholder', '业务号').attr('type', 'tel').attr('maxlength', 10);
$('.page1 .num').html('已有<span class="numbig">' + window.num + '</span>人发起承诺'); $('.page1 .num').html('已有<span class="numbig">' + window.num + '</span>人发起承诺');
...@@ -93,7 +96,7 @@ preloadimages(preloadImageList, function () { ...@@ -93,7 +96,7 @@ preloadimages(preloadImageList, function () {
$(document).ready(function () { $(document).ready(function () {
// $('.logo').css('top', getTranslateDistance(40, true)); // $('.logo').css('top', getTranslateDistance(40, true));
initPage();
$('.music').click(function () { $('.music').click(function () {
if ($('#music')[0].paused) { if ($('#music')[0].paused) {
$('#music')[0].play(); $('#music')[0].play();
......
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