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 tournament = { | |
regions:['West','South','East','North'] | |
,teams : { | |
"array" : [ | |
{ | |
"abbr" : "ALA ST", | |
"hashTag" : "#ASUBasketball", | |
"link" : "alabama-st", | |
"nickname" : "Hornets", | |
"school" : "Alabama St.", |
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 PageParams = { | |
generateSanitizedHash: function (object) { | |
return encodeURIComponent(this.Base64.encode(JSON.stringify(object))); | |
}, | |
objectToHash: function (object) { | |
return this.generateSanitizedHash({"page_params": object}); | |
}, | |
hashToObject: function (hash) { |
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 configProduct = { | |
"attributes" : { | |
"128" : { | |
"code" : "color_hat", | |
"id" : "128", | |
"label" : "Hat Color", | |
"options" : [ | |
{ | |
"id" : "6", | |
"label" : "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
var ModelMixin = { | |
get: function ( key , args ) { | |
var isFn = (typeof this[key] === 'function'); | |
return isFn? this[key].apply(this,args): this[key] ; | |
} | |
,set: function ( key, value ) { | |
if(typeof key === 'string') { | |
this[key] = value; |
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
#tab-wrapper | |
#tab-inner | |
#header-wrapper | |
#header-inner | |
#field-wrapper | |
#field-inner | |
#field-header-wrapper | |
#field-header-inner | |
#field-body-wrapper | |
#field-body-inner |
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
alert($('select-me').get('text')); |
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 Feature = new Class({ | |
initialize: function (el) { | |
var el = this.el = document.id(el); | |
var options = this.getObjectFromAttributes(el); | |
var feature = options.feature = this.getType(el); | |
if (el.get('text')) { | |
options.template = el.get('text'); | |
} |
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
require({ | |
packages: [ | |
{ | |
name: 'Poly' | |
,location: '/js/lib/Polyfills/Source' | |
} | |
{ | |
name: 'Mootools' | |
,location: '/js/lib/Milk/Source' |
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
if(typeof Object.merge !== 'function') | |
Object.merge = function() { | |
var base = arguments[0] | |
args = Array.prototype.slice.call(arguments,1), | |
count = args.length, | |
keys = Object.keys(base), | |
mergeIn = undefined,key = undefined,i = 0; | |
mergeIn = function(obj){ | |
var keys = Object.keys(this), |