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 (window, document, $, undefined) { | |
var module, moduleName, stash, unstash, noconflict, oldGlobal; | |
moduleName = 'infiniteStash'; | |
stash = function (containerNode, numNodesToStash, after) { | |
var side = (after === true || after === 'after') ? 'after' : 'before', | |
// set is uesd to stash all node up to the next element. | |
// This preserves text nodes (white space) and comment nodes |
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
/************* | |
* Custom siteName functionality | |
* window.location.siteName reduces a either the documents url or a | |
* given url to the top most site name. | |
* i.e. photography.nataionalgeographic.com would return nationalgeographic.com, | |
* mysubdomain.mywebsite.co.uk would return mywebsite.co.uk. | |
***********/ | |
if (typeof window.location.siteName === 'undefined') { | |
window.location.siteName = function (url) { | |
var hostName = url || window.location.hostname, |
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
exposure = function () { | |
/* | |
RETURNS: An exposure URL which returns the specified image resized to specified height and width | |
ARGUMENTS: object || url:string [, height:string||int] [, width:string||int] | |
The exposure method takes either an object or one or more strings as arguments. | |
A value of "0" for "width" or "height" indicates that exposure should use a value | |
that maintains the image's native aspect ratio. |
NewerOlder