-
Notifications
You must be signed in to change notification settings - Fork 3
/
hackathon-demo.html
30 lines (30 loc) · 1004 Bytes
/
hackathon-demo.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=3.0">
</head>
<style>
body {
font-size: 30px;
}
</style>
<body>
<p><a href="https://discotest.app.link/charles">Test</a></p>
<p><a href="https://discotest.app.link/?q=ice+cream">https://discotest.app.link/?q=ice+cream</a></p>
<p><a href="https://discotest.app.link/?q=jeans&autoOpen=true">https://discotest.app.link/?q=jeans&autoOpen=true</a></p>
<hr/>
<p>
<input type="text" placeholder="Type something..." id="myInput">
<button type="button" onclick="getInputValue();">Search!</button>
</p>
<script>
function getInputValue(){
// Selecting the input element and get its value
var inputVal = document.getElementById("myInput").value;
// Displaying the value
//alert(inputVal);
window.open("https://discotest.app.link/?q=" + inputVal);
}
</script>
</body>
</html>