Cleaned formatting and now when showing the search bar it is autofocused
diff --git a/js/script.js b/js/script.js
index 3548234..080cff0 100644
--- a/js/script.js
+++ b/js/script.js
@@ -350,6 +350,7 @@
if (document.querySelector(".md-google-search__metacontainer").style.display == "none") {
document.querySelector(".md-google-search__metacontainer").style.display = "block";
document.querySelector("#search i").innerText = "fullscreen";
+ document.querySelector("#search-input").focus();
} else {
document.querySelector(".md-google-search__metacontainer").style.display = "none";
document.querySelector(".autocomplete-container").style.display = "none";
diff --git a/js/search-bar.js b/js/search-bar.js
index ef32e5e..10821be 100644
--- a/js/search-bar.js
+++ b/js/search-bar.js
@@ -4,6 +4,7 @@
if (document.querySelector(".md-google-search__metacontainer").style.display == "none") {
document.querySelector(".md-google-search__metacontainer").style.display = "block";
document.querySelector("#search i").innerText = "fullscreen";
+ document.querySelector("#search-input").focus();
} else {
document.querySelector(".md-google-search__metacontainer").style.display = "none";
document.querySelector(".autocomplete-container").style.display = "none";