diff --git a/about.html b/about.html index e4a8f60..2f39832 100644 --- a/about.html +++ b/about.html @@ -9,8 +9,10 @@ @@ -19,6 +21,5 @@ - diff --git a/catalog.html b/catalog.html index 9d78528..cadcd00 100644 --- a/catalog.html +++ b/catalog.html @@ -10,9 +10,11 @@
@@ -39,7 +41,6 @@
- diff --git a/css/stylesheet.css b/css/stylesheet.css index 965b9c0..a1eccd2 100644 --- a/css/stylesheet.css +++ b/css/stylesheet.css @@ -50,10 +50,10 @@ a:visited { #header { position: fixed; - top: 0%; - left: 0%; width: 100%; height: 5em; + top: 0%; + left: 0%; background-color: var(--medium-grey); z-index: 100; overflow: hidden; @@ -61,34 +61,35 @@ a:visited { #header #home { position: relative; - top: 30%; height: 40%; + top: 30%; left: 2em; } #header #search_bar { position: absolute; - transform: translateY(50%); background-color: white; border: none; padding: 1em; border-radius: 1em; - left: 10em; width: 50%; height: 50%; + top: 30%; + left: 10em; } #header #search_button { position: absolute; height: 50%; + top: 30%; left: calc(10em + 50% + 1em); - transform: translateY(50%); } #header #logo { position: absolute; height: 180%; right: 5%; + top: 5%; } #content { diff --git a/js/search_bar.js b/js/search_bar.js deleted file mode 100644 index 1b8b2ca..0000000 --- a/js/search_bar.js +++ /dev/null @@ -1,22 +0,0 @@ -// ------------------------------------------------------------- -// Search bar function -// ------------------------------------------------------------- - -function search_bar() { - var query = document.querySelector("#header #search_bar").value; - if(query != ""){ - query = query.toLowerCase().replaceAll(" ", "+"); - var url = "https://amangathing.ddns.net/search.html?title=" + query; - console.log(query); - window.location.href = url; - } -} - -document.querySelector("#header #search_bar").addEventListener("keydown", function (e) { - e = e || window.event; - if(e.keyCode == 13){ - search_bar(); - e.preventDefault(); - } -}); - diff --git a/search.html b/search.html index 9fe4544..7f03551 100644 --- a/search.html +++ b/search.html @@ -75,7 +75,7 @@ diff --git a/title.html b/title.html index 1a6b594..b72d70b 100644 --- a/title.html +++ b/title.html @@ -11,8 +11,10 @@ @@ -46,7 +48,6 @@ -