Toggle navigation
Toggle navigation
This project
Loading...
Sign in
LI WENHAO
/
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-29 14:42:38 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2fdb35048e5c454073050080dcc75a65f1a5f44b
2fdb3504
1 parent
e9ff7795
Add loading gif
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
views/metadata/image/loading.gif
views/search_home.css
views/search_home.ejs
views/metadata/image/loading.gif
0 → 100644
View file @
2fdb350
69.8 KB
views/search_home.css
View file @
2fdb350
...
...
@@ -81,4 +81,9 @@ body
float
:
left
;
left
:
35%
;
margin
:
15px
0px
0px
0px
;
}
#loading
{
position
:
relative
;
left
:
-25%
;
}
\ No newline at end of file
...
...
views/search_home.ejs
View file @
2fdb350
...
...
@@ -7,11 +7,12 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"search_home.css"
/>
<script
src=
"https://unpkg.com/sweetalert/dist/sweetalert.min.js"
></script>
<script
src=
"https://code.jquery.com/jquery-1.11.3.min.js"
></script>
</head>
<body>
<img
class=
"box"
id=
"left"
src=
"metadata/image/wodi.png"
>
<img
class=
"box2"
id=
"right"
src=
"metadata/image/sdao.png"
>
<div
class=
"search"
>
<div
class=
"search"
id=
"a"
>
<input
type=
"text"
id=
"name"
placeholder=
"카트라이더 닉네임 입력"
/>
<button
id=
"OK"
></button>
</div>
...
...
@@ -27,6 +28,11 @@
dataType
:
'json'
,
success
:
function
(
data
){
if
(
data
==
"200"
){
const
div_target
=
document
.
querySelector
(
'#a'
);
var
obj
=
document
.
createElement
(
'img'
);
obj
.
id
=
"loading"
;
obj
.
src
=
'metadata/image/loading.gif'
;
div_target
.
append
(
obj
);
window
.
location
.
href
=
"/search/result"
;
}
else
{
...
...
Please
register
or
login
to post a comment