diff --git a/index.html b/index.html index def31d3..f2ef0cd 100644 --- a/index.html +++ b/index.html @@ -218,6 +218,17 @@ numberOfSpots: gData.length }) $('#theNumberofSpots').html(theNumberofSpots) + + filterOnHash() + } + + window.onhashchange = filterOnHash + + function filterOnHash() { + if(window.location.hash) { + $('#tableFilter').val(window.location.hash.substring(1)).keyup() + $('.spotRow').first().click() + } }