-
Notifications
You must be signed in to change notification settings - Fork 2
/
search.php
42 lines (38 loc) · 1.54 KB
/
search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<link rel="stylesheet" href="css/search.css">
</head>
<body>
<ul class="text" onclick = "javascript:parent.frames[2].location='jsGame/index.php'">
<li>W</li>
<li>a</li>
<li>s</li>
<li>s</li>
<li>U</li>
<li>p</li>
<li>!</li>
</ul>
<div>
<form method="get" action="search.php" class="search-box">
<input type="text" id="search" name="search" required="true" placeholder="Search" class="search-txt">
<button type="submit" name="submit" class="search-btn" onclick="jump()">
<i class="fas fa-search"></i>
</button>
</form>
<div>
</body>
</html>
<script>
function jump(){
var x = document.getElementById("search").value;
if(x!=""){
parent.frames[2].location = "show_search_result.php?search="+x;
}
}
</script>