-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathThinkSolar.html
49 lines (45 loc) · 1.56 KB
/
ThinkSolar.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<title>Think.Solar</title>
<style>
body{
margin: 0;
background-image: url("code.png");
}
</style>
</head>
<body>
<form>
<div style="background-color: darkblue; height: 50px; align: center;">
<input type="text" id="searchBar" style="border-radius: 25px; width: 65%; height: 15px; background-color: lightgreen; align: center;" placeholder=" Search Think.Solar" name="search1">
<button onclick="searchD()" style="background-color: lightblue; height:30px; width:45px; border-radius: 30pt;">Find</button></input>
</div>
<p id="demo"></p>
<br><br><br><br><br><br><br><br>
<div style="color: white;">
<h1 style="font-size: 50pt; text-align: center;">Think.Solar</h1>
<p style="text-align: center;" >Let's go solar today<a href="AboutSolar.html"> <img style="height: 20px; width: 20px; border-radius: 10px;" src="ThinkSolar.png"></img></a></p>
<center><input type="text" id="searchBar2" style="border-radius: 25px; width: 30%; height: 30px; " placeholder=" This text box for questions" name="search2">
<button id="searchBarButton2" onclick="searchD2()" style="border-radius: 10px;">
<img style="height: 20px; width: 20px; border-radius: 10px;" src="search.png">
</button></input></center>
</div>
<script>
function searchD(){
var search = document.getElementById("searchBar").value;
if(search === "hello"){
alert("searching hello...");
window.open("search.html");
}
}
function searchD2(){
var search2 = document.getElementById("searchBar2").value;
if(search2 === "bye"){
alert("Bye!");
}
}
</script>
</form>
</body>
</html>