Add basic hash method
This commit is contained in:
parent
8c65460501
commit
2dc740a27f
11
index.html
11
index.html
@ -218,6 +218,17 @@
|
|||||||
numberOfSpots: gData.length
|
numberOfSpots: gData.length
|
||||||
})
|
})
|
||||||
$('#theNumberofSpots').html(theNumberofSpots)
|
$('#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>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user