Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
pingan-maruko
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
49f99c70
authored
Jun 17, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
b19617f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Public/static/js/common.js
+5
-4
No files found.
Public/static/js/common.js
View file @
49f99c70
...
@@ -152,12 +152,13 @@ function createPoster(resultFlag) {
...
@@ -152,12 +152,13 @@ function createPoster(resultFlag) {
function
drawNum
(
resultFlag
)
{
function
drawNum
(
resultFlag
)
{
const
text1
=
`成为樱桃小丸子的第
${
window
.
joinNum
}
个的`
;
const
text1
=
`成为樱桃小丸子的第
${
window
.
joinNum
}
个的`
;
const
text2
=
`祈福伙伴,并获得「
${
guardian
[
resultFlag
-
1
]}
」`
const
text2
=
`祈福伙伴,并获得「
${
guardian
[
resultFlag
-
1
]}
」`
txtDraw
(
posterCtx
,
text1
,
281
,
24
,
'bolder'
,
'#748b6c'
);
txtDraw
(
posterCtx
,
text1
,
320
,
281
,
24
,
'bolder'
,
'#748b6c'
);
txtDraw
(
posterCtx
,
text2
,
316
,
24
,
'bolder'
,
'#748b6c'
);
txtDraw
(
posterCtx
,
text2
,
3
20
,
3
16
,
24
,
'bolder'
,
'#748b6c'
);
}
}
function
txtDraw
(
ctx
,
content
,
top
,
fontsize
,
fontweight
,
color
)
{
function
txtDraw
(
ctx
,
content
,
x
,
y
,
fontsize
,
fontweight
,
color
)
{
top
=
top
*
2
;
x
=
x
*
2
;
y
=
y
*
2
;
fontsize
=
fontsize
*
2
;
fontsize
=
fontsize
*
2
;
ctx
.
font
=
fontweight
+
' '
+
fontsize
+
'px arial'
;
ctx
.
font
=
fontweight
+
' '
+
fontsize
+
'px arial'
;
var
width
=
ctx
.
measureText
(
content
).
width
;
var
width
=
ctx
.
measureText
(
content
).
width
;
...
...
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