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
c20ab650
authored
Jan 09, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
ec422156
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
Public/static/css/index.css
+1
-0
Public/static/image2/._poster-bottomhalf.png
+0
-0
Public/static/js/common.js
+16
-0
No files found.
Public/static/css/index.css
View file @
c20ab650
...
...
@@ -438,6 +438,7 @@ input[name=signature]::-webkit-input-placeholder {
/* poster-page */
.poster-page
{
z-index
:
1
;
overflow
:
scroll
;
}
.poster-page
.poster-list
{
...
...
Public/static/image2/._poster-bottomhalf.png
View file @
c20ab650
4 KB
|
W:
|
H:
4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Public/static/js/common.js
View file @
c20ab650
...
...
@@ -346,6 +346,7 @@ function createPoster() {
if
(
flagListHeight
<
pxToRem
(
383
))
{
posterCanvasHeight
=
topHalfHeight
+
pxToRem
(
383
)
+
bottomHalfHeight
;
flagListHeight
=
pxToRem
(
383
);
}
else
{
posterCanvasHeight
=
topHalfHeight
+
flagListHeight
+
bottomHalfHeight
;
}
...
...
@@ -360,7 +361,22 @@ function createPoster() {
let
topHalf
=
new
Image
();
topHalf
.
src
=
picUrl
+
"poster-tophalf.png"
;
topHalf
.
onload
=
function
()
{
//画海报上半部分
posterCtx
.
drawImage
(
topHalf
,
pxToRem
(
45
),
pxToRem
(
107
),
pxToRem
(
550
),
pxToRem
(
382
));
posterCtx
.
save
();
posterCtx
.
restore
();
//画海报中部背景
posterCtx
.
fillStyle
=
'#f4f4f4'
;
posterCtx
.
fillRect
(
pxToRem
(
45
),
pxToRem
(
489
),
pxToRem
(
640
),
pxToRem
(
flagListHeight
));
posterCtx
.
save
();
posterCtx
.
restore
();
//画海报底部
let
bottomHalf
=
new
Image
();
bottomHalf
.
src
=
picUrl
+
"poster-bottomhalf.png"
;
bottomHalf
.
onload
=
function
()
{
bottomHalfTop
=
pxToRem
(
489
)
+
pxToRem
(
flagListHeight
);
posterCtx
.
drawImage
(
bottomHalf
,
pxToRem
(
45
),
bottomHalfTop
,
pxToRem
(
550
),
pxToRem
(
238
));
}
}
}
...
...
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