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(w, d) { | |
// simple function to get element by ID | |
function _getEl(el) { | |
if ('string' === typeof(el)) { | |
var sError = 'element' + el + ' does not exist'; | |
el = d.getElementById(el); | |
if (! el) { | |
alert(sError); | |
} |
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(w, d) { | |
/** | |
* Instantiation function for the jQuery-based SimpleImageViewer. | |
* @param elImage {String|Element} Required. The ID or element instance for the image element to be updated. | |
* @param conf {Object} Optional. Additional configuration options: | |
* caption - The ID or element instance for the caption element to be updated. | |
* defaultGroup - The label for your default group of images. If you have just one collection of images, | |
* just leave this blank. | |
* next - The ID or element instance for the element to trigger changing to the next image. | |
* previous - The ID or element instance for the element to trigger changing to the previous image. |
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
/** | |
* Copyright (c) 2007, Matt Snider, LLC. All rights reserved. | |
* Version: 1.2 | |
*/ | |
var Core = {Widget: {}}; | |
/** | |
* The PhotoViewer class manages the slide show logic , requires a data object and a configuration object of DOM elements. | |
* @namespace Core.Widget |
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
/* | |
Copyright (c) 2007, Yahoo! Inc. All rights reserved. | |
Code licensed under the BSD License: | |
http://developer.yahoo.net/yui/license.txt | |
version: 2.3.0 | |
*/ | |
if(typeof YAHOO=="undefined"){var YAHOO={};} | |
YAHOO.namespace=function(){var a=arguments,o=null,i,j,d;for(i=0;i<a.length;i=i+1){d=a[i].split(".");o=YAHOO;for(j=(d[0]=="YAHOO")?1:0;j<d.length;j=j+1){o[d[j]]=o[d[j]]||{};o=o[d[j]];}} | |
return o;};YAHOO.log=function(msg,cat,src){var l=YAHOO.widget.Logger;if(l&&l.log){return l.log(msg,cat,src);}else{return false;}};YAHOO.register=function(name,mainClass,data){var mods=YAHOO.env.modules;if(!mods[name]){mods[name]={versions:[],builds:[]};} |
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(w, d) { | |
// simple function to get element by ID | |
var _getEl = YAHOO.util.Dom.get; | |
/** | |
* Instantiation function for the SimpleImageViewer. | |
* @param elImage {String|Element} Required. The ID or element instance for the image element to be updated. | |
* @param conf {Object} Optional. Additional configuration options: | |
* caption - The ID or element instance for the caption element to be updated. | |
* defaultGroup - The label for your default group of images. If you have just one collection of images, |
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(w) { | |
// Create the Event Function wrappers | |
if (w.addEventListener) { | |
// standards compliant method | |
w.addListener = function(el, eType, fn, capture) { | |
el.addEventListener(eType, fn, capture); | |
}; | |
w.removeListener = function (el, eType, fn, capture) { | |
el.removeEventListener(eType, fn, capture); | |
}; |
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 annotate(fnToAnnotate) { | |
// already annotation aware, use the original annotation chain | |
if (fnToAnnotate.by) { | |
return fnToAnnotate; | |
} | |
var aAnnotationChain = [fnToAnnotate]; | |
function applyChainFunctions(fn) { | |
fn.by = function(fnAnnotation, arg1, /*...*/ argN) { |
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 HashHack = { | |
PREFIX: '#hhMessage=', | |
aCallbacks: [], | |
sLastHash: '', | |
handleInterval: function() { | |
var sHash = window.location.hash, | |
sDecodedHash, sMessage, i; | |
if (sHash !== HashHack.sLastHash) { |
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 HashHack = { | |
PREFIX: '#hhMessage=', | |
postMessage: function(el, sMessage) { | |
if ('string' === typeof el) { | |
el = document.getElementById(el); | |
} | |
var sUrl = el.src.replace(/#.*/, ''); | |
el.src = sUrl + HashHack.PREFIX + encodeURIComponent(sMessage); |
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(w, d) { | |
"use strict"; | |
// simple cookie writer | |
function createCookie(sName, sValue, sPath, sDomain, iMillis) { | |
var aCookie = [encodeURI(sName) + "=" + encodeURI(sValue)], | |
expires, oDate; | |
if (iMillis) { | |
oDate = new Date(); | |
oDate.setTime(oDate.getTime() + iMillis); |
OlderNewer