diff --git a/index.html b/index.html index 0ed5714..9e4feab 100644 --- a/index.html +++ b/index.html @@ -14,8 +14,8 @@
diff --git a/index.shtml b/index.shtml index b396c6b..040af6f 100644 --- a/index.shtml +++ b/index.shtml @@ -6,6 +6,27 @@ + + diff --git a/main.js b/main.js index cfed747..4cb99a4 100644 --- a/main.js +++ b/main.js @@ -22,7 +22,6 @@ $(document).ready(function() { $("input[type=search]").change(function() { query = this.value; - console.log(query); window.location.search = query; grep(query); }); @@ -40,5 +39,7 @@ $(document).ready(function() { $("#source").html(footer); document.title = "Greptweet " + NAME; -}); + document.cookie = 'u=' + NAME + '; expires=Thu, 2 Aug 2021 20:47:11 UTC; path=/'; + $("#home").click(function(){ document.cookie = 'u=' + NAME + '; expires=Thu, 2 Aug 2001 20:47:11 UTC; path=/'; }); +});