Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김명주
/
kartrider
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김명주
2021-11-26 15:53:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d3a9f8e62b2bcf9f1e2f6f8769fc3253ad899519
d3a9f8e6
1 parent
f05497b5
Design test home page
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
175 additions
and
0 deletions
views/test_home.css
views/test_home.ejs
views/test_home.css
0 → 100644
View file @
d3a9f8e
#uni
{
position
:
fixed
;
top
:
600px
;
left
:
1400px
;
}
#dao
{
position
:
fixed
;
top
:
550px
;
left
:
150px
;
}
#tex1
{
font-family
:
'Nanum Gothic'
;
font-size
:
80px
;
font-weight
:
bold
;
}
#tex2
{
font-family
:
'Nanum Gothic'
;
font-size
:
30px
;
font-weight
:
bold
;
}
#btn
{
position
:
relative
;
top
:
40%
;
width
:
100%
;
height
:
12%
;
font-family
:
'Nanum Gothic'
;
font-size
:
large
;
font-weight
:
bold
;
color
:
white
;
background-color
:
black
;
text-align
:
center
;
border-radius
:
12px
;
}
#index
{
position
:
absolute
;
left
:
55%
;
}
.box
{
width
:
500px
;
height
:
700px
;
margin
:
0
auto
;
display
:
block
;
background-color
:
white
;
animation
:
fade-in
0.8s
cubic-bezier
(
0.390
,
0.575
,
0.565
,
1.000
)
both
;
}
@keyframes
fade-in
{
0
%
{
opacity
:
0
;
}
100
%
{
opacity
:
1
;
}
}
@keyframes
spin
{
100
%
{
transform
:
rotate
(
360deg
);
}
}
.spinner
{
display
:
inline-block
;
width
:
50px
;
height
:
50px
;
border
:
5px
solid
black
;
border-color
:
black
transparent
transparent
;
border-radius
:
50%
;
animation
:
spin
1s
linear
infinite
;
}
\ No newline at end of file
views/test_home.ejs
0 → 100644
View file @
d3a9f8e
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<title>
카트 테스트
</title>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"test_home.css"
/>
<script>
var
vec
=
""
;
function
Ajax
(
index
)
{
$
.
ajax
({
url
:
'/test/result'
,
async
:
true
,
type
:
'POST'
,
data
:
{
test
:
index
}
});
}
function
Any
(
num
,
index
)
{
vec
+=
"/"
+
index
;
var
a
=
document
.
getElementById
(
"div"
+
num
);
var
b
=
document
.
getElementById
(
"div"
+
(
num
+
1
));
a
.
style
.
display
=
"none"
;
b
.
style
.
display
=
"block"
;
var
a
=
document
.
getElementById
(
"div"
+
num
);
}
function
Post
(
index
)
{
vec
+=
"/"
+
index
;
Ajax
(
vec
);
}
</script>
</head>
<body>
<img
id=
"dao"
src=
"metadata/image/bdao.png"
></img>
<img
id=
"uni"
src=
"metadata/image/buni.png"
></img>
<div
class=
"box"
id=
"div1"
>
<img
id=
"index"
src=
"metadata/image/one.png"
></img>
<text
id=
"tex1"
>
Q1.
</text><br>
<text
id=
"tex2"
>
대표 카트를 지정할 때
</text>
<button
id=
"btn"
onClick=
"Any(1,1)"
>
가장 좋은 신규 카트로 전시한다.
</button>
<button
id=
"btn"
onClick=
"Any(1,2)"
>
추억의 카트로 전시한다.
</button>
</div>
<div
class=
"box"
id=
"div2"
style=
"display:none"
>
<img
id=
"index"
src=
"metadata/image/two.png"
></img>
<text
id=
"tex1"
>
Q2.
</text><br>
<text
id=
"tex2"
>
3....2.....1 GAME START
</text>
<button
id=
"btn"
onClick=
"Any(2,1)"
>
부스터를 사용하여 치고나간다.
</button>
<button
id=
"btn"
onClick=
"Any(2,2)"
>
선두의 뒤에서 마지막 역전을 노린다.
</button>
</div>
<div
class=
"box"
id=
"div3"
style=
"display:none"
>
<img
id=
"index"
src=
"metadata/image/three.png"
></img>
<text
id=
"tex1"
>
Q3.
</text><br>
<text
id=
"tex2"
>
스피드 전에서 중요하게 생각하는 것
</text>
<button
id=
"btn"
onClick=
"Any(3,1)"
>
부스터 갯수
</button>
<button
id=
"btn"
onClick=
"Any(3,2)"
>
부스터 길이
</button>
</div>
<div
class=
"box"
id=
"div4"
style=
"display:none"
>
<img
id=
"index"
src=
"metadata/image/four.png"
></img>
<text
id=
"tex1"
>
Q4.
</text><br>
<text
id=
"tex2"
>
팀전을 하는 경우
</text>
<button
id=
"btn"
onClick=
"Any(4,1)"
>
1등이 우선! 혼자 치고 나가기
</button>
<button
id=
"btn"
onClick=
"Any(4,2)"
>
팀 승리가 우선! 전략적인 방법 세우기
</button>
</div>
<div
class=
"box"
id=
"div5"
style=
"display:none"
>
<img
id=
"index"
src=
"metadata/image/five.png"
></img>
<text
id=
"tex1"
>
Q5.
</text><br>
<text
id=
"tex2"
>
현재 1등을 잡기위해
</text>
<button
id=
"btn"
onClick=
"Any(5,1)"
>
아이템을 사용하여 격추한다.
</button>
<button
id=
"btn"
onClick=
"Any(5,2)"
>
부스터를 사용하여 역전한다.
</button>
</div>
<div
class=
"box"
id=
"div6"
style=
"display:none"
>
<img
id=
"index"
src=
"metadata/image/six.png"
></img>
<text
id=
"tex1"
>
Q6.
</text><br>
<text
id=
"tex2"
>
나는 카트를 볼 때
</text>
<button
id=
"btn"
onClick=
"Any(6,1)"
>
성능이 우선이다.
</button>
<button
id=
"btn"
onClick=
"Any(6,2)"
>
외형이 우선이다.
</button>
</div>
<div
class=
"box"
id=
"div7"
style=
"display:none"
>
<img
id=
"index"
src=
"metadata/image/seven.png"
></img>
<text
id=
"tex1"
>
Q7.
</text><br>
<text
id=
"tex2"
>
넥슨 캐쉬가 생겼다.
</text>
<button
id=
"btn"
onClick=
"Post(1); location.href='test/result'"
>
지금 당장 유료 카트를 구매한다.
</button>
<button
id=
"btn"
onClick=
"Post(2); location.href='test/result'"
>
지금 당장은 사용하지 않는다.
</button>
</div>
</body>
</html>
\ No newline at end of file
Please
register
or
login
to post a comment