Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
maf
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
5f41f2f2
authored
Jan 15, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
2e645a72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletions
+28
-1
Public/static/js/common.js
+28
-1
No files found.
Public/static/js/common.js
View file @
5f41f2f2
...
...
@@ -68,7 +68,7 @@ let answerArr = [];
// 已经进入的题目
let
watchedQuestion
=
[
1
];
//结果
let
resultType
=
2
;
let
resultType
=
3
;
//提交信息按钮防抖
let
submitStatus
=
true
;
//是否已经看过规则
...
...
@@ -305,6 +305,33 @@ function createPoster(callback) {
'height'
:
pxToRem
(
canvasArr
[
resultType
-
1
][
3
])
/
2
+
'rem'
,
});
$
(
'.posterImg'
).
attr
(
'src'
,
'http://maf.dev.izhida.cn/Public/static/image2/poster'
+
resultType
+
'.png'
);
switch
(
resultType
)
{
case
1
:
$
(
'.tip1,.tip6'
).
css
(
'top'
,
'51.8rem'
);
break
;
case
2
:
$
(
'.tip1,.tip6'
).
css
(
'top'
,
'51.6rem'
);
break
;
case
3
:
$
(
'.tip1,.tip6'
).
css
(
'top'
,
'51.6rem'
);
break
;
case
4
:
$
(
'.tip1,.tip6'
).
css
(
'top'
,
'51.6rem'
);
break
;
case
5
:
$
(
'.tip1,.tip6'
).
css
(
'top'
,
'51.6rem'
);
break
;
case
6
:
$
(
'.tip1,.tip6'
).
css
(
'top'
,
'51.6rem'
);
break
;
case
7
:
$
(
'.tip1,.tip6'
).
css
(
'top'
,
'51.6rem'
);
break
;
case
8
:
$
(
'.tip1,.tip6'
).
css
(
'top'
,
'51.6rem'
);
break
;
}
let
posterImg
=
new
Image
();
posterImg
.
src
=
'http://maf.dev.izhida.cn/Public/static/image2/poster'
+
resultType
+
'.png'
;
posterImg
.
onload
=
function
()
{
...
...
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