Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이해님
/
term-project
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
Yulim KIM
2020-12-07 01:00:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b634fe4e9f2258adcb6335478c003b6a84aca7b6
b634fe4e
1 parent
23f81e96
modified
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
views/index.html
views/index.html
View file @
b634fe4
...
...
@@ -20,10 +20,16 @@
<input
id=
"search"
type=
"text"
placeholder=
"아이디를 입력하세요"
/>
</div>
<div
class=
"input-field second-wrap"
>
<button
class=
"btn-search"
type=
"button"
onclick=
"movePage()"
>
SEARCH
</button>
<button
class=
"btn-search"
type=
"button"
onclick=
"movePage()"
>
인기 게시물 검색하기
</button>
<button
class=
"btn-search1"
type=
"button1"
onclick=
"movePage1()"
>
계정 내 검색하기
</button>
</div>
<script
type =
"text/javascript"
>
function
movePage
(){
//페이지 이동을 위한 함수 search버튼을 누르면 실행됨
location
.
href
=
"/popular/"
+
document
.
getElementById
(
'search'
).
value
//url을 이렇게 변경함
}
</script>
<script
type =
"text/javascript"
>
function
movePage1
(){
//페이지 이동을 위한 함수 search버튼을 누르면 실행됨
location
.
href
=
"/timeline/"
+
document
.
getElementById
(
'search'
).
value
//url을 이렇게 변경함
}
</script>
...
...
Please
register
or
login
to post a comment