mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-12-26 01:13:41 +02:00
Added hashchange listener
This commit is contained in:
parent
90cd897230
commit
c150947e4c
13
404.html
13
404.html
@ -388,9 +388,16 @@
|
||||
search();
|
||||
});
|
||||
|
||||
var query = window.location.hash.substring(1);
|
||||
document.getElementById("search").value = query;
|
||||
search();
|
||||
hashSearch();
|
||||
window.addEventListener('hashchange', function (evt) {
|
||||
hashSearch();
|
||||
});
|
||||
|
||||
function hashSearch() {
|
||||
var query = window.location.hash.substring(1);
|
||||
document.getElementById("search").value = query;
|
||||
search();
|
||||
}
|
||||
|
||||
function search() {
|
||||
var searchTerm = searchField.value.toLowerCase();
|
||||
|
13
index.html
13
index.html
@ -388,9 +388,16 @@
|
||||
search();
|
||||
});
|
||||
|
||||
var query = window.location.hash.substring(1);
|
||||
document.getElementById("search").value = query;
|
||||
search();
|
||||
hashSearch();
|
||||
window.addEventListener('hashchange', function (evt) {
|
||||
hashSearch();
|
||||
});
|
||||
|
||||
function hashSearch() {
|
||||
var query = window.location.hash.substring(1);
|
||||
document.getElementById("search").value = query;
|
||||
search();
|
||||
}
|
||||
|
||||
function search() {
|
||||
var searchTerm = searchField.value.toLowerCase();
|
||||
|
@ -11,9 +11,16 @@
|
||||
search();
|
||||
});
|
||||
|
||||
var query = window.location.hash.substring(1);
|
||||
document.getElementById("search").value = query;
|
||||
search();
|
||||
hashSearch();
|
||||
window.addEventListener('hashchange', function (evt) {
|
||||
hashSearch();
|
||||
});
|
||||
|
||||
function hashSearch() {
|
||||
var query = window.location.hash.substring(1);
|
||||
document.getElementById("search").value = query;
|
||||
search();
|
||||
}
|
||||
|
||||
function search() {
|
||||
var searchTerm = searchField.value.toLowerCase();
|
||||
|
Loading…
Reference in New Issue
Block a user