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
b210cbcd
authored
Jan 19, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
3ce8b99e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
Public/static/js/common.js
+27
-0
No files found.
Public/static/js/common.js
View file @
b210cbcd
...
...
@@ -259,6 +259,11 @@ function showRule() {
function
retry
()
{
if
(
posterStatus
)
{
try
{
MtaH5
.
clickStat
(
"28"
);
}
catch
(
error
)
{
console
.
log
(
error
);
}
initQuestion
();
$
(
'.poster-page'
).
hide
();
$
(
'.question-page'
).
show
();
...
...
@@ -309,6 +314,12 @@ function submit() {
function
tryprize
()
{
if
(
posterStatus
)
{
try
{
MtaH5
.
clickStat
(
"27"
);
}
catch
(
error
)
{
console
.
log
(
error
);
}
$
(
'.prize-page'
).
show
();
}
}
...
...
@@ -442,6 +453,11 @@ function drawRoundRectImg(ctx, r, x, y, w, h, img) {
function
submitAnswer
()
{
if
(
nowAnswer
!==
''
)
{
try
{
MtaH5
.
clickStat
(
"18"
);
}
catch
(
error
)
{
console
.
log
(
error
);
}
if
(
answerArr
[
0
]
==
0
)
{
resultType
=
4
;
}
else
if
(
answerArr
[
1
]
==
0
)
{
...
...
@@ -462,6 +478,17 @@ function submitAnswer() {
resultType
=
5
;
}
//进行答题统计
try
{
MtaH5
.
clickStat
(
answerArr
[
0
]
+
1
);
MtaH5
.
clickStat
(
answerArr
[
1
]
+
5
);
MtaH5
.
clickStat
(
answerArr
[
2
]
+
8
);
MtaH5
.
clickStat
(
answerArr
[
3
]
+
11
);
MtaH5
.
clickStat
(
answerArr
[
4
]
+
14
);
}
catch
(
error
)
{
console
.
log
(
error
);
}
$
(
'.question'
+
nowQuestionIndex
+
'-block'
).
addClass
(
'fadeoutleft'
);
setTimeout
(
function
()
{
$
(
'.dialog'
).
show
();
...
...
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