Add basic hash method
This commit is contained in:
11
index.html
11
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()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user