This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global document */ | |
var orientation; | |
(function () { | |
"use strict"; | |
orientation = function () { | |
var isPortrait, isLandscape; | |
isPortrait = document.body.className.indexOf('portrait') !== -1; | |
isLandscape = document.body.className.indexOf('landscape') !== -1; | |
document.body.className = document.body.className.split(' portrait ').join(''); | |
document.body.className = document.body.className.split(' landscape ').join(''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){try{orientation();}catch(B){var A=document.createElement("script");A.src="https://raw.github.com/gist/1238678/0900a6e5cbac75b600942c33be8994b93830b5c4/orientation.js";document.body.appendChild(A);}}()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('<div/>', { | |
id: 'myDiv', | |
title: 'my div', | |
text: 'This is my div' | |
}).prependTo('body'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var O,N,M,K,J,I,H,G,F,E,D,C,B,A,L; | |
M = "ref"; | |
C = "number"; | |
E = "." + M + ":before{"; | |
E += "display:inline-block;"; | |
E += "position:absolute;"; | |
E += "padding:2px;"; | |
E += "color:white;"; | |
E += "background-color:black;"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var contactLink = $('.btns.b a')[0]; | |
contactLink.setAttribute('question','Would you like to call toll free?'); | |
contactLink.setAttribute('toll','tel:1-415-555-5555'); | |
contactLink.setAttribute('tollfree','tel:1-800-555-5555'); | |
contactLink.setAttribute('onclick','var r=confirm(this.getAttribute("question")); if (r==true) { document.location=this.getAttribute("tollfree"); } else { document.location=this.getAttribute("toll"); } return false;'); | |
}()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function app { | |
if [ -z "$2" ] | |
then | |
appbranch=main; | |
else | |
appbranch=$2; | |
fi | |
webapp=$1WebApp; | |
builddir=/p4/phoenix/$appbranch/build; | |
appdir=/p4/phoenix/$appbranch/phoenixApp/$webapp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setTimeout("document.location.href='/mobile/?sessionTimedOut=true'",0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.location.replace("sort?sortCriterion=starRating&isSortAscending=true&searchTokenId="+document.location.toString().split('searchTokenId=').pop().split('&').shift()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var re = /\/..\//gi; | |
var url = document.location.href; | |
var pDelim = (url.split('?').length>1) ? '&' : '?'; | |
url = url.replace(re, '/').split('/mobile/').join('/mobile/us/') + pDelim + 'currencyCode=USD'; | |
document.location.replace(url); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var re = /\/..\//gi; | |
var url = document.location.href; | |
var pDelim = (url.split('?').length>1) ? '&' : '?'; | |
url = url.replace(re, '/').split('/mobile/').join('/mobile/uk/') + pDelim + 'currencyCode=GBP'; | |
document.location.replace(url); |
OlderNewer