A reminder that the <style> tag is just another HTML element.
A Pen by Joel Califa on CodePen.
jQuery('*').filter(function(){if(jQuery(this).width()>jQuery(window).width())return true}) |
var getScript = (function(firstScript) { | |
return function(src) { | |
var script = document.createElement('script'); | |
script.src = src; | |
firstScript.parentNode.insertBefore(script, firstScript); | |
} | |
}(document.getElementsByTagName('script')[0])); | |
window.onload = function() { | |
getScript('//www.google-analytics.com/analytics.js'); | |
getScript('//platform.twitter.com/widgets.js'); |
A reminder that the <style> tag is just another HTML element.
A Pen by Joel Califa 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 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.
(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) |
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" || |