diff --git a/docs/assets/js/index/index.js b/docs/assets/js/docs.js similarity index 62% rename from docs/assets/js/index/index.js rename to docs/assets/js/docs.js index 18dc296b4..822b73d6a 100644 --- a/docs/assets/js/index/index.js +++ b/docs/assets/js/docs.js @@ -1,3 +1,33 @@ +/* Font Awesome + the iconic font designed for use with Twitter Bootstrap + ------------------------------------------------------- + The full suite of pictographic icons, examples, and documentation + can be found at: http://fortawesome.github.com/Font-Awesome/ + + License + ------------------------------------------------------- + The Font Awesome webfont, CSS, and LESS files are licensed under CC BY 3.0: + http://creativecommons.org/licenses/by/3.0/ A mention of + 'Font Awesome - http://fortawesome.github.com/Font-Awesome' in human-readable + source code is considered acceptable attribution (most common on the web). + If human readable source code is not available to the end user, a mention in + an 'About' or 'Credits' screen is considered acceptable (most common in desktop + or mobile software). + + Contact + ------------------------------------------------------- + Email: dave@davegandy.com + Twitter: http://twitter.com/fortaweso_me + Work: Lead Product Designer @ http://kyruus.com + +*/ + +// Docs.js +// Main js for the docs site +// Gets concatenated & minified with all other js +// to docs.min.js +// ----------------------------------------------------- + $(function() { // start the icon carousel $('#iconCarousel').carousel({ diff --git a/docs/assets/js/docs.min.js b/docs/assets/js/docs.min.js new file mode 100644 index 000000000..46cdc3e4a --- /dev/null +++ b/docs/assets/js/docs.min.js @@ -0,0 +1,9 @@ +// Underscore.js 1.3.1 +// (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc. +// Underscore is freely distributable under the MIT license. +// Portions of Underscore are inspired or borrowed from Prototype, +// Oliver Steele's Functional, and John Resig's Micro-Templating. +// For all details and documentation: +// http://documentcloud.github.com/underscore +(function(){function e(t,n,r){if(t===n)return t!==0||1/t==1/n;if(t==null||n==null)return t===n;t._chain&&(t=t._wrapped);n._chain&&(n=n._wrapped);if(t.isEqual&&E.isFunction(t.isEqual))return t.isEqual(n);if(n.isEqual&&E.isFunction(n.isEqual))return n.isEqual(t);var i=a.call(t);if(i!=a.call(n))return!1;switch(i){case"[object String]":return t==String(n);case"[object Number]":return t!=+t?n!=+n:t==0?1/t==1/n:t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object RegExp]":return t.source==n.source&&t.global==n.global&&t.multiline==n.multiline&&t.ignoreCase==n.ignoreCase}if(typeof t!="object"||typeof n!="object")return!1;for(var s=r.length;s--;)if(r[s]==t)return!0;r.push(t);var s=0,o=!0;if(i=="[object Array]"){if(s=t.length,o=s==n.length)for(;s--;)if(!(o=s in t==s in n&&e(t[s],n[s],r)))break}else{if("constructor"in t!="constructor"in n||t.constructor!=n.constructor)return!1;for(var u in t)if(E.has(t,u)&&(s++,!(o=E.has(n,u)&&e(t[u],n[u],r))))break;if(o){for(u in n)if(E.has(n,u)&&!(s--))break;o=!s}}r.pop();return o}var t=this,n=t._,r={},i=Array.prototype,s=Object.prototype,o=i.slice,u=i.unshift,a=s.toString,f=s.hasOwnProperty,l=i.forEach,c=i.map,h=i.reduce,p=i.reduceRight,d=i.filter,v=i.every,m=i.some,g=i.indexOf,y=i.lastIndexOf,s=Array.isArray,b=Object.keys,w=Function.prototype.bind,E=function(e){return new L(e)};if(typeof exports!="undefined"){typeof module!="undefined"&&module.exports&&(exports=module.exports=E);exports._=E}else t._=E;E.VERSION="1.3.1";var S=E.each=E.forEach=function(e,t,n){if(e!=null)if(l&&e.forEach===l)e.forEach(t,n);else if(e.length===+e.length){for(var i=0,s=e.length;i2;e==null&&(e=[]);if(h&&e.reduce===h)return r&&(t=E.bind(t,r)),i?e.reduce(t,n):e.reduce(t);S(e,function(e,s,o){i?n=t.call(r,n,e,s,o):(n=e,i=!0)});if(!i)throw new TypeError("Reduce of empty array with no initial value");return n};E.reduceRight=E.foldr=function(e,t,n,r){var i=arguments.length>2;e==null&&(e=[]);if(p&&e.reduceRight===p)return r&&(t=E.bind(t,r)),i?e.reduceRight(t,n):e.reduceRight(t);var s=E.toArray(e).reverse();r&&!i&&(t=E.bind(t,r));return i?E.reduce(s,t,n,r):E.reduce(s,t)};E.find=E.detect=function(e,t,n){var r;x(e,function(e,i,s){if(t.call(n,e,i,s))return r=e,!0});return r};E.filter=E.select=function(e,t,n){var r=[];if(e==null)return r;if(d&&e.filter===d)return e.filter(t,n);S(e,function(e,i,s){t.call(n,e,i,s)&&(r[r.length]=e)});return r};E.reject=function(e,t,n){var r=[];if(e==null)return r;S(e,function(e,i,s){t.call(n,e,i,s)||(r[r.length]=e)});return r};E.every=E.all=function(e,t,n){var i=!0;if(e==null)return i;if(v&&e.every===v)return e.every(t,n);S(e,function(e,s,o){if(!(i=i&&t.call(n,e,s,o)))return r});return i};var x=E.some=E.any=function(e,t,n){t||(t=E.identity);var i=!1;if(e==null)return i;if(m&&e.some===m)return e.some(t,n);S(e,function(e,s,o){if(i||(i=t.call(n,e,s,o)))return r});return!!i};E.include=E.contains=function(e,t){var n=!1;return e==null?n:g&&e.indexOf===g?e.indexOf(t)!=-1:n=x(e,function(e){return e===t})};E.invoke=function(e,t){var n=o.call(arguments,2);return E.map(e,function(e){return(E.isFunction(t)?t||e:e[t]).apply(e,n)})};E.pluck=function(e,t){return E.map(e,function(e){return e[t]})};E.max=function(e,t,n){if(!t&&E.isArray(e))return Math.max.apply(Math,e);if(!t&&E.isEmpty(e))return-Infinity;var r={computed:-Infinity};S(e,function(e,i,s){i=t?t.call(n,e,i,s):e;i>=r.computed&&(r={value:e,computed:i})});return r.value};E.min=function(e,t,n){if(!t&&E.isArray(e))return Math.min.apply(Math,e);if(!t&&E.isEmpty(e))return Infinity;var r={computed:Infinity};S(e,function(e,i,s){i=t?t.call(n,e,i,s):e;ir?1:0}),"value")};E.groupBy=function(e,t){var n={},r=E.isFunction(t)?t:function(e){return e[t]};S(e,function(e,t){var i=r(e,t);(n[i]||(n[i]=[])).push(e)});return n};E.sortedIndex=function(e,t,n){n||(n=E.identity);for(var r=0,i=e.length;r>1;n(e[s])=0})})};E.difference=function(e){var t=E.flatten(o.call(arguments,1));return E.filter(e,function(e){return!E.include(t,e)})};E.zip=function(){for(var e=o.call(arguments),t=E.max(E.pluck(e,"length")),n=Array(t),r=0;r=0;n--)t=[e[n].apply(this,t)];return t[0]}};E.after=function(e,t){return e<=0?t():function(){if(--e<1)return t.apply(this,arguments)}};E.keys=b||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var t=[],n;for(n in e)E.has(e,n)&&(t[t.length]=n);return t};E.values=function(e){return E.map(e,E.identity)};E.functions=E.methods=function(e){var t=[],n;for(n in e)E.isFunction(e[n])&&t.push(n);return t.sort()};E.extend=function(e){S(o.call(arguments,1),function(t){for(var n in t)e[n]=t[n]});return e};E.defaults=function(e){S(o.call(arguments,1),function(t){for(var n in t)e[n]==null&&(e[n]=t[n])});return e};E.clone=function(e){return E.isObject(e)?E.isArray(e)?e.slice():E.extend({},e):e};E.tap=function(e,t){t(e);return e};E.isEqual=function(t,n){return e(t,n,[])};E.isEmpty=function(e){if(E.isArray(e)||E.isString(e))return e.length===0;for(var t in e)if(E.has(e,t))return!1;return!0};E.isElement=function(e){return!!e&&e.nodeType==1};E.isArray=s||function(e){return a.call(e)=="[object Array]"};E.isObject=function(e){return e===Object(e)};E.isArguments=function(e){return a.call(e)=="[object Arguments]"};E.isArguments(arguments)||(E.isArguments=function(e){return!!e&&!!E.has(e,"callee")});E.isFunction=function(e){return a.call(e)=="[object Function]"};E.isString=function(e){return a.call(e)=="[object String]"};E.isNumber=function(e){return a.call(e)=="[object Number]"};E.isNaN=function(e){return e!==e};E.isBoolean=function(e){return e===!0||e===!1||a.call(e)=="[object Boolean]"};E.isDate=function(e){return a.call(e)=="[object Date]"};E.isRegExp=function(e){return a.call(e)=="[object RegExp]"};E.isNull=function(e){return e===null};E.isUndefined=function(e){return e===void 0};E.has=function(e,t){return f.call(e,t)};E.noConflict=function(){t._=n;return this};E.identity=function(e){return e};E.times=function(e,t,n){for(var r=0;r/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")};E.mixin=function(e){S(E.functions(e),function(t){O(t,E[t]=e[t])})};var N=0;E.uniqueId=function(e){var t=N++;return e?e+t:t};E.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var C=/.^/,k=function(e){return e.replace(/\\\\/g,"\\").replace(/\\'/g,"'")};E.template=function(e,t){var n=E.templateSettings,n="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(n.escape||C,function(e,t){return"',_.escape("+k(t)+"),'"}).replace(n.interpolate||C,function(e,t){return"',"+k(t)+",'"}).replace(n.evaluate||C,function(e,t){return"');"+k(t).replace(/[\r\n\t]/g," ")+";__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');",r=new Function("obj","_",n);return t?r(t,E):function(e){return r.call(this,e,E)}};E.chain=function(e){return E(e).chain()};var L=function(e){this._wrapped=e};E.prototype=L.prototype;var A=function(e,t){return t?E(e).chain():e},O=function(e,t){L.prototype[e]=function(){var e=o.call(arguments);u.call(e,this._wrapped);return A(t.apply(E,e),this._chain)}};E.mixin(E);S("pop,push,reverse,shift,sort,splice,unshift".split(","),function(e){var t=i[e];L.prototype[e]=function(){var n=this._wrapped;t.apply(n,arguments);var r=n.length;(e=="shift"||e=="splice")&&r===0&&delete n[0];return A(n,this._chain)}});S(["concat","join","slice"],function(e){var t=i[e];L.prototype[e]=function(){return A(t.apply(this._wrapped,arguments),this._chain)}});L.prototype.chain=function(){this._chain=!0;return this};L.prototype.value=function(){return this._wrapped}}).call(this);(function(){var e=this,t=e.Backbone,n=Array.prototype.slice,r=Array.prototype.splice,i;i="undefined"!=typeof exports?exports:e.Backbone={};i.VERSION="0.9.1";var s=e._;!s&&"undefined"!=typeof require&&(s=require("underscore"));var o=e.jQuery||e.Zepto||e.ender;i.setDomLibrary=function(e){o=e};i.noConflict=function(){e.Backbone=t;return this};i.emulateHTTP=!1;i.emulateJSON=!1;i.Events={on:function(e,t,n){for(var r,e=e.split(/\s+/),i=this._callbacks||(this._callbacks={});r=e.shift();){r=i[r]||(i[r]={});var s=r.tail||(r.tail=r.next={});s.callback=t;s.context=n;r.tail=s.next={}}return this},off:function(e,t,n){var r,i,s;if(e){if(i=this._callbacks)for(e=e.split(/\s+/);r=e.shift();)if(s=i[r],delete i[r],t&&s)for(;(s=s.next)&&s.next;)(s.callback!==t||!!n&&s.context!==n)&&this.on(r,s.callback,s.context)}else delete this._callbacks;return this},trigger:function(e){var t,r,i,s;if(!(i=this._callbacks))return this;s=i.all;for((e=e.split(/\s+/)).push(null);t=e.shift();)s&&e.push({next:s.next,tail:s.tail,event:t}),(r=i[t])&&e.push({next:r.next,tail:r.tail});for(s=n.call(arguments,1);r=e.pop();){t=r.tail;for(i=r.event?[r.event].concat(s):s;(r=r.next)!==t;)r.callback.apply(r.context||this,i)}return this}};i.Events.bind=i.Events.on;i.Events.unbind=i.Events.off;i.Model=function(e,t){var n;e||(e={});t&&t.parse&&(e=this.parse(e));if(n=y(this,"defaults"))e=s.extend({},n,e);t&&t.collection&&(this.collection=t.collection);this.attributes={};this._escapedAttributes={};this.cid=s.uniqueId("c");if(!this.set(e,{silent:!0}))throw Error("Can't create an invalid model");delete this._changed;this._previousAttributes=s.clone(this.attributes);this.initialize.apply(this,arguments)};s.extend(i.Model.prototype,i.Events,{idAttribute:"id",initialize:function(){},toJSON:function(){return s.clone(this.attributes)},get:function(e){return this.attributes[e]},escape:function(e){var t;if(t=this._escapedAttributes[e])return t;t=this.attributes[e];return this._escapedAttributes[e]=s.escape(null==t?"":""+t)},has:function(e){return null!=this.attributes[e]},set:function(e,t,n){var r,o;s.isObject(e)||null==e?(r=e,n=t):(r={},r[e]=t);n||(n={});if(!r)return this;r instanceof i.Model&&(r=r.attributes);if(n.unset)for(o in r)r[o]=void 0;if(!this._validate(r,n))return!1;this.idAttribute in r&&(this.id=r[this.idAttribute]);var t=this.attributes,u=this._escapedAttributes,a=this._previousAttributes||{},f=this._setting;this._changed||(this._changed={});this._setting=!0;for(o in r)if(e=r[o],s.isEqual(t[o],e)||delete u[o],n.unset?delete t[o]:t[o]=e,this._changing&&!s.isEqual(this._changed[o],e)&&(this.trigger("change:"+o,this,e,n),this._moreChanges=!0),delete this._changed[o],!s.isEqual(a[o],e)||s.has(t,o)!=s.has(a,o))this._changed[o]=e;f||(!n.silent&&this.hasChanged()&&this.change(n),this._setting=!1);return this},unset:function(e,t){(t||(t={})).unset=!0;return this.set(e,null,t)},clear:function(e){(e||(e={})).unset=!0;return this.set(s.clone(this.attributes),e)},fetch:function(e){var e=e?s.clone(e):{},t=this,n=e.success;e.success=function(r,i,s){if(!t.set(t.parse(r,s),e))return!1;n&&n(t,r)};e.error=i.wrapError(e.error,t,e);return(this.sync||i.sync).call(this,"read",this,e)},save:function(e,t,n){var r,o;s.isObject(e)||null==e?(r=e,n=t):(r={},r[e]=t);n=n?s.clone(n):{};n.wait&&(o=s.clone(this.attributes));e=s.extend({},n,{silent:!0});if(r&&!this.set(r,n.wait?e:n))return!1;var u=this,a=n.success;n.success=function(e,t,i){t=u.parse(e,i);n.wait&&(t=s.extend(r||{},t));if(!u.set(t,n))return!1;a?a(u,e):u.trigger("sync",u,e,n)};n.error=i.wrapError(n.error,u,n);t=this.isNew()?"create":"update";t=(this.sync||i.sync).call(this,t,this,n);n.wait&&this.set(o,e);return t},destroy:function(e){var e=e?s.clone(e):{},t=this,n=e.success,r=function(){t.trigger("destroy",t,t.collection,e)};if(this.isNew())return r();e.success=function(i){e.wait&&r();n?n(t,i):t.trigger("sync",t,i,e)};e.error=i.wrapError(e.error,t,e);var o=(this.sync||i.sync).call(this,"delete",this,e);e.wait||r();return o},url:function(){var e=y(this.collection,"url")||y(this,"urlRoot")||b();return this.isNew()?e:e+("/"==e.charAt(e.length-1)?"":"/")+encodeURIComponent(this.id)},parse:function(e){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return null==this.id},change:function(e){if(this._changing||!this.hasChanged())return this;this._moreChanges=this._changing=!0;for(var t in this._changed)this.trigger("change:"+t,this,this._changed[t],e);for(;this._moreChanges;)this._moreChanges=!1,this.trigger("change",this,e);this._previousAttributes=s.clone(this.attributes);delete this._changed;this._changing=!1;return this},hasChanged:function(e){return arguments.length?this._changed&&s.has(this._changed,e):!s.isEmpty(this._changed)},changedAttributes:function(e){if(!e)return this.hasChanged()?s.clone(this._changed):!1;var t,n=!1,r=this._previousAttributes,i;for(i in e)s.isEqual(r[i],t=e[i])||((n||(n={}))[i]=t);return n},previous:function(e){return!arguments.length||!this._previousAttributes?null:this._previousAttributes[e]},previousAttributes:function(){return s.clone(this._previousAttributes)},isValid:function(){return!this.validate(this.attributes)},_validate:function(e,t){if(t.silent||!this.validate)return!0;var e=s.extend({},this.attributes,e),n=this.validate(e,t);if(!n)return!0;t&&t.error?t.error(this,n,t):this.trigger("error",this,n,t);return!1}});i.Collection=function(e,t){t||(t={});t.comparator&&(this.comparator=t.comparator);this._reset();this.initialize.apply(this,arguments);e&&this.reset(e,{silent:!0,parse:t.parse})};s.extend(i.Collection.prototype,i.Events,{model:i.Model,initialize:function(){},toJSON:function(){return this.map(function(e){return e.toJSON()})},add:function(e,t){var n,i,o,u,a,f={},l={};t||(t={});e=s.isArray(e)?e.slice():[e];for(n=0,i=e.length;n=t))this.iframe=o('