-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6c7b2d
commit 3a98caf
Showing
1 changed file
with
117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="charset=UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="viewport" content="user-scalable=yes, initial-scale=1.0, maximum-scale=1.0, width=device-width" /> | ||
<style> | ||
list { | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
} | ||
.handle { | ||
margin: 0; | ||
position: fixed; | ||
z-index: 1000; | ||
top: 0; | ||
left: 0; | ||
font-size: 1.0em; | ||
padding: 10px; | ||
animation: fadeIn 0.5s ease-in-out; | ||
} | ||
.handle:last-child { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
border-bottom: none; | ||
} | ||
|
||
@keyframes fadeIn { | ||
from { | ||
opacity: 0; | ||
transform: translateY(-10px); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translateY(0); | ||
} | ||
} | ||
} | ||
</style> | ||
|
||
<title>map</title> | ||
|
||
</head> | ||
<body> | ||
|
||
<script> | ||
function handle() { | ||
|
||
let input = document.getElementById('list').value; | ||
|
||
input = input.toLowerCase(); | ||
|
||
let x = document.getElementsByClassName('handle'); | ||
|
||
for (i = 0; i < x.length; i++) { | ||
|
||
if (!x[i].innerHTML.toLowerCase().includes(input)) { | ||
|
||
x[i].style.display = "none"; | ||
|
||
} | ||
|
||
else { | ||
|
||
x[i].style.display = "list-item"; | ||
|
||
} | ||
|
||
} | ||
|
||
} | ||
|
||
</script> | ||
|
||
<br><br> | ||
<input | ||
id="list" | ||
onkeyup="handle()" | ||
onkeydown="return event.key != 'Enter';" | ||
name="search" | ||
placeholder="search database" | ||
type="search" | ||
maxlength="30" | ||
autocomplete="true" | ||
autocorrect="on" | ||
autocapitalize="off" | ||
spellcheck="true"> | ||
|
||
<br><br> | ||
responsive html, js, and css unordered list search engine database<br> | ||
<p> | ||
This is how i created the website from scratch.<br> | ||
id="list" binds the html unordered list to the search engine.<br> | ||
class="handle" binds search queries CSS and Javascript functions<br> | ||
Open this file in your text editor and view the code<br> | ||
you can edit anything and everything until it breaks<br> | ||
when the program breaks it was probably due to you not<br> | ||
binding the function names. they names must be a match<br> | ||
html,js,css and php are always<br> | ||
matching names id="list" class="handle"<br> | ||
</p> | ||
|
||
</body> | ||
</html> | ||
|
||
<ul id="list"> | ||
<a href="./en/about.html"class="handle">about</a><br> | ||
<a href="./en/edit.html"class="handle">edit</a><br> | ||
|