Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
citic-fighting
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
22cea914
authored
Jul 01, 2024
by
dosZhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
bb0e11ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
Public/static/js/common.js
+8
-10
No files found.
Public/static/js/common.js
View file @
22cea914
...
...
@@ -77,8 +77,6 @@ preloadimages(preloadImageList, function () {
initPage
();
$
(
'.page1'
).
show
();
$
(
'input[name=name]'
).
val
(
'黄春燕'
)
$
(
'input[name=job-number]'
).
val
(
'73000060'
)
$
(
'input[name=name]'
).
attr
(
'placeholder'
,
'请输入姓名'
).
attr
(
'id'
,
'name'
);
$
(
'input[name=job-number]'
).
attr
(
'placeholder'
,
'请输入工号'
).
attr
(
'type'
,
'tel'
);
// blackUrl = $('.black').css('background-image').replace(/^url\((['"]?)(.*)\1\)$/, '$2');
...
...
@@ -338,8 +336,8 @@ function createPoster() {
setTimeout
(
function
()
{
posterCtx
.
drawImage
(
posterMask
,
0
,
0
,
640
*
2
,
1238
*
2
);
drawVerticalText
(
posterCtx
,
username
,
'#595857'
,
32
*
2
,
95
*
2
,
345
*
2
,
true
,
5
*
2
);
drawVerticalText
(
posterCtx
,
company
,
'#595857'
,
32
*
2
,
95
*
2
,
505
*
2
,
true
,
5
*
2
);
drawVerticalText
(
uploadCtx
,
username
,
'#595857'
,
25
*
2
,
82
*
2
,
300
*
2
,
true
,
5
*
2
);
drawVerticalText
(
uploadCtx
,
company
,
'#595857'
,
25
*
2
,
82
*
2
,
440
*
2
,
true
,
5
*
2
);
$
(
'#notification_area'
).
remove
();
$
(
'.upload-page'
).
hide
();
...
...
@@ -421,8 +419,8 @@ function bindMc(mc, ctx, myCanvas, img, imgInfo) {
imgInfo
.
y
+=
movedY
*
2
;
drawImage
(
ctx
,
myCanvas
,
img
,
imgInfo
);
drawVerticalText
(
ctx
,
username
,
'#595857'
,
32
*
2
,
95
*
2
,
345
*
2
,
true
,
5
*
2
);
drawVerticalText
(
ctx
,
company
,
'#595857'
,
32
*
2
,
95
*
2
,
505
*
2
,
true
,
5
*
2
);
drawVerticalText
(
uploadCtx
,
username
,
'#595857'
,
25
*
2
,
82
*
2
,
300
*
2
,
true
,
5
*
2
);
drawVerticalText
(
uploadCtx
,
company
,
'#595857'
,
25
*
2
,
82
*
2
,
440
*
2
,
true
,
5
*
2
);
}
});
var
oldScale
=
1
;
...
...
@@ -438,8 +436,8 @@ function bindMc(mc, ctx, myCanvas, img, imgInfo) {
oldScale
=
event
.
scale
;
imgInfo
.
scale
*=
nowScale
;
drawImage
(
ctx
,
myCanvas
,
img
,
imgInfo
);
drawVerticalText
(
ctx
,
username
,
'#595857'
,
32
*
2
,
95
*
2
,
345
*
2
,
true
,
5
*
2
);
drawVerticalText
(
ctx
,
company
,
'#595857'
,
32
*
2
,
95
*
2
,
505
*
2
,
true
,
5
*
2
);
drawVerticalText
(
uploadCtx
,
username
,
'#595857'
,
25
*
2
,
82
*
2
,
300
*
2
,
true
,
5
*
2
);
drawVerticalText
(
uploadCtx
,
company
,
'#595857'
,
25
*
2
,
82
*
2
,
440
*
2
,
true
,
5
*
2
);
}
});
var
oldRotation
=
0
;
...
...
@@ -455,8 +453,8 @@ function bindMc(mc, ctx, myCanvas, img, imgInfo) {
oldRotation
=
event
.
rotation
;
imgInfo
.
rotation
+=
nowRotation
;
drawImage
(
ctx
,
myCanvas
,
img
,
imgInfo
);
drawVerticalText
(
ctx
,
username
,
'#595857'
,
32
*
2
,
95
*
2
,
345
*
2
,
true
,
5
*
2
);
drawVerticalText
(
ctx
,
company
,
'#595857'
,
32
*
2
,
95
*
2
,
505
*
2
,
true
,
5
*
2
);
drawVerticalText
(
uploadCtx
,
username
,
'#595857'
,
25
*
2
,
82
*
2
,
300
*
2
,
true
,
5
*
2
);
drawVerticalText
(
uploadCtx
,
company
,
'#595857'
,
25
*
2
,
82
*
2
,
440
*
2
,
true
,
5
*
2
);
}
});
}
...
...
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