mirror of
https://github.com/simple-icons/simple-icons.git
synced 2025-01-05 01:20:39 +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();
|
search();
|
||||||
});
|
});
|
||||||
|
|
||||||
var query = window.location.hash.substring(1);
|
hashSearch();
|
||||||
document.getElementById("search").value = query;
|
window.addEventListener('hashchange', function (evt) {
|
||||||
search();
|
hashSearch();
|
||||||
|
});
|
||||||
|
|
||||||
|
function hashSearch() {
|
||||||
|
var query = window.location.hash.substring(1);
|
||||||
|
document.getElementById("search").value = query;
|
||||||
|
search();
|
||||||
|
}
|
||||||
|
|
||||||
function search() {
|
function search() {
|
||||||
var searchTerm = searchField.value.toLowerCase();
|
var searchTerm = searchField.value.toLowerCase();
|
||||||
|
13
index.html
13
index.html
@ -388,9 +388,16 @@
|
|||||||
search();
|
search();
|
||||||
});
|
});
|
||||||
|
|
||||||
var query = window.location.hash.substring(1);
|
hashSearch();
|
||||||
document.getElementById("search").value = query;
|
window.addEventListener('hashchange', function (evt) {
|
||||||
search();
|
hashSearch();
|
||||||
|
});
|
||||||
|
|
||||||
|
function hashSearch() {
|
||||||
|
var query = window.location.hash.substring(1);
|
||||||
|
document.getElementById("search").value = query;
|
||||||
|
search();
|
||||||
|
}
|
||||||
|
|
||||||
function search() {
|
function search() {
|
||||||
var searchTerm = searchField.value.toLowerCase();
|
var searchTerm = searchField.value.toLowerCase();
|
||||||
|
@ -11,9 +11,16 @@
|
|||||||
search();
|
search();
|
||||||
});
|
});
|
||||||
|
|
||||||
var query = window.location.hash.substring(1);
|
hashSearch();
|
||||||
document.getElementById("search").value = query;
|
window.addEventListener('hashchange', function (evt) {
|
||||||
search();
|
hashSearch();
|
||||||
|
});
|
||||||
|
|
||||||
|
function hashSearch() {
|
||||||
|
var query = window.location.hash.substring(1);
|
||||||
|
document.getElementById("search").value = query;
|
||||||
|
search();
|
||||||
|
}
|
||||||
|
|
||||||
function search() {
|
function search() {
|
||||||
var searchTerm = searchField.value.toLowerCase();
|
var searchTerm = searchField.value.toLowerCase();
|
||||||
|
Loading…
Reference in New Issue
Block a user