Skip to content

Instantly share code, notes, and snippets.

View singularityhacker's full-sized avatar
💭
Sowing in hope

0xJustice.eth singularityhacker

💭
Sowing in hope
View GitHub Profile
@bmoren
bmoren / fence.js
Created July 1, 2015 21:55
HTML5 geolocation geofence location detection (without geofence API)
window.onload = function() {
var startPos;
var startPosLat;
var startPosLong;
var distance;
if (navigator.geolocation) {
startPosLat = 44.95716993150707;
startPosLong = -93.28439280496818;