Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (50 loc) · 1.88 KB
/
Copy pathindex.html
File metadata and controls
50 lines (50 loc) · 1.88 KB
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
43
44
45
46
47
48
49
50
<!Doctype html>
<head>
<title>Shopper's Search | Best price anytime</title>
<link rel="stylesheet" type="text/css" href="css/main.css"/>
<script>
localStorage.setItem("minvalue",0);
function show_value2(x)
{
document.getElementById("slider_value2").innerHTML=x;
}
function store()
{
if(document.getElementById("in").value!="")
{
localStorage.setItem("searchquery",document.getElementById("in").value);
localStorage.setItem("minvalue",document.getElementById("slider_value2").innerHTML);
}
else
alert("Enter a valid input");
}
</script>
</head>
<body>
<div class="topbar">
<p>Shopper's Search</p>
<a href="aboutus.html" class="topbarlogin">About us</a>
</div>
<div class="main">
<h1>Shopper's Search</h1>
</div>
<div class="sbutton">
<input id="in" class = "box" type="text" name="searchbox" placeholder="Search" autofocus required/>
</div>
<div style="display: flex;justify-content: center;">
<b>Minimum value :</b>
<div class="slider">
<input type="range" min="0" max="100000" step="100" name="sld6" value=0 onchange="show_value2(this.value)">
</div>
<span id="slider_value2" style="color:white;font-weight:bold;">0</span>
</div>
<div class="sbutton">
<form style="width:100%" action="searchresultspage.html">
<input class = "but" type="submit" name="submit" value="Search" onclick="store()"/>
</form>
</div>
<footer>
<p class="copy"><b>Copyrights reserved 2023 ©</b></p>
</footer>
</body>
</html>