A set of google location services for AngularJS
Blog post: http://varun.ca/locator
Source: https://github.com/winkerVSbecks/locator
A Pen by Varun Vachhar on CodePen.
<div align="center"><noscript> | |
<div style="position:fixed; top:0px; left:0px; z-index:3000; height:100%; width:100%; background-color:#FFFFFF"> | |
<div style="font-family: Trebuchet MS; font-size: 14px; background-color:#FFF000; padding: 10pt;">Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!</div></div> | |
</noscript></div> | |
<style type="text/css"> | |
* : (input,textarea){-webkit-touch-callout:none;-webkit-user-select:none} | |
img{-webkit-touch-callout:none;-webkit-user-select:none} | |
</style> |
// immediately executed function: | |
(function doStuff() { | |
// Do stuff | |
setTimeout(doStuff, 1000); | |
}()); |
var loadScript = function(url, callback){ | |
var script = document.createElement("script") | |
script.type = "text/javascript"; | |
script.async = true; | |
script.defer = true; | |
if (script.readyState){ | |
script.onreadystatechange = function(){ | |
if (script.readyState == "loaded" || |
(function(w, d, t, r, u) { | |
var f, n, i; | |
w[u] = w[u] || [], f = function() { | |
var o = { | |
ti: "5089938" | |
}; | |
o.q = w[u], w[u] = new UET(o), w[u].push("pageLoad") | |
}, n = d.createElement(t), n.src = r, n.async = 1, n.onload = n.onreadystatechange = function() { | |
var s = this.readyState; | |
s && s !== "loaded" && s !== "complete" || (f(), n.onload = n.onreadystatechange = null) |
A set of google location services for AngularJS
Blog post: http://varun.ca/locator
Source: https://github.com/winkerVSbecks/locator
A Pen by Varun Vachhar on CodePen.
Update(22/05/13): The data will be sent as URL vars (method="get") and everyone can share directly submitted URL
A Pen by Mario Vidov on CodePen.
A reminder that the <style> tag is just another HTML element.
A Pen by Joel Califa on CodePen.