Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
ccb-lantern
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
77fc697c
authored
Jan 28, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
16f9b051
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
Public/static/js/common.js
+25
-25
No files found.
Public/static/js/common.js
View file @
77fc697c
...
...
@@ -51,29 +51,29 @@ if ($('div').length > 0) {
$
(
'.loading-page .loading-gif-block'
).
append
(
'<img class="loading-gif" src="'
+
picUrl
+
'loading.gif" />'
);
$
(
'.loading-page'
).
show
();
preloadimages
(
preloadImageList
,
function
()
{
if
(
browser
.
versions
.
weixin
)
{
let
musicTime
=
setInterval
(
function
()
{
if
(
$
(
'#music'
)[
0
].
currentTime
>
0
)
{
$
(
'.loading-page'
).
fadeOut
();
$
(
'.home-page'
).
fadeIn
(
300
);
$
(
'.home-page .btn-next'
).
addClass
(
'animate'
);
$
(
'.wrap-inner'
).
prepend
(
$
(
'<div class="font">1</div>'
));
clearInterval
(
musicTime
);
}
},
100
);
}
else
{
$
(
'.loading-page'
).
fadeOut
();
$
(
'.home-page'
).
fadeIn
(
300
);
$
(
'.home-page .candle-block'
).
addClass
(
'animate'
);
$
(
'.home-page .btn-next'
).
addClass
(
'animate'
);
$
(
'.wrap-inner'
).
prepend
(
$
(
'<div class="font">1</div>'
));
}
//
if (browser.versions.weixin) {
//
let musicTime = setInterval(function () {
//
if ($('#music')[0].currentTime > 0) {
//
$('.loading-page').fadeOut();
//
$('.home-page').fadeIn(300);
//
$('.home-page .btn-next').addClass('animate');
//
$('.wrap-inner').prepend($('<div class="font">1</div>'));
//
clearInterval(musicTime);
//
}
//
}, 100);
//
} else {
//
$('.loading-page').fadeOut();
//
$('.home-page').fadeIn(300);
//
$('.home-page .candle-block').addClass('animate');
//
$('.home-page .btn-next').addClass('animate');
//
$('.wrap-inner').prepend($('<div class="font">1</div>'));
//
}
//海报测试逻辑
//
$('.loading-page').fadeOut();
//
$('.wrap-inner').prepend($('<div class="font">1</div>'));
//
showPosterPage();
//
createPoster();
$
(
'.loading-page'
).
fadeOut
();
$
(
'.wrap-inner'
).
prepend
(
$
(
'<div class="font">1</div>'
));
showPosterPage
();
createPoster
();
},
function
(
progress
)
{
$
(
'.loading-page .loading-text'
).
text
(
Math
.
floor
(
progress
*
100
)
+
'%'
);
...
...
@@ -243,9 +243,9 @@ countDownCtx = canvasinfo[1];
//海报测试变量
//
flagStack = flag;
//
checkedDecorate = 'http://ccb-lantern.dev.izhida.cn/Public/static/image2/decorate1.png';
//
signature = "张三";
flagStack
=
flag
;
checkedDecorate
=
'http://ccb-lantern.dev.izhida.cn/Public/static/image2/decorate1.png'
;
signature
=
"张三"
;
...
...
@@ -525,7 +525,7 @@ function createPoster() {
//绘制tip
let
tip
=
new
Image
();
tip
.
src
=
"/Public/static/image2/poster-
bottomhalf
.png"
;
tip
.
src
=
"/Public/static/image2/poster-
tip
.png"
;
tip
.
onload
=
function
()
{
posterCtx
.
drawImage
(
tip
,
pxToRem
(
117
*
2
),
(
bottomHalfTop
+
pxToRem
(
153
))
*
2
,
pxToRem
(
61
*
2
),
pxToRem
(
28
*
2
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment