Commit 7e3ead4a by doszhang

dos

parent 9ae7db6d
...@@ -84,7 +84,8 @@ ...@@ -84,7 +84,8 @@
</head> </head>
<body> <body>
<audio src="__CDN__/media/bg.mp3" preload="auto" loop="loop" id="music" style="display:none"></audio> <audio src="__CDN__/media/bg.mp3" preload="auto" loop="loop" id="music" style="display:none"></audio>
<audio src="__CDN__/media/flag.mp3" preload="auto" loop="loop" id="flagMusic" style="display:none"></audio>
<div class="wrap"> <div class="wrap">
<div class="wrap-inner"> <div class="wrap-inner">
<div class="font">1</div> <div class="font">1</div>
...@@ -126,9 +127,10 @@ ...@@ -126,9 +127,10 @@
{:block name='js'}{:/block} {:block name='js'}{:/block}
<script> <script>
window.wx && wx.ready(function () { window.wx && wx.ready(function () {
$('#music')[0].play(); $('#music')[0].play();
$('#flagMusic')[0].play();
$('#flagMusic')[0].pause();
wx.onMenuShareAppMessage(wxFriendData); wx.onMenuShareAppMessage(wxFriendData);
wx.onMenuShareTimeline(wxTimelineData); wx.onMenuShareTimeline(wxTimelineData);
}); });
......
...@@ -3,27 +3,32 @@ ...@@ -3,27 +3,32 @@
z-index: 20000; z-index: 20000;
padding: 0; padding: 0;
} }
.notify_center { .notify_center {
background: #1E211F; background: #1E211F;
} }
.notification { .notification {
clear: left; clear: left;
float: left; float: left;
list-style: none; list-style: none;
} }
.notification iframe { .notification iframe {
border: 0; border: 0;
} }
.notification iframe body { .notification iframe body {
margin: 0; margin: 0;
} }
.notify_content { .notify_content {
float: left; float: left;
background: #1E211F; background: #1E211F;
color: #fff; color: #fff;
padding: 1rem; padding: 0.75rem 1.6rem;
border-radius: 0.25rem; border-radius: 0.4rem;
opacity: .8; opacity: 0.6;
max-width: 22.5rem; max-width: 22.5rem;
font-size: 1.5rem; font-size: 1.2rem;
} }
\ No newline at end of file
...@@ -812,6 +812,7 @@ function addFlag(e) { ...@@ -812,6 +812,7 @@ function addFlag(e) {
my_notify('这个Flag已经立过啦!'); my_notify('这个Flag已经立过啦!');
return false; return false;
} }
$('#flagMusic')[0].play();
// target.startX = e.pageX; // target.startX = e.pageX;
// target.startY = e.pageY; // target.startY = e.pageY;
// calculationStep(target.startX, target.endX, target.startY, target.endY); // calculationStep(target.startX, target.endX, target.startY, target.endY);
......
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