-
Notifications
You must be signed in to change notification settings - Fork 0
/
Search.html
110 lines (102 loc) · 4.92 KB
/
Search.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Search Info</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" href="css%20files/search.css">
</head>
<body class="container">
<nav class="navbar navbar-height navbar-expand-sm navbar-color-hi navbar-light">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">
<img src="Logo%202.png" alt="Aurora" style="width: 60px; height: 40px" class="rounded-pill">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">Info Dropdown</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="Search.html">Search Info</a></li>
<li><a class="dropdown-item" href="Web%20Info.html">Web Info</a></li>
<li><a class="dropdown-item" href="Other%20Web%20Stuff.html">Other Web Info</a></li>
<li><a class="dropdown-item" href="references.html">References</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="mt-10 p-4 rounded text-center">
<h1 class="mb-4 title-text-color" >The term "search" is pretty cool, here is some info about it below in a computational sense!</h1>
<table class="table">
<thead>
<tr>
<th>What is a search engine?</th>
</tr>
</thead>
<tbody>
<tr>
<td>
A search engine is a tool for finding information online by entering keywords. It indexes web content,
uses algorithms to locate relevant results, and displays them on a search results page. One example
of a search engine is Google!
</td>
</tr>
</table>
<table class="table">
<thead>
<tr>
<th>What is a search algorithm?</th>
</tr>
</thead>
<tbody>
<tr>
<td>
A search algorithm is a computational procedure used to locate specific information within a dataset
efficiently. It employs predefined rules or heuristics to systematically search for and retrieve
relevant data based on user queries or criteria. One example of a search algorithm is Binary Search!
</td>
</tr>
</table>
</div>
<form id="myForm">
<div class="mb-3 mt-3">
<label for="email" class="form-label">Did you enjoy the above content?</label>
<input type="text" class="form-control" id="email" placeholder="Yes, because..." name="email">
</div>
<div class="form-check mb-3">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="laing"> Do you want to learn more about search engines?
</label>
</div>
<div class="form-check mb-3">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="fairbanks"> Do you want to learn more about search algorithms?
</label>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
<script>
document.getElementById("myForm").addEventListener("submit", function(event) {
event.preventDefault(); // Prevent default form submission
// Hide the form
document.getElementById("myForm").style.display = "none";
// Create success message alert
const alertDiv = document.createElement("div");
alertDiv.classList.add("alert", "alert-success");
alertDiv.innerHTML = "<p style='text-align: center;'>Thank you for your response! However <s>don't worry, this website will not teach you any other information as it is not stated in the guidelines!</s></p>";
document.body.appendChild(alertDiv);
// Remove the alert after a few seconds
setTimeout(function() {
alertDiv.remove();
}, 6000); // Adjust the time as needed (3000 milliseconds = 3 seconds)
});
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</body>
</html>