Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
chinaamc-2020flag
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
eb63dd9a
authored
Jan 09, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
6db57e06
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
Public/static/image2/._flag-no.png
+0
-0
Public/static/js/common.js
+16
-0
No files found.
Public/static/image2/._flag-no.png
View file @
eb63dd9a
4 KB
|
W:
|
H:
4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Public/static/js/common.js
View file @
eb63dd9a
...
@@ -382,11 +382,27 @@ function createPoster() {
...
@@ -382,11 +382,27 @@ function createPoster() {
bottomHalf
.
onload
=
function
()
{
bottomHalf
.
onload
=
function
()
{
bottomHalfTop
=
pxToRem
(
487
)
+
pxToRem
(
flagListHeight
);
bottomHalfTop
=
pxToRem
(
487
)
+
pxToRem
(
flagListHeight
);
posterCtx
.
drawImage
(
bottomHalf
,
pxToRem
(
45
),
bottomHalfTop
,
pxToRem
(
550
),
pxToRem
(
238
));
posterCtx
.
drawImage
(
bottomHalf
,
pxToRem
(
45
),
bottomHalfTop
,
pxToRem
(
550
),
pxToRem
(
238
));
drawFlagItem
(
pxToRem
(
flagListHeight
+
20
));
}
}
}
}
}
}
function
drawFlagItem
(
initialPosition
)
{
let
noBg
=
new
Image
();
noBg
.
src
=
picUrl
+
'flag-no.png'
;
noBg
.
onload
=
function
()
{
let
redline
=
new
Image
();
redline
.
src
=
picUrl
+
'flag-redline.png'
;
let
nodeList
=
$
(
'.poster-page .poster-list .flag-item'
);
for
(
let
i
=
0
;
i
<
flagStack
.
length
;
i
++
)
{
let
offsetTop
=
$
(
'.poster-page .poster-list .flag-item'
)[
i
]
let
top
=
initialPosition
+
$
(
nodeList
[
i
]).
offset
().
top
;
posterCtx
.
drawImage
(
noBg
,
pxToRem
(
105
),
top
,
pxToRem
(
44
).
pxToRem
(
39
));
}
}
}
function
showPosterPage
()
{
function
showPosterPage
()
{
createPoster
();
createPoster
();
}
}
...
...
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