Skip to content

Commit

Permalink
examples support URL hash rooms now! + rename / fix gps/where
Browse files Browse the repository at this point in the history
  • Loading branch information
amark committed Feb 16, 2018
1 parent 4a273de commit 9ddf136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/where/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
//$('#debug').value = 'track ' + JSON.stringify(latlng);
gps.where.update(latlng);
});
$('#share').toggleClass("hide");
$('#share').addClass("hide");
} else {
document.cookie = 'gps=' + (gps.track = (document.cookie.match(/gps\=(.*?)(\&|$|\;)/i)||[])[1] || Gun.text.random(5)); // trick with cookies!
gps.ref = gun.get('gps/' + gps.track);
Expand All @@ -166,7 +166,7 @@
}
gps.where = gps.where || Where(gps.opt);
$('#follow').text(("where.gunDB.io/" || (location.origin + location.pathname)) + '#' + gps.track);
$('#share').toggleClass("hide");
$('#share').removeClass("hide");
$('#share').on('click', function(){
$('#link').toggleClass("hide");
});
Expand Down

0 comments on commit 9ddf136

Please sign in to comment.