mirror of
https://github.com/moparisthebest/phonehash
synced 2024-12-21 23:18:53 -05:00
Add ability to link to a specific hash
This commit is contained in:
parent
4db2d817da
commit
5c634441ea
@ -15,7 +15,11 @@ function unhash() {
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
//alert('bob');
|
||||
var anchor_hash = $(location).attr('hash').substr(1);
|
||||
if(valid_sha1.test(anchor_hash)) {
|
||||
$('#hash').val(anchor_hash);
|
||||
unhash();
|
||||
}
|
||||
$('#hash').keypress(function (e) {
|
||||
if (e.which == 13) { // enter
|
||||
unhash();
|
||||
|
Loading…
Reference in New Issue
Block a user