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
5396833c
authored
Jan 28, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
2c921e8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
24 deletions
+28
-24
Public/static/js/common.js
+28
-24
No files found.
Public/static/js/common.js
View file @
5396833c
...
@@ -216,6 +216,8 @@ let posterCtx;
...
@@ -216,6 +216,8 @@ let posterCtx;
let
homeNext
=
true
;
let
homeNext
=
true
;
//page1 next
//page1 next
let
page1Next
=
true
;
let
page1Next
=
true
;
//suggest next
let
suggestNext
=
true
;
let
wrapNum
=
0
;
let
wrapNum
=
0
;
...
@@ -577,32 +579,34 @@ function showPosterPage() {
...
@@ -577,32 +579,34 @@ function showPosterPage() {
}
}
function
showCountDownPage
()
{
function
showCountDownPage
()
{
// $('.suggest-page input[name=signature]').val('张三');
if
(
suggestNext
)
{
let
val
=
$
(
'.suggest-page input[name=signature]'
).
val
();
suggestNext
=
false
;
if
(
val
.
match
(
/^
\s
*$/
))
{
let
val
=
$
(
'.suggest-page input[name=signature]'
).
val
();
$
(
'#notification_area'
).
remove
();
if
(
val
.
match
(
/^
\s
*$/
))
{
my_notify
(
'请填写名字'
);
$
(
'#notification_area'
).
remove
();
return
false
;
my_notify
(
'请填写名字'
);
}
return
false
;
$
(
'.countdown-page'
).
css
(
'background'
,
bgColor
);
}
createPoster
();
$
(
'.countdown-page'
).
css
(
'background'
,
bgColor
);
createPoster
();
$
(
'.countdown-page'
).
show
();
$
(
'.countdown-page'
).
show
();
$
(
'.suggest-page .suggest-wrap'
).
addClass
(
'animate'
);
$
(
'.suggest-page .suggest-wrap'
).
addClass
(
'animate'
);
signature
=
val
;
signature
=
val
;
setTimeout
(
function
()
{
setTimeout
(
function
()
{
$
(
'.suggest-page'
).
fadeOut
(
300
);
$
(
'.suggest-page'
).
fadeOut
(
300
);
countDown
(
function
()
{
countDown
(
function
()
{
$
(
'.countdown-page'
).
fadeOut
(
300
);
$
(
'.countdown-page'
).
fadeOut
(
300
);
$
(
'.effect-page'
).
css
(
'background'
,
bgColor
).
show
();
$
(
'.effect-page'
).
css
(
'background'
,
bgColor
).
show
();
setTimeout
(
function
()
{
setTimeout
(
function
()
{
showPosterPage
();
showPosterPage
();
$
(
'#notification_area'
).
remove
();
$
(
'#notification_area'
).
remove
();
my_notify
(
'长按可保存图片哦'
);
my_notify
(
'长按可保存图片哦'
);
},
2000
);
},
2000
);
});
});
},
999
);
},
999
);
}
}
}
function
countDown
(
callback
)
{
function
countDown
(
callback
)
{
...
...
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