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
7a32c277
authored
Jan 15, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
acbb2d97
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
1 deletions
+9
-1
Public/static/css/index.css
+5
-0
Public/static/image2/._rule-active.png
+0
-0
Public/static/image2/rule-active.png
+0
-0
Public/static/js/common.js
+4
-1
No files found.
Public/static/css/index.css
View file @
7a32c277
...
@@ -94,6 +94,11 @@ input::-webkit-input-placeholder {
...
@@ -94,6 +94,11 @@ input::-webkit-input-placeholder {
background-size
:
100%
;
background-size
:
100%
;
}
}
.home-page
.btn-rule.active
{
background
:
url(../image2/rule-active.png)
left
top
no-repeat
;
background-size
:
100%
;
}
.home-page
.title
{
.home-page
.title
{
transform
:
scale
(
0.95
);
transform
:
scale
(
0.95
);
transform-origin
:
62.29%
81.8%
;
transform-origin
:
62.29%
81.8%
;
...
...
Public/static/image2/._rule-active.png
0 → 100644
View file @
7a32c277
4 KB
Public/static/image2/rule-active.png
0 → 100644
View file @
7a32c277
21.4 KB
Public/static/js/common.js
View file @
7a32c277
...
@@ -47,6 +47,8 @@ var preloadImageList = [
...
@@ -47,6 +47,8 @@ var preloadImageList = [
picUrl
+
'poster6.png'
,
picUrl
+
'poster6.png'
,
picUrl
+
'poster7.png'
,
picUrl
+
'poster7.png'
,
picUrl
+
'poster8.png'
,
picUrl
+
'poster8.png'
,
picUrl
+
'poster8.png'
,
picUrl
+
'rule-active.png'
,
];
];
if
(
$
(
'div'
).
length
>
0
)
{
if
(
$
(
'div'
).
length
>
0
)
{
$
.
each
(
$
(
'div'
),
function
(
index
,
val
)
{
$
.
each
(
$
(
'div'
),
function
(
index
,
val
)
{
...
@@ -119,7 +121,7 @@ $(document).ready(function () {
...
@@ -119,7 +121,7 @@ $(document).ready(function () {
$
(
'.index-block'
).
css
(
'top'
,
getTranslateDistance
(
20
));
$
(
'.index-block'
).
css
(
'top'
,
getTranslateDistance
(
20
));
$
(
'.question-block'
).
css
(
'top'
,
getTranslateDistance
(
-
36
));
$
(
'.question-block'
).
css
(
'top'
,
getTranslateDistance
(
-
36
));
//
$('.rule-page .rule-content').css('top', getTranslateDistance(-40));
$
(
'.rule-page .rule-content'
).
css
(
'top'
,
getTranslateDistance
(
-
40
));
//显示答题页面
//显示答题页面
$
(
'.home-page .btn-next'
).
on
(
'click'
,
showQuestion
);
$
(
'.home-page .btn-next'
).
on
(
'click'
,
showQuestion
);
...
@@ -230,6 +232,7 @@ function loaded() {
...
@@ -230,6 +232,7 @@ function loaded() {
function
hideRule
()
{
function
hideRule
()
{
$
(
'.rule-page'
).
hide
();
$
(
'.rule-page'
).
hide
();
$
(
'.btn-rule'
).
addClass
(
'active'
);
}
}
function
showRule
()
{
function
showRule
()
{
...
...
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