Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
s7-avatar
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
db7ddea3
authored
Jul 19, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
7c3ef856
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
Public/static/image2/cover/1.png
+0
-0
Public/static/image2/cover/4.png
+0
-0
Public/static/js/common.js
+8
-2
No files found.
Public/static/image2/cover/1.png
View file @
db7ddea3
482 KB
|
W:
|
H:
471 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Public/static/image2/cover/4.png
0 → 100644
View file @
db7ddea3
243 KB
Public/static/js/common.js
View file @
db7ddea3
...
...
@@ -130,6 +130,7 @@ $(document).ready(function () {
var
top
=
0
;
if
(
custom
)
{
// 自定义
top
=
536
;
ctx2
.
fillStyle
=
'#ffffff'
;
ctx2
.
font
=
'bold 130px normal'
;
...
...
@@ -138,16 +139,21 @@ $(document).ready(function () {
top
=
536
;
ctx2
.
fillStyle
=
'#ffffff'
;
ctx2
.
font
=
'bold 130px normal'
;
}
else
{
}
else
if
(
firstSwiper
.
realIndex
===
1
)
{
//模板2
top
=
536
;
ctx2
.
fillStyle
=
'#ffffff'
;
ctx2
.
font
=
'bold 130px normal'
;
}
else
{
//模板3
top
=
536
;
ctx2
.
fillStyle
=
'#000000'
;
ctx2
.
font
=
'bold 130px normal'
;
}
ctx2
.
textAlign
=
'left'
;
ctx2
.
textBaseline
=
'top'
;
var
left
=
(
img
.
width
-
ctx2
.
measureText
(
text
).
width
)
/
2
;
var
left
=
(
(
img
.
width
-
ctx2
.
measureText
(
text
).
width
)
/
2
)
-
10
;
ctx2
.
shadowBlur
=
0
;
ctx2
.
fillText
(
text
,
left
,
top
*
2
);
$
(
'.page:visible'
).
find
(
'.showBox'
).
show
().
html
(
'<img src="'
+
canvas2
.
toDataURL
(
'image/png'
)
+
'">'
);
...
...
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