Skip to content

Instantly share code, notes, and snippets.

View alishahab's full-sized avatar

Ali Shahab alishahab

  • Lahore, Pakistan
View GitHub Profile
<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)
function createCookie(name, value, days) {
var expires;
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
expires = "; expires=" + date.toGMTString();
} else {
expires = "";
}
@alishahab
alishahab / Location-Services-with-AngularJS.markdown
Created April 17, 2015 05:03
Location Services with AngularJS
@alishahab
alishahab / Am-I-Responsive-Website?.markdown
Created April 16, 2015 03:41
Am I Responsive Website?

Am I Responsive Website?

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.

License.

@alishahab
alishahab / Content-Aware-Navigation.markdown
Created April 15, 2015 09:47
Content Aware Navigation

Content Aware Navigation

This nav bar layout changes from a distributed table-cell layout to a basic inline-block layout if there are more than 6 or more list items therein.

A Pen by Heydon on CodePen.

License.

@alishahab
alishahab / This-page-does-not-use-JS.markdown
Created April 15, 2015 04:20
This page does not use JS