Commit 2db0e1fa by doszhang

dos

parent fa886137
...@@ -97,6 +97,11 @@ input::-webkit-input-placeholder { ...@@ -97,6 +97,11 @@ input::-webkit-input-placeholder {
-webkit-animation: fadeInOut 1s ease infinite; -webkit-animation: fadeInOut 1s ease infinite;
} }
.home-page .musicgif {
width: 100%;
height: 100%;
}
@keyframes fadeInOut { @keyframes fadeInOut {
0%, 0%,
......
...@@ -246,6 +246,7 @@ $(document).ready(function () { ...@@ -246,6 +246,7 @@ $(document).ready(function () {
window.scroll(0, 0); //失焦后强制让页面归位 window.scroll(0, 0); //失焦后强制让页面归位
}); });
// $('.logo').css('top',getTranslateDistance(15)); // $('.logo').css('top',getTranslateDistance(15));
$('.gif-block').append('<img class="musicgif" src="' + picUrl + 'music.gif" />');
initPage(); initPage();
...@@ -347,8 +348,24 @@ $(document).ready(function () { ...@@ -347,8 +348,24 @@ $(document).ready(function () {
$('.suggest-page .agree-wrap').on('click', agreeSuggest); $('.suggest-page .agree-wrap').on('click', agreeSuggest);
//完成署名 //完成署名
$('.suggest-page .btn-next').on('click', showCountDownPage); $('.suggest-page .btn-next').on('click', showCountDownPage);
//音乐按钮点击
$('.btn-music').on('click', toggleMusic);
}); });
function toggleMusic() {
if ($('#music')[0].paused) {
$('#music')[0].play();
$('.music.stop').hide();
$('.music.play').show();
musicStatus = true;
} else {
$('#music')[0].pause();
$('.music.play').hide();
$('.music.stop').show();
musicStatus = false;
}
}
function initPage() { function initPage() {
let displacement = parseInt(getTranslateDistance()); let displacement = parseInt(getTranslateDistance());
if (displacement > 0) { if (displacement > 0) {
......
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