Skip to content

Instantly share code, notes, and snippets.

@remmi11
remmi11 / watchPosition_demo.html
Created April 8, 2016 18:16 — forked from strongwave/watchPosition_demo.html
A Demo Drawing Google Map using watchPosition API for HTML5
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script>
jQuery(window).ready(function(){
gMapInit();
jQuery("#watchPositionBtn").click(initiate_watchlocation);
jQuery("#stopWatchBtn").click(stop_watchlocation);
@remmi11
remmi11 / console.js
Created January 25, 2016 21:13 — forked from waynegraham/console.js
print console.log output to a debug div (for mobile)
if (typeof console != "undefined")
if (typeof console.log != 'undefined')
console.olog = console.log;
else
console.olog = function() {};
console.log = function(message) {
console.olog(message);
$('#debugDiv').append('<p>' + message + '</p>');
};