").append(st.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,a||[e.responseText,t,e])}),this},st.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){st.fn[t]=function(e){return this.on(t,e)}}),st.each(["get","post"],function(e,n){st[n]=function(e,r,i,o){return st.isFunction(r)&&(o=o||i,i=r,r=t),st.ajax({url:e,type:n,dataType:o,data:r,success:i})}}),st.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Dn,type:"GET",isLocal:Fn.test(jn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":In,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":st.parseJSON,"text xml":st.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?H(H(e,st.ajaxSettings),t):H(st.ajaxSettings,e)},ajaxPrefilter:D(Wn),ajaxTransport:D($n),ajax:function(e,n){function r(e,n,r,s){var l,f,v,b,T,N=n;2!==x&&(x=2,u&&clearTimeout(u),i=t,a=s||"",w.readyState=e>0?4:0,r&&(b=M(p,w,r)),e>=200&&300>e||304===e?(p.ifModified&&(T=w.getResponseHeader("Last-Modified"),T&&(st.lastModified[o]=T),T=w.getResponseHeader("etag"),T&&(st.etag[o]=T)),304===e?(l=!0,N="notmodified"):(l=q(p,b),N=l.state,f=l.data,v=l.error,l=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),w.status=e,w.statusText=(n||N)+"",l?g.resolveWith(d,[f,N,w]):g.rejectWith(d,[w,N,v]),w.statusCode(y),y=t,c&&h.trigger(l?"ajaxSuccess":"ajaxError",[w,p,l?f:v]),m.fireWith(d,[w,N]),c&&(h.trigger("ajaxComplete",[w,p]),--st.active||st.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=t),n=n||{};var i,o,a,s,u,l,c,f,p=st.ajaxSetup({},n),d=p.context||p,h=p.context&&(d.nodeType||d.jquery)?st(d):st.event,g=st.Deferred(),m=st.Callbacks("once memory"),y=p.statusCode||{},v={},b={},x=0,T="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!s)for(s={};t=_n.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=b[n]=b[n]||e,v[e]=t),this},overrideMimeType:function(e){return x||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>x)for(t in e)y[t]=[y[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||T;return i&&i.abort(t),r(0,t),this}};if(g.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,p.url=((e||p.url||Dn)+"").replace(Mn,"").replace(Bn,jn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=st.trim(p.dataType||"*").toLowerCase().match(lt)||[""],null==p.crossDomain&&(l=Pn.exec(p.url.toLowerCase()),p.crossDomain=!(!l||l[1]===jn[1]&&l[2]===jn[2]&&(l[3]||("http:"===l[1]?80:443))==(jn[3]||("http:"===jn[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=st.param(p.data,p.traditional)),L(Wn,p,n,w),2===x)return w;c=p.global,c&&0===st.active++&&st.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!On.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(Hn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=qn.test(o)?o.replace(qn,"$1_="+Ln++):o+(Hn.test(o)?"&":"?")+"_="+Ln++)),p.ifModified&&(st.lastModified[o]&&w.setRequestHeader("If-Modified-Since",st.lastModified[o]),st.etag[o]&&w.setRequestHeader("If-None-Match",st.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+In+"; q=0.01":""):p.accepts["*"]);for(f in p.headers)w.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(p.beforeSend.call(d,w,p)===!1||2===x))return w.abort();T="abort";for(f in{success:1,error:1,complete:1})w[f](p[f]);if(i=L($n,p,n,w)){w.readyState=1,c&&h.trigger("ajaxSend",[w,p]),p.async&&p.timeout>0&&(u=setTimeout(function(){w.abort("timeout")},p.timeout));try{x=1,i.send(v,r)}catch(N){if(!(2>x))throw N;r(-1,N)}}else r(-1,"No Transport");return w},getScript:function(e,n){return st.get(e,t,n,"script")},getJSON:function(e,t,n){return st.get(e,t,n,"json")}}),st.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return st.globalEval(e),e}}}),st.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),st.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=V.head||st("head")[0]||V.documentElement;return{send:function(t,i){n=V.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Xn=[],Un=/(=)\?(?=&|$)|\?\?/;st.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xn.pop()||st.expando+"_"+Ln++;return this[e]=!0,e}}),st.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&&(Un.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Un.test(n.data)&&"data");return u||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=st.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Un,"$1"+o):n.jsonp!==!1&&(n.url+=(Hn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||st.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Xn.push(o)),s&&st.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Vn,Yn,Jn=0,Gn=e.ActiveXObject&&function(){var e;for(e in Vn)Vn[e](t,!0)};st.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&_()||F()}:_,Yn=st.ajaxSettings.xhr(),st.support.cors=!!Yn&&"withCredentials"in Yn,Yn=st.support.ajax=!!Yn,Yn&&st.ajaxTransport(function(n){if(!n.crossDomain||st.support.cors){var r;return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)u.setRequestHeader(s,i[s])}catch(l){}u.send(n.hasContent&&n.data||null),r=function(e,i){var s,l,c,f,p;try{if(r&&(i||4===u.readyState))if(r=t,a&&(u.onreadystatechange=st.noop,Gn&&delete Vn[a]),i)4!==u.readyState&&u.abort();else{f={},s=u.status,p=u.responseXML,c=u.getAllResponseHeaders(),p&&p.documentElement&&(f.xml=p),"string"==typeof u.responseText&&(f.text=u.responseText);try{l=u.statusText}catch(d){l=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=f.text?200:404}}catch(h){i||o(-1,h)}f&&o(s,l,f,c)},n.async?4===u.readyState?setTimeout(r):(a=++Jn,Gn&&(Vn||(Vn={},st(e).unload(Gn)),Vn[a]=r),u.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Qn,Kn,Zn=/^(?:toggle|show|hide)$/,er=RegExp("^(?:([+-])=|)("+ut+")([a-z%]*)$","i"),tr=/queueHooks$/,nr=[W],rr={"*":[function(e,t){var n,r,i=this.createTween(e,t),o=er.exec(t),a=i.cur(),s=+a||0,u=1,l=20;if(o){if(n=+o[2],r=o[3]||(st.cssNumber[e]?"":"px"),"px"!==r&&s){s=st.css(i.elem,e,!0)||n||1;do u=u||".5",s/=u,st.style(i.elem,e,s+r);while(u!==(u=i.cur()/a)&&1!==u&&--l)}i.unit=r,i.start=s,i.end=o[1]?s+(o[1]+1)*n:n}return i}]};st.Animation=st.extend(P,{tweener:function(e,t){st.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;i>r;r++)n=e[r],rr[n]=rr[n]||[],rr[n].unshift(t)},prefilter:function(e,t){t?nr.unshift(e):nr.push(e)}}),st.Tween=$,$.prototype={constructor:$,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(st.cssNumber[n]?"":"px")},cur:function(){var e=$.propHooks[this.prop];return e&&e.get?e.get(this):$.propHooks._default.get(this)},run:function(e){var t,n=$.propHooks[this.prop];return this.pos=t=this.options.duration?st.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):$.propHooks._default.set(this),this}},$.prototype.init.prototype=$.prototype,$.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=st.css(e.elem,e.prop,"auto"),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){st.fx.step[e.prop]?st.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[st.cssProps[e.prop]]||st.cssHooks[e.prop])?st.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},$.propHooks.scrollTop=$.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},st.each(["toggle","show","hide"],function(e,t){var n=st.fn[t];st.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(I(t,!0),e,r,i)}}),st.fn.extend({fadeTo:function(e,t,n,r){return this.filter(w).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=st.isEmptyObject(e),o=st.speed(t,n,r),a=function(){var t=P(this,st.extend({},e),o);a.finish=function(){t.stop(!0)},(i||st._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=st.timers,a=st._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&tr.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&st.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=st._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=st.timers,a=r?r.length:0;for(n.finish=!0,st.queue(this,e,[]),i&&i.cur&&i.cur.finish&&i.cur.finish.call(this),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),st.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){st.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),st.speed=function(e,t,n){var r=e&&"object"==typeof e?st.extend({},e):{complete:n||!n&&t||st.isFunction(e)&&e,duration:e,easing:n&&t||t&&!st.isFunction(t)&&t};return r.duration=st.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in st.fx.speeds?st.fx.speeds[r.duration]:st.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){st.isFunction(r.old)&&r.old.call(this),r.queue&&st.dequeue(this,r.queue)},r},st.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},st.timers=[],st.fx=$.prototype.init,st.fx.tick=function(){var e,n=st.timers,r=0;for(Qn=st.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||st.fx.stop(),Qn=t},st.fx.timer=function(e){e()&&st.timers.push(e)&&st.fx.start()},st.fx.interval=13,st.fx.start=function(){Kn||(Kn=setInterval(st.fx.tick,st.fx.interval))},st.fx.stop=function(){clearInterval(Kn),Kn=null},st.fx.speeds={slow:600,fast:200,_default:400},st.fx.step={},st.expr&&st.expr.filters&&(st.expr.filters.animated=function(e){return st.grep(st.timers,function(t){return e===t.elem}).length}),st.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){st.offset.setOffset(this,e,t)});var n,r,i={top:0,left:0},o=this[0],a=o&&o.ownerDocument;if(a)return n=a.documentElement,st.contains(n,o)?(o.getBoundingClientRect!==t&&(i=o.getBoundingClientRect()),r=z(a),{top:i.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:i.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):i},st.offset={setOffset:function(e,t,n){var r=st.css(e,"position");"static"===r&&(e.style.position="relative");var i,o,a=st(e),s=a.offset(),u=st.css(e,"top"),l=st.css(e,"left"),c=("absolute"===r||"fixed"===r)&&st.inArray("auto",[u,l])>-1,f={},p={};c?(p=a.position(),i=p.top,o=p.left):(i=parseFloat(u)||0,o=parseFloat(l)||0),st.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+i),null!=t.left&&(f.left=t.left-s.left+o),"using"in t?t.using.call(e,f):a.css(f)}},st.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===st.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),st.nodeName(e[0],"html")||(n=e.offset()),n.top+=st.css(e[0],"borderTopWidth",!0),n.left+=st.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-st.css(r,"marginTop",!0),left:t.left-n.left-st.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||V.documentElement;e&&!st.nodeName(e,"html")&&"static"===st.css(e,"position");)e=e.offsetParent;return e||V.documentElement})}}),st.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);st.fn[e]=function(i){return st.access(this,function(e,i,o){var a=z(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?st(a).scrollLeft():o,r?o:st(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}}),st.each({Height:"height",Width:"width"},function(e,n){st.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){st.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return st.access(this,function(n,r,i){var o;return st.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?st.css(n,r,s):st.style(n,r,i,s)},n,a?i:t,a,null)}})}),e.jQuery=e.$=st,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return st})})(window);
-//@ sourceMappingURL=jquery.min.map
\ No newline at end of file
diff --git a/public/styleguide/js/postmessage.js b/public/styleguide/js/postmessage.js
deleted file mode 100644
index 963a08f19..000000000
--- a/public/styleguide/js/postmessage.js
+++ /dev/null
@@ -1,81 +0,0 @@
-/*!
- * Basic postMessage Support - v0.1
- *
- * Copyright (c) 2013 Dave Olsen, http://dmolsen.com
- * Licensed under the MIT license
- *
- * Handles the postMessage stuff in the pattern, view-all, and style guide templates.
- *
- */
-
-// alert the iframe parent that the pattern has loaded assuming this view was loaded in an iframe
-if (self != top) {
-
- // handle the options that could be sent to the parent window
- // - all get path
- // - pattern & view all get a pattern partial, styleguide gets all
- // - pattern shares lineage
- var options = { "path": window.location.toString() };
- options.patternpartial = (patternPartial != "") ? patternPartial : "all";
- if (lineage != "") {
- options.lineage = lineage;
- }
-
- var targetOrigin = (window.location.protocol == "file:") ? "*" : window.location.protocol+"//"+window.location.host;
- parent.postMessage(options, targetOrigin);
-
- // find all links and add an onclick handler for replacing the iframe address so the history works
- var aTags = document.getElementsByTagName('a');
- for (a in aTags) {
- aTags[a].onclick = function(e) {
- e.preventDefault();
- var href = this.getAttribute("href");
- if (href != "#") {
- window.location.replace(href);
- }
- };
- }
-
-}
-
-// if there are clicks on the iframe make sure the nav in the iframe parent closes
-var body = document.getElementsByTagName('body');
-body[0].onclick = function() {
- var targetOrigin = (window.location.protocol == "file:") ? "*" : window.location.protocol+"//"+window.location.host;
- parent.postMessage( { "bodyclick": "bodyclick" }, targetOrigin)
-};
-
-// watch the iframe source so that it can be sent back to everyone else.
-function receiveIframeMessage(event) {
-
- // does the origin sending the message match the current host? if not dev/null the request
- if ((window.location.protocol != "file:") && (event.origin !== window.location.protocol+"//"+window.location.host)) {
- return;
- }
-
- // see if it got a path to replace
- if (event.data.path != undefined) {
-
- if (patternPartial != "") {
-
- // handle patterns and the view all page
- var re = /patterns\/(.*)$/;
- var path = window.location.protocol+"//"+window.location.host+window.location.pathname.replace(re,'')+event.data.path;
- window.location.replace(path);
-
- } else {
-
- // handle the style guide
- var path = window.location.protocol+"//"+window.location.host+window.location.pathname.replace("styleguide\/html\/styleguide.html","")+event.data.path;
- window.location.replace(path);
-
- }
-
- } else if (event.data.reload != undefined) {
-
- // reload the location if there was a message to do so
- window.location.reload();
- }
-
-}
-window.addEventListener("message", receiveIframeMessage, false);
diff --git a/public/styleguide/js/prism.js b/public/styleguide/js/prism.js
deleted file mode 100644
index 40287b9e9..000000000
--- a/public/styleguide/js/prism.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Prism: Lightweight, robust, elegant syntax highlighting
- * MIT license http://www.opensource.org/licenses/mit-license.php/
- * @author Lea Verou http://lea.verou.me
- */(function(){var e=/\blang(?:uage)?-(?!\*)(\w+)\b/i,t=self.Prism={util:{type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},clone:function(e){var n=t.util.type(e);switch(n){case"Object":var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=t.util.clone(e[i]));return r;case"Array":return e.slice()}return e}},languages:{extend:function(e,n){var r=t.util.clone(t.languages[e]);for(var i in n)r[i]=n[i];return r},insertBefore:function(e,n,r,i){i=i||t.languages;var s=i[e],o={};for(var u in s)if(s.hasOwnProperty(u)){if(u==n)for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);o[u]=s[u]}return i[e]=o},DFS:function(e,n){for(var r in e){n.call(e,r,e[r]);t.util.type(e)==="Object"&&t.languages.DFS(e[r],n)}}},highlightAll:function(e,n){var r=document.querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code');for(var i=0,s;s=r[i++];)t.highlightElement(s,e===!0,n)},highlightElement:function(r,i,s){var o,u,a=r;while(a&&!e.test(a.className))a=a.parentNode;if(a){o=(a.className.match(e)||[,""])[1];u=t.languages[o]}if(!u)return;r.className=r.className.replace(e,"").replace(/\s+/g," ")+" language-"+o;a=r.parentNode;/pre/i.test(a.nodeName)&&(a.className=a.className.replace(e,"").replace(/\s+/g," ")+" language-"+o);var f=r.textContent;if(!f)return;f=f.replace(/&/g,"&").replace(/e.length)break e;if(p instanceof i)continue;a.lastIndex=0;var d=a.exec(p);if(d){l&&(c=d[1].length);var v=d.index-1+c,d=d[0].slice(c),m=d.length,g=v+m,y=p.slice(0,v+1),b=p.slice(g+1),w=[h,1];y&&w.push(y);var E=new i(u,f?t.tokenize(d,f):d);w.push(E);b&&w.push(b);Array.prototype.splice.apply(s,w)}}}return s},hooks:{all:{},add:function(e,n){var r=t.hooks.all;r[e]=r[e]||[];r[e].push(n)},run:function(e,n){var r=t.hooks.all[e];if(!r||!r.length)return;for(var i=0,s;s=r[i++];)s(n)}}},n=t.Token=function(e,t){this.type=e;this.content=t};n.stringify=function(e,r,i){if(typeof e=="string")return e;if(Object.prototype.toString.call(e)=="[object Array]")return e.map(function(t){return n.stringify(t,r,e)}).join("");var s={type:e.type,content:n.stringify(e.content,r,i),tag:"span",classes:["token",e.type],attributes:{},language:r,parent:i};s.type=="comment"&&(s.attributes.spellcheck="true");t.hooks.run("wrap",s);var o="";for(var u in s.attributes)o+=u+'="'+(s.attributes[u]||"")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'" '+o+">"+s.content+""+s.tag+">"};if(!self.document){self.addEventListener("message",function(e){var n=JSON.parse(e.data),r=n.language,i=n.code;self.postMessage(JSON.stringify(t.tokenize(i,t.languages[r])));self.close()},!1);return}var r=document.getElementsByTagName("script");r=r[r.length-1];if(r){t.filename=r.src;document.addEventListener&&!r.hasAttribute("data-manual")&&document.addEventListener("DOMContentLoaded",t.highlightAll)}})();;
-Prism.languages.markup={comment:/<!--[\w\W]*?-->/g,prolog:/<\?.+?\?>/,doctype:/<!DOCTYPE.+?>/,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?[\w:-]+\s*(?:\s+[\w:-]+(?:=(?:("|')(\\?[\w\W])*?\1|\w+))?\s*)*\/?>/gi,inside:{tag:{pattern:/^<\/?[\w:-]+/i,inside:{punctuation:/^<\/?/,namespace:/^[\w-]+?:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/gi,inside:{punctuation:/=|>|"/g}},punctuation:/\/?>/g,"attr-name":{pattern:/[\w:-]+/g,inside:{namespace:/^[\w-]+?:/}}}},entity:/&#?[\da-z]{1,8};/gi};Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))});;
-Prism.languages.css={comment:/\/\*[\w\W]*?\*\//g,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*{))/gi,inside:{punctuation:/[;:]/g}},url:/url\((["']?).*?\1\)/gi,selector:/[^\{\}\s][^\{\};]*(?=\s*\{)/g,property:/(\b|\B)[\w-]+(?=\s*:)/ig,string:/("|')(\\?.)*?\1/g,important:/\B!important\b/gi,ignore:/&(lt|gt|amp);/gi,punctuation:/[\{\};:]/g};Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{style:{pattern:/(<|<)style[\w\W]*?(>|>)[\w\W]*?(<|<)\/style(>|>)/ig,inside:{tag:{pattern:/(<|<)style[\w\W]*?(>|>)|(<|<)\/style(>|>)/ig,inside:Prism.languages.markup.tag.inside},rest:Prism.languages.css}}});;
\ No newline at end of file
diff --git a/public/styleguide/js/styleguide.js b/public/styleguide/js/styleguide.js
deleted file mode 100644
index e3b860fba..000000000
--- a/public/styleguide/js/styleguide.js
+++ /dev/null
@@ -1,461 +0,0 @@
-(function(w){
-
- var sw = document.body.clientWidth, //Viewport Width
- sh = document.body.clientHeight, //Viewport Height
- minViewportWidth = 240, //Minimum Size for Viewport
- maxViewportWidth = 2600, //Maxiumum Size for Viewport
- viewportResizeHandleWidth = 14, //Width of the viewport drag-to-resize handle
- $sgViewport = $('#sg-viewport'), //Viewport element
- $sizePx = $('.sg-size-px'), //Px size input element in toolbar
- $sizeEms = $('.sg-size-em'), //Em size input element in toolbar
- $bodySize = parseInt($('body').css('font-size')), //Body size of the document
- $vp = Object,
- $sgPattern = Object,
- discoID = false,
- discoMode = false,
- hayMode = false;
-
-
- $(w).resize(function(){ //Update dimensions on resize
- sw = document.body.clientWidth;
- sh = document.body.clientHeight;
- });
-
- /* Pattern Lab accordion dropdown */
- $('.sg-acc-handle').on("click", function(e){
- var $this = $(this),
- $panel = $this.next('.sg-acc-panel');
- e.preventDefault();
- $this.toggleClass('active');
- $panel.toggleClass('active');
- });
-
- $('.sg-nav-toggle').on("click", function(e){
- e.preventDefault();
- $('.sg-nav-container').toggleClass('active');
- });
-
- //"View (containing clean, code, raw, etc options) Trigger
- $('#sg-t-toggle').on("click", function(e){
- e.preventDefault();
- $(this).parents('ul').toggleClass('active');
- });
-
- //Size Trigger
- $('#sg-size-toggle').on("click", function(e){
- e.preventDefault();
- $(this).parents('ul').toggleClass('active');
- });
-
- //Phase View Events
- $('.sg-size[data-size]').on("click", function(e){
- e.preventDefault();
- killDisco();
- killHay();
-
- var val = $(this).attr('data-size');
-
- if (val.indexOf('px') > -1) {
- $bodySize = 1;
- }
-
- val = val.replace(/[^\d.-]/g,'')
- sizeiframe(Math.floor(val*$bodySize));
- });
-
- //Size View Events
-
- //Click Size Small Button
- $('#sg-size-s').on("click", function(e){
- e.preventDefault();
- killDisco();
- killHay();
- sizeiframe(getRandom(minViewportWidth,500));
- });
-
- //Click Size Medium Button
- $('#sg-size-m').on("click", function(e){
- e.preventDefault();
- killDisco();
- killHay();
- sizeiframe(getRandom(500,800));
- });
-
- //Click Size Large Button
- $('#sg-size-l').on("click", function(e){
- e.preventDefault();
- killDisco();
- killHay();
- sizeiframe(getRandom(800,1200));
- });
-
- //Click Full Width Button
- $('#sg-size-full').on("click", function(e){ //Resets
- e.preventDefault();
- killDisco();
- killHay();
- sizeiframe(sw);
- });
-
- //Click Random Size Button
- $('#sg-size-random').on("click", function(e){
- e.preventDefault();
- killDisco();
- killHay();
- sizeiframe(getRandom(minViewportWidth,sw));
- });
-
- //Click for Disco Mode, which resizes the viewport randomly
- $('#sg-size-disco').on("click", function(e){
- e.preventDefault();
- killHay();
-
- if (discoMode) {
- killDisco();
-
- } else {
- startDisco();
- }
- });
-
- /* Disco Mode */
- function disco() {
- sizeiframe(getRandom(minViewportWidth,sw));
- }
-
- function killDisco() {
- discoMode = false;
- clearInterval(discoID);
- discoID = false;
- }
-
- function startDisco() {
- discoMode = true;
- discoID = setInterval(disco, 800);
- }
-
- //Stephen Hay Mode - "Start with the small screen first, then expand until it looks like shit. Time for a breakpoint!"
- $('#sg-size-hay').on("click", function(e){
- e.preventDefault();
- killDisco();
-
- if (hayMode) {
- killHay();
- } else {
- startHay();
- }
- });
-
- //Stop Hay! Mode
- function killHay() {
- var currentWidth = $sgViewport.width();
- hayMode = false;
- $sgViewport.removeClass('hay-mode');
- $('#sg-gen-container').removeClass('hay-mode');
- sizeiframe(Math.floor(currentWidth));
- }
-
- // start Hay! mode
- function startHay() {
- hayMode = true;
- $('#sg-gen-container').removeClass("vp-animate").width(minViewportWidth+viewportResizeHandleWidth);
- $sgViewport.removeClass("vp-animate").width(minViewportWidth);
-
- var timeoutID = window.setTimeout(function(){
- $('#sg-gen-container').addClass('hay-mode').width(maxViewportWidth+viewportResizeHandleWidth);
- $sgViewport.addClass('hay-mode').width(maxViewportWidth);
-
- setInterval(function(){ var vpSize = $sgViewport.width(); updateSizeReading(vpSize); },100);
- }, 200);
- }
-
- //Pixel input
- $sizePx.on('keydown', function(e){
- var val = Math.floor($(this).val());
-
- if(e.keyCode == 38) { //If the up arrow key is hit
- val++;
- sizeiframe(val,false);
- } else if(e.keyCode == 40) { //If the down arrow key is hit
- val--;
- sizeiframe(val,false);
- } else if(e.keyCode == 13) { //If the Enter key is hit
- e.preventDefault();
- sizeiframe(val); //Size Iframe to value of text box
- $(this).blur();
- }
-
- });
-
- $sizePx.on('keyup', function(e){
- var val = Math.floor($(this).val());
- updateSizeReading(val,'px','updateEmInput');
- });
-
- //Em input
- $sizeEms.on('keydown', function(e){
- var val = parseFloat($(this).val());
-
- if(e.keyCode == 38) { //If the up arrow key is hit
- val++;
- sizeiframe(Math.floor(val*$bodySize),false);
- } else if(e.keyCode == 40) { //If the down arrow key is hit
- val--;
- sizeiframe(Math.floor(val*$bodySize),false);
- } else if(e.keyCode == 13) { //If the Enter key is hit
- e.preventDefault();
- sizeiframe(Math.floor(val*$bodySize)); //Size Iframe to value of text box
- }
- });
-
- $sizeEms.on('keyup', function(e){
- var val = parseFloat($(this).val());
- updateSizeReading(val,'em','updatePxInput');
- });
-
- // handle the MQ click
- $('#sg-mq a').on("click", function(e){
- e.preventDefault();
- var val = $(this).html();
- var type = (val.indexOf("px") != -1) ? "px" : "em";
- val = val.replace(type,"");
- var width = (type == "px") ? val*1 : val*$bodySize;
- sizeiframe(width,true);
- });
-
- //Resize the viewport
- //'size' is the target size of the viewport
- //'animate' is a boolean for switching the CSS animation on or off. 'animate' is true by default, but can be set to false for things like nudging and dragging
- function sizeiframe(size,animate) {
- var theSize;
-
- if(size>maxViewportWidth) { //If the entered size is larger than the max allowed viewport size, cap value at max vp size
- theSize = maxViewportWidth;
- } else if(size
event.clientX) ? origViewportWidth - ((origClientX - event.clientX)*2) : origViewportWidth + ((event.clientX - origClientX)*2);
-
- if (viewportWidth > minViewportWidth) {
-
- if (!DataSaver.findValue('vpWidth')) {
- DataSaver.addValue("vpWidth",viewportWidth);
- } else {
- DataSaver.updateValue("vpWidth",viewportWidth);
- }
-
- sizeiframe(viewportWidth,false);
- }
- });
- });
-
- // on "mouseup" we unbind the "mousemove" event and hide the cover again
- $('body').mouseup(function(event) {
- $('#sg-cover').unbind('mousemove');
- $('#sg-cover').css("display","none");
- });
-
- // capture the viewport width that was loaded and modify it so it fits with the pull bar
- var origViewportWidth = $("#sg-viewport").width();
- $("#sg-gen-container").width(origViewportWidth);
- $("#sg-viewport").width(origViewportWidth - 14);
- updateSizeReading($("#sg-viewport").width());
-
- // get the request vars
- var oGetVars = urlHandler.getRequestVars();
-
- // pre-load the viewport width
- var vpWidth = 0;
- var trackViewportWidth = true; // can toggle this feature on & off
- if ((oGetVars.h != undefined) || (oGetVars.hay != undefined)) {
- startHay();
- } else if ((oGetVars.d != undefined) || (oGetVars.disco != undefined)) {
- startDisco();
- } else if ((oGetVars.w != undefined) || (oGetVars.width != undefined)) {
- vpWidth = (oGetVars.w != undefined) ? oGetVars.w : oGetVars.width;
- vpWidth = (vpWidth.indexOf("em") != -1) ? Math.floor(Math.floor(vpWidth.replace("em",""))*$bodySize) : Math.floor(vpWidth.replace("px",""));
- DataSaver.updateValue("vpWidth",vpWidth);
- updateViewportWidth(vpWidth);
- } else if (trackViewportWidth && (vpWidth = DataSaver.findValue("vpWidth"))) {
- updateViewportWidth(vpWidth);
- }
-
- // load the iframe source
- var patternName = "all";
- var patternPath = "";
- var iFramePath = window.location.protocol+"//"+window.location.host+window.location.pathname.replace("index.html","")+"styleguide/html/styleguide.html";
- if ((oGetVars.p != undefined) || (oGetVars.pattern != undefined)) {
- patternName = (oGetVars.p != undefined) ? oGetVars.p : oGetVars.pattern;
- patternPath = urlHandler.getFileName(patternName);
- iFramePath = (patternPath != "") ? window.location.protocol+"//"+window.location.host+window.location.pathname.replace("index.html","")+patternPath : iFramePath;
- }
-
- if (patternName != "all") {
- document.getElementById("title").innerHTML = "Pattern Lab - "+patternName;
- history.replaceState({ "pattern": patternName }, null, null);
- }
-
- document.getElementById("sg-raw").setAttribute("href",urlHandler.getFileName(patternName));
-
- urlHandler.skipBack = true;
- document.getElementById("sg-viewport").contentWindow.location.replace(iFramePath);
-
- //IFrame functionality
-
-})(this);
-
-// update the iframe with the source from clicked element in pull down menu. also close the menu
-// having it outside fixes an auto-close bug i ran into
-$('.sg-nav a').not('.sg-acc-handle').on("click", function(e){
-
- e.preventDefault();
-
- // update the iframe via the history api handler
- document.getElementById("sg-viewport").contentWindow.postMessage( { "path": urlHandler.getFileName($(this).attr("data-patternpartial")) }, urlHandler.targetOrigin);
-
- // close up the menu
- $(this).parents('.sg-acc-panel').toggleClass('active');
- $(this).parents('.sg-acc-panel').siblings('.sg-acc-handle').toggleClass('active');
-
- return false;
-
-});
-
-// handle when someone clicks on the grey area of the viewport so it auto-closes the nav
-function closePanels() {
- // close up the menu
- $('.sg-acc-panel').each(function() {
- if ($(this).hasClass('active')) {
- $(this).toggleClass('active');
- }
- });
-
- $('.sg-acc-handle').each(function() {
- if ($(this).hasClass('active')) {
- $(this).toggleClass('active');
- }
- });
-}
-
-$('#sg-vp-wrap').click(function(e) {
-
- closePanels();
-
-});
-
-// watch the iframe source so that it can be sent back to everyone else.
-// based on the great MDN docs at https://developer.mozilla.org/en-US/docs/Web/API/window.postMessage
-function receiveIframeMessage(event) {
-
- // does the origin sending the message match the current host? if not dev/null the request
- if ((window.location.protocol != "file:") && (event.origin !== window.location.protocol+"//"+window.location.host)) {
- return;
- }
-
- if (event.data.bodyclick != undefined) {
-
- closePanels();
-
- } else if (event.data.patternpartial != undefined) {
-
- if (!urlHandler.skipBack) {
-
- if ((history.state == null) || (history.state.pattern != event.data.patternpartial)) {
- urlHandler.pushPattern(event.data.patternpartial, event.data.path);
- }
-
- if (wsnConnected) {
- var iFramePath = urlHandler.getFileName(event.data.patternpartial);
- wsn.send( '{"url": "'+iFramePath+'", "patternpartial": "'+event.data.patternpartial+'" }' );
- }
-
- }
-
- // for testing purposes
- console.log(event.data.lineage);
-
- // reset the defaults
- urlHandler.skipBack = false;
-
- }
-
-}
-window.addEventListener("message", receiveIframeMessage, false);
\ No newline at end of file
diff --git a/public/styleguide/js/url-handler.js b/public/styleguide/js/url-handler.js
deleted file mode 100644
index 1cfde3cab..000000000
--- a/public/styleguide/js/url-handler.js
+++ /dev/null
@@ -1,182 +0,0 @@
-/*!
- * URL Handler - v0.1
- *
- * Copyright (c) 2013 Dave Olsen, http://dmolsen.com
- * Licensed under the MIT license
- *
- * Helps handle the initial iFrame source. Parses a string to see if it matches
- * an expected pattern in Pattern Lab. Supports Pattern Labs fuzzy pattern partial
- * matching style.
- *
- */
-
-var urlHandler = {
-
- // set-up some default vars
- skipBack: false,
- targetOrigin: (window.location.protocol == "file:") ? "*" : window.location.protocol+"//"+window.location.host,
-
- /**
- * get the real file name for a given pattern name
- * @param {String} the shorthand partials syntax for a given pattern
- *
- * @return {String} the real file path
- */
- getFileName: function (name) {
-
- var baseDir = "patterns";
- var fileName = "";
-
- if (name == undefined) {
- return fileName;
- }
-
- if (name == "all") {
- return "styleguide/html/styleguide.html";
- }
-
- var paths = (name.indexOf("viewall-") != -1) ? viewAllPaths : patternPaths;
- nameClean = name.replace("viewall-","");
-
- // look at this as a regular pattern
- var bits = this.getPatternInfo(nameClean, paths);
- var patternType = bits[0];
- var pattern = bits[1];
-
- if ((paths[patternType] != undefined) && (paths[patternType][pattern] != undefined)) {
-
- fileName = paths[patternType][pattern];
-
- } else if (paths[patternType] != undefined) {
-
- for (patternMatchKey in paths[patternType]) {
- if (patternMatchKey.indexOf(pattern) != -1) {
- fileName = paths[patternType][patternMatchKey];
- break;
- }
- }
-
- }
-
- if (fileName == "") {
- return fileName;
- }
-
- var regex = /\//g;
- if ((name.indexOf("viewall-") != -1) && (fileName != "")) {
- fileName = baseDir+"/"+fileName.replace(regex,"-")+"/index.html";
- } else if (fileName != "") {
- fileName = baseDir+"/"+fileName.replace(regex,"-")+"/"+fileName.replace(regex,"-")+".html";
- }
-
- return fileName;
- },
-
- /**
- * break up a pattern into its parts, pattern type and pattern name
- * @param {String} the shorthand partials syntax for a given pattern
- * @param {Object} the paths to be compared
- *
- * @return {Array} the pattern type and pattern name
- */
- getPatternInfo: function (name, paths) {
-
- var patternBits = name.split("-");
-
- var i = 1;
- var c = patternBits.length;
-
- var patternType = patternBits[0];
- while ((paths[patternType] == undefined) && (i < c)) {
- patternType += "-"+patternBits[i];
- i++;
- }
-
- pattern = name.slice(patternType.length+1,name.length);
-
- return [patternType, pattern];
-
- },
-
- /**
- * search the request vars for a particular item
- *
- * @return {Object} a search of the window.location.search vars
- */
- getRequestVars: function() {
-
- // the following is taken from https://developer.mozilla.org/en-US/docs/Web/API/window.location
- var oGetVars = new (function (sSearch) {
- if (sSearch.length > 1) {
- for (var aItKey, nKeyId = 0, aCouples = sSearch.substr(1).split("&"); nKeyId < aCouples.length; nKeyId++) {
- aItKey = aCouples[nKeyId].split("=");
- this[unescape(aItKey[0])] = aItKey.length > 1 ? unescape(aItKey[1]) : "";
- }
- }
- })(window.location.search);
-
- return oGetVars;
-
- },
-
- /**
- * push a pattern onto the current history based on a click
- * @param {String} the shorthand partials syntax for a given pattern
- * @param {String} the path given by the loaded iframe
- */
- pushPattern: function (pattern, givenPath) {
- var data = { "pattern": pattern };
- var fileName = urlHandler.getFileName(pattern);
- var expectedPath = window.location.protocol+"//"+window.location.host+window.location.pathname.replace("public/index.html","public/")+fileName;
- if (givenPath != expectedPath) {
- // make sure to update the iframe because there was a click
- document.getElementById("sg-viewport").contentWindow.postMessage( { "path": fileName }, urlHandler.targetOrigin);
- } else {
- // add to the history
- var addressReplacement = (window.location.protocol == "file:") ? null : window.location.protocol+"//"+window.location.host+window.location.pathname.replace("index.html","")+"?p="+pattern;
- history.pushState(data, null, addressReplacement);
- document.getElementById("title").innerHTML = "Pattern Lab - "+pattern;
- document.getElementById("sg-raw").setAttribute("href",urlHandler.getFileName(pattern));
- }
- },
-
- /**
- * based on a click forward or backward modify the url and iframe source
- * @param {Object} event info like state and properties set in pushState()
- */
- popPattern: function (e) {
-
- var state = e.state;
-
- if (state == null) {
- this.skipBack = false;
- return;
- } else if (state != null) {
- var patternName = state.pattern;
- }
-
- var iFramePath = "";
- iFramePath = this.getFileName(patternName);
- if (iFramePath == "") {
- iFramePath = "styleguide/html/styleguide.html";
- }
-
- document.getElementById("sg-viewport").contentWindow.postMessage( { "path": iFramePath }, urlHandler.targetOrigin);
- document.getElementById("title").innerHTML = "Pattern Lab - "+patternName;
- document.getElementById("sg-raw").setAttribute("href",urlHandler.getFileName(patternName));
-
- if (wsnConnected) {
- wsn.send( '{"url": "'+iFramePath+'", "patternpartial": "'+patternName+'" }' );
- }
-
- }
-
-}
-
-/**
-* handle the onpopstate event
-*/
-window.onpopstate = function (event) {
- urlHandler.skipBack = true;
- urlHandler.popPattern(event);
-}
\ No newline at end of file
diff --git a/scripts/README b/scripts/README
deleted file mode 100644
index 95dca5ed7..000000000
--- a/scripts/README
+++ /dev/null
@@ -1,6 +0,0 @@
-These are Mac OS X-compatible files to open up select command line scripts. Simply double-click on a file and it should run
-the appropriate shell command. If you receive a permissions error you will need to use the command line to fix it.
-Simply go to the command line, cd to the scripts/php directory and type chmod +x [filename]. Replace [filename] with the
-appropriate filenames.
-
-That's confusing.
\ No newline at end of file
diff --git a/scripts/generateSite.command b/scripts/generateSite.command
deleted file mode 100755
index c35643a0b..000000000
--- a/scripts/generateSite.command
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-DIR="$( cd "$( dirname "$0" )" && pwd )"
-php "$DIR/../builder/builder.php" -g
\ No newline at end of file
diff --git a/scripts/generateSiteWithCSS.command b/scripts/generateSiteWithCSS.command
deleted file mode 100755
index d217c3a18..000000000
--- a/scripts/generateSiteWithCSS.command
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-DIR="$( cd "$( dirname "$0" )" && pwd )"
-php "$DIR/../builder/builder.php" -gc
\ No newline at end of file
diff --git a/scripts/startAutoReloadServer.command b/scripts/startAutoReloadServer.command
deleted file mode 100755
index 109f71d5b..000000000
--- a/scripts/startAutoReloadServer.command
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-DIR="$( cd "$( dirname "$0" )" && pwd )"
-php "$DIR/../listeners/contentSyncBroadcasterServer.php"
\ No newline at end of file
diff --git a/scripts/startPageFollowServer.command b/scripts/startPageFollowServer.command
deleted file mode 100755
index f892da6fb..000000000
--- a/scripts/startPageFollowServer.command
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-DIR="$( cd "$( dirname "$0" )" && pwd )"
-php "$DIR/../listeners/navSyncBroadcasterServer.php"
\ No newline at end of file
diff --git a/scripts/startWatcher.command b/scripts/startWatcher.command
deleted file mode 100755
index 6b16426aa..000000000
--- a/scripts/startWatcher.command
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-DIR="$( cd "$( dirname "$0" )" && pwd )"
-php "$DIR/../builder/builder.php" -w
\ No newline at end of file
diff --git a/source/.gitkeep b/source/.gitkeep
new file mode 100644
index 000000000..4d4685871
--- /dev/null
+++ b/source/.gitkeep
@@ -0,0 +1 @@
+After you generate Pattern Lab for the first time your source files will be placed here.
\ No newline at end of file
diff --git a/source/_data/_data.json b/source/_data/_data.json
deleted file mode 100644
index 20d5d30f9..000000000
--- a/source/_data/_data.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "img": {
- "landscape-4x3": {
- "src": "../../images/fpo_4x3.png",
- "alt": "4x3 Image"
- },
- "landscape-16x9": {
- "src": "../../images/fpo_16x9.png",
- "alt": "16x9 Image"
- },
- "square": {
- "src": "../../images/fpo_square.png",
- "alt": "Square Thumbnail"
- },
- "avatar" : {
- "src" : "../../images/fpo_avatar.png",
- "alt" : "Person Name"
- }
- },
- "headline" : {
- "short" : "Lorem ipsum dolor sit (37 characters)",
- "medium" : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. (72 characters)"
- },
- "excerpt" : {
- "short" : "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam",
- "medium" : "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
- "long" : "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
- },
- "description" : "So, setting about it as methodically as men might smoke out a wasps' nest, the Martians spread this strange stifling vapour over the Londonward country. The horns of the crescent slowly moved apart, until at last they formed a line from Hanwell to Coombe and Malden. All night through their destructive tubes advanced.",
- "url" : "http://www.fillerati.com",
- "name" : {
- "first": "Lacy",
- "firsti": "L",
- "middle": "Tommie",
- "middlei": "T",
- "last": "Way",
- "lasti": "W"
- },
- "year" : {
- "long": "2013",
- "short": "13"
- },
- "month" : {
- "long": "February",
- "short": "Feb",
- "digit": "02"
- },
- "dayofweek" : {
- "long": "Monday",
- "short": "Mon"
- },
- "day" : {
- "long": "10",
- "short": "10",
- "ordinal": "th"
- },
- "hour" : {
- "long": "01",
- "short": "1",
- "military": "13",
- "ampm": "pm"
- },
- "minute" : {
- "long": "20",
- "short": "20"
- },
- "seconds" : "31",
- "author" : {
- "first-name": "Author",
- "last-name": "Name"
- }
-}
\ No newline at end of file
diff --git a/source/_data/_listitems.json b/source/_data/_listitems.json
deleted file mode 100644
index a5ee012eb..000000000
--- a/source/_data/_listitems.json
+++ /dev/null
@@ -1,782 +0,0 @@
-{
- "1": {
- "title": "Nullizzle shizznit velizzle, hizzle, suscipit own yo', gravida vizzle, arcu.",
- "img": {
- "avatar": {
- "src": "http://placeimg.com/100/100/people",
- "alt": "Avatar"
- },
- "square": {
- "src": "http://placeimg.com/300/300/nature",
- "alt": "Square"
- },
- "rectangle": {
- "src": "http://placeimg.com/400/300/tech",
- "alt": "Rectangle"
- }
- },
- "headline": {
- "short": "Lorizzle pimpin' dolizzle sit amet I",
- "medium": "Rizzle adipiscing elizzle. Nullam sapien velizzle, shit volutpizzle, my"
- },
- "excerpt": {
- "short": "Shizz fo shizzle mah nizzle fo rizzle, mah home g-dizzle, gravida vizzle, arcu. Pellentesque crunk tortizzle. Sed erizzle. Black izzle sheezy telliv.",
- "medium": "Izzle crazy tempizzle sizzle. We gonna chung gangsta get down get down fo shizzle turpizzle. Away break it down black. Pellentesque bling bling rhoncus fo shizzle. In hac the bizzle platea dictumst. Black dapibizzle. Crackalackin.",
- "long": "Curabitizzle fo shizzle diam quizzle nisi nizzle mollizzle. Suspendisse boofron. Morbi odio. Sure pizzle. Crazy orci. Shut the shizzle up maurizzle get down get down, check out this a, go to hizzle sit amizzle, malesuada izzle, pede. Pellentesque gravida. Vestibulizzle check it out mi, volutpat izzle, shiz sed, shiznit sempizzle, da bomb. Funky fresh in ipsum. Da bomb volutpat felis vizzle daahng dawg. Crizzle quis dope izzle fo shizzle my ni."
- },
- "description": "Fizzle crazy tortor. Sed rizzle. Ass pimpin' dolor dapibizzle turpis tempizzle fo shizzle my nizzle. Maurizzle pellentesque its fo rizzle izzle turpis. Get down get down we gonna chung nizzle. Shizzlin dizzle eleifend rhoncizzle break it down. In yo ghetto platea dictumst. Bling bling dapibizzle. Curabitur break yo neck, yall fo, pretizzle eu, go to hizzle dope, own yo' vitae, nunc. Bizzle suscipizzle. Ass semper velit sizzle fo.",
- "url": "http://lorizzle.nl/",
- "name": {
- "first": "Junius",
- "firsti": "J",
- "middle": "Marius",
- "middlei": "M",
- "last": "Koolen",
- "lasti": "K"
- },
- "year": {
- "long": "2013",
- "short": "13"
- },
- "month": {
- "long": "January",
- "short": "Jan",
- "digit": "01"
- },
- "dayofweek": {
- "long": "Sunday",
- "short": "Sun"
- },
- "day": {
- "long": "01",
- "short": "1",
- "ordinal": "st"
- },
- "hour": {
- "long": "06",
- "short": "6",
- "military": "06",
- "ampm": "am"
- },
- "minute": {
- "long": "20",
- "short": "20"
- },
- "seconds": "31"
- },
- "2": {
- "title": "Veggies sunt bona vobis, proinde vos postulo",
- "img": {
- "avatar": {
- "src": "http://placeimg.com/100/100/nature",
- "alt": "Avatar"
- },
- "square": {
- "src": "http://placeimg.com/300/300/tech",
- "alt": "Square"
- },
- "rectangle": {
- "src": "http://placeimg.com/400/300/people",
- "alt": "Rectangle"
- }
- },
- "headline": {
- "short": "Veggies sunt bona vobis, proinde vos",
- "medium": "Postulo esse magis azuki bean burdock brussels sprout quandong komatsun"
- },
- "excerpt": {
- "short": "A fava bean collard greens endive tomatillo lotus root okra winter purslane zucchini parsley spinach artichoke. Brussels sprout pea turnip catsear.",
- "medium": "Bush tomato gumbo potato garbanzo ricebean burdock daikon coriander kale quandong. Bok choy celery leek avocado shallot horseradish aubergine parsley. Bok choy bell pepper kale celery desert raisin kakadu plum bok choy bunya nuts.",
- "long": "Spinach tigernut. Corn cucumber grape black-eyed pea asparagus spinach avocado dulse bunya nuts epazote celery desert raisin celtuce burdock plantain yarrow napa cabbage. Plantain okra seakale endive tigernut pea sprouts asparagus corn chard peanut beet greens groundnut radicchio carrot coriander gumbo gram celtuce. JÃcama nori bamboo shoot collard greens okra radicchio tomato. Catsear mustard corn tigernut celery kale water spinach bok choy."
- },
- "description": "Mung bean squash sorrel taro coriander collard greens gumbo bitterleaf tomato. Taro water chestnut celtuce turnip yarrow celery endive scallion black-eyed pea onion. Aubergine dulse turnip greens mustard salsify garlic soybean parsley bitterleaf desert raisin courgette.",
- "url": "http://veggieipsum.com",
- "name": {
- "first": "Siguror",
- "firsti": "S",
- "middle": "Aron",
- "middlei": "A",
- "last": "Hanigan",
- "lasti": "H"
- },
- "year": {
- "long": "2013",
- "short": "13"
- },
- "month": {
- "long": "February",
- "short": "Feb",
- "digit": "02"
- },
- "dayofweek": {
- "long": "Monday",
- "short": "Mon"
- },
- "day": {
- "long": "10",
- "short": "10",
- "ordinal": "th"
- },
- "hour": {
- "long": "01",
- "short": "1",
- "military": "13",
- "ampm": "pm"
- },
- "minute": {
- "long": "20",
- "short": "20"
- },
- "seconds": "31"
- },
- "3": {
- "title": "Bacon ipsum dolor sit amet turducken strip steak beef ribs shank",
- "img": {
- "avatar": {
- "src": "http://placeimg.com/100/100/tech",
- "alt": "Avatar"
- },
- "square": {
- "src": "http://placeimg.com/300/300/people",
- "alt": "Square"
- },
- "rectangle": {
- "src": "http://placeimg.com/400/300/nature",
- "alt": "Rectangle"
- }
- },
- "headline": {
- "short": "Bacon ipsum dolor sit amet spare rib",
- "medium": "Tongue pancetta short ribs bacon. Kielbasa ball tip cow bresaola, capic"
- },
- "excerpt": {
- "short": "Tail jerky rump shoulder t-bone meatball meatloaf salami. Filet mignon shank t-bone venison, ham hock ribeye drumstick bresaola kielbasa. Frankfurter.",
- "medium": "Doner biltong turducken leberkas. Rump swine pork loin ribeye ball tip meatloaf, pork chop ground round pig pancetta cow biltong brisket. Beef corned beef beef ribs, bacon pork belly sausage meatball boudin doner ham hock. Swine gro.",
- "long": "Und round meatball, bacon pig leberkas corned beef tongue shoulder. Drumstick pork loin prosciutto ball tip shank pancetta spare ribs jowl pastrami. Frankfurter boudin filet mignon ribeye. Pig hamburger strip steak ham turducken prosciutto bresaola ground round pancetta frankfurter jowl. Frankfurter tongue brisket tenderloin, beef ribs pastrami biltong tail bresaola flank. Biltong pork chop beef boudin hamburger bacon. Capicola bresaola sausage."
- },
- "description": "Boudin sausage jerky pastrami ground round salami biltong. Sausage fatback strip steak doner pork loin, pork belly drumstick ham short loin hamburger shankle. Short ribs sirloin rump tri-tip beef biltong. Meatball pig salami, jowl pork loin fatback short loin drumstick andouille.",
- "url": "http://baconipsum.com/",
- "name": {
- "first": "Teun",
- "firsti": "T",
- "middle": "Jodocus",
- "middlei": "J",
- "last": "Richard",
- "lasti": "R"
- },
- "year": {
- "long": "2013",
- "short": "13"
- },
- "month": {
- "long": "March",
- "short": "Mar",
- "digit": "03"
- },
- "dayofweek": {
- "long": "Tuesday",
- "short": "Tue"
- },
- "day": {
- "long": "22",
- "short": "22",
- "ordinal": "nd"
- },
- "hour": {
- "long": "04",
- "short": "4",
- "military": "16",
- "ampm": "pm"
- },
- "minute": {
- "long": "45",
- "short": "45"
- },
- "seconds": "11"
- },
- "4": {
- "title": "Whatever swag accusamus occupy, gentrify butcher tote bag",
- "img": {
- "avatar": {
- "src": "http://placeimg.com/100/100/animals",
- "alt": "Avatar"
- },
- "square": {
- "src": "http://placeimg.com/300/300/arch",
- "alt": "Square"
- },
- "rectangle": {
- "src": "http://placeimg.com/400/300/people/grayscale",
- "alt": "Rectangle"
- }
- },
- "headline": {
- "short": "Nesciunt sunt cillum keytar Pitchfork",
- "medium": "Tote bag mixtape PBR Helvetica scenester forage four loko. Irure Tonx"
- },
- "excerpt": {
- "short": "Golf quis +1, Wes Anderson church-key lo-fi keffiyeh selvage culpa authentic Brooklyn fap chambray. Id synth yr, 3 wolf moon locavore +1 mixtape do.",
- "medium": "Sed single-origin coffee anim eu. Bicycle rights Neutra Truffaut pop-up. Paleo hella irure meh Banksy, Wes Anderson typewriter VHS jean shorts yr. Eiusmod officia banjo Thundercats, odio laborum magna deep v cornhole nostrud kitsch.",
- "long": "Tattooed Williamsburg. Jean shorts proident kogi laboris. Non tote bag pariatur elit slow-carb, Vice irure eu Echo Park ea aliqua chillwave. Cornhole Etsy quinoa Pinterest cardigan. Excepteur quis forage, Blue Bottle keffiyeh velit hoodie direct trade typewriter Etsy. Fingerstache squid non, sriracha drinking vinegar Shoreditch pork belly. Paleo sartorial mollit 3 wolf moon chambray whatever, sed tote bag small batch freegan. Master cleanse."
- },
- "description": "Fanny pack ullamco et veniam semiotics. Shoreditch PBR reprehenderit cliche, magna Tonx aesthetic. Narwhal photo booth DIY aute post-ironic anim. Vice cliche brunch est before they sold out fap, street art Odd Future fashion axe messenger bag nihil Tonx tattooed. Nihil hashtag incididunt, do eu art party Banksy jean shorts four loko typewriter.",
- "url": "http://hipsteripsum.me/",
- "name": {
- "first": "Duane",
- "firsti": "D",
- "middle": "Edvin",
- "middlei": "E",
- "last": "Wilms",
- "lasti": "W"
- },
- "year": {
- "long": "2013",
- "short": "13"
- },
- "month": {
- "long": "April",
- "short": "Apr",
- "digit": "04"
- },
- "dayofweek": {
- "long": "Wednesday",
- "short": "Wed"
- },
- "day": {
- "long": "13",
- "short": "13",
- "ordinal": "th"
- },
- "hour": {
- "long": "10",
- "short": "10",
- "military": "10",
- "ampm": "am"
- },
- "minute": {
- "long": "14",
- "short": "14"
- },
- "seconds": "52"
- },
- "5": {
- "title": "Marshall McLuhan Colbert bump backpack journalist vast wasteland Romenesko CPM",
- "img": {
- "avatar": {
- "src": "http://placeimg.com/100/100/people/grayscale",
- "alt": "Avatar"
- },
- "square": {
- "src": "http://placeimg.com/300/300/animals",
- "alt": "Square"
- },
- "rectangle": {
- "src": "http://placeimg.com/400/300/arch",
- "alt": "Rectangle"
- }
- },
- "headline": {
- "short": "Blog meme masthead DocumentCloud Fou",
- "medium": "Square tabloid Andy Carvin stupid commenters, Nick Denton mathewi semip"
- },
- "excerpt": {
- "short": "I love the Weather & Opera section Groupon copyright in the slot, Journal Register open newsroom analytics future totally blowing up on Twitter AOL.",
- "medium": "CTR mthomps Flipboard do what you do best and link to the rest Buttry media bias Journal Register RT, newspaper strike do what you do best and link to the rest semipermeable learnings cognitive surplus mathewi, Encyclo Google News.",
- "long": "Pulse mathewi Project Thunderdome digital first. HuffPo social media optimization try PR dying the notion of the public monetization data visualization audience atomization overcome community, libel lawyer twitterati should isn't a business model fair use innovation Facebook AOL, Walter Cronkite died for your sins horse-race coverage crowdfunding Patch but what's the business model rubber cement horse-race coverage. Lucius Nieman content farm."
- },
- "description": "Like button audience atomization overcome Colbert bump Free Darko inverted pyramid we will make them pay, digital circulation strategy Like button totally blowing up on Twitter church of the savvy. Pictures of Goats section open source discuss Frontline analog thinking filters paidContent.",
- "url": "http://www.niemanlab.org/journo-ipsum/",
- "name": {
- "first": "Frans",
- "firsti": "F",
- "middle": "Fabius",
- "middlei": "F",
- "last": "Keegan",
- "lasti": "K"
- },
- "year": {
- "long": "2013",
- "short": "13"
- },
- "month": {
- "long": "May",
- "short": "May",
- "digit": "05"
- },
- "dayofweek": {
- "long": "Thursday",
- "short": "Thu"
- },
- "day": {
- "long": "26",
- "short": "26",
- "ordinal": "th"
- },
- "hour": {
- "long": "06",
- "short": "6",
- "military": "18",
- "ampm": "pm"
- },
- "minute": {
- "long": "37",
- "short": "37"
- },
- "seconds": "24"
- },
- "6": {
- "title": "Thunder, thunder, thundercats, Ho!",
- "img": {
- "avatar": {
- "src": "http://placeimg.com/100/100/arch",
- "alt": "Avatar"
- },
- "square": {
- "src": "http://placeimg.com/300/300/animals",
- "alt": "Square"
- },
- "rectangle": {
- "src": "http://placeimg.com/400/300/people/grayscale",
- "alt": "Rectangle"
- }
- },
- "headline": {
- "short": "Hong Kong Phooey, number one super g",
- "medium": "Hong Kong Phooey, quicker than the human eye. He's got style, a groovy"
- },
- "excerpt": {
- "short": "Style, and a car that just won't stop. When the going gets tough, he's really rough, with a Hong Kong Phooey chop (Hi-Ya!). Hong Kong Phooey, number.",
- "medium": "One super guy. Hong Kong Phooey, quicker than the human eye. Hong Kong Phooey, he's fan-riffic! One for all and all for one, Muskehounds are always ready. One for all and all for one, helping everybody. One for all and all for one.",
- "long": "It's a pretty story. Sharing everything with fun, that's the way to be. One for all and all for one, Muskehounds are always ready. One for all and all for one, helping everybody. One for all and all for one, can sound pretty corny. If you've got a problem chum, think how it could be. This is my boss, Jonathan Hart, a self-made millionaire, he's quite a guy. This is Mrs H., she's gorgeous, she's one lady who knows how to take care of herself."
- },
- "description": "Beats all you've ever saw, been in trouble with the law since the day they was born. Straight'nin' the curve, flat'nin' the hills. Someday the mountain might get 'em, but the law never will. Makin' their way, the only way they know how, that's just a little bit more than the law will allow. Just good ol' boys, wouldn't change if they could, fightin' the system like a true modern day Robin Hood.",
- "url": "http://www.malevole.com/mv/misc/text/",
- "name": {
- "first": "Fergus",
- "firsti": "F",
- "middle": "Jon",
- "middlei": "J",
- "last": "Althuis",
- "lasti": "A"
- },
- "year": {
- "long": "2013",
- "short": "13"
- },
- "month": {
- "long": "June",
- "short": "Jun",
- "digit": "06"
- },
- "dayofweek": {
- "long": "Friday",
- "short": "Fri"
- },
- "day": {
- "long": "08",
- "short": "8",
- "ordinal": "th"
- },
- "hour": {
- "long": "11",
- "short": "11",
- "military": "23",
- "ampm": "pm"
- },
- "minute": {
- "long": "37",
- "short": "37"
- },
- "seconds": "33"
- },
- "7": {
- "title": "Yeah, I like animals better than people sometimes",
- "img": {
- "avatar": {
- "src": "http://placeimg.com/100/100/any",
- "alt": "Avatar"
- },
- "square": {
- "src": "http://placeimg.com/300/300/any",
- "alt": "Square"
- },
- "rectangle": {
- "src": "http://placeimg.com/400/300/any",
- "alt": "Rectangle"
- }
- },
- "headline": {
- "short": "Now that we know who you are, I know",
- "medium": "Who I am. I'm not a mistake! It all makes sense! In a comic, you know"
- },
- "excerpt": {
- "short": "How you can tell who the arch-villain's going to be? He's the exact opposite of the hero. And most times they're friends, like you and me! I should've known way back when... You know why, David? Because of the kids. They called me.",
- "medium": "The lysine contingency - it's intended to prevent the spread of the animals is case they ever got off the island. Dr. Wu inserted a gene that makes a single faulty enzyme in protein metabolism. The animals can't manufacture the amin.",
- "long": "Do you see any Teletubbies in here? Do you see a slender plastic tag clipped to my shirt with my name printed on it? Do you see a little Asian child with a blank expression on his face sitting outside on a mechanical helicopter that shakes when you put quarters in it? No? Well, that's what you see at a toy store. And you must think you're in a toy store, because you're here shopping for an infant named Jeb. Acid lysine. Unless they're."
- },
- "description": "Especially dogs. Dogs are the best. Every time you come home, they act like they haven't seen you in a year. And the good thing about dogs... is they got different dogs for different people. Like pit bulls. The dog of dogs. Pit bull can be the right man's best friend... or the wrong man's worst enemy. You going to give me a dog for a pet, give me a pit bull.",
- "url": "http://slipsum.com/lite/",
- "name": {
- "first": "Bertil",
- "firsti": "B",
- "middle": "Pier",
- "middlei": "P",
- "last": "Aaij",
- "lasti": "A"
- },
- "year": {
- "long": "2013",
- "short": "13"
- },
- "month": {
- "long": "July",
- "short": "Jul",
- "digit": "07"
- },
- "dayofweek": {
- "long": "Saturday",
- "short": "Sat"
- },
- "day": {
- "long": "22",
- "short": "22",
- "ordinal": "nd"
- },
- "hour": {
- "long": "11",
- "short": "11",
- "military": "11",
- "ampm": "am"
- },
- "minute": {
- "long": "12",
- "short": "12"
- },
- "seconds": "47"
- },
- "8": {
- "title": "Webtwo ipsum dolor sit amet, eskobo chumby doostang bebo",
- "img": {
- "avatar": {
- "src": "http://placeimg.com/100/100/any/grayscale",
- "alt": "Avatar"
- },
- "square": {
- "src": "http://placeimg.com/300/300/any/grayscale",
- "alt": "Square"
- },
- "rectangle": {
- "src": "http://placeimg.com/400/300/any/grayscale",
- "alt": "Rectangle"
- }
- },
- "headline": {
- "short": "Webtwo ipsum dolor sit amet, eskobo",
- "medium": "Chumby doostang bebo. Wakoopa oooj geni zoho loopt eskobo sifteo chart"
- },
- "excerpt": {
- "short": "Dropio, chumby waze dopplr plugg oooj yammer jibjab imvu yuntaa knewton, mobly trulia airbnb bitly chegg tivo empressr knewton. Plickers spock voxy.",
- "medium": "Zooomr kippt voxy zinch appjet napster trulia, zappos wufoo zapier spotify mzinga jaiku fleck, disqus lijit voxy voki yoono. Dogster elgg jibjab xobni kazaa bebo udemy sifteo kiko, elgg knewton skype mog octopart zoodles kazaa udem.",
- "long": "Appjet spock handango empressr lijit palantir weebly dropio jibjab revver kaboodle spotify orkut mobly chegg akismet, handango ebay woopra revver joukuu kosmix unigo oooooc wufoo zanga kno zinch spock knewton. Balihoo greplin bebo squidoo skype kaboodle meebo disqus joost gooru, zlio tumblr edmodo palantir eskobo shopify kiko gsnap. Greplin balihoo chartly plugg imeem diigo trulia plickers qeyno wikia akismet, palantir grockit prezi jabber zo."
- },
- "description": "Wufoo diigo grockit sifteo divvyshot, unigo zooomr revver. Edmodo appjet joyent skype bubbli jajah zoodles joukuu xobni hojoki edmodo appjet, mozy mzinga akismet yuntaa joost yuntaa geni tivo insala yoono chumby, grockit sococo loopt zanga etsy cloudera koofers empressr jiglu blippy. Omgpop lanyrd joukuu sococo zimbra airbnb movity jibjab, foodzie.",
- "url": "http://web20ipsum.com",
- "name": {
- "first": "Freyr",
- "firsti": "F",
- "middle": "Ninian",
- "middlei": "N",
- "last": "Hines",
- "lasti": "H"
- },
- "year": {
- "long": "2013",
- "short": "13"
- },
- "month": {
- "long": "August",
- "short": "Aug",
- "digit": "08"
- },
- "dayofweek": {
- "long": "Sunday",
- "short": "Sun"
- },
- "day": {
- "long": "31",
- "short": "31",
- "ordinal": "st"
- },
- "hour": {
- "long": "03",
- "short": "3",
- "military": "15",
- "ampm": "pm"
- },
- "minute": {
- "long": "42",
- "short": "42"
- },
- "seconds": "21"
- },
- "9": {
- "title": "Rebel Mission to Ord Mantell",
- "img": {
- "avatar": {
- "src": "http://placeimg.com/100/100/any/sepia",
- "alt": "Avatar"
- },
- "square": {
- "src": "http://placeimg.com/300/300/any/sepia",
- "alt": "Square"
- },
- "rectangle": {
- "src": "http://placeimg.com/400/300/any/sepia",
- "alt": "Rectangle"
- }
- },
- "headline": {
- "short": "All right. Well, take care of yourself, Han",
- "medium": "You don't believe in the Force, do you? The Force is strong with this one"
- },
- "excerpt": {
- "short": "I'm trying not to, kid. I find your lack of faith disturbing. You are a part of the Rebel Alliance and a traitor! Take her away! I want to come with.",
- "medium": "I'm surprised you had the courage to take the responsibility yourself. Don't be too proud of this technological terror you've constructed. The ability to destroy a planet is insignificant next to the power of the Force. You don't be.",
- "long": "A tremor in the Force. The last time I felt it was in the presence of my old master. You don't believe in the Force, do you? I have traced the Rebel spies to her. Now she is my only link to finding their secret base. A tremor in the Force. The last time I felt it was in the presence of my old master. I'm trying not to, kid. The more you tighten your grip, Tarkin, the more star systems will slip through your fingers. There's nothing for me here."
- },
- "description": "I find your lack of faith disturbing. A tremor in the Force. The last time I felt it was in the presence of my old master. Don't act so surprised, Your Highness. You weren't on any mercy mission this time. Several transmissions were beamed to this ship by Rebel spies. I want to know what happened to the plans they sent you. The plans you refer to will soon be back in our hands.",
- "url": "http://chrisvalleskey.com/fillerama/",
- "name": {
- "first": "Jacobus",
- "firsti": "J",
- "middle": "Domitianus",
- "middlei": "D",
- "last": "Sneiders",
- "lasti": "S"
- },
- "year": {
- "long": "2013",
- "short": "13"
- },
- "month": {
- "long": "September",
- "short": "Sep",
- "digit": "09"
- },
- "dayofweek": {
- "long": "Monday",
- "short": "Mon"
- },
- "day": {
- "long": "04",
- "short": "4",
- "ordinal": "th"
- },
- "hour": {
- "long": "09",
- "short": "9",
- "military": "09",
- "ampm": "am"
- },
- "minute": {
- "long": "04",
- "short": "4"
- },
- "seconds": "37"
- },
- "10": {
- "title": "Help, help, I'm being repressed!",
- "img": {
- "avatar": {
- "src": "http://placeimg.com/100/100/tech/grayscale",
- "alt": "Avatar"
- },
- "square": {
- "src": "http://placeimg.com/300/300/nature/grayscale",
- "alt": "Square"
- },
- "rectangle": {
- "src": "http://placeimg.com/400/300/arch/grayscale",
- "alt": "Rectangle"
- }
- },
- "headline": {
- "short": "The swallow may fly south with the sun",
- "medium": "On second thoughts, let's not go there. It is a silly place. You don't"
- },
- "excerpt": {
- "short": "The swallow may fly south with the sun, and the house martin or the plover may seek warmer climes in winter, yet these are not strangers to our land.",
- "medium": "The Knights Who Say Ni demand a sacrifice! Found them? In Mercia?! The coconut's tropical! Where'd you get the coconuts? Why do you think that she is a witch? I am your king. You don't vote for kings. But you are dressed as one. Oh, ow!",
- "long": "Well, I didn't vote for you. Burn her! Be quiet! He hasn't got shit all over him. Where'd you get the coconuts? The swallow may fly south with the sun, and the house martin or the plover may seek warmer climes in winter, yet these are not strangers to our land. No! Yes, yes. A bit. But she's got a wart. Shut up! Will you shut up?! I have to push the pram a lot. Now, look here, my good man. Frighten us, English pig-dogs! Go and boil your bottoms."
- },
- "description": "The Knights Who Say Ni demand a sacrifice! …Are you suggesting that coconuts migrate? Knights of Ni, we are but simple travelers who seek the enchanter who lives beyond these woods. You don't frighten us, English pig-dogs! Go and boil your bottoms, sons of a silly person! I blow my nose at you, so-called Ah-thoor Keeng, you and all your silly English K-n-n-n-n-n-n-n-niggits!",
- "url": "http://chrisvalleskey.com/fillerama/",
- "name": {
- "first": "Plinius",
- "firsti": "P",
- "middle": "Varinius",
- "middlei": "V",
- "last": "Sloane",
- "lasti": "S"
- },
- "year": {
- "long": "2013",
- "short": "13"
- },
- "month": {
- "long": "October",
- "short": "Oct",
- "digit": "10"
- },
- "dayofweek": {
- "long": "Tuesday",
- "short": "Tue"
- },
- "day": {
- "long": "25",
- "short": "25",
- "ordinal": "th"
- },
- "hour": {
- "long": "03",
- "short": "3",
- "military": "03",
- "ampm": "am"
- },
- "minute": {
- "long": "51",
- "short": "51"
- },
- "second": "19"
- },
- "11": {
- "title": "Danish danish candy canes bonbon cheesecake danish marzipan",
- "img": {
- "avatar": {
- "src": "http://placeimg.com/100/100/tech/sepia",
- "alt": "Avatar"
- },
- "square": {
- "src": "http://placeimg.com/300/300/animals/sepia",
- "alt": "Square"
- },
- "rectangle": {
- "src": "http://placeimg.com/400/300/arch/sepia",
- "alt": "Rectangle"
- }
- },
- "headline": {
- "short": "Carrot cake fruitcake dessert apple",
- "medium": "Pie powder lemon drops sesame snaps cake brownie. Biscuit ice cream gin"
- },
- "excerpt": {
- "short": "Bread cotton candy marzipan. Baker too go gingerbread topping cupcake donut. Fruitcake marzipan bear claw tart toffee candy cheesecake. Lemon drops.",
- "medium": "Cupcake chupa chups pudding gummies. Unerdwear.com cupcake candy soufflé sesame snaps macaroon sesame snaps. Tart dragée muffin. Sweet roll gummi bears caramels fruitcake candy cake. Cotton candy carrot cake tart cotton candy. Jelly.",
- "long": "Gingerbread candy icing pastry cake bonbon fruitcake donut. Powder liquorice dessert tart croissant cake. Dessert chocolate cake sweet roll candy candy sesame snaps tiramisu ice cream. Candy candy canes marzipan biscuit cupcake pie pudding. Donut cotton candy muffin. Pastry bear claw icing halvah. Gingerbread cotton candy sweet roll toffee chocolate jujubes. Wafer jujubes danish ice cream lemon drops wafer. Sesame snaps cupcake gummies browni."
- },
- "description": "Sugar plum wafer soufflé ice cream. Wafer topping biscuit pie gummi bears topping. Gummies toffee powder applicake oat cake cookie. Bear claw candy tootsie roll fruitcake danish applicake candy canes macaroon. Liquorice tiramisu danish cotton candy gummies. Tiramisu dessert gummi bears macaroon sweet roll jelly-o gummi bears marzipan.",
- "url": "http://cupcakeipsum.com/",
- "name": {
- "first": "Matthias",
- "firsti": "M",
- "middle": "Brady",
- "middlei": "B",
- "last": "Macguinness",
- "lasti": "M"
- },
- "year": {
- "long": "2013",
- "short": "13"
- },
- "month": {
- "long": "November",
- "short": "Nov",
- "digit": "11"
- },
- "dayofweek": {
- "long": "Wednesday",
- "short": "Wed"
- },
- "day": {
- "long": "19",
- "short": "19",
- "ordinal": "th"
- },
- "hour": {
- "long": "11",
- "short": "11",
- "military": "23",
- "ampm": "pm"
- },
- "minute": {
- "long": "55",
- "short": "55"
- },
- "seconds": "12"
- },
- "12": {
- "title": "Cottage cheese brie lancashire. Boursin when the cheese comes out.",
- "img": {
- "avatar": {
- "src": "http://placeimg.com/100/100/people/sepia",
- "alt": "Avatar"
- },
- "square": {
- "src": "http://placeimg.com/300/300/people/sepia",
- "alt": "Square"
- },
- "rectangle": {
- "src": "http://placeimg.com/400/300/people/sepia",
- "alt": "Rectangle"
- }
- },
- "headline": {
- "short": "Cauliflower cheese cream cheese baby",
- "medium": "Lancashire cheesy feet rubber cheese cheese and wine gouda the big chee"
- },
- "excerpt": {
- "short": "Queso fromage. Taleggio boursin bavarian bergkase cream cheese when the cheese comes out everybody's happy port-salut halloumi pecorino. Caerphilly cut the cheese manchego camembert de normandie goat melted cheese cheese and biscuit.",
- "medium": "Pecorino queso lancashire. Manchego lancashire cheesy feet emmental babybel cheese strings dolcelatte bavarian bergkase. Ricotta cheese slices cheesy grin cow cheesecake smelly cheese mascarpone lancashire. Cow say cheese babybel do.",
- "long": "Cheesy grin macaroni cheese airedale. Fromage frais airedale cheese and wine brie cow swiss swiss mozzarella. Emmental cheese triangles edam rubber cheese pepper jack ricotta airedale airedale. Brie parmesan smelly cheese cheese strings stinking bishop cheese strings taleggio. Bocconcini blue castello gouda. Everyone loves caerphilly rubber cheese halloumi smelly cheese melted cheese melted cheese bavarian bergkase. Rubber cheese ricotta emm."
- },
- "description": "Queso caerphilly cheesecake. Parmesan chalk and cheese port-salut port-salut babybel cottage cheese cheesy grin pepper jack. Croque monsieur paneer st. agur blue cheese emmental airedale monterey jack bavarian bergkase cheese triangles. Halloumi parmesan.",
- "url": "http://www.cheeseipsum.co.uk/",
- "name": {
- "first": "Aquila",
- "firsti": "A",
- "middle": "Gaius",
- "middlei": "G",
- "last": "Achterkamp",
- "lasti": "A"
- },
- "year": {
- "long": "2013",
- "short": "13"
- },
- "month": {
- "long": "December",
- "short": "Dec",
- "digit": "12"
- },
- "dayofweek": {
- "long": "Thursday",
- "short": "Thu"
- },
- "day": {
- "long": "28",
- "short": "28",
- "ordinal": "th"
- },
- "hour": {
- "long": "08",
- "short": "8",
- "military": "08",
- "ampm": "am"
- },
- "minute": {
- "long": "34",
- "short": "34"
- },
- "seconds": "56"
- }
-}
\ No newline at end of file
diff --git a/source/_data/annotations.js b/source/_data/annotations.js
deleted file mode 100644
index fc8209531..000000000
--- a/source/_data/annotations.js
+++ /dev/null
@@ -1,109 +0,0 @@
-var comments = {
-"comments" : [
- {
- "el": "header[role=banner]",
- "title" : "Masthead",
- "comment": "The main header of the site doesn't take up too much screen real estate in order to keep the focus on the core content. It's using a linear CSS gradient instead of a background image to give greater design flexibility and reduce HTTP requests."
- },
- {
- "el": ".logo",
- "title" : "Logo",
- "comment": "The logo image is an SVG file, which ensures that the logo displays crisply even on high resolution displays. A PNG fallback is provided for browsers that don't support SVG images.Further reading: Optimizing Web Experiences for High Resolution Screens
"
- },
- {
- "el": "#nav",
- "title" : "Navigation",
- "comment": "Navigation for adaptive web experiences can be tricky. Top navigations are typical on desktop sites, but mobile screen sizes don't give us the luxury of space. We're dealing with this situation by creating a simple menu anchor that toggles the main navigation on small screens. This is just one method. Bagcheck and Contents Magazine add an anchor in the header that jumps users to the navigation which is placed in the footer. This solution works well because it doesn't require any Javascript in order to work. Other methods exist too. For example, ESPN's mobile navigation overlays the main content of the page.
The nav is only hidden when a certain level of javascript is supported in order to ensure that users with little/poor javascript support can still access the navigation. Once the screen size is large enough to accommodate the nav, we show the main navigation links and hide the menu anchor.
See also: Responsive Navigation Patterns
"
- },
- {
- "el": "input[type=search]",
- "title" : "Search",
- "comment": "Search is an incredibly important priority, especially for mobile. It is a great idea to give users the ability to jump directly to what they are looking for without forcing them to wade through your site's navigation. Check out the Burton and Yelp mobile sites for great examples of experiences that prioritize search.
We're also using the HTML5 search input type , which is great for mobile devices that can bring up the appropriate virtual keyboard for many smartphones. And like the main header navigation, we're hiding the search form on small screens to save space. Clicking the search anchor toggles the form.
"
- },
- {
- "el": "#product-img nav",
- "title" : "Image Navigation",
- "comment": "Instead of providing bullets, pagination or text-based image navigation, it's good e-commerce practice to show a preview of the various product views. By default the images simply link through to their larger counterparts, and if adequate javascript support exists, the images get loaded into the main image container.
"
- },
- {
- "el": "#img-container",
- "title" : "Product Image",
- "comment": "The product image is the focal point of the page for good reason. It's typically what the user is there to see. The default markup simply includes the main product image, but that gets replaced with an image gallery if adequate javascript support exists.
We're also using Modernizr to detect if the browser supports touch events and if it does, we load in an excellent lightweight script called Swipe.js to create a touch-friendly image carousel. This allows users to swipe between product photos in a touch-friendly way. Because gestures are invisible, they might get overlooked, but clicking on the image navigation thumbnails animates the slideshow and hints to the user gestural interaction is available.
"
- },
- {
- "el": ".product-main header",
- "title" : "Product Overview",
- "comment": "The product overview appears in the markup before the image container in order to provide the user with the product name, how much it costs and how popular it is. Providing this information as soon as possible can help the user determine whether or not this is the product they're looking for without having to wait for the rest of the page to load."
- },
- {
- "el": ".star",
- "title" : "Rating Stars",
- "comment": "We're using HTML special characters to display the product rating stars. We're using HTML characters instead of images to reduce the amount of images we're requesting and also maintaining crispness on high resolution screens. Not every device supports HTML special characters (Blackberry <=5.0 for example), but support is strong enough and the benefits are many.
See also: Optimizing Web Experiences for High Resolution Screens
"
- },
- {
- "el": ".review-count",
- "title" : "Review Count",
- "comment": "This is a simple anchor link that points to the review section of the page. This may seem like a small detail, but consider a mobile use case. Users can be in stores looking at the physical product, and 79% of smartphone consumers use their phones to help with shopping . They might be interested in buying in-store but turn to their phones to verify its popularity and quality. Making it easy for uses to read product reviews on small screens can help drive more sales, both online and offline.While not incorporated yet, it would be easy to load the reviews for small screens on demand, thereby saving a step.
"
- },
- {
- "el": ".qty-field",
- "title" : "Quantity Field",
- "comment": "We're using the HTML5 number input type, which brings up the appropriate virtual keyboard for many mobile browsers. To increase usability, the input labels are using the \"for\" attribute, which focuses the cursor in the form field when clicked. However, iOS doesn't honor \"for\" default functionality, so we're adding \"cursor: pointer\" to the labels to get Mobile Safari to behave properly."
- },
- {
- "el": ".size-field",
- "title" : "Size Dropdown",
- "comment": "We're using a basic select menu to choose the size, which is commonplace for any e-commerce site. Select menus can be especially difficult to style and can vary greatly in behavior between platforms. Keep this in mind when creating "
- },
- {
- "el": ".submit-form",
- "title" : "Add to Cart button",
- "comment": "The add to cart button is the primary user action on the page. That's why it's large and in charge and very prominently placed on the page. The button is using box-shadows and rounded corners to create an attractive button that will hopefully get plenty of clicks."
- },
- {
- "el": ".share-btn",
- "title" : "Share button",
- "comment": "It seems like everything has a share button on it these days. And for good reason. Sharing content and products on social networks can be a great way to increase exposure. However, tacking on tons of social widgets adds a lot of overhead, which can be extremely detrimental to the site's performance . Including a simple share link that loads the heavy widgets only when requested is one way to keep pages fast and social. Check out Target's mobile site for an example of a site that isolates share functionality in a separate page fragment."
- },
- {
- "el": ".find-nearby",
- "title" : "Geolocation",
- "comment": "One of the most important aspects of the mobile context is location. We carry our mobile devices with us everywhere. Using geolocation we can tap into the user's location to deliver an enhanced experience. In this case we're giving them a chance to check out what stores nearby might sell this product. The geolocation API is well supported in mobile browsers as well as desktop browsers. We're using Modernizr to detect for geolocation support and if its support, we ask the user for their latitude and longitude. If the browser does not support geolocation, the default experience could take the user to a simple web form asking for a ZIP code. Check out Tiffany's mobile site store locator for an example of geolocation in action."
- },
- {
- "el": "#p-desc",
- "title" : "Product Description",
- "comment": "A product description is an essential part of any e-commerce experience. Descriptions offer tangible details that inform and persuade, and the tone can help support the physical product. Provide relevant information clearly and concisely. Check out the Android design guide for some tips on how to keep copy short and extremely effective."
- },
- {
- "el": "#related-products",
- "title" : "Related Products",
- "comment": "Related products are obviously an important aspect of e-commerce sites as they drive awareness of other similar products and can lead to more purchases. However, including a lot of auxiliary content can bog down the site performance, which is especially crucial on mobile. On slow connections, the presence of this extra content might slow down the user experience enough that the user gives up.
We're handling the issue by conditionally loading the auxiliary content.
By default, the related item link simply clicks through to an HTML fragment containing the related products. The content is still accessible, even on devices with poor or no javascript support. When the user clicks on the related products on small screens, the content gets dynamically loaded inline and the link becomes a toggler for the content. Once the experience reaches a certain width breakpoint, we then load in the content. However, screen size != fast connection, so we should keep our eyes on the emerging navigator.connection to better gauge real connection speed.
See also: An Ajax-Include Pattern for Modular Content
All these wonderful t-shirts are retired/rejected Busted Tees , graciously donated to this demo by Will Schneider .
"
- },
- {
- "el": "#reviews",
- "title" : "Reviews",
- "comment": "Reviews are incredibly influential on a user's decision to purchase a product or pass on it. Also, because we carry our mobile phones with us everywhere, we use them to inform our in-store purchased. 70% of smartphone owners use them while in brick and mortar stores , and often times they're looking for reviews to give them the green light to buy.Only the primary product content gets loaded by default, and the reviews exist as their own separate HTML fragment. The reviews remain accessible and don't get loaded until we conditionally load them when the screen is large enough or small screen users click the reviews link. This keeps things nimble while still providing access to the valuable reviews.
See also: An Ajax-Include Pattern for Modular Content
"
- },
- {
- "el": "#p-reviews .btn",
- "title" : "More Reviews Button",
- "comment": "All reviews aren't loaded by default in order to keep the site performance in top shape. Ultimately, this button could be replaced with a lazy-loading solution to remove the need for the button.
"
- },
- {
- "el": ".footer .nav",
- "title" : "Footer Nav",
- "comment": "Repetition of elements isn't a bad thing, especially with potentially long scrolling pages on mobile. Providing access to the main site navigation is a good way for the user to jump off to another section and avoids leaving them with a dead end. Also, some mobile sites like Bagcheck and Contents Magazine keep the primary navigation at the footer and simply link to it with an anchor in the header. That way the nav stays accessible but the focus stays on on the core page content.
"
- },
- {
- "el": ".tel",
- "title" : "Customer Service Number",
- "comment": "We sometimes forget that mobile phones can make phone calls . Whether a user is having trouble with the site or simply has some questions about the product he's about to buy, it's a smart decision to provide a clickable phone number to facilitate that call. What happens when desktops and other non-phone devices click on the tel link ? Well, some devices (like iPads and other tablets) ask the user if they'd like to add the number to their contact list, other desktops open 3rd party VoIP programs like Skype, and others simply give an error message.
"
- },
- {
- "el": ".top",
- "title" : "Back to Top Link",
- "comment": "Back to top links are simple yet underrated. They provide users with an easy way back up to the top of the page with minimum effort. This is especially helpful on mobile devices, which tend to have long scrolling pages.
We're using an HTML character for the back to top arrow in order to reduce image elements and keep things looking crisp on high res displays.
"
- }
-]
-};
\ No newline at end of file
diff --git a/source/_patternlab-files/README b/source/_patternlab-files/README
deleted file mode 100644
index 14208f4c9..000000000
--- a/source/_patternlab-files/README
+++ /dev/null
@@ -1 +0,0 @@
-There should be no reason to touch these files in day-to-day use.
\ No newline at end of file
diff --git a/source/_patternlab-files/index.mustache b/source/_patternlab-files/index.mustache
deleted file mode 100644
index f8d3709be..000000000
--- a/source/_patternlab-files/index.mustache
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
- Pattern Lab
-
-
-
-
-
-
-
->
-
-
-
-
-
-
-
-
-
-
- {{> patternPaths }}
- {{> viewAllPaths }}
-
- {{> websockets }}
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/_patternlab-files/partials/ishControls.mustache b/source/_patternlab-files/partials/ishControls.mustache
deleted file mode 100644
index c2947f625..000000000
--- a/source/_patternlab-files/partials/ishControls.mustache
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/source/_patternlab-files/partials/patternNav.mustache b/source/_patternlab-files/partials/patternNav.mustache
deleted file mode 100644
index 3a60f2ab9..000000000
--- a/source/_patternlab-files/partials/patternNav.mustache
+++ /dev/null
@@ -1,17 +0,0 @@
-
- {{# buckets }}
- {{ bucketNameUC }}
- {{# navItems }}
- {{ sectionNameUC }}
- {{# navSubItems }}
- {{ patternName }}
- {{/ navSubItems }}
-
- {{/ navItems }}
- {{# patternItems }}
- {{ patternName }}
- {{/ patternItems }}
-
- {{/ buckets }}
- All
-
diff --git a/source/_patternlab-files/partials/patternPaths.mustache b/source/_patternlab-files/partials/patternPaths.mustache
deleted file mode 100644
index 3b8562337..000000000
--- a/source/_patternlab-files/partials/patternPaths.mustache
+++ /dev/null
@@ -1,3 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patternlab-files/partials/viewAllPaths.mustache b/source/_patternlab-files/partials/viewAllPaths.mustache
deleted file mode 100644
index b0e044d97..000000000
--- a/source/_patternlab-files/partials/viewAllPaths.mustache
+++ /dev/null
@@ -1,3 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patternlab-files/partials/websockets.mustache b/source/_patternlab-files/partials/websockets.mustache
deleted file mode 100644
index 139a9b254..000000000
--- a/source/_patternlab-files/partials/websockets.mustache
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/source/_patternlab-files/pattern-header-footer/README b/source/_patternlab-files/pattern-header-footer/README
deleted file mode 100644
index 6c5a981ab..000000000
--- a/source/_patternlab-files/pattern-header-footer/README
+++ /dev/null
@@ -1 +0,0 @@
-This is not a real pattern. It's simply the header and footer that patterns get sandwiched between when they're processed by the builder.
\ No newline at end of file
diff --git a/source/_patternlab-files/pattern-header-footer/footer.html b/source/_patternlab-files/pattern-header-footer/footer.html
deleted file mode 100644
index ddc55618d..000000000
--- a/source/_patternlab-files/pattern-header-footer/footer.html
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/_patternlab-files/pattern-header-footer/header.html b/source/_patternlab-files/pattern-header-footer/header.html
deleted file mode 100644
index 54a44f354..000000000
--- a/source/_patternlab-files/pattern-header-footer/header.html
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
- Pattern Lab Pattern
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/_patternlab-files/styleguide.mustache b/source/_patternlab-files/styleguide.mustache
deleted file mode 100644
index caf37dd93..000000000
--- a/source/_patternlab-files/styleguide.mustache
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
- Pattern Lab Style Guide
-
-
-
-
-
-
-
-
-
-
-
-
- {{# partials }}
-
-
-
- {{{ patternPartial }}}
-
- {{# patternLineageExists }}
-
- {{/ patternLineageExists }}
-
HTML
-
-
- {{{ patternCode }}}
-
-
- {{# patternCSSExists }}
-
CSS
-
-
- {{ patternCSS }}
-
-
- {{/ patternCSSExists }}
-
-
-
- {{/ partials }}
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/_patternlab-files/viewall.mustache b/source/_patternlab-files/viewall.mustache
deleted file mode 100644
index 63b152d43..000000000
--- a/source/_patternlab-files/viewall.mustache
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
- Pattern Lab Sub-type Style Guide
-
-
-
-
-
-
-
-
-
-
-
-
- {{# partials }}
-
-
-
- {{{ patternPartial }}}
-
- {{# patternLineageExists }}
-
- {{/ patternLineageExists }}
-
HTML
-
-
- {{{ patternCode }}}
-
-
- {{# patternCSSExists }}
-
CSS
-
-
- {{ patternCSS }}
-
-
- {{/ patternCSSExists }}
-
-
-
- {{/ partials }}
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/00-global/00-colors.mustache b/source/_patterns/00-atoms/00-global/00-colors.mustache
deleted file mode 100644
index 7f2653f8d..000000000
--- a/source/_patterns/00-atoms/00-global/00-colors.mustache
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
- #ff0000
-
-
-
- #00ff00
-
-
-
- #0000ff
-
-
-
- #ffff00
-
-
-
- #00ffff
-
-
-
- #ff00ff
-
-
-
- #ffffff
-
-
-
- #808080
-
-
-
- #000000
-
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/00-global/01-fonts.mustache b/source/_patterns/00-atoms/00-global/01-fonts.mustache
deleted file mode 100644
index 26b4b7bb5..000000000
--- a/source/_patterns/00-atoms/00-global/01-fonts.mustache
+++ /dev/null
@@ -1,6 +0,0 @@
-Primary font: "HelveticaNeue", "Helvetica", "Arial", sans-serif;
-Primary font italic: "HelveticaNeue", "Helvetica", "Arial", sans-serif;
-Primary font bold: "HelveticaNeue", "Helvetica", "Arial", sans-serif;
-Secondary font: Georgia, Times, "Times New Roman", serif;
-Secondary font italic: Georgia, Times, "Times New Roman", serif;
-Secondary font bold: Georgia, Times, "Times New Roman", serif;
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/00-global/02-animations.mustache b/source/_patterns/00-atoms/00-global/02-animations.mustache
deleted file mode 100644
index 7d3074575..000000000
--- a/source/_patterns/00-atoms/00-global/02-animations.mustache
+++ /dev/null
@@ -1,3 +0,0 @@
-Fade: Duration: 0.3s Easing: ease-out (Hover to see effect)
-
-
Movement: Duration: 0.8s Easing: ease-in-out; (Hover to see effect)
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/00-global/03-visibility.mustache b/source/_patterns/00-atoms/00-global/03-visibility.mustache
deleted file mode 100644
index 13e602122..000000000
--- a/source/_patterns/00-atoms/00-global/03-visibility.mustache
+++ /dev/null
@@ -1,11 +0,0 @@
-This text is hidden on smaller screens
-
-This text is only visible on smaller screens
-
-This text is hidden on medium screens only
-
-This text is only visible on medium screens
-
-This text is hidden on large screens
-
-This text is only visible on large screens
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/01-text/00-headings.mustache b/source/_patterns/00-atoms/01-text/00-headings.mustache
deleted file mode 100644
index 43f648c7f..000000000
--- a/source/_patterns/00-atoms/01-text/00-headings.mustache
+++ /dev/null
@@ -1,6 +0,0 @@
-Heading Level 1
-Heading Level 2
-Heading Level 3
-Heading Level 4
-Heading Level 5
-Heading Level 6
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/01-text/01-subheadings.mustache b/source/_patterns/00-atoms/01-text/01-subheadings.mustache
deleted file mode 100644
index 367c09a82..000000000
--- a/source/_patterns/00-atoms/01-text/01-subheadings.mustache
+++ /dev/null
@@ -1,6 +0,0 @@
-Subheading Level 1
-Subheading Level 2
-Subheading Level 3
-Subheading Level 4
-Subheading Level 5
-Subheading Level 6
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/01-text/02-headings-with-links.mustache b/source/_patterns/00-atoms/01-text/02-headings-with-links.mustache
deleted file mode 100644
index 9540d4c23..000000000
--- a/source/_patterns/00-atoms/01-text/02-headings-with-links.mustache
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/01-text/03-paragraph.mustache b/source/_patterns/00-atoms/01-text/03-paragraph.mustache
deleted file mode 100644
index 01534936d..000000000
--- a/source/_patterns/00-atoms/01-text/03-paragraph.mustache
+++ /dev/null
@@ -1 +0,0 @@
-{{ description }}
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/01-text/04-blockquote.mustache b/source/_patterns/00-atoms/01-text/04-blockquote.mustache
deleted file mode 100644
index 2f11319b3..000000000
--- a/source/_patterns/00-atoms/01-text/04-blockquote.mustache
+++ /dev/null
@@ -1,3 +0,0 @@
-
- A block quotation (also known as a long quotation or extract) is a quotation in a written document, that is set off from the main text as a paragraph, or block of text, and typically distinguished visually using indentation and a different typeface or smaller size quotation.
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/01-text/05-inline-elements.mustache b/source/_patterns/00-atoms/01-text/05-inline-elements.mustache
deleted file mode 100644
index dd4ff1f39..000000000
--- a/source/_patterns/00-atoms/01-text/05-inline-elements.mustache
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
This is a text link
-
-
Strong is used to indicate strong importance
-
-
This text has added emphasis
-
-
The b element is stylistically different text from normal text, without any special importance
-
-
The i element is text that is set off from the normal text
-
-
The u element is text with an unarticulated, though explicitly rendered, non-textual annotation
-
-
This text is deleted and This text is inserted
-
-
This text has a strikethrough
-
-
Superscript®
-
-
Subscript for things like H2 O
-
-
This small text is small for for fine print, etc.
-
-
Abbreviation: HTML
-
-
Keybord input: Cmd
-
-
This text is a short inline quotation
-
-
This is a citation
-
-
The dfn element indicates a definition.
-
-
The mark element indicates a highlight
-
-
This is what inline code looks like.
-
-
This is sample output from a computer program
-
-
The variarble element , such as x = y
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/01-text/06-time.mustache b/source/_patterns/00-atoms/01-text/06-time.mustache
deleted file mode 100644
index 26cecc136..000000000
--- a/source/_patterns/00-atoms/01-text/06-time.mustache
+++ /dev/null
@@ -1 +0,0 @@
-2 weeks ago
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/01-text/07-preformatted-text.mustache b/source/_patterns/00-atoms/01-text/07-preformatted-text.mustache
deleted file mode 100644
index 70de25e11..000000000
--- a/source/_patterns/00-atoms/01-text/07-preformatted-text.mustache
+++ /dev/null
@@ -1,9 +0,0 @@
-
-P R E F O R M A T T E D T E X T
-! " # $ % & ' ( ) * + , - . /
-0 1 2 3 4 5 6 7 8 9 : ; < = > ?
-@ A B C D E F G H I J K L M N O
-P Q R S T U V W X Y Z [ \ ] ^ _
-` a b c d e f g h i j k l m n o
-p q r s t u v w x y z { | } ~
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/01-text/08-emphasis-colors.mustache b/source/_patterns/00-atoms/01-text/08-emphasis-colors.mustache
deleted file mode 100644
index b2fae06d2..000000000
--- a/source/_patterns/00-atoms/01-text/08-emphasis-colors.mustache
+++ /dev/null
@@ -1,4 +0,0 @@
-This is what error text looks like
-This is what valid text looks like
-This is what warning text looks like
-This is what information text looks like.
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/01-text/09-hr.mustache b/source/_patterns/00-atoms/01-text/09-hr.mustache
deleted file mode 100644
index 1d6667d2e..000000000
--- a/source/_patterns/00-atoms/01-text/09-hr.mustache
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/01-text/10-caption.mustache b/source/_patterns/00-atoms/01-text/10-caption.mustache
deleted file mode 100644
index 204437d16..000000000
--- a/source/_patterns/00-atoms/01-text/10-caption.mustache
+++ /dev/null
@@ -1 +0,0 @@
-A caption can be applied to an image, quote, form field, etc.
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/02-lists/00-unordered.mustache b/source/_patterns/00-atoms/02-lists/00-unordered.mustache
deleted file mode 100644
index 3f9de349f..000000000
--- a/source/_patterns/00-atoms/02-lists/00-unordered.mustache
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- This is a list item in an unordered list
- An unordered list is a list in which the sequence of items is not important. Sometimes, an unordered list is a bulleted list. And this is a long list item in an unordered list that can wrap onto a new line.
-
- Lists can be nested inside of each other
-
- This is a nested list item
- This is another nested list item in an unordered list
-
-
- This is the last list item
-
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/02-lists/01-ordered.mustache b/source/_patterns/00-atoms/02-lists/01-ordered.mustache
deleted file mode 100644
index e206c7b10..000000000
--- a/source/_patterns/00-atoms/02-lists/01-ordered.mustache
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- This is a list item in an ordered list
- An ordered list is a list in which the sequence of items is important. An ordered list does not necessarily contain sequence characters.
-
- Lists can be nested inside of each other
-
- This is a nested list item
- This is another nested list item in an ordered list
-
-
- This is the last list item
-
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/02-lists/02-definition.mustache b/source/_patterns/00-atoms/02-lists/02-definition.mustache
deleted file mode 100644
index 0488e0812..000000000
--- a/source/_patterns/00-atoms/02-lists/02-definition.mustache
+++ /dev/null
@@ -1,10 +0,0 @@
-
- Definition List
- A number of connected items or names written or printed consecutively, typically one below the other.
- This is a term.
- This is the definition of that term, which both live in a dl.
- Here is another term.
- And it gets a definition too, which is this line.
- Here is term that shares a definition with the term below.
- And it gets a definition too, which is this line.
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/03-images/00-logo.mustache b/source/_patterns/00-atoms/03-images/00-logo.mustache
deleted file mode 100644
index 013837c2e..000000000
--- a/source/_patterns/00-atoms/03-images/00-logo.mustache
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/03-images/01-landscape-4x3.mustache b/source/_patterns/00-atoms/03-images/01-landscape-4x3.mustache
deleted file mode 100644
index cf874ee9d..000000000
--- a/source/_patterns/00-atoms/03-images/01-landscape-4x3.mustache
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/03-images/02-landscape-16x9.mustache b/source/_patterns/00-atoms/03-images/02-landscape-16x9.mustache
deleted file mode 100644
index 9efc5eeb3..000000000
--- a/source/_patterns/00-atoms/03-images/02-landscape-16x9.mustache
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/03-images/03-square.mustache b/source/_patterns/00-atoms/03-images/03-square.mustache
deleted file mode 100644
index 805cce5f2..000000000
--- a/source/_patterns/00-atoms/03-images/03-square.mustache
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/03-images/04-avatar.mustache b/source/_patterns/00-atoms/03-images/04-avatar.mustache
deleted file mode 100644
index 6b79ad0c5..000000000
--- a/source/_patterns/00-atoms/03-images/04-avatar.mustache
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/03-images/05-icons.mustache b/source/_patterns/00-atoms/03-images/05-icons.mustache
deleted file mode 100644
index 4e2512348..000000000
--- a/source/_patterns/00-atoms/03-images/05-icons.mustache
+++ /dev/null
@@ -1,12 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/03-images/06-loading-icon.mustache b/source/_patterns/00-atoms/03-images/06-loading-icon.mustache
deleted file mode 100644
index 9a10165ab..000000000
--- a/source/_patterns/00-atoms/03-images/06-loading-icon.mustache
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/03-images/07-favicon.mustache b/source/_patterns/00-atoms/03-images/07-favicon.mustache
deleted file mode 100644
index 07e985d37..000000000
--- a/source/_patterns/00-atoms/03-images/07-favicon.mustache
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/04-forms/00-text-fields.mustache b/source/_patterns/00-atoms/04-forms/00-text-fields.mustache
deleted file mode 100644
index 90cbb7747..000000000
--- a/source/_patterns/00-atoms/04-forms/00-text-fields.mustache
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
- Password
-
-
-
- Web Address
-
-
-
- Email Address
-
-
-
- Search
-
-
-
-
- Textarea
-
-
-
- Error Input
-
-
-
- Valid
-
-
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/04-forms/01-select-menu.mustache b/source/_patterns/00-atoms/04-forms/01-select-menu.mustache
deleted file mode 100644
index 760c9199a..000000000
--- a/source/_patterns/00-atoms/04-forms/01-select-menu.mustache
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
- Select
-
-
- Option One
- Option Two
- Option Three
-
-
-
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/04-forms/02-checkbox.mustache b/source/_patterns/00-atoms/04-forms/02-checkbox.mustache
deleted file mode 100644
index 017a8dc5c..000000000
--- a/source/_patterns/00-atoms/04-forms/02-checkbox.mustache
+++ /dev/null
@@ -1,10 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/04-forms/03-radio-buttons.mustache b/source/_patterns/00-atoms/04-forms/03-radio-buttons.mustache
deleted file mode 100644
index 68c83eaeb..000000000
--- a/source/_patterns/00-atoms/04-forms/03-radio-buttons.mustache
+++ /dev/null
@@ -1,10 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/04-forms/04-html5-inputs.mustache b/source/_patterns/00-atoms/04-forms/04-html5-inputs.mustache
deleted file mode 100644
index 99c22cce7..000000000
--- a/source/_patterns/00-atoms/04-forms/04-html5-inputs.mustache
+++ /dev/null
@@ -1,10 +0,0 @@
-
- Color input
- Number input
- Range input
- Date input
- Month input
- Week input
- Datetime input
- Datetime-local input
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/05-buttons/00-buttons.mustache b/source/_patterns/00-atoms/05-buttons/00-buttons.mustache
deleted file mode 100644
index bdbeec360..000000000
--- a/source/_patterns/00-atoms/05-buttons/00-buttons.mustache
+++ /dev/null
@@ -1,4 +0,0 @@
-Button
-Alternate Button
-Disabled Button
-Text Button
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/06-tables/00-table.mustache b/source/_patterns/00-atoms/06-tables/00-table.mustache
deleted file mode 100644
index 7df555fe7..000000000
--- a/source/_patterns/00-atoms/06-tables/00-table.mustache
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
- Table Heading 1
- Table Heading 2
- Table Heading 3
- Table Heading 3
- Table Heading 4
-
-
-
-
- Table Footer 1
- Table Footer 2
- Table Footer 3
- Table Footer 3
- Table Footer 4
-
-
-
-
- Table Cell 1
- Table Cell 2
- Table Cell 3
- Table Cell 4
- Table Cell 5
-
-
- Table Cell 1
- Table Cell 2
- Table Cell 3
- Table Cell 4
- Table Cell 5
-
-
- Table Cell 1
- Table Cell 2
- Table Cell 3
- Table Cell 4
- Table Cell 5
-
-
- Table Cell 1
- Table Cell 2
- Table Cell 3
- Table Cell 4
- Table Cell 5
-
-
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/07-media/_00-video.mustache b/source/_patterns/00-atoms/07-media/_00-video.mustache
deleted file mode 100644
index f28fcd7fc..000000000
--- a/source/_patterns/00-atoms/07-media/_00-video.mustache
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/_patterns/00-atoms/07-media/_01-audio.mustache b/source/_patterns/00-atoms/07-media/_01-audio.mustache
deleted file mode 100644
index 91c82135e..000000000
--- a/source/_patterns/00-atoms/07-media/_01-audio.mustache
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/00-text/00-byline-author-only.mustache b/source/_patterns/01-molecules/00-text/00-byline-author-only.mustache
deleted file mode 100644
index 08366cabe..000000000
--- a/source/_patterns/01-molecules/00-text/00-byline-author-only.mustache
+++ /dev/null
@@ -1 +0,0 @@
-by {{ author.first-name }} {{ author.last-name }}
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/00-text/01-byline-author-time.mustache b/source/_patterns/01-molecules/00-text/01-byline-author-time.mustache
deleted file mode 100644
index 5d61bc716..000000000
--- a/source/_patterns/01-molecules/00-text/01-byline-author-time.mustache
+++ /dev/null
@@ -1 +0,0 @@
-by {{ author.first-name }} {{ author.last-name }} on June 3rd
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/00-text/02-address.mustache b/source/_patterns/01-molecules/00-text/02-address.mustache
deleted file mode 100644
index a13ea79fc..000000000
--- a/source/_patterns/01-molecules/00-text/02-address.mustache
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
Company Name
-
-
1234 Main St.
-
Anywhere ,
-
101010 ,
-
CA
-
U.S.A
-
-
+1.888.123.4567
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/00-text/03-heading-group.mustache b/source/_patterns/01-molecules/00-text/03-heading-group.mustache
deleted file mode 100644
index bf18f5ac4..000000000
--- a/source/_patterns/01-molecules/00-text/03-heading-group.mustache
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
This is the heading group's main heading
- This is the heading group's subheading
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/00-text/04-blockquote-with-citation.mustache b/source/_patterns/01-molecules/00-text/04-blockquote-with-citation.mustache
deleted file mode 100644
index b9b6c98fc..000000000
--- a/source/_patterns/01-molecules/00-text/04-blockquote-with-citation.mustache
+++ /dev/null
@@ -1,4 +0,0 @@
-
- A block quotation (also known as a long quotation or extract) is a quotation in a written document, that is set off from the main text as a paragraph, or block of text, and typically distinguished visually using indentation and a different typeface or smaller size quotation.
- Quote Source
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/00-text/05-intro-text.mustache b/source/_patterns/01-molecules/00-text/05-intro-text.mustache
deleted file mode 100644
index b2b1bdef8..000000000
--- a/source/_patterns/01-molecules/00-text/05-intro-text.mustache
+++ /dev/null
@@ -1 +0,0 @@
-The intro text may be a lead-in to the passage of text, or it may just be used to create a visual distinction between the rest of the passage of text.
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/00-text/06-pullquote.mustache b/source/_patterns/01-molecules/00-text/06-pullquote.mustache
deleted file mode 100644
index dba015d32..000000000
--- a/source/_patterns/01-molecules/00-text/06-pullquote.mustache
+++ /dev/null
@@ -1,3 +0,0 @@
-
- A pull quote is a quotation or excerpt from an article
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/01-layout/00-one-up.mustache b/source/_patterns/01-molecules/01-layout/00-one-up.mustache
deleted file mode 100644
index eb58a0e24..000000000
--- a/source/_patterns/01-molecules/01-layout/00-one-up.mustache
+++ /dev/null
@@ -1,7 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/01-layout/01-two-up.mustache b/source/_patterns/01-molecules/01-layout/01-two-up.mustache
deleted file mode 100644
index ff1553aee..000000000
--- a/source/_patterns/01-molecules/01-layout/01-two-up.mustache
+++ /dev/null
@@ -1,7 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/01-layout/02-three-up.mustache b/source/_patterns/01-molecules/01-layout/02-three-up.mustache
deleted file mode 100644
index d68fb4854..000000000
--- a/source/_patterns/01-molecules/01-layout/02-three-up.mustache
+++ /dev/null
@@ -1,8 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/01-layout/03-four-up.mustache b/source/_patterns/01-molecules/01-layout/03-four-up.mustache
deleted file mode 100644
index f7351c023..000000000
--- a/source/_patterns/01-molecules/01-layout/03-four-up.mustache
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
1/4
-
1/4
-
1/4
-
1/4
-
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/02-blocks/00-media-block.mustache b/source/_patterns/01-molecules/02-blocks/00-media-block.mustache
deleted file mode 100644
index a82a8ed50..000000000
--- a/source/_patterns/01-molecules/02-blocks/00-media-block.mustache
+++ /dev/null
@@ -1,11 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/02-blocks/01-headline-byline.mustache b/source/_patterns/01-molecules/02-blocks/01-headline-byline.mustache
deleted file mode 100644
index e6416f8a2..000000000
--- a/source/_patterns/01-molecules/02-blocks/01-headline-byline.mustache
+++ /dev/null
@@ -1,6 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/02-blocks/02-block-hero.mustache b/source/_patterns/01-molecules/02-blocks/02-block-hero.mustache
deleted file mode 100644
index c685176f8..000000000
--- a/source/_patterns/01-molecules/02-blocks/02-block-hero.mustache
+++ /dev/null
@@ -1,10 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/02-blocks/03-block-thumb-headline.mustache b/source/_patterns/01-molecules/02-blocks/03-block-thumb-headline.mustache
deleted file mode 100644
index 9e13fb90d..000000000
--- a/source/_patterns/01-molecules/02-blocks/03-block-thumb-headline.mustache
+++ /dev/null
@@ -1,10 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/02-blocks/04-headline-only.mustache b/source/_patterns/01-molecules/02-blocks/04-headline-only.mustache
deleted file mode 100644
index 5c0daded8..000000000
--- a/source/_patterns/01-molecules/02-blocks/04-headline-only.mustache
+++ /dev/null
@@ -1,5 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/02-blocks/05-inset-block.mustache b/source/_patterns/01-molecules/02-blocks/05-inset-block.mustache
deleted file mode 100644
index e850e479d..000000000
--- a/source/_patterns/01-molecules/02-blocks/05-inset-block.mustache
+++ /dev/null
@@ -1,10 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/03-media/00-figure-with-caption.mustache b/source/_patterns/01-molecules/03-media/00-figure-with-caption.mustache
deleted file mode 100644
index 98e2b4435..000000000
--- a/source/_patterns/01-molecules/03-media/00-figure-with-caption.mustache
+++ /dev/null
@@ -1,4 +0,0 @@
-
- {{> atoms-landscape-4x3 }}
- This is an example of an image with a caption. Photo captions, also known as cutlines, are a few lines of text used to explain or elaborate on published photographs.
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/03-media/_map.mustache b/source/_patterns/01-molecules/03-media/_map.mustache
deleted file mode 100644
index 9acb52b23..000000000
--- a/source/_patterns/01-molecules/03-media/_map.mustache
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/04-forms/00-search.mustache b/source/_patterns/01-molecules/04-forms/00-search.mustache
deleted file mode 100644
index aa276315f..000000000
--- a/source/_patterns/01-molecules/04-forms/00-search.mustache
+++ /dev/null
@@ -1,11 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/04-forms/01-comment-form.mustache b/source/_patterns/01-molecules/04-forms/01-comment-form.mustache
deleted file mode 100644
index 43d6cb368..000000000
--- a/source/_patterns/01-molecules/04-forms/01-comment-form.mustache
+++ /dev/null
@@ -1,20 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/04-forms/02-newsletter.mustache b/source/_patterns/01-molecules/04-forms/02-newsletter.mustache
deleted file mode 100644
index e23b2d5ae..000000000
--- a/source/_patterns/01-molecules/04-forms/02-newsletter.mustache
+++ /dev/null
@@ -1,10 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/05-navigation/00-primary-nav.mustache b/source/_patterns/01-molecules/05-navigation/00-primary-nav.mustache
deleted file mode 100644
index 09c70e8ca..000000000
--- a/source/_patterns/01-molecules/05-navigation/00-primary-nav.mustache
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
diff --git a/source/_patterns/01-molecules/05-navigation/01-footer-nav.mustache b/source/_patterns/01-molecules/05-navigation/01-footer-nav.mustache
deleted file mode 100644
index 41d5f87f8..000000000
--- a/source/_patterns/01-molecules/05-navigation/01-footer-nav.mustache
+++ /dev/null
@@ -1,6 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/05-navigation/02-breadcrumbs.mustache b/source/_patterns/01-molecules/05-navigation/02-breadcrumbs.mustache
deleted file mode 100644
index 7d2eb525b..000000000
--- a/source/_patterns/01-molecules/05-navigation/02-breadcrumbs.mustache
+++ /dev/null
@@ -1,7 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/05-navigation/03-pagination.mustache b/source/_patterns/01-molecules/05-navigation/03-pagination.mustache
deleted file mode 100644
index b23a01ab1..000000000
--- a/source/_patterns/01-molecules/05-navigation/03-pagination.mustache
+++ /dev/null
@@ -1,9 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/05-navigation/04-tabs.mustache b/source/_patterns/01-molecules/05-navigation/04-tabs.mustache
deleted file mode 100644
index 341817d40..000000000
--- a/source/_patterns/01-molecules/05-navigation/04-tabs.mustache
+++ /dev/null
@@ -1,7 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/06-components/00-social-share.mustache b/source/_patterns/01-molecules/06-components/00-social-share.mustache
deleted file mode 100644
index 71694aed1..000000000
--- a/source/_patterns/01-molecules/06-components/00-social-share.mustache
+++ /dev/null
@@ -1,8 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/06-components/01-accordion.mustache b/source/_patterns/01-molecules/06-components/01-accordion.mustache
deleted file mode 100644
index 253962dcb..000000000
--- a/source/_patterns/01-molecules/06-components/01-accordion.mustache
+++ /dev/null
@@ -1,19 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/01-molecules/06-components/02-single-comment.mustache b/source/_patterns/01-molecules/06-components/02-single-comment.mustache
deleted file mode 100644
index a7f56279a..000000000
--- a/source/_patterns/01-molecules/06-components/02-single-comment.mustache
+++ /dev/null
@@ -1,9 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/02-organisms/00-global/00-header.mustache b/source/_patterns/02-organisms/00-global/00-header.mustache
deleted file mode 100644
index e4a73fb88..000000000
--- a/source/_patterns/02-organisms/00-global/00-header.mustache
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/source/_patterns/02-organisms/00-global/01-footer.mustache b/source/_patterns/02-organisms/00-global/01-footer.mustache
deleted file mode 100644
index 63f6fa5ef..000000000
--- a/source/_patterns/02-organisms/00-global/01-footer.mustache
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/source/_patterns/02-organisms/01-article/00-article-body.mustache b/source/_patterns/02-organisms/01-article/00-article-body.mustache
deleted file mode 100644
index 7e95f0494..000000000
--- a/source/_patterns/02-organisms/01-article/00-article-body.mustache
+++ /dev/null
@@ -1,26 +0,0 @@
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer fringilla sem a urna porttitor fringilla. Nulla eget justo felis.
-
-Aliquam erat volutpat. Mauris vulputate scelerisque feugiat. Cras a erat a diam venenatis aliquam. Sed tempus, purus ac pretium varius, risus orci sagittis purus, quis auctor libero magna nec magna. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas eros dolor, rutrum eu sollicitudin eu, commodo at leo. Suspendisse potenti. Sed eu nibh sit amet quam auctor feugiat vel et risus. Maecenas eu urna adipiscing neque dictum mollis suscipit in augue. Praesent pulvinar condimentum sagittis. Maecenas laoreet neque non eros consectetur fringilla. Donec vitae risus leo, vitae pharetra ipsum. Sed placerat eros eget elit iaculis semper. Aliquam congue blandit orci ac pretium.
-
-{{> atoms-landscape-16x9 }}
-
-Aliquam ultrices cursus mauris, eget volutpat justo mattis nec. Sed a orci turpis. Aliquam aliquet placerat dui, consectetur tincidunt leo tristique et. Vivamus enim nisi, blandit a venenatis quis, convallis et arcu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris libero sapien, placerat in sodales eu, tempor quis dui. Vivamus egestas faucibus pulvinar. Maecenas eget diam nunc. Phasellus at sem eros, ac suscipit neque. Phasellus sollicitudin libero a odio dignissim scelerisque. Aliquam purus nulla, tempor eget ullamcorper quis, rhoncus non dui.
-
-
-{{> atoms-blockquote }}
-
-Cras at fringilla ipsum. Donec nec libero eget est blandit dignissim a eu ante. Morbi augue nulla, luctus eu sagittis vel, malesuada ut felis. Aliquam erat volutpat. Morbi malesuada augue ac massa hendrerit fermentum. Integer scelerisque lacus a dolor convallis lobortis. Curabitur mollis ante in massa ultricies dignissim.
-
-
-{{> atoms-unordered }}
-
-{{> atoms-ordered }}
-
-Donec posuere fringilla nunc, vitae venenatis diam scelerisque vel. Nullam vitae mauris magna. Mauris et diam quis justo volutpat tincidunt congue nec magna. Curabitur vitae orci elit. Ut mollis massa id magna vestibulum consequat. Proin rutrum lectus justo, sit amet tincidunt est. Vivamus vitae lacinia risus.
-
-
-{{> molecules-pullquote }}
-
-Donec venenatis imperdiet tortor, vitae blandit odio interdum ut. Integer orci metus, lobortis id lacinia eget, rutrum vitae justo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. In pretium fermentum justo nec pharetra. Maecenas eget dapibus justo. Ut quis est risus. Nullam et eros at odio commodo venenatis quis et augue. Sed sed augue at tortor porttitor hendrerit nec ut nibh. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Proin sollicitudin enim consectetur mi commodo quis cursus ante pretium. Nunc gravida cursus nisi in gravida. Suspendisse eget tortor sed urna consequat tincidunt. Etiam eget convallis lectus. Suspendisse cursus rutrum massa ac faucibus.
-
-Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reiciendis, suscipit repellendus nulla accusantium deserunt sed explicabo voluptate sapiente ratione inventore molestiae nihil earum repellat quia odit vitae perspiciatis aliquam amet?
\ No newline at end of file
diff --git a/source/_patterns/02-organisms/02-comments/00-comment-thread.mustache b/source/_patterns/02-organisms/02-comments/00-comment-thread.mustache
deleted file mode 100644
index 6e150a137..000000000
--- a/source/_patterns/02-organisms/02-comments/00-comment-thread.mustache
+++ /dev/null
@@ -1,12 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/02-organisms/03-components/00-carousel.mustache b/source/_patterns/02-organisms/03-components/00-carousel.mustache
deleted file mode 100644
index 4e8641ec8..000000000
--- a/source/_patterns/02-organisms/03-components/00-carousel.mustache
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
- {{> molecules-inset-block }}
-
\ No newline at end of file
diff --git a/source/_patterns/02-organisms/04-sections/00-latest-posts.mustache b/source/_patterns/02-organisms/04-sections/00-latest-posts.mustache
deleted file mode 100644
index 42f32dfa9..000000000
--- a/source/_patterns/02-organisms/04-sections/00-latest-posts.mustache
+++ /dev/null
@@ -1,11 +0,0 @@
-
- Latest Posts
-
- {{> molecules-media-block }}
- {{> molecules-media-block }}
- {{> molecules-media-block }}
- {{> molecules-media-block }}
- {{> molecules-media-block }}
-
- View more posts
-
\ No newline at end of file
diff --git a/source/_patterns/02-organisms/04-sections/01-recent-tweets.mustache b/source/_patterns/02-organisms/04-sections/01-recent-tweets.mustache
deleted file mode 100644
index edd6d568d..000000000
--- a/source/_patterns/02-organisms/04-sections/01-recent-tweets.mustache
+++ /dev/null
@@ -1,12 +0,0 @@
-
- Recent Tweets
-
- {{> atoms-time }}
- {{> atoms-time }}
- {{> atoms-time }}
- {{> atoms-time }}
- {{> atoms-time }}
-
-
- Follow us on Twitter
-
\ No newline at end of file
diff --git a/source/_patterns/02-organisms/04-sections/02-related-posts.mustache b/source/_patterns/02-organisms/04-sections/02-related-posts.mustache
deleted file mode 100644
index d0dde7a39..000000000
--- a/source/_patterns/02-organisms/04-sections/02-related-posts.mustache
+++ /dev/null
@@ -1,11 +0,0 @@
-
\ No newline at end of file
diff --git a/source/_patterns/03-templates/00-homepage.mustache b/source/_patterns/03-templates/00-homepage.mustache
deleted file mode 100644
index cda5d0445..000000000
--- a/source/_patterns/03-templates/00-homepage.mustache
+++ /dev/null
@@ -1,31 +0,0 @@
-
- {{> organisms-header }}
-
- {{> molecules-block-hero }}
-
-
- {{> molecules-inset-block }}
-
-
- {{> molecules-inset-block }}
-
-
- {{> molecules-inset-block }}
-
-
-
-
-
-
-
- {{> organisms-latest-posts }}
-
-
-
-
-
-
- {{> organisms-footer }}
-
\ No newline at end of file
diff --git a/source/_patterns/03-templates/01-blog.mustache b/source/_patterns/03-templates/01-blog.mustache
deleted file mode 100644
index b55a9ba23..000000000
--- a/source/_patterns/03-templates/01-blog.mustache
+++ /dev/null
@@ -1,17 +0,0 @@
-
- {{> organisms-header }}
-
-
Our Outdoor Blog
-
-
- {{> organisms-latest-posts }}
- {{> molecules-pagination }}
-
-
-
-
-
- {{> organisms-footer }}
-
\ No newline at end of file
diff --git a/source/_patterns/03-templates/02-article.mustache b/source/_patterns/03-templates/02-article.mustache
deleted file mode 100644
index ea151ef7e..000000000
--- a/source/_patterns/03-templates/02-article.mustache
+++ /dev/null
@@ -1,24 +0,0 @@
-
- {{> organisms-header }}
-
-
-
-
-
- Article Headline Lorem ipsum dolor sit aweofij
- {{> molecules-byline-author-time }}
-
- {{> organisms-article-body }}
-
- {{> molecules-social-share }}
- {{> organisms-comment-thread }}
-
-
-
-
-
- {{> organisms-footer }}
-
\ No newline at end of file
diff --git a/source/_patterns/04-pages/00-homepage.json b/source/_patterns/04-pages/00-homepage.json
deleted file mode 100644
index 989cce722..000000000
--- a/source/_patterns/04-pages/00-homepage.json
+++ /dev/null
@@ -1,132 +0,0 @@
-{
- "hero" : [
- {
- "img": {
- "landscape-16x9": {
- "src": "../../images/sample/landscape-16x9-mountains.jpg",
- "alt": "Mountains"
- }
- },
- "headline" : {
- "medium" : "Top 10 mountin ranges for hiking"
- }
- }
- ],
- "touts" : [
- {
- "img": {
- "landscape-4x3": {
- "src": "../../images/sample/tout-4x3-climber.jpg",
- "alt": "Climber"
- }
- },
- "headline" : {
- "short" : "Extreme climbing tips"
- }
- },
- {
- "img": {
- "landscape-4x3": {
- "src": "../../images/sample/tout-4x3-stream.jpg",
- "alt": "Stream hiking"
- }
- },
- "headline" : {
- "short" : "Stream hiking"
- }
- },
- {
- "img": {
- "landscape-4x3": {
- "src": "../../images/sample/tout-4x3-climbers.jpg",
- "alt": "Explore hiking trails"
- }
- },
- "headline" : {
- "short" : "Explore hiking trails"
- }
- }
- ],
- "latest-posts" : [
- {
- "img": {
- "square": {
- "src": "../../images/sample/thumb-square-river.jpg",
- "alt": "Post Thumbnail"
- }
- },
- "headline" : {
- "short" : "Navigate the Allegheny River"
- },
- "exerpt" : {
- "medium" : "The Allegheny River is a principal tributary of the Ohio River; it is located in the Eastern United States. The Allegheny River joins with the Monongahela River to form the Ohio River at the Point of Point State Park in Downtown Pittsburgh, Pennsylvania."
- }
- },
- {
- "img": {
- "square": {
- "src": "../../images/sample/thumb-square-ivy.jpg",
- "alt": "Ivy"
- }
- },
- "headline" : {
- "short" : "How to detect and avoid poison ivy"
- },
- "exerpt" : {
- "medium" : "Toxicodendron radicans, commonly known as poison ivy is a poisonous North American plant that is well known for its production of urushiol"
- }
- },
- {
- "img": {
- "square": {
- "src": "../../images/sample/thumb-square-yosemite.jpg",
- "alt": "Yosemite"
- }
- },
- "headline" : {
- "short" : "Top 10 hiking mountains"
- },
- "exerpt" : {
- "medium" : "Yosemite National Park is a United States National Park spanning eastern portions of Tuolumne, Mariposa and Madera counties in the central eastern portion of the U.S. state of California."
- }
- },
- {
- "img": {
- "square": {
- "src": "../../images/sample/thumb-square-fire.jpg",
- "alt": "Fire"
- }
- },
- "headline" : {
- "short" : "How to build a campfire"
- },
- "exerpt" : {
- "medium" : "A campfire is a fire lit at a campsite, to serve the following functions: light, warmth, a beacon, an insect and/or apex predator deterrent, to cook, and for a psychological sense of security. "
- }
- },
- {
- "img": {
- "square": {
- "src": "../../images/sample/thumb-square-gear.jpg",
- "alt": "Camping Gear"
- }
- },
- "headline" : {
- "short" : "Pick the right camping gear"
- },
- "exerpt" : {
- "medium" : "The equipment used in camping varies with the particular type of camping. For instance, in survival camping the equipment consists of small items which have the purpose of helping the camper in providing food, heat and safety."
- }
- }
- ],
- "inset-blocks" : [
- {
- "headline" : "This is the headline for the inset block"
- }
- ],
- "latest-block" : [
- {
- "headline" : "This is the headline for the latest block"
- }
- ]
-}
\ No newline at end of file
diff --git a/source/_patterns/04-pages/00-homepage.mustache b/source/_patterns/04-pages/00-homepage.mustache
deleted file mode 100644
index 4e99ff54d..000000000
--- a/source/_patterns/04-pages/00-homepage.mustache
+++ /dev/null
@@ -1,37 +0,0 @@
-
- {{> organisms-header }}
-
-
- {{# hero }}
- {{> molecules-block-hero }}
- {{/ hero}}
-
-
- {{# touts}}
-
- {{> molecules-inset-block }}
-
- {{/ touts}}
-
-
-
-
-
-
-
- Latest Posts
-
- {{# latest-posts}}
- {{> molecules-media-block }}
- {{/ latest-posts}}
-
- View more posts
-
-
-
-
-
- {{> organisms-footer }}
-
\ No newline at end of file
diff --git a/source/_patterns/04-pages/01-blog.json b/source/_patterns/04-pages/01-blog.json
deleted file mode 100644
index 09867fb6d..000000000
--- a/source/_patterns/04-pages/01-blog.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "latest-posts" : [
- {
- "img": {
- "square": {
- "src": "../../images/sample/thumb-square-river.jpg",
- "alt": "Post Thumbnail"
- }
- },
- "headline" : {
- "short" : "Navigate the Allegheny River"
- },
- "exerpt" : {
- "medium" : "The Allegheny River is a principal tributary of the Ohio River; it is located in the Eastern United States. The Allegheny River joins with the Monongahela River to form the Ohio River at the Point of Point State Park in Downtown Pittsburgh, Pennsylvania."
- }
- },
- {
- "img": {
- "square": {
- "src": "../../images/sample/thumb-square-ivy.jpg",
- "alt": "Ivy"
- }
- },
- "headline" : {
- "short" : "How to detect and avoid poison ivy"
- },
- "exerpt" : {
- "medium" : "Toxicodendron radicans, commonly known as poison ivy is a poisonous North American plant that is well known for its production of urushiol"
- }
- },
- {
- "img": {
- "square": {
- "src": "../../images/sample/thumb-square-yosemite.jpg",
- "alt": "Yosemite"
- }
- },
- "headline" : {
- "short" : "Top 10 hiking mountains"
- },
- "exerpt" : {
- "medium" : "Yosemite National Park is a United States National Park spanning eastern portions of Tuolumne, Mariposa and Madera counties in the central eastern portion of the U.S. state of California."
- }
- },
- {
- "img": {
- "square": {
- "src": "../../images/sample/thumb-square-fire.jpg",
- "alt": "Fire"
- }
- },
- "headline" : {
- "short" : "How to build a campfire"
- },
- "exerpt" : {
- "medium" : "A campfire is a fire lit at a campsite, to serve the following functions: light, warmth, a beacon, an insect and/or apex predator deterrent, to cook, and for a psychological sense of security. "
- }
- },
- {
- "img": {
- "square": {
- "src": "../../images/sample/thumb-square-gear.jpg",
- "alt": "Camping Gear"
- }
- },
- "headline" : {
- "short" : "Pick the right camping gear"
- },
- "exerpt" : {
- "medium" : "The equipment used in camping varies with the particular type of camping. For instance, in survival camping the equipment consists of small items which have the purpose of helping the camper in providing food, heat and safety."
- }
- }
- ],
- "inset-blocks" : [
- {
- "headline" : "This is the headline for the inset block"
- }
- ],
- "latest-block" : [
- {
- "headline" : "This is the headline for the latest block"
- }
- ]
-}
\ No newline at end of file
diff --git a/source/_patterns/04-pages/01-blog.mustache b/source/_patterns/04-pages/01-blog.mustache
deleted file mode 100644
index 6d8e26c15..000000000
--- a/source/_patterns/04-pages/01-blog.mustache
+++ /dev/null
@@ -1,25 +0,0 @@
-
- {{> organisms-header }}
-
-
Our Outdoor Blog
-
-
-
-
-
- {{# latest-posts}}
- {{> molecules-media-block }}
- {{/ latest-posts}}
-
- View more posts
-
- {{> molecules-pagination }}
-
-
-
-
-
- {{> organisms-footer }}
-
\ No newline at end of file
diff --git a/source/_patterns/04-pages/02-article.json b/source/_patterns/04-pages/02-article.json
deleted file mode 100644
index 821e6428b..000000000
--- a/source/_patterns/04-pages/02-article.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "author" : {
- "first-name" : "Julianne",
- "last-name" : "McCormick"
- },
- "img": {
- "landscape-4x3": {
- "src": "../../images/sample/landscape-16x9-mountains.jpg",
- "alt": "Mountains"
- },
- "landscape-16x9": {
- "src": "../../images/sample/landscape-16x9-mountains.jpg",
- "alt": "Mountains"
- }
- },
- "inset-blocks" : [
- {
- "headline" : "This is the headline for the inset block"
- }
- ],
- "latest-block" : [
- {
- "headline" : "This is the headline for the latest block"
- }
- ]
-}
\ No newline at end of file
diff --git a/source/_patterns/04-pages/02-article.mustache b/source/_patterns/04-pages/02-article.mustache
deleted file mode 100644
index 1f5101a4a..000000000
--- a/source/_patterns/04-pages/02-article.mustache
+++ /dev/null
@@ -1,51 +0,0 @@
-
- {{> organisms-header }}
-
-
-
-
-
- Top 10 Trails You Have To Hike Before You Die
- {{> molecules-byline-author-time }}
-
- This is where a post about hiking trails would live. I'm not going to write an article about hiking trails. That would take a lot of time.
-
- This is a link, possibly to an external resource. In a post about hiking trails, there would probably be talk about how to get to featured trails, what to pack, where to camp, and so on and so forth. I don't have any expertise in this subject matter so I'm not going to attempt to write about it.
-
- {{> atoms-landscape-16x9 }}
-
- If I were to write about it, I'd probably do some research on the topic first. But even then, I probably Sed a orci turpis. Aliquam aliquet placerat dui, consectetur tincidunt leo tristique et. Vivamus enim nisi, blandit a venenatis quis, convallis et arcu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris libero sapien, placerat in sodales eu, tempor quis dui. Vivamus egestas faucibus pulvinar. Maecenas eget diam nunc. Phasellus at sem eros, ac suscipit neque. Phasellus sollicitudin libero a odio dignissim scelerisque. Aliquam purus nulla, tempor eget ullamcorper quis, rhoncus non dui.
-
-
-
- This trail is amazing. I've never seen anything like it.
-
-
- Cras at fringilla ipsum. Donec nec libero eget est blandit dignissim a eu ante. Morbi augue nulla, luctus eu sagittis vel, malesuada ut felis. Aliquam erat volutpat. Morbi malesuada augue ac massa hendrerit fermentum. Integer scelerisque lacus a dolor convallis lobortis. Curabitur mollis ante in massa ultricies dignissim.
-
-
- {{> atoms-unordered }}
-
- {{> atoms-ordered }}
-
- Donec posuere fringilla nunc, vitae venenatis diam scelerisque vel. Nullam vitae mauris magna. Mauris et diam quis justo volutpat tincidunt congue nec magna. Curabitur vitae orci elit. Ut mollis massa id magna vestibulum consequat. Proin rutrum lectus justo, sit amet tincidunt est. Vivamus vitae lacinia risus.
-
-
- {{> molecules-pullquote }}
-
- Donec venenatis imperdiet tortor, vitae blandit odio interdum ut. Integer orci metus, lobortis id lacinia eget, rutrum vitae justo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. In pretium fermentum justo nec pharetra. Maecenas eget dapibus justo. Ut quis est risus. Nullam et eros at odio commodo venenatis quis et augue. Sed sed augue at tortor porttitor hendrerit nec ut nibh. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Proin sollicitudin enim consectetur mi commodo quis cursus ante pretium. Nunc gravida cursus nisi in gravida. Suspendisse eget tortor sed urna consequat tincidunt. Etiam eget convallis lectus. Suspendisse cursus rutrum massa ac faucibus.
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reiciendis, suscipit repellendus nulla accusantium deserunt sed explicabo voluptate sapiente ratione inventore molestiae nihil earum repellat quia odit vitae perspiciatis aliquam amet?
-
- {{> molecules-social-share }}
- {{> organisms-comment-thread }}
-
-
-
-
-
- {{> organisms-footer }}
-
\ No newline at end of file
diff --git a/source/css/scss/base/_animation.scss b/source/css/scss/base/_animation.scss
deleted file mode 100644
index d28bc9136..000000000
--- a/source/css/scss/base/_animation.scss
+++ /dev/null
@@ -1,13 +0,0 @@
-.animate-fade {
- @include transition(opacity, 0.3s, ease-out);
-
- &:hover {
- opacity: 0;
- }
-}
-
-.animate-move {
- > .demo-shape {
- @include transition(all, 0.8s, ease-in-out);
- }
-}
\ No newline at end of file
diff --git a/source/css/scss/base/_forms.scss b/source/css/scss/base/_forms.scss
deleted file mode 100644
index d121af100..000000000
--- a/source/css/scss/base/_forms.scss
+++ /dev/null
@@ -1,138 +0,0 @@
-/*------------------------------------*\
- $FORMS
-\*------------------------------------*/
-
-form > div {
- margin-bottom: $space;
-}
-
-form ol, form ul {
- list-style: none;
- margin-left: 0;
-}
-
-fieldset {
- border: 0;
- padding: 0;
- margin: 0;
-}
-
-label {
- display: block;
- padding-bottom: $space-quarter;
-}
-
-button, input, select, textarea {
- font-family: inherit;
- font-size: 100%;
- margin: 0;
-}
-
-input, textarea {
- width: 100%;
- border: 1px solid $gray;
- padding: $pad-half 0.65rem;
-}
-
-input[type=text], input[type=search], input[type=url], input[type=number], textarea {
- -webkit-appearance: none;
-}
-
-button, input[type="submit"] {
- padding: $pad-half;
- background: $gray-dark;
- border: 1px solid $gray;
- cursor: pointer;
-}
-
-input[type="checkbox"],
-input[type="radio"] {
- width: auto;
- margin-right: 0.3em;
-}
-
-input[type="search"] {
- -webkit-appearance: none;
- border-radius: 0;
-}
-
-input[type="search"]::-webkit-search-cancel-button,
-input[type="search"]::-webkit-search-decoration {
- -webkit-appearance: none;
-}
-
-//Form Field Container
-.field-container {
- margin-bottom: $space;
-}
-
-.inline-form {
-
- fieldset, .inline-container {
- position: relative;
- }
-
- input[type=submit], button, .btn {
- font-size: $font-size-slightly-smaller;
- padding: 0.65rem 1.3rem;
- background: $gray-dark;
- position: absolute;
- top: 0;
- right: 0;
- z-index: 1;
- width: auto;
-
- &:hover, &:focus {
- background: $gray;
- color: $white;
- }
- }
-}
-
-// PK to clean this up
-.inline-search-results-form {
- width: 100%;
- @media all and (min-width: $bp-med) {
- width: 82%;
-
- }
-
- fieldset, .inline-container {
- position: relative;
- }
-
- input[type=submit], button {
- position: absolute;
- top: 0;
- right: 0;
- z-index: 1;
- width: auto;
- }
-}
-
-/* Validation */
-.has-error {
- border-color: $error;
-}
-.is-valid {
- border-color: $valid;
-}
-
-
-
-
-/*------------------------------------*\
- $SPECIFIC FORMS
-\*------------------------------------*/
-
-/* Search Form */
-.search-field {
- padding-right: 3em;
-}
-.inline-form .search-submit {
- background: none;
- padding: 0.78em 1em;
- border: 0;
- border-left: 1px solid $gray;
- color: $gray;
-}
\ No newline at end of file
diff --git a/source/css/scss/base/_global-classes.scss b/source/css/scss/base/_global-classes.scss
deleted file mode 100644
index f327ab459..000000000
--- a/source/css/scss/base/_global-classes.scss
+++ /dev/null
@@ -1,96 +0,0 @@
-/*------------------------------------*\
- $GLOBAL CLASSES
-\*------------------------------------*/
-
-/* Clearfix */
-.cf {
- *zoom: 1;
-}
-.cf:before, .cf:after {
- content: " "; /* 1 */
- display: table; /* 2 */
-}
-
-.cf:after {
- clear: both;
-}
-
-/* Completely remove from the flow and screen readers. */
-.is-hidden {
- display: none !important;
- visibility: hidden !important;
-}
-
-/* Completely remove from the flow but leave available to screen readers. */
-.is-vishidden {
- position: absolute !important;
- overflow: hidden;
- width: 1px;
- height: 1px;
- padding: 0;
- border: 0;
- clip: rect(1px, 1px, 1px, 1px);
-}
-
-/* Floats */
-.right {
- float: right;
- padding: 0 0 $pad $pad;
-}
-
-.right-search {
- float: right;
- padding: 0 0 $pad 0;
-}
-
-.left {
- float: left;
- padding: 0 $pad $pad 0;
-}
-
-/* Text-Align */
-.align-right {
- text-align: right;
-}
-
-.align-center {
- text-align: center;
-}
-
-.align-left {
- text-align: left;
-}
-
-/* Display Classes */
-.hide-small {
- @media all and (max-width: $bp-med) {
- display: none;
- }
-}
-
-.hide-med {
- @media all and (min-width: $bp-med) and (max-width: $bp-large) {
- display: none;
- }
-}
-
-.hide-large {
- @media all and (min-width: $bp-large) {
- display: none;
- }
-}
-
-//
-.valid {
- color: $valid;
-}
-
-.error {
- color: $error;
-}
-
-.info {
-
-}
-
-
diff --git a/source/css/scss/base/_headings.scss b/source/css/scss/base/_headings.scss
deleted file mode 100644
index 5f2433645..000000000
--- a/source/css/scss/base/_headings.scss
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Headings */
-/*Further Reading: http:/csswizardry.com/2012/02/pragmatic-practical-font-sizing-in-css/ */
-h1, .alpha {
- line-height: 1.2;
-}
-
-h2, .beta {
- line-height: 1.2;
-}
-
-h3, .gamma {
- line-height: 1.2;
-}
-
-h4, .delta {
-
-}
-
-h5, .epsilon {
-
-}
-
-h6, .zeta {
-
-}
-
-/* Subheadings */
-.subheading {
- font-family: $font-secondary;
- font-weight: normal;
-}
diff --git a/source/css/scss/base/_links.scss b/source/css/scss/base/_links.scss
deleted file mode 100644
index d70545d76..000000000
--- a/source/css/scss/base/_links.scss
+++ /dev/null
@@ -1,10 +0,0 @@
-/* Links */
-a {
- color: $gray-dark;
- text-decoration: none;
- outline: 0;
-
- &:hover, &:focus {
- color: $gray;
- }
-}
\ No newline at end of file
diff --git a/source/css/scss/base/_lists.scss b/source/css/scss/base/_lists.scss
deleted file mode 100644
index 4ceb7cf5c..000000000
--- a/source/css/scss/base/_lists.scss
+++ /dev/null
@@ -1,19 +0,0 @@
-ol, ul {
- margin: 0;
- padding: 0;
- list-style: none;
-}
-
-/* Definition Lists */
-dl {
- overflow: hidden;
- margin: 0 0 $space;
-}
-
-dt {
- font-weight: bold;
-}
-
-dd {
- margin-left: 0;
-}
\ No newline at end of file
diff --git a/source/css/scss/base/_main.scss b/source/css/scss/base/_main.scss
deleted file mode 100644
index f92fd1b34..000000000
--- a/source/css/scss/base/_main.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-body {
- background: $white;
- font: 100%/1.5 $font;
- -webkit-text-size-adjust: 100%;
- color: $gray-dark;
-}
\ No newline at end of file
diff --git a/source/css/scss/base/_media.scss b/source/css/scss/base/_media.scss
deleted file mode 100644
index db9023b12..000000000
--- a/source/css/scss/base/_media.scss
+++ /dev/null
@@ -1,23 +0,0 @@
-/*------------------------------------*\
- $MEDIA ELEMENTS
-\*------------------------------------*/
-
-/* Flexible Media */
-img, video, object {
- max-width: 100%;
- height: auto;
-}
-
-iframe {
- margin-bottom: $space;
-}
-
-figure {
- margin-bottom: $space;
- img {
- margin-bottom: $space-quarter;
- }
-}
-figcaption {
- font-style: italic;
-}
\ No newline at end of file
diff --git a/source/css/scss/base/_tables.scss b/source/css/scss/base/_tables.scss
deleted file mode 100644
index 1b2a2b2c4..000000000
--- a/source/css/scss/base/_tables.scss
+++ /dev/null
@@ -1,18 +0,0 @@
-/*------------------------------------*\
- $Table
-\*------------------------------------*/
-table {
- border-collapse: collapse;
- border-spacing: 0;
- border: 1px solid $gray;
- width: 100%;
-}
-th {
- text-align: left;
- border: 1px solid $gray;
- padding: 0.2em;
-}
-td {
- border: 1px solid $gray;
- padding: 0.2em;
-}
\ No newline at end of file
diff --git a/source/css/scss/base/_text.scss b/source/css/scss/base/_text.scss
deleted file mode 100644
index de17e3ec6..000000000
--- a/source/css/scss/base/_text.scss
+++ /dev/null
@@ -1,26 +0,0 @@
-/* Text-Related Elements */
-p {
- margin-bottom: $space;
-}
-
-/* Blockquote */
-blockquote {
- font-style:italic;
- border-left: 1px solid $gray;
- color: $gray;
- padding-left: $pad;
- margin-bottom: $space;
-}
-
-/* Horizontal Rule */
-hr {
- border: 0;
- height: 2px;
- background: $gray-light-2;
- margin: $space-double 0;
-}
-
-abbr {
- border-bottom: 1px dotted $gray;
- cursor: help;
-}
\ No newline at end of file
diff --git a/source/css/scss/generic/_mixins.scss b/source/css/scss/generic/_mixins.scss
deleted file mode 100644
index 14d8a2a3d..000000000
--- a/source/css/scss/generic/_mixins.scss
+++ /dev/null
@@ -1,23 +0,0 @@
-/*------------------------------------*\
- $MIXINS
-\*------------------------------------*/
-
-/* CSS Transition
- Usage: @include transition(width,0.3s,ease-out);
- */
-@mixin transition($transition-property, $transition-time, $method) {
- -webkit-transition: $transition-property $transition-time $method;
- -moz-transition: $transition-property $transition-time $method;
- -ms-transition: $transition-property $transition-time $method;
- -o-transition: $transition-property $transition-time $method;
- transition: $transition-property $transition-time $method;
-}
-
-/* Rem Unit font sizes with relative fallback http:/seesparkbox.com/foundry/scss_rem_mixin_now_with_a_better_fallback
- Usage: @include font-size(1, large);
-*/
-@mixin font-size( $decimal-size, $keyword: null ) {
- @if $keyword{ font-size: $keyword; }
- @else { font-size: $decimal-size * $base-font-multiplier * 16px;}
- font-size: $decimal-size * 1rem;
-}
\ No newline at end of file
diff --git a/source/css/scss/generic/_reset.scss b/source/css/scss/generic/_reset.scss
deleted file mode 100644
index e7807ec72..000000000
--- a/source/css/scss/generic/_reset.scss
+++ /dev/null
@@ -1,17 +0,0 @@
-/*------------------------------------*\
- $RESET
-\*------------------------------------*/
-
-/* Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/ */
-* {
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
-}
-html, body, div, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, ol, ul, li, form, legend, label, table, header, footer, nav, section, figure {
- margin: 0;
- padding: 0;
-}
-header, footer, nav, section, article, hgroup, figure {
- display: block;
-}
\ No newline at end of file
diff --git a/source/css/scss/generic/_variables.scss b/source/css/scss/generic/_variables.scss
deleted file mode 100644
index a183647fd..000000000
--- a/source/css/scss/generic/_variables.scss
+++ /dev/null
@@ -1,74 +0,0 @@
-/*------------------------------------*\
- $VARIABLES
-\*------------------------------------*/
-
-//Colors
-$gray : #808080;
-$gray-light : #f9f9f9;
-$gray-light-2 : #eee;
-$gray-light-3 : #ddd;
-$gray-light-4 : #bbb;
-$gray-med : #666;
-$gray-dark : #333;
-$gray-dark-2 : #131313;
-$white : #fff;
-$black : #000;
-
-$dim : rgba(0,0,0,0.5);
-$dimmer : rgba(0,0,0,0.8);
-
-$error : #f00;
-$valid : #089e00;
-
-$brand-facebook: #03539e;
-$brand-twitter: #35ccff;
-$brand-linkedin: #217bc1;
-
-//Typography
-$font : "HelveticaNeue", "Helvetica", "Arial", sans-serif;
-$font-secondary : Georgia, Times, "Times New Roman", serif;
-
-$font-size-norm : 1em;
-$font-size-slightly-larger : 1.0625em;
-$font-size-slightly-smaller : 0.875em;
-$font-size-sm : 0.75em;
-$font-size-large : 1.4375em;
-
-//Layout
-$max-width: 72rem;
-$offset-left-1: 4.5rem;
-
-$l-sidebar-width: 19.75rem;
-
-//Defaults
-$space : 1rem;
-$space-and-half : $space*1.5;
-$space-double : $space*2;
-$space-triple : $space*3;
-$space-quad : $space*4;
-$space-half : $space/2;
-$space-quarter : $space/4;
-$pad : 1rem;
-$pad-and-half : $pad*1.5;
-$pad-double : $pad*2;
-$pad-half : $pad/2;
-$pad-quarter :$pad/4;
-
-//Borders
-$border-med: 3px;
-$border-thick: 7px;
-
-
-//Breakpoints
-$bp-small : 24em;
-$bp-small-2 : 29.75em;
-$bp-small-3 : 39.8em;
-$bp-med : 46.8em;
-$bp-med-2 : 48em;
-$bp-large : 50em;
-$bp-large-2 : 66em;
-$bp-xl : 73em;
-$bp-xxl : 89em;
-$bp-xxxl : 93em;
-
-//
\ No newline at end of file
diff --git a/source/css/scss/objects/_accordion.scss b/source/css/scss/objects/_accordion.scss
deleted file mode 100644
index 3423544c9..000000000
--- a/source/css/scss/objects/_accordion.scss
+++ /dev/null
@@ -1,33 +0,0 @@
-.accordion {
- margin-bottom: $space;
-}
-
-.acc-handle {
- background: $gray-dark-2;
- color: $white;
- font-family: $font-secondary;
- font-weight: bold;
- display: block;
- position: relative;
- padding: $pad-half;
- border-bottom: 1px solid $gray-light-3;
-
- &:after {
- content:"+";
- float: right;
- }
-
- &:hover {
- color: $white;
- background: $gray-dark;
-
- }
-
- &.active {
- background: $gray-dark;
-
- &:after {
- content:"-";
- }
- }
-}
\ No newline at end of file
diff --git a/source/css/scss/objects/_ads.scss b/source/css/scss/objects/_ads.scss
deleted file mode 100644
index e69de29bb..000000000
diff --git a/source/css/scss/objects/_article.scss b/source/css/scss/objects/_article.scss
deleted file mode 100644
index 3324811bb..000000000
--- a/source/css/scss/objects/_article.scss
+++ /dev/null
@@ -1,52 +0,0 @@
-//Article
-.article-header {
- h1 {
- font-size: 2.5em;
- }
-}
-
-.byline {
- font-size: $font-size-slightly-smaller;
- font-style: italic;
- margin-bottom: $space-half;
-}
-
-/* Wordpress Caption */
-.wp-caption-text {
- font-style: italic;
-}
-
-// Review Summary
-.review-summary {
- .grade {
- width: 4.5em;
- float: left;
- margin: 0 $space-half 0 0;
- }
-
- .summary-text {
- margin-left: 5em;
- }
-}
-
-//Social Share
-.social-share {
- overflow: hidden;
- margin-bottom: $space;
-
- li {
- float: left;
- margin-right: $space-quarter;
- }
-
- a {
- background: $gray-dark;
- color: $white;
- display: block;
- padding: $pad-half;
-
- &:hover {
- background: $gray;
- }
- }
-}
\ No newline at end of file
diff --git a/source/css/scss/objects/_blocks.scss b/source/css/scss/objects/_blocks.scss
deleted file mode 100644
index 160963bd6..000000000
--- a/source/css/scss/objects/_blocks.scss
+++ /dev/null
@@ -1,138 +0,0 @@
-/* Generic Placeholder Brick: REMOVE FOR PRODUCTION */
-.brick {
- background: #dcdddc;
- padding: $pad-double;
- text-align: center;
- font-weight: bold;
- border-bottom: 1px solid $gray-light-2;
-}
-
-/* Block */
-.block {
- overflow: hidden;
-
- p:last-child {
- margin-bottom: 0;
- }
-}
-
-.headline {
- line-height: 1.2;
-}
-
-/* Hero Block */
-.block-hero {
- margin-bottom: $space-half;
-
- .b-thumb {
- img {
- display: block;
- }
- }
-
- @media all and (min-width: $bp-large) {
- position: relative;
-
- .b-text {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- background: $dim;
- color: $white;
- padding: $pad-and-half;
- }
- }
-}
-
-/* Block Thumbnail with Headline */
-.block-thumb {
- display: table;
- width: 100%;
- border-collapse: collapse;
-
- .b-inner {
- display: table-row;
- vertical-align: top;
- overflow: hidden;
- }
-
- .b-thumb {
- @media all and (min-width: $bp-small-2) {
- display: table-cell;
- vertical-align: top;
- width: 30%;
- max-width: 10em;
-
- img {
- display: block;
- width: 100%;
- height: auto;
- }
- }
- }
-
- .b-text {
- @media all and (min-width: $bp-small-2) {
- display: table-cell;
- width: 70%;
- padding: 0 $pad;
- }
- }
-}
-
-
-/* Block Headline Summary */
-.block-headline-summary {
- a {
- display: block;
- padding: $pad-half;
- }
-}
-
-/* Block Inset */
-.block-inset {
- position: relative;
-
- .b-thumb {
- position: relative;
- z-index: 0;
-
- img {
- display: block;
- }
- }
-}
-
-/* Hero Block */
-.block-inset {
- margin-bottom: $space-half;
- position: relative;
-
- .headline {
- font-size: 1.1em;
- }
-
- .b-text {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- background: $dim;
- color: $white;
- padding: $pad-half;
- }
-}
-
-/* Block Thumb with Summary */
-.block-thumb-summary {
- .b-thumb {
- float: left;
- width: 50%;
- }
-
- .b-text {
- margin-left: 50%;
- padding: $pad-half;
- }
-}
\ No newline at end of file
diff --git a/source/css/scss/objects/_buttons.scss b/source/css/scss/objects/_buttons.scss
deleted file mode 100644
index 46fb60d5c..000000000
--- a/source/css/scss/objects/_buttons.scss
+++ /dev/null
@@ -1,39 +0,0 @@
-/*------------------------------------*\
- $BUTTONS
-\*------------------------------------*/
-.btn {
- display: inline-block;
- background: $gray-dark;
- color: $white;
- line-height: 1;
- font-weight: bold;
- padding: $pad;
- border: 0;
- text-align: center;
-
- &:hover, &:focus {
- color: $white;
- }
-
- &.disabled {
- background: $gray-light-2;
- color: $gray-light-4;
- }
-}
-
-.btn-small {
- padding: $pad-half;
-}
-
-.btn-large {
- padding: $pad-half;
- text-transform: uppercase;
- background: $gray;
- font-size: 1.4rem;
- font-weight: normal;
-}
-
-
-.text-btn {
- font-style: italic;
-}
\ No newline at end of file
diff --git a/source/css/scss/objects/_carousels.scss b/source/css/scss/objects/_carousels.scss
deleted file mode 100644
index 77e3f197b..000000000
--- a/source/css/scss/objects/_carousels.scss
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Horizontal Carousel */
-.carousel-horizontal {
- margin-bottom: $space;
- overflow: hidden;
- position: relative;
-}
-
-.carousel-island-container {
- overflow: hidden;
-}
-
-.carousel-container {
- position: relative;
-}
-
-.carousel-list {
-
-}
-
-.carousel-controls {
- display: table;
- width: 100%;
- margin: (-$space-half) 0 $space;
-
- a, div {
- display: table-cell;
- padding: $pad-half;
- }
-
- .carousel-pagination {
- text-align: center;
- }
-
- .carousel-next {
- text-align: right;
- }
-
-}
\ No newline at end of file
diff --git a/source/css/scss/objects/_comments.scss b/source/css/scss/objects/_comments.scss
deleted file mode 100644
index c42fe91e8..000000000
--- a/source/css/scss/objects/_comments.scss
+++ /dev/null
@@ -1,29 +0,0 @@
-.comments {
- li {
- margin-bottom: $space;
- }
-}
-
-.comment-container {
- overflow: hidden;
- margin-bottom: $space;
-}
-
-.comment-meta {
- float: left;
- width: 6.5em;
-
- img {
- display: block;
- border: 1px solid $gray-light-2;
- margin-bottom: $space-half;
- }
-}
-
-.comment-name {
- font-size: $font-size-sm;
-}
-
-.comment-text {
- margin-left: 9em;
-}
\ No newline at end of file
diff --git a/source/css/scss/objects/_footer.scss b/source/css/scss/objects/_footer.scss
deleted file mode 100644
index 884d584a3..000000000
--- a/source/css/scss/objects/_footer.scss
+++ /dev/null
@@ -1,46 +0,0 @@
-/*------------------------------------*\
- $FOOTER
-\*------------------------------------*/
-.footer {
- clear: both;
- overflow: hidden;
- background: $gray-dark-2;
- color: $white;
- line-height: 1.2;
-
- .lc {
- padding: $pad $pad 0;
- }
-
-
- a {
- color: $gray-light;
- }
-
-
-}
-
-//Footer Nav
-.nav-footer {
- margin: (-$pad) (-$pad) $space;
-
- li {
- border-bottom: 1px solid $gray-dark;
-
- @media all and (min-width: $bp-med) {
- border: 0;
- float: left;
- }
- }
-
- a {
- display: block;
- padding: $pad;
- }
-}
-
-.copyright {
- @media all and (min-width: $bp-med) {
- float: right;
- }
-}
\ No newline at end of file
diff --git a/source/css/scss/objects/_header.scss b/source/css/scss/objects/_header.scss
deleted file mode 100644
index 50a25a397..000000000
--- a/source/css/scss/objects/_header.scss
+++ /dev/null
@@ -1,40 +0,0 @@
-.header {
- background: $white;
- padding: 0;
- border-bottom: 1px solid #dbdbdb;
- @extend .lc;
-}
-
-.logo {
- float: left;
- max-width: 8rem;
- margin: 0.4rem;
-
- @media all and (min-width: $bp-med) {
- max-width: 9rem;
- }
-}
-
-.nav-toggle {
- float: right;
- display: block;
- padding: 0.9rem 1rem 0.7rem;
- font-size: 1.3rem;
- line-height: 1;
- border-left: 1px solid #dbdbdb;
-
- @media all and (min-width: $bp-med) {
- display: none;
- }
-}
-
-.search-form {
- overflow: hidden;
- max-height: 0;
-
- @media all and (min-width: $bp-med) {
- float: right;
- max-height: none;
- margin: 0.65em 0.5em 0 0;
- }
-}
\ No newline at end of file
diff --git a/source/css/scss/objects/_icons.scss b/source/css/scss/objects/_icons.scss
deleted file mode 100644
index cacbf1fbd..000000000
--- a/source/css/scss/objects/_icons.scss
+++ /dev/null
@@ -1,125 +0,0 @@
-
-/* Icon Font */
-@font-face {
- font-family: 'icons';
- src:url('../fonts/icons.eot');
- src:url('../fonts/icons.eot?#iefix') format('embedded-opentype'),
- url('../fonts/icons.woff') format('woff'),
- url('../fonts/icons.ttf') format('truetype'),
- url('../fonts/icons.svg#icons') format('svg');
- font-weight: normal;
- font-style: normal;
-}
-
-/* Use the following CSS code if you want to use data attributes for inserting your icons */
-[data-icon]:before {
- font-family: 'icons';
- content: attr(data-icon);
- speak: none;
- font-weight: normal;
- line-height: 1;
- -webkit-font-smoothing: antialiased;
-}
-
-.icon-twitter:before, .icon-stumbleupon:before, .icon-pinterest:before, .icon-linkedin:before, .icon-google-plus:before, .icon-search:before, .icon-play:before, .icon-menu:before, .icon-arrow-left:before, .icon-arrow-right:before, .icon-bubble:before, .icon-facebook:before, .icon-feed:before, .icon-youtube:before, .icon-tag:before, .icon-tumblr:before, .icon-instagram, .icon-podcast, .icon-apple,.icon-android, .icon-arrow:after, .icon-envelope:before {
- font-family: 'icons';
- speak: none;
- font-style: normal;
- font-weight: normal;
- font-variant: normal;
- text-transform: none;
- line-height: 1;
- -webkit-font-smoothing: antialiased;
-}
-.icon-twitter:before {
- content: "\74";
-}
-.icon-stumbleupon:before {
- content: "\75";
-}
-.icon-pinterest:before {
- content: "\70";
-}
-.icon-linkedin:before {
- content: "\69";
-}
-.icon-google-plus:before {
- content: "\67";
-}
-.icon-search:before {
- content: "\73";
-}
-.icon-play:before {
- content: "\61";
-}
-.icon-menu:before {
- content: "\21";
-}
-.icon-arrow-left:before {
- content: "\23";
-}
-.icon-arrow-right:before {
- content: "\24";
-}
-.icon-bubble:before {
- content: "\25";
-}
-.icon-facebook:before {
- content: "\66";
-}
-.icon-feed:before {
- content: "\27";
-}
-.icon-youtube:before {
- content: "\79";
-}
-.icon-tag:before {
- content: "\28";
-}
-.icon-tumblr:before {
- content: "\6d";
-}
-.icon-instagram:before {
- content: "\22";
-}
-.icon-podcast:before {
- content: "\26";
-}
-.icon-android:before {
- content: "\29";
-}
-.icon-apple:before {
- content: "\2a";
-}
-.icon-envelope:before {
- content: "\2b";
-}
-
-
-.icon-arrow:after {
- content: "\61";
- display: inline-block;
- -webkit-transform: rotate(90deg);
- -moz-transform: rotate(90deg);
- -ms-transform: rotate(90deg);
- -o-transform: rotate(90deg);
- transform: rotate(90deg);
-}
-
-.icon-play:before {
- font-size: 0.7rem;
- padding-left: 0.2em;
-}
-
-.icon-play-box {
- display: block;
- margin-left: $pad-double;
-}
-
-.icon-play-box:before {
- padding: $pad-quarter;
- background: $gray;
- color: $white;
- margin-left: -1.7rem;
- margin-right: $pad-half;
-}
diff --git a/source/css/scss/objects/_layout.scss b/source/css/scss/objects/_layout.scss
deleted file mode 100644
index 4929d28e3..000000000
--- a/source/css/scss/objects/_layout.scss
+++ /dev/null
@@ -1,288 +0,0 @@
-/*------------------------------------*\
- $LAYOUT
-\*------------------------------------*/
-
-/* Layout Container */
-.lc {
- max-width: $max-width;
- margin: 0 auto;
- padding: $pad-half;
-}
-
-/*------------------------------------*\
- $TEMPLATES
-\*------------------------------------*/
-
-/* Two Column Layout */
-.l-two-col {
- @extend .cf;
-
- .l-main {
- @media all and (min-width: $bp-large) {
- float: left;
- width: 70%;
- padding-right: $pad;
- }
- }
-
- .l-sidebar {
- @media all and (max-width: $bp-large) {
- clear: both;
- }
-
- @media all and (min-width: $bp-large) {
- float: left;
- width: 30%;
- padding: 0 0 0 $pad;
- }
- }
-}
-
-
-/*------------------------------------*\
- $GRIDS
-\*------------------------------------*/
-
-/* Grid Container */
-.g {
- overflow: hidden;
- margin: 0 (-$pad-half);
-}
-
-/* Grid Item */
-.gi {
- padding: $pad-half;
-
- img {
- display: block;
- }
-
- @media all and (min-width: $bp-med) {
- float: left;
- }
-}
-
-/* Grid 1up */
-.g-1up {
- .gi {
- width: 100%;
- }
-}
-
-/* Grid 2up */
-.g-2up {
- @media all and (min-width: $bp-med) {
- > .gi {
- float: left;
- width: 50%;
-
- &:nth-of-type(odd) {
- clear: left;
- }
- }
- }
-}
-
-/* Grid Half (Always displayed side by side) */
-.g-half {
- > .gi {
- float: left;
- width: 50%;
-
- &:nth-of-type(odd) {
- clear: left;
- }
- }
-}
-
-/* Grid 3up */
-.g-3up {
- @media all and (min-width: $bp-med) {
- > .gi {
- float: left;
- width: 50%;
-
- &:nth-of-type(2n+1) {
- clear: left;
- }
- }
- }
-
- @media all and (min-width: $bp-large) {
- > .gi {
- width: 33.3333333%;
-
- &:nth-of-type(2n+1) {
- clear: none;
- }
-
- &:nth-of-type(3n+1) {
- clear: left;
- }
- }
- }
-}
-
-/* Grid 4up */
-.g-4up {
- @media all and (min-width: $bp-med) {
- >.gi {
- float: left;
- width: 50%;
-
- &:nth-of-type(2n+1) {
- clear: both;
- }
- }
- }
-
- @media all and (min-width: $bp-large) {
- >.gi {
- width: 25%;
-
- &:nth-of-type(2n+1) {
- clear: none;
- }
-
- &:nth-of-type(4n+1) {
- clear: left;
- }
- }
- }
-}
-
-/* Grid Quarter (Always displayed side by side) */
-.g-quarter {
- > .gi {
- float: left;
- width: 24%;
-
- &:nth-of-type(4n+1) {
- clear: left;
- }
- }
-}
-
-.g-max4 {
-
- @media all and (min-width: $bp-small-2) {
- >.gi {
- float: left;
- width: 50%;
-
- &:nth-of-type(2n+1) {
- clear: both;
- }
- }
- }
-
- @media all and (min-width: $bp-small-3) {
- >.gi {
- width: 33.3333333%;
-
- &:nth-of-type(2n+1) {
- clear: none;
- }
-
- &:nth-of-type(3n+1) {
- clear: left;
- }
- }
- }
-
- @media all and (min-width: $bp-large) {
- >.gi {
- width: 25%;
-
- &:nth-of-type(3n+1) {
- clear: none;
- }
-
- &:nth-of-type(4n+1) {
- clear: left;
- }
- }
- }
-}
-
-/* Grid 5up */
-.g-max5 {
-
- >.gi {
- float: left;
- width: 50%;
-
- &:nth-of-type(2n+1) {
- clear: both;
- }
- }
-
- @media all and (min-width: $bp-small-3) {
- >.gi {
- width: 33.3333333%;
-
- &:nth-of-type(2n+1) {
- clear: none;
- }
-
- &:nth-of-type(3n+1) {
- clear: left;
- }
- }
- }
-
- @media all and (min-width: $bp-med) {
- >.gi {
- width: 25%;
-
- &:nth-of-type(3n+1) {
- clear: none;
- }
-
- &:nth-of-type(4n+1) {
- clear: left;
- }
- }
- }
-
- @media all and (min-width: $bp-med-2) {
- >.gi {
- width: 20%;
-
- &:nth-of-type(4n+1) {
- clear: none;
- }
-
- &:nth-of-type(5n+1) {
- clear: left;
- }
- }
- }
-}
-
-/* Grid 2/3 */
-.gi-2-3 {
- @media all and (min-width: $bp-med) {
- float: left;
- width: 66.666666%;
- }
-}
-
-.gi-1-3 {
- @media all and (min-width: $bp-med) {
- float: left;
- width: 33.333333%;
- }
-}
-
-/* Grid 4up block */
-.g-opposites {
- .gi {
- float: left;
-
- &:last-child {
- float: right;
- text-align: right;
- }
- }
-}
\ No newline at end of file
diff --git a/source/css/scss/objects/_lists.scss b/source/css/scss/objects/_lists.scss
deleted file mode 100644
index 0c4e8beaa..000000000
--- a/source/css/scss/objects/_lists.scss
+++ /dev/null
@@ -1,63 +0,0 @@
-.inline-list {
- li {
- display: inline-block;
- }
-}
-
-/* Social List */
-.social-list {
- li {
- margin: 0 0.4rem $space 0;
- }
-
- a {
- font-size: 1.6em;
- }
-}
-
-
-/* Headline List */
-.headline-list {
- margin-bottom: $space;
-
- &.flush {
- margin: 0;
- }
-
- h4 {
- font-weight: normal;
- }
-
- li {
- padding: $pad-quarter 0;
- border-top: 1px solid $gray-light-3;
- }
-}
-
-/* Post List */
-.post-list {
- li {
- margin-bottom: $space;
- }
-}
-
-/* Bullet List */
-.bullet-list {
- list-style: square;
- margin: 0 0 1em 1.2em;
- line-height: 1.3;
-
- li {
- margin-bottom: $space;
- }
-}
-
-/* Text List */
-.text-list {
- margin: 0 0 1em;
- line-height: 1.3;
-
- li {
- margin-bottom: $space;
- }
-}
\ No newline at end of file
diff --git a/source/css/scss/objects/_main.scss b/source/css/scss/objects/_main.scss
deleted file mode 100644
index 592c01dea..000000000
--- a/source/css/scss/objects/_main.scss
+++ /dev/null
@@ -1,9 +0,0 @@
-/*------------------------------------*\
- $MAIN CONTENT AREA
-\*------------------------------------*/
-[role=main] {
- padding: $pad-half $pad-half $pad-double;
- overflow: hidden;
- @extend .lc;
- @extend .cf;
-}
\ No newline at end of file
diff --git a/source/css/scss/objects/_nav.scss b/source/css/scss/objects/_nav.scss
deleted file mode 100644
index b98e3300e..000000000
--- a/source/css/scss/objects/_nav.scss
+++ /dev/null
@@ -1,52 +0,0 @@
-/*------------------------------------*\
- $NAVIGATION
-\*------------------------------------*/
-
-.nav {
- clear: both;
- overflow: hidden;
- max-height: 0;
-
- a {
- display: block;
- padding: $pad;
- border-top: 1px solid $gray-light-2;
- }
-
- &.active {
- max-height: 40em;
- }
-
- @media all and (min-width: $bp-med) {
- max-height: none;
- float: right;
- clear: none;
-
- li {
- float: left;
- }
-
- a {
- border: 0;
- }
-
- }
-}
-
-//Pagination
-.pagination {
- overflow: hidden;
-
- li {
- float: left;
- border-right: 1px solid $gray-light-2;
-
- &:last-child {
- border: 0;
- }
- }
-
- a {
- padding: $pad;
- }
-}
\ No newline at end of file
diff --git a/source/css/scss/objects/_sections.scss b/source/css/scss/objects/_sections.scss
deleted file mode 100644
index 7235af263..000000000
--- a/source/css/scss/objects/_sections.scss
+++ /dev/null
@@ -1,7 +0,0 @@
-.section {
- margin: 0 0 $space;
-}
-
-.section-title {
- margin-bottom: $space-half;
-}
\ No newline at end of file
diff --git a/source/css/scss/objects/_tabs.scss b/source/css/scss/objects/_tabs.scss
deleted file mode 100644
index b22ca7438..000000000
--- a/source/css/scss/objects/_tabs.scss
+++ /dev/null
@@ -1,33 +0,0 @@
-.tabs {
- overflow: hidden;
-
- ul {
- display: table;
- width: 100%;
- }
-
- li {
- display: table-cell;
- text-align: center;
- border-right: 1px solid $gray-light-3;
-
- &:last-child {
- border-right: 0;
- }
- }
-
- a {
- display: block;
- padding: $pad-half;
- background: $gray;
-
- &:hover, &:focus {
- background: $gray-light-3;
- }
-
- &.active {
- background: $gray-dark;
- color: $white;
- }
- }
-}
\ No newline at end of file
diff --git a/source/css/scss/objects/_text.scss b/source/css/scss/objects/_text.scss
deleted file mode 100644
index 42f1b4705..000000000
--- a/source/css/scss/objects/_text.scss
+++ /dev/null
@@ -1,77 +0,0 @@
-/* Global Font Classes */
-.font-secondary {
- font-family: $font-secondary;
-}
-
-//Intro text
-.intro {
- font-size: $font-size-slightly-larger;
- font-weight: bold;
-}
-
-//Pullquote
-.pullquote {
- font-family: $font-secondary;
- font-size: $font-size-large;
-}
-
-//Text Passages
-.text {
- a {
- text-decoration: underline;
- }
-
- ul {
- list-style: disc;
- margin: 0 0 $space 1.2em;
-
- ul {
- margin-bottom: 0;
- }
- }
-
- ol {
- list-style: decimal;
- margin: 0 0 $space 1.2em;
-
- ol {
- margin-bottom: 0;
- }
- }
-}
-
-/* Review Grade Tile */
-.grade {
- display: block;
- font-weight: bold;
- background: $gray;
- color: $white;
- min-height: 4.5rem;
- padding-top: 1.5rem;
- text-align: center;
-}
-
-/* Eyebrow */
-.eyebrow {
- background: $gray-dark;
- color: $white;
- padding: 0.2em;
- display: inline-block;
- margin-bottom: $space-half;
-}
-
-.eyebrow-image {
- position: relative;
-
- img {
- position: relative;
- z-index: 0;
- }
-
- .eyebrow {
- position: absolute;
- top: 0;
- left: 0;
- z-index: 1;
- }
-}
\ No newline at end of file
diff --git a/source/css/scss/objects/_tooltip.scss b/source/css/scss/objects/_tooltip.scss
deleted file mode 100644
index e0fdd95da..000000000
--- a/source/css/scss/objects/_tooltip.scss
+++ /dev/null
@@ -1,42 +0,0 @@
-.tooltip-container {
- display: inline-block;
- position: relative;
-
- &:hover {
- .tooltip {
- display: block;
- }
- }
-}
-
-.tooltip-link {
- background: $gray-light;
-}
-
-.tooltip {
- display: none;
- position: absolute;
- top: 1.5em;
- left: 0;
- width: 18em;
- padding: $pad;
- background: $white;
- border: 1px solid $gray;
- box-shadow: 0.3em 0.3em 1em 0 rgba(0,0,0,0.2);
-
- h2 {
- margin-top: 0;
- }
-
- @media all and (min-width: $bp-small) {
- width: 22em;
- }
-
- @media all and (min-width: $bp-small-2) {
- width: 27em;
- }
-
- @media all and (min-width: $bp-small-3) {
- width: 30em;
- }
-}
\ No newline at end of file
diff --git a/source/css/style.css b/source/css/style.css
deleted file mode 100644
index 8ee193ced..000000000
--- a/source/css/style.css
+++ /dev/null
@@ -1,1133 +0,0 @@
-/*
- ,, ,, ,,
- .M"""bgd mm db `7MM mm mm `7MM OO OO OO
-,MI "Y MM MM MM MM MM 88 88 88
-`MMb. mmMMmm ,pW"Wq.`7MMpdMAo. `7Mb,od8 `7MM .P"Ybmmm MMpMMMb.mmMMmm mmMMmm MMpMMMb. .gP"Ya `7Mb,od8 .gP"Ya || || ||
- `YMMNq. MM 6W' `Wb MM `Wb MM' "' MM :MI I8 MM MM MM MM MM MM ,M' Yb MM' "',M' Yb || || ||
-. `MM MM 8M M8 MM M8 MM MM WmmmP" MM MM MM MM MM MM 8M"""""" MM 8M"""""" `' `' `'
-Mb dM MM YA. ,A9 MM ,AP MM MM 8M MM MM MM MM MM MM YM. , MM YM. , ,, ,, ,,
-P"Ybmmd" `Mbmo`Ybmd9' MMbmmd' .JMML. .JMML.YMMMMMb .JMML JMML.`Mbmo `Mbmo.JMML JMML.`Mbmmd'.JMML. `Mbmmd' db db db
- MM 6' dP
- .JMML. Ybmmmd'
-
-Pattern Lab doesn't have any CSS requirements, which means you can write your styles however you want. Hooray!
-You can use Sass, Less, vanilla CSS, or some other crazy thing I haven't heard of yet.
-So please don't use these styles. They're just here to put together the demo, and nothing more.
-They're intentionally gray, boring, and crappy because you're supposed to do this stuff yourself.
-
-Atomic design is philosophically complimentary with these CSS approaches:
-
-* SMACSS by Jonathan Snook http://smacss.com/
-* OOCSS by Nicole Sullivan http://oocss.org/
-* BEM CSS Methology : http://bem.info/method/
-* CSS Guidelines by Harry Roberts : https://github.com/csswizardry/CSS-Guidelines
-
-So feel free to use any of these approaches. Or don't. It's totally up to you.
-
-*/
-/*------------------------------------*\
- $TABLE OF CONTENTS
- based generally on Harry Roberts excellent CSS Guidelines https://github.com/csswizardry/CSS-Guidelines
-\*------------------------------------*/
-/**
- * VARIABLES..............................Declarations of Sass variables
- * .....Colors
- * .....Typography
- * .....Layout
- * .....Defaults
- * .....Breakpoints
- * MIXINS.................................Sass mixins
- * RESET..................................Set reset defaults
- * GLOBAL CLASSES.........................Set reset defaults
- * GLOBAL ELEMENTS........................Establish global styles
- * .....Main
- * .....Headings
- * .....Text-related elements (p, blockquote, lists)
- * .....Defaults
- * .....Breakpoints
- * TYPOGRAPHY------------------------------
- * MEDIA------------------------------
- * LAYOUT------------------------------
- * NAVIGATION------------------------------
- * TOC To Be Continued
- */
-/*------------------------------------*\
- $VARIABLES
-\*------------------------------------*/
-/*------------------------------------*\
- $MIXINS
-\*------------------------------------*/
-/* CSS Transition
- Usage: @include transition(width,0.3s,ease-out);
- */
-/* Rem Unit font sizes with relative fallback http:/seesparkbox.com/foundry/scss_rem_mixin_now_with_a_better_fallback
- Usage: @include font-size(1, large);
-*/
-/*------------------------------------*\
- $RESET
-\*------------------------------------*/
-/* Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/ */
-* {
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- box-sizing: border-box; }
-
-html, body, div, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, ol, ul, li, form, legend, label, table, header, footer, nav, section, figure {
- margin: 0;
- padding: 0; }
-
-header, footer, nav, section, article, hgroup, figure {
- display: block; }
-
-/*------------------------------------*\
- $GLOBAL ELEMENTS
-\*------------------------------------*/
-/*------------------------------------*\
- $GLOBAL CLASSES
-\*------------------------------------*/
-/* Clearfix */
-.cf, .l-two-col, [role=main] {
- *zoom: 1; }
-
-.cf:before, .l-two-col:before, [role=main]:before, .cf:after, .l-two-col:after, [role=main]:after {
- content: " ";
- /* 1 */
- display: table;
- /* 2 */ }
-
-.cf:after, .l-two-col:after, [role=main]:after {
- clear: both; }
-
-/* Completely remove from the flow and screen readers. */
-.is-hidden {
- display: none !important;
- visibility: hidden !important; }
-
-/* Completely remove from the flow but leave available to screen readers. */
-.is-vishidden {
- position: absolute !important;
- overflow: hidden;
- width: 1px;
- height: 1px;
- padding: 0;
- border: 0;
- clip: rect(1px, 1px, 1px, 1px); }
-
-/* Floats */
-.right {
- float: right;
- padding: 0 0 1rem 1rem; }
-
-.right-search {
- float: right;
- padding: 0 0 1rem 0; }
-
-.left {
- float: left;
- padding: 0 1rem 1rem 0; }
-
-/* Text-Align */
-.align-right {
- text-align: right; }
-
-.align-center {
- text-align: center; }
-
-.align-left {
- text-align: left; }
-
-/* Display Classes */
-@media all and (max-width: 46.8em) {
- .hide-small {
- display: none; } }
-
-@media all and (min-width: 46.8em) and (max-width: 50em) {
- .hide-med {
- display: none; } }
-
-@media all and (min-width: 50em) {
- .hide-large {
- display: none; } }
-
-.valid {
- color: #089e00; }
-
-.error {
- color: red; }
-
-body {
- background: white;
- font: 100%/1.5 "HelveticaNeue", "Helvetica", "Arial", sans-serif;
- -webkit-text-size-adjust: 100%;
- color: #333333; }
-
-/* Links */
-a {
- color: #333333;
- text-decoration: none;
- outline: 0; }
- a:hover, a:focus {
- color: gray; }
-
-/* Headings */
-/*Further Reading: http:/csswizardry.com/2012/02/pragmatic-practical-font-sizing-in-css/ */
-h1, .alpha {
- line-height: 1.2; }
-
-h2, .beta {
- line-height: 1.2; }
-
-h3, .gamma {
- line-height: 1.2; }
-
-/* Subheadings */
-.subheading {
- font-family: Georgia, Times, "Times New Roman", serif;
- font-weight: normal; }
-
-/* Text-Related Elements */
-p {
- margin-bottom: 1rem; }
-
-/* Blockquote */
-blockquote {
- font-style: italic;
- border-left: 1px solid gray;
- color: gray;
- padding-left: 1rem;
- margin-bottom: 1rem; }
-
-/* Horizontal Rule */
-hr {
- border: 0;
- height: 2px;
- background: #eeeeee;
- margin: 2rem 0; }
-
-abbr {
- border-bottom: 1px dotted gray;
- cursor: help; }
-
-ol, ul {
- margin: 0;
- padding: 0;
- list-style: none; }
-
-/* Definition Lists */
-dl {
- overflow: hidden;
- margin: 0 0 1rem; }
-
-dt {
- font-weight: bold; }
-
-dd {
- margin-left: 0; }
-
-/*------------------------------------*\
- $MEDIA ELEMENTS
-\*------------------------------------*/
-/* Flexible Media */
-img, video, object {
- max-width: 100%;
- height: auto; }
-
-iframe {
- margin-bottom: 1rem; }
-
-figure {
- margin-bottom: 1rem; }
- figure img {
- margin-bottom: 0.25rem; }
-
-figcaption {
- font-style: italic; }
-
-/*------------------------------------*\
- $FORMS
-\*------------------------------------*/
-form > div {
- margin-bottom: 1rem; }
-
-form ol, form ul {
- list-style: none;
- margin-left: 0; }
-
-fieldset {
- border: 0;
- padding: 0;
- margin: 0; }
-
-label {
- display: block;
- padding-bottom: 0.25rem; }
-
-button, input, select, textarea {
- font-family: inherit;
- font-size: 100%;
- margin: 0; }
-
-input, textarea {
- width: 100%;
- border: 1px solid gray;
- padding: 0.5rem 0.65rem; }
-
-input[type=text], input[type=search], input[type=url], input[type=number], textarea {
- -webkit-appearance: none; }
-
-button, input[type="submit"] {
- padding: 0.5rem;
- background: #333333;
- border: 1px solid gray;
- cursor: pointer; }
-
-input[type="checkbox"],
-input[type="radio"] {
- width: auto;
- margin-right: 0.3em; }
-
-input[type="search"] {
- -webkit-appearance: none;
- border-radius: 0; }
-
-input[type="search"]::-webkit-search-cancel-button,
-input[type="search"]::-webkit-search-decoration {
- -webkit-appearance: none; }
-
-.field-container {
- margin-bottom: 1rem; }
-
-.inline-form fieldset, .inline-form .inline-container {
- position: relative; }
-.inline-form input[type=submit], .inline-form button, .inline-form .btn {
- font-size: 0.875em;
- padding: 0.65rem 1.3rem;
- background: #333333;
- position: absolute;
- top: 0;
- right: 0;
- z-index: 1;
- width: auto; }
- .inline-form input[type=submit]:hover, .inline-form input[type=submit]:focus, .inline-form button:hover, .inline-form button:focus, .inline-form .btn:hover, .inline-form .btn:focus {
- background: gray;
- color: white; }
-
-.inline-search-results-form {
- width: 100%; }
- @media all and (min-width: 46.8em) {
- .inline-search-results-form {
- width: 82%; } }
- .inline-search-results-form fieldset, .inline-search-results-form .inline-container {
- position: relative; }
- .inline-search-results-form input[type=submit], .inline-search-results-form button {
- position: absolute;
- top: 0;
- right: 0;
- z-index: 1;
- width: auto; }
-
-/* Validation */
-.has-error {
- border-color: red; }
-
-.is-valid {
- border-color: #089e00; }
-
-/*------------------------------------*\
- $SPECIFIC FORMS
-\*------------------------------------*/
-/* Search Form */
-.search-field {
- padding-right: 3em; }
-
-.inline-form .search-submit {
- background: none;
- padding: 0.78em 1em;
- border: 0;
- border-left: 1px solid gray;
- color: gray; }
-
-/*------------------------------------*\
- $Table
-\*------------------------------------*/
-table {
- border-collapse: collapse;
- border-spacing: 0;
- border: 1px solid gray;
- width: 100%; }
-
-th {
- text-align: left;
- border: 1px solid gray;
- padding: 0.2em; }
-
-td {
- border: 1px solid gray;
- padding: 0.2em; }
-
-.animate-fade {
- -webkit-transition: opacity 0.3s ease-out;
- -moz-transition: opacity 0.3s ease-out;
- -ms-transition: opacity 0.3s ease-out;
- -o-transition: opacity 0.3s ease-out;
- transition: opacity 0.3s ease-out; }
- .animate-fade:hover {
- opacity: 0; }
-
-.animate-move > .demo-shape {
- -webkit-transition: all 0.8s ease-in-out;
- -moz-transition: all 0.8s ease-in-out;
- -ms-transition: all 0.8s ease-in-out;
- -o-transition: all 0.8s ease-in-out;
- transition: all 0.8s ease-in-out; }
-
-/*------------------------------------*\
- $LAYOUT
-\*------------------------------------*/
-/*------------------------------------*\
- $LAYOUT
-\*------------------------------------*/
-/* Layout Container */
-.lc, .header, [role=main] {
- max-width: 72rem;
- margin: 0 auto;
- padding: 0.5rem; }
-
-/*------------------------------------*\
- $TEMPLATES
-\*------------------------------------*/
-/* Two Column Layout */
-@media all and (min-width: 50em) {
- .l-two-col .l-main {
- float: left;
- width: 70%;
- padding-right: 1rem; } }
-@media all and (max-width: 50em) {
- .l-two-col .l-sidebar {
- clear: both; } }
-@media all and (min-width: 50em) {
- .l-two-col .l-sidebar {
- float: left;
- width: 30%;
- padding: 0 0 0 1rem; } }
-
-/*------------------------------------*\
- $GRIDS
-\*------------------------------------*/
-/* Grid Container */
-.g {
- overflow: hidden;
- margin: 0 -0.5rem; }
-
-/* Grid Item */
-.gi {
- padding: 0.5rem; }
- .gi img {
- display: block; }
- @media all and (min-width: 46.8em) {
- .gi {
- float: left; } }
-
-/* Grid 1up */
-.g-1up .gi {
- width: 100%; }
-
-/* Grid 2up */
-@media all and (min-width: 46.8em) {
- .g-2up > .gi {
- float: left;
- width: 50%; }
- .g-2up > .gi:nth-of-type(odd) {
- clear: left; } }
-
-/* Grid Half (Always displayed side by side) */
-.g-half > .gi {
- float: left;
- width: 50%; }
- .g-half > .gi:nth-of-type(odd) {
- clear: left; }
-
-/* Grid 3up */
-@media all and (min-width: 46.8em) {
- .g-3up > .gi {
- float: left;
- width: 50%; }
- .g-3up > .gi:nth-of-type(2n+1) {
- clear: left; } }
-@media all and (min-width: 50em) {
- .g-3up > .gi {
- width: 33.3333333%; }
- .g-3up > .gi:nth-of-type(2n+1) {
- clear: none; }
- .g-3up > .gi:nth-of-type(3n+1) {
- clear: left; } }
-
-/* Grid 4up */
-@media all and (min-width: 46.8em) {
- .g-4up > .gi {
- float: left;
- width: 50%; }
- .g-4up > .gi:nth-of-type(2n+1) {
- clear: both; } }
-@media all and (min-width: 50em) {
- .g-4up > .gi {
- width: 25%; }
- .g-4up > .gi:nth-of-type(2n+1) {
- clear: none; }
- .g-4up > .gi:nth-of-type(4n+1) {
- clear: left; } }
-
-/* Grid Quarter (Always displayed side by side) */
-.g-quarter > .gi {
- float: left;
- width: 24%; }
- .g-quarter > .gi:nth-of-type(4n+1) {
- clear: left; }
-
-@media all and (min-width: 29.75em) {
- .g-max4 > .gi {
- float: left;
- width: 50%; }
- .g-max4 > .gi:nth-of-type(2n+1) {
- clear: both; } }
-@media all and (min-width: 39.8em) {
- .g-max4 > .gi {
- width: 33.3333333%; }
- .g-max4 > .gi:nth-of-type(2n+1) {
- clear: none; }
- .g-max4 > .gi:nth-of-type(3n+1) {
- clear: left; } }
-@media all and (min-width: 50em) {
- .g-max4 > .gi {
- width: 25%; }
- .g-max4 > .gi:nth-of-type(3n+1) {
- clear: none; }
- .g-max4 > .gi:nth-of-type(4n+1) {
- clear: left; } }
-
-/* Grid 5up */
-.g-max5 > .gi {
- float: left;
- width: 50%; }
- .g-max5 > .gi:nth-of-type(2n+1) {
- clear: both; }
-@media all and (min-width: 39.8em) {
- .g-max5 > .gi {
- width: 33.3333333%; }
- .g-max5 > .gi:nth-of-type(2n+1) {
- clear: none; }
- .g-max5 > .gi:nth-of-type(3n+1) {
- clear: left; } }
-@media all and (min-width: 46.8em) {
- .g-max5 > .gi {
- width: 25%; }
- .g-max5 > .gi:nth-of-type(3n+1) {
- clear: none; }
- .g-max5 > .gi:nth-of-type(4n+1) {
- clear: left; } }
-@media all and (min-width: 48em) {
- .g-max5 > .gi {
- width: 20%; }
- .g-max5 > .gi:nth-of-type(4n+1) {
- clear: none; }
- .g-max5 > .gi:nth-of-type(5n+1) {
- clear: left; } }
-
-/* Grid 2/3 */
-@media all and (min-width: 46.8em) {
- .gi-2-3 {
- float: left;
- width: 66.666666%; } }
-
-@media all and (min-width: 46.8em) {
- .gi-1-3 {
- float: left;
- width: 33.333333%; } }
-
-/* Grid 4up block */
-.g-opposites .gi {
- float: left; }
- .g-opposites .gi:last-child {
- float: right;
- text-align: right; }
-
-/*------------------------------------*\
- $PAGE STRUCTURE
-\*------------------------------------*/
-.header {
- background: white;
- padding: 0;
- border-bottom: 1px solid #dbdbdb; }
-
-.logo {
- float: left;
- max-width: 8rem;
- margin: 0.4rem; }
- @media all and (min-width: 46.8em) {
- .logo {
- max-width: 9rem; } }
-
-.nav-toggle {
- float: right;
- display: block;
- padding: 0.9rem 1rem 0.7rem;
- font-size: 1.3rem;
- line-height: 1;
- border-left: 1px solid #dbdbdb; }
- @media all and (min-width: 46.8em) {
- .nav-toggle {
- display: none; } }
-
-.search-form {
- overflow: hidden;
- max-height: 0; }
- @media all and (min-width: 46.8em) {
- .search-form {
- float: right;
- max-height: none;
- margin: 0.65em 0.5em 0 0; } }
-
-/*------------------------------------*\
- $NAVIGATION
-\*------------------------------------*/
-.nav {
- clear: both;
- overflow: hidden;
- max-height: 0; }
- .nav a {
- display: block;
- padding: 1rem;
- border-top: 1px solid #eeeeee; }
- .nav.active {
- max-height: 40em; }
- @media all and (min-width: 46.8em) {
- .nav {
- max-height: none;
- float: right;
- clear: none; }
- .nav li {
- float: left; }
- .nav a {
- border: 0; } }
-
-.pagination {
- overflow: hidden; }
- .pagination li {
- float: left;
- border-right: 1px solid #eeeeee; }
- .pagination li:last-child {
- border: 0; }
- .pagination a {
- padding: 1rem; }
-
-/*------------------------------------*\
- $MAIN CONTENT AREA
-\*------------------------------------*/
-[role=main] {
- padding: 0.5rem 0.5rem 2rem;
- overflow: hidden; }
-
-/*------------------------------------*\
- $FOOTER
-\*------------------------------------*/
-.footer {
- clear: both;
- overflow: hidden;
- background: #131313;
- color: white;
- line-height: 1.2; }
- .footer .lc, .footer .header, .footer [role=main] {
- padding: 1rem 1rem 0; }
- .footer a {
- color: #f9f9f9; }
-
-.nav-footer {
- margin: -1rem -1rem 1rem; }
- .nav-footer li {
- border-bottom: 1px solid #333333; }
- @media all and (min-width: 46.8em) {
- .nav-footer li {
- border: 0;
- float: left; } }
- .nav-footer a {
- display: block;
- padding: 1rem; }
-
-@media all and (min-width: 46.8em) {
- .copyright {
- float: right; } }
-
-/*------------------------------------*\
- $TEXT Styles
-\*------------------------------------*/
-/* Global Font Classes */
-.font-secondary {
- font-family: Georgia, Times, "Times New Roman", serif; }
-
-.intro {
- font-size: 1.0625em;
- font-weight: bold; }
-
-.pullquote {
- font-family: Georgia, Times, "Times New Roman", serif;
- font-size: 1.4375em; }
-
-.text a {
- text-decoration: underline; }
-.text ul {
- list-style: disc;
- margin: 0 0 1rem 1.2em; }
- .text ul ul {
- margin-bottom: 0; }
-.text ol {
- list-style: decimal;
- margin: 0 0 1rem 1.2em; }
- .text ol ol {
- margin-bottom: 0; }
-
-/* Review Grade Tile */
-.grade {
- display: block;
- font-weight: bold;
- background: gray;
- color: white;
- min-height: 4.5rem;
- padding-top: 1.5rem;
- text-align: center; }
-
-/* Eyebrow */
-.eyebrow {
- background: #333333;
- color: white;
- padding: 0.2em;
- display: inline-block;
- margin-bottom: 0.5rem; }
-
-.eyebrow-image {
- position: relative; }
- .eyebrow-image img {
- position: relative;
- z-index: 0; }
- .eyebrow-image .eyebrow {
- position: absolute;
- top: 0;
- left: 0;
- z-index: 1; }
-
-/*------------------------------------*\
- $COMPONENTS
-\*------------------------------------*/
-/* Icon Font */
-@font-face {
- font-family: 'icons';
- src: url("../fonts/icons.eot");
- src: url("../fonts/icons.eot?#iefix") format("embedded-opentype"), url("../fonts/icons.woff") format("woff"), url("../fonts/icons.ttf") format("truetype"), url("../fonts/icons.svg#icons") format("svg");
- font-weight: normal;
- font-style: normal; }
-
-/* Use the following CSS code if you want to use data attributes for inserting your icons */
-[data-icon]:before {
- font-family: 'icons';
- content: attr(data-icon);
- speak: none;
- font-weight: normal;
- line-height: 1;
- -webkit-font-smoothing: antialiased; }
-
-.icon-twitter:before, .icon-stumbleupon:before, .icon-pinterest:before, .icon-linkedin:before, .icon-google-plus:before, .icon-search:before, .icon-play:before, .icon-menu:before, .icon-arrow-left:before, .icon-arrow-right:before, .icon-bubble:before, .icon-facebook:before, .icon-feed:before, .icon-youtube:before, .icon-tag:before, .icon-tumblr:before, .icon-instagram, .icon-podcast, .icon-apple, .icon-android, .icon-arrow:after, .icon-envelope:before {
- font-family: 'icons';
- speak: none;
- font-style: normal;
- font-weight: normal;
- font-variant: normal;
- text-transform: none;
- line-height: 1;
- -webkit-font-smoothing: antialiased; }
-
-.icon-twitter:before {
- content: "\74"; }
-
-.icon-stumbleupon:before {
- content: "\75"; }
-
-.icon-pinterest:before {
- content: "\70"; }
-
-.icon-linkedin:before {
- content: "\69"; }
-
-.icon-google-plus:before {
- content: "\67"; }
-
-.icon-search:before {
- content: "\73"; }
-
-.icon-play:before {
- content: "\61"; }
-
-.icon-menu:before {
- content: "\21"; }
-
-.icon-arrow-left:before {
- content: "\23"; }
-
-.icon-arrow-right:before {
- content: "\24"; }
-
-.icon-bubble:before {
- content: "\25"; }
-
-.icon-facebook:before {
- content: "\66"; }
-
-.icon-feed:before {
- content: "\27"; }
-
-.icon-youtube:before {
- content: "\79"; }
-
-.icon-tag:before {
- content: "\28"; }
-
-.icon-tumblr:before {
- content: "\6d"; }
-
-.icon-instagram:before {
- content: "\22"; }
-
-.icon-podcast:before {
- content: "\26"; }
-
-.icon-android:before {
- content: "\29"; }
-
-.icon-apple:before {
- content: "\2a"; }
-
-.icon-envelope:before {
- content: "\2b"; }
-
-.icon-arrow:after {
- content: "\61";
- display: inline-block;
- -webkit-transform: rotate(90deg);
- -moz-transform: rotate(90deg);
- -ms-transform: rotate(90deg);
- -o-transform: rotate(90deg);
- transform: rotate(90deg); }
-
-.icon-play:before {
- font-size: 0.7rem;
- padding-left: 0.2em; }
-
-.icon-play-box {
- display: block;
- margin-left: 2rem; }
-
-.icon-play-box:before {
- padding: 0.25rem;
- background: gray;
- color: white;
- margin-left: -1.7rem;
- margin-right: 0.5rem; }
-
-/*------------------------------------*\
- $BUTTONS
-\*------------------------------------*/
-.btn {
- display: inline-block;
- background: #333333;
- color: white;
- line-height: 1;
- font-weight: bold;
- padding: 1rem;
- border: 0;
- text-align: center; }
- .btn:hover, .btn:focus {
- color: white; }
- .btn.disabled {
- background: #eeeeee;
- color: #bbbbbb; }
-
-.btn-small {
- padding: 0.5rem; }
-
-.btn-large {
- padding: 0.5rem;
- text-transform: uppercase;
- background: gray;
- font-size: 1.4rem;
- font-weight: normal; }
-
-.text-btn {
- font-style: italic; }
-
-/* Generic Placeholder Brick: REMOVE FOR PRODUCTION */
-.brick {
- background: #dcdddc;
- padding: 2rem;
- text-align: center;
- font-weight: bold;
- border-bottom: 1px solid #eeeeee; }
-
-/* Block */
-.block {
- overflow: hidden; }
- .block p:last-child {
- margin-bottom: 0; }
-
-.headline {
- line-height: 1.2; }
-
-/* Hero Block */
-.block-hero {
- margin-bottom: 0.5rem; }
- .block-hero .b-thumb img {
- display: block; }
- @media all and (min-width: 50em) {
- .block-hero {
- position: relative; }
- .block-hero .b-text {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- background: rgba(0, 0, 0, 0.5);
- color: white;
- padding: 1.5rem; } }
-
-/* Block Thumbnail with Headline */
-.block-thumb {
- display: table;
- width: 100%;
- border-collapse: collapse; }
- .block-thumb .b-inner {
- display: table-row;
- vertical-align: top;
- overflow: hidden; }
- @media all and (min-width: 29.75em) {
- .block-thumb .b-thumb {
- display: table-cell;
- vertical-align: top;
- width: 30%;
- max-width: 10em; }
- .block-thumb .b-thumb img {
- display: block;
- width: 100%;
- height: auto; } }
- @media all and (min-width: 29.75em) {
- .block-thumb .b-text {
- display: table-cell;
- width: 70%;
- padding: 0 1rem; } }
-
-/* Block Headline Summary */
-.block-headline-summary a {
- display: block;
- padding: 0.5rem; }
-
-/* Block Inset */
-.block-inset {
- position: relative; }
- .block-inset .b-thumb {
- position: relative;
- z-index: 0; }
- .block-inset .b-thumb img {
- display: block; }
-
-/* Hero Block */
-.block-inset {
- margin-bottom: 0.5rem;
- position: relative; }
- .block-inset .headline {
- font-size: 1.1em; }
- .block-inset .b-text {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- background: rgba(0, 0, 0, 0.5);
- color: white;
- padding: 0.5rem; }
-
-/* Block Thumb with Summary */
-.block-thumb-summary .b-thumb {
- float: left;
- width: 50%; }
-.block-thumb-summary .b-text {
- margin-left: 50%;
- padding: 0.5rem; }
-
-.inline-list li {
- display: inline-block; }
-
-/* Social List */
-.social-list li {
- margin: 0 0.4rem 1rem 0; }
-.social-list a {
- font-size: 1.6em; }
-
-/* Headline List */
-.headline-list {
- margin-bottom: 1rem; }
- .headline-list.flush {
- margin: 0; }
- .headline-list h4 {
- font-weight: normal; }
- .headline-list li {
- padding: 0.25rem 0;
- border-top: 1px solid #dddddd; }
-
-/* Post List */
-.post-list li {
- margin-bottom: 1rem; }
-
-/* Bullet List */
-.bullet-list {
- list-style: square;
- margin: 0 0 1em 1.2em;
- line-height: 1.3; }
- .bullet-list li {
- margin-bottom: 1rem; }
-
-/* Text List */
-.text-list {
- margin: 0 0 1em;
- line-height: 1.3; }
- .text-list li {
- margin-bottom: 1rem; }
-
-.tooltip-container {
- display: inline-block;
- position: relative; }
- .tooltip-container:hover .tooltip {
- display: block; }
-
-.tooltip-link {
- background: #f9f9f9; }
-
-.tooltip {
- display: none;
- position: absolute;
- top: 1.5em;
- left: 0;
- width: 18em;
- padding: 1rem;
- background: white;
- border: 1px solid gray;
- box-shadow: 0.3em 0.3em 1em 0 rgba(0, 0, 0, 0.2); }
- .tooltip h2 {
- margin-top: 0; }
- @media all and (min-width: 24em) {
- .tooltip {
- width: 22em; } }
- @media all and (min-width: 29.75em) {
- .tooltip {
- width: 27em; } }
- @media all and (min-width: 39.8em) {
- .tooltip {
- width: 30em; } }
-
-.accordion {
- margin-bottom: 1rem; }
-
-.acc-handle {
- background: #131313;
- color: white;
- font-family: Georgia, Times, "Times New Roman", serif;
- font-weight: bold;
- display: block;
- position: relative;
- padding: 0.5rem;
- border-bottom: 1px solid #dddddd; }
- .acc-handle:after {
- content: "+";
- float: right; }
- .acc-handle:hover {
- color: white;
- background: #333333; }
- .acc-handle.active {
- background: #333333; }
- .acc-handle.active:after {
- content: "-"; }
-
-.tabs {
- overflow: hidden; }
- .tabs ul {
- display: table;
- width: 100%; }
- .tabs li {
- display: table-cell;
- text-align: center;
- border-right: 1px solid #dddddd; }
- .tabs li:last-child {
- border-right: 0; }
- .tabs a {
- display: block;
- padding: 0.5rem;
- background: gray; }
- .tabs a:hover, .tabs a:focus {
- background: #dddddd; }
- .tabs a.active {
- background: #333333;
- color: white; }
-
-.section {
- margin: 0 0 1rem; }
-
-.section-title {
- margin-bottom: 0.5rem; }
-
-.article-header h1 {
- font-size: 2.5em; }
-
-.byline {
- font-size: 0.875em;
- font-style: italic;
- margin-bottom: 0.5rem; }
-
-/* Wordpress Caption */
-.wp-caption-text {
- font-style: italic; }
-
-.review-summary .grade {
- width: 4.5em;
- float: left;
- margin: 0 0.5rem 0 0; }
-.review-summary .summary-text {
- margin-left: 5em; }
-
-.social-share {
- overflow: hidden;
- margin-bottom: 1rem; }
- .social-share li {
- float: left;
- margin-right: 0.25rem; }
- .social-share a {
- background: #333333;
- color: white;
- display: block;
- padding: 0.5rem; }
- .social-share a:hover {
- background: gray; }
-
-.comments li {
- margin-bottom: 1rem; }
-
-.comment-container {
- overflow: hidden;
- margin-bottom: 1rem; }
-
-.comment-meta {
- float: left;
- width: 6.5em; }
- .comment-meta img {
- display: block;
- border: 1px solid #eeeeee;
- margin-bottom: 0.5rem; }
-
-.comment-name {
- font-size: 0.75em; }
-
-.comment-text {
- margin-left: 9em; }
diff --git a/source/css/style.scss b/source/css/style.scss
deleted file mode 100644
index f23c02bbc..000000000
--- a/source/css/style.scss
+++ /dev/null
@@ -1,120 +0,0 @@
-/*
- ,, ,, ,,
- .M"""bgd mm db `7MM mm mm `7MM OO OO OO
-,MI "Y MM MM MM MM MM 88 88 88
-`MMb. mmMMmm ,pW"Wq.`7MMpdMAo. `7Mb,od8 `7MM .P"Ybmmm MMpMMMb.mmMMmm mmMMmm MMpMMMb. .gP"Ya `7Mb,od8 .gP"Ya || || ||
- `YMMNq. MM 6W' `Wb MM `Wb MM' "' MM :MI I8 MM MM MM MM MM MM ,M' Yb MM' "',M' Yb || || ||
-. `MM MM 8M M8 MM M8 MM MM WmmmP" MM MM MM MM MM MM 8M"""""" MM 8M"""""" `' `' `'
-Mb dM MM YA. ,A9 MM ,AP MM MM 8M MM MM MM MM MM MM YM. , MM YM. , ,, ,, ,,
-P"Ybmmd" `Mbmo`Ybmd9' MMbmmd' .JMML. .JMML.YMMMMMb .JMML JMML.`Mbmo `Mbmo.JMML JMML.`Mbmmd'.JMML. `Mbmmd' db db db
- MM 6' dP
- .JMML. Ybmmmd'
-
-Pattern Lab doesn't have any CSS requirements, which means you can write your styles however you want. Hooray!
-You can use Sass, Less, vanilla CSS, or some other crazy thing I haven't heard of yet.
-So please don't use these styles. They're just here to put together the demo, and nothing more.
-They're intentionally gray, boring, and crappy because you're supposed to do this stuff yourself.
-
-Atomic design is philosophically complimentary with these CSS approaches:
-
-* SMACSS by Jonathan Snook http://smacss.com/
-* OOCSS by Nicole Sullivan http://oocss.org/
-* BEM CSS Methology : http://bem.info/method/
-* CSS Guidelines by Harry Roberts : https://github.com/csswizardry/CSS-Guidelines
-
-So feel free to use any of these approaches. Or don't. It's totally up to you.
-
-*/
-
-/*------------------------------------*\
- $TABLE OF CONTENTS
- based generally on Harry Roberts excellent CSS Guidelines https://github.com/csswizardry/CSS-Guidelines
-\*------------------------------------*/
-/**
- * VARIABLES..............................Declarations of Sass variables
- * .....Colors
- * .....Typography
- * .....Layout
- * .....Defaults
- * .....Breakpoints
- * MIXINS.................................Sass mixins
- * RESET..................................Set reset defaults
- * GLOBAL CLASSES.........................Set reset defaults
- * GLOBAL ELEMENTS........................Establish global styles
- * .....Main
- * .....Headings
- * .....Text-related elements (p, blockquote, lists)
- * .....Defaults
- * .....Breakpoints
- * TYPOGRAPHY------------------------------
- * MEDIA------------------------------
- * LAYOUT------------------------------
- * NAVIGATION------------------------------
- * TOC To Be Continued
- */
-
-
-
-@import "scss/generic/variables";
-@import "scss/generic/mixins";
-@import "scss/generic/reset";
-
-
-
-
-
-/*------------------------------------*\
- $GLOBAL ELEMENTS
-\*------------------------------------*/
-@import "scss/base/global-classes";
-@import "scss/base/main";
-@import "scss/base/links";
-@import "scss/base/headings";
-@import "scss/base/text";
-@import "scss/base/lists";
-@import "scss/base/media";
-@import "scss/base/forms";
-@import "scss/base/tables";
-@import "scss/base/animation";
-
-
-
-
-
-/*------------------------------------*\
- $LAYOUT
-\*------------------------------------*/
-@import "scss/objects/layout";
-
-
-/*------------------------------------*\
- $PAGE STRUCTURE
-\*------------------------------------*/
-@import "scss/objects/header";
-@import "scss/objects/nav";
-@import "scss/objects/main";
-@import "scss/objects/footer";
-
-
-
-/*------------------------------------*\
- $TEXT Styles
-\*------------------------------------*/
-@import "scss/objects/text";
-
-
-/*------------------------------------*\
- $COMPONENTS
-\*------------------------------------*/
-@import "scss/objects/icons";
-@import "scss/objects/buttons";
-@import "scss/objects/blocks";
-@import "scss/objects/lists";
-@import "scss/objects/tooltip";
-@import "scss/objects/accordion";
-@import "scss/objects/tabs";
-@import "scss/objects/sections";
-@import "scss/objects/article";
-@import "scss/objects/comments";
-
-
diff --git a/source/favicon.ico b/source/favicon.ico
deleted file mode 100644
index eee4aa78f..000000000
Binary files a/source/favicon.ico and /dev/null differ
diff --git a/source/fonts/icons.dev.svg b/source/fonts/icons.dev.svg
deleted file mode 100644
index ca8e49e3a..000000000
--- a/source/fonts/icons.dev.svg
+++ /dev/null
@@ -1,103 +0,0 @@
-
-
-
-
-This is a custom SVG font generated by IcoMoon.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/fonts/icons.eot b/source/fonts/icons.eot
deleted file mode 100644
index 81a314b08..000000000
Binary files a/source/fonts/icons.eot and /dev/null differ
diff --git a/source/fonts/icons.svg b/source/fonts/icons.svg
deleted file mode 100644
index 3c64026b6..000000000
--- a/source/fonts/icons.svg
+++ /dev/null
@@ -1,103 +0,0 @@
-
-
-
-
-This is a custom SVG font generated by IcoMoon.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/source/fonts/icons.ttf b/source/fonts/icons.ttf
deleted file mode 100644
index e6bff0814..000000000
Binary files a/source/fonts/icons.ttf and /dev/null differ
diff --git a/source/fonts/icons.woff b/source/fonts/icons.woff
deleted file mode 100644
index 10e663234..000000000
Binary files a/source/fonts/icons.woff and /dev/null differ
diff --git a/source/images/ajax-loader.gif b/source/images/ajax-loader.gif
deleted file mode 100644
index f2a1bc0c6..000000000
Binary files a/source/images/ajax-loader.gif and /dev/null differ
diff --git a/source/images/favicon_16x16.jpg b/source/images/favicon_16x16.jpg
deleted file mode 100644
index 05e744965..000000000
Binary files a/source/images/favicon_16x16.jpg and /dev/null differ
diff --git a/source/images/favicon_32x32.jpg b/source/images/favicon_32x32.jpg
deleted file mode 100644
index 0970980b7..000000000
Binary files a/source/images/favicon_32x32.jpg and /dev/null differ
diff --git a/source/images/fpo_16x9.png b/source/images/fpo_16x9.png
deleted file mode 100644
index dfe6910e9..000000000
Binary files a/source/images/fpo_16x9.png and /dev/null differ
diff --git a/source/images/fpo_4x3.png b/source/images/fpo_4x3.png
deleted file mode 100644
index 95c74b077..000000000
Binary files a/source/images/fpo_4x3.png and /dev/null differ
diff --git a/source/images/fpo_avatar.png b/source/images/fpo_avatar.png
deleted file mode 100644
index e666a40ed..000000000
Binary files a/source/images/fpo_avatar.png and /dev/null differ
diff --git a/source/images/fpo_square.png b/source/images/fpo_square.png
deleted file mode 100644
index ce8a1e4e6..000000000
Binary files a/source/images/fpo_square.png and /dev/null differ
diff --git a/source/images/logo.png b/source/images/logo.png
deleted file mode 100644
index 93db733d2..000000000
Binary files a/source/images/logo.png and /dev/null differ
diff --git a/source/images/sample/landscape-16x9-mountains.jpg b/source/images/sample/landscape-16x9-mountains.jpg
deleted file mode 100644
index 3c0d92b29..000000000
Binary files a/source/images/sample/landscape-16x9-mountains.jpg and /dev/null differ
diff --git a/source/images/sample/thumb-square-fire.jpg b/source/images/sample/thumb-square-fire.jpg
deleted file mode 100644
index 20a5c5ed6..000000000
Binary files a/source/images/sample/thumb-square-fire.jpg and /dev/null differ
diff --git a/source/images/sample/thumb-square-gear.jpg b/source/images/sample/thumb-square-gear.jpg
deleted file mode 100644
index 052a52a17..000000000
Binary files a/source/images/sample/thumb-square-gear.jpg and /dev/null differ
diff --git a/source/images/sample/thumb-square-ivy.jpg b/source/images/sample/thumb-square-ivy.jpg
deleted file mode 100644
index 64183a7a3..000000000
Binary files a/source/images/sample/thumb-square-ivy.jpg and /dev/null differ
diff --git a/source/images/sample/thumb-square-river.jpg b/source/images/sample/thumb-square-river.jpg
deleted file mode 100644
index f19018689..000000000
Binary files a/source/images/sample/thumb-square-river.jpg and /dev/null differ
diff --git a/source/images/sample/thumb-square-yosemite.jpg b/source/images/sample/thumb-square-yosemite.jpg
deleted file mode 100644
index 8f388d798..000000000
Binary files a/source/images/sample/thumb-square-yosemite.jpg and /dev/null differ
diff --git a/source/images/sample/tout-4x3-climber.jpg b/source/images/sample/tout-4x3-climber.jpg
deleted file mode 100644
index 1348cd7e7..000000000
Binary files a/source/images/sample/tout-4x3-climber.jpg and /dev/null differ
diff --git a/source/images/sample/tout-4x3-climbers.jpg b/source/images/sample/tout-4x3-climbers.jpg
deleted file mode 100644
index d8461a191..000000000
Binary files a/source/images/sample/tout-4x3-climbers.jpg and /dev/null differ
diff --git a/source/images/sample/tout-4x3-stream.jpg b/source/images/sample/tout-4x3-stream.jpg
deleted file mode 100644
index 8e091d1d0..000000000
Binary files a/source/images/sample/tout-4x3-stream.jpg and /dev/null differ
diff --git a/source/js/fitvids.js b/source/js/fitvids.js
deleted file mode 100644
index e2c5fbe7f..000000000
--- a/source/js/fitvids.js
+++ /dev/null
@@ -1,77 +0,0 @@
-/*global jQuery */
-/*!
-* FitVids 1.0
-*
-* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
-* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
-* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
-*
-* Date: Thu Sept 01 18:00:00 2011 -0500
-*/
-
-(function( $ ){
-
- $.fn.fitVids = function( options ) {
- var settings = {
- customSelector: null
- }
-
- var div = document.createElement('div'),
- ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0];
-
- div.className = 'fit-vids-style';
- div.innerHTML = '';
-
- ref.parentNode.insertBefore(div,ref);
-
- if ( options ) {
- $.extend( settings, options );
- }
-
- return this.each(function(){
- var selectors = [
- "iframe[src*='player.vimeo.com']",
- "iframe[src*='www.youtube.com']",
- "iframe[src*='www.kickstarter.com']",
- "object",
- "embed"
- ];
-
- if (settings.customSelector) {
- selectors.push(settings.customSelector);
- }
-
- var $allVideos = $(this).find(selectors.join(','));
-
- $allVideos.each(function(){
- var $this = $(this);
- if (this.tagName.toLowerCase() == 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
- var height = ( this.tagName.toLowerCase() == 'object' || $this.attr('height') ) ? $this.attr('height') : $this.height(),
- width = $this.attr('width') ? $this.attr('width') : $this.width(),
- aspectRatio = height / width;
- if(!$this.attr('id')){
- var videoID = 'fitvid' + Math.floor(Math.random()*999999);
- $this.attr('id', videoID);
- }
- $this.wrap('
').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%");
- $this.removeAttr('height').removeAttr('width');
- });
- });
- }
-})( jQuery );
\ No newline at end of file
diff --git a/source/js/init.js b/source/js/init.js
deleted file mode 100644
index fe973aa86..000000000
--- a/source/js/init.js
+++ /dev/null
@@ -1,26 +0,0 @@
-(function(w){
- var sw = document.body.clientWidth,
- sh = document.body.clientHeight;
-
- $(w).resize(function(){ //Update dimensions on resize
- sw = document.body.clientWidth;
- sh = document.body.clientHeight;
-
- //updateAds();
- });
-
-
- //Navigation toggle
- $('.nav-toggle-menu').click(function(e) {
- e.preventDefault();
- $(this).toggleClass('active');
- $('.nav').toggleClass('active');
- });
-
- //Navigation toggle
- $('.nav-toggle-search').click(function(e) {
- e.preventDefault();
- $(this).toggleClass('active');
- $('.header .search-form').toggleClass('active');
- });
-})(this);
\ No newline at end of file
diff --git a/source/js/jquery-2.0.0b2.js b/source/js/jquery-2.0.0b2.js
deleted file mode 100644
index af8b3b87a..000000000
--- a/source/js/jquery-2.0.0b2.js
+++ /dev/null
@@ -1,8690 +0,0 @@
-/*!
- * jQuery JavaScript Library v2.0.0b2
- * http://jquery.com/
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- *
- * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2013-3-1
- */
-(function( window, undefined ) {
-
-// Can't do this because several apps including ASP.NET trace
-// the stack via arguments.caller.callee and Firefox dies if
-// you try to trace through "use strict" call chains. (#13335)
-// Support: Firefox 18+
-//"use strict";
-var
- // A central reference to the root jQuery(document)
- rootjQuery,
-
- // The deferred used on DOM ready
- readyList,
-
- // Support: IE9
- // For `typeof xmlNode.method` instead of `xmlNode.method !== undefined`
- core_strundefined = typeof undefined,
-
- // Use the correct document accordingly with window argument (sandbox)
- location = window.location,
- document = window.document,
- docElem = document.documentElement,
-
- // Map over jQuery in case of overwrite
- _jQuery = window.jQuery,
-
- // Map over the $ in case of overwrite
- _$ = window.$,
-
- // [[Class]] -> type pairs
- class2type = {},
-
- // List of deleted data cache ids, so we can reuse them
- core_deletedIds = [],
-
- core_version = "2.0.0b2",
-
- // Save a reference to some core methods
- core_concat = core_deletedIds.concat,
- core_push = core_deletedIds.push,
- core_slice = core_deletedIds.slice,
- core_indexOf = core_deletedIds.indexOf,
- core_toString = class2type.toString,
- core_hasOwn = class2type.hasOwnProperty,
- core_trim = core_version.trim,
-
- // Define a local copy of jQuery
- jQuery = function( selector, context ) {
- // The jQuery object is actually just the init constructor 'enhanced'
- return new jQuery.fn.init( selector, context, rootjQuery );
- },
-
- // Used for matching numbers
- core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
-
- // Used for splitting on whitespace
- core_rnotwhite = /\S+/g,
-
- // A simple way to check for HTML strings
- // Prioritize #id over
to avoid XSS via location.hash (#9521)
- // Strict HTML recognition (#11290: must start with <)
- rquickExpr = /^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,
-
- // Match a standalone tag
- rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
-
- // Matches dashed string for camelizing
- rmsPrefix = /^-ms-/,
- rdashAlpha = /-([\da-z])/gi,
-
- // Used by jQuery.camelCase as callback to replace()
- fcamelCase = function( all, letter ) {
- return letter.toUpperCase();
- },
-
- // The ready event handler and self cleanup method
- completed = function() {
- document.removeEventListener( "DOMContentLoaded", completed, false );
- window.removeEventListener( "load", completed, false );
- jQuery.ready();
- };
-
-jQuery.fn = jQuery.prototype = {
- // The current version of jQuery being used
- jquery: core_version,
-
- constructor: jQuery,
- init: function( selector, context, rootjQuery ) {
- var match, elem;
-
- // HANDLE: $(""), $(null), $(undefined), $(false)
- if ( !selector ) {
- return this;
- }
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
- // Assume that strings that start and end with <> are HTML and skip the regex check
- match = [ null, selector, null ];
-
- } else {
- match = rquickExpr.exec( selector );
- }
-
- // Match html or make sure no context is specified for #id
- if ( match && (match[1] || !context) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[1] ) {
- context = context instanceof jQuery ? context[0] : context;
-
- // scripts is true for back-compat
- jQuery.merge( this, jQuery.parseHTML(
- match[1],
- context && context.nodeType ? context.ownerDocument || context : document,
- true
- ) );
-
- // HANDLE: $(html, props)
- if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {
- for ( match in context ) {
- // Properties of context are called as methods if possible
- if ( jQuery.isFunction( this[ match ] ) ) {
- this[ match ]( context[ match ] );
-
- // ...and otherwise set as attributes
- } else {
- this.attr( match, context[ match ] );
- }
- }
- }
-
- return this;
-
- // HANDLE: $(#id)
- } else {
- elem = document.getElementById( match[2] );
-
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- if ( elem && elem.parentNode ) {
- // Handle the case where IE and Opera return items
- // by name instead of ID
- if ( elem.id !== match[2] ) {
- return rootjQuery.find( selector );
- }
-
- // Otherwise, we inject the element directly into the jQuery object
- this.length = 1;
- this[0] = elem;
- }
-
- this.context = document;
- this.selector = selector;
- return this;
- }
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return ( context || rootjQuery ).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return this.constructor( context ).find( selector );
- }
-
- // HANDLE: $(DOMElement)
- } else if ( selector.nodeType ) {
- this.context = this[0] = selector;
- this.length = 1;
- return this;
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) ) {
- return rootjQuery.ready( selector );
- }
-
- if ( selector.selector !== undefined ) {
- this.selector = selector.selector;
- this.context = selector.context;
- }
-
- return jQuery.makeArray( selector, this );
- },
-
- // Start with an empty selector
- selector: "",
-
- // The default length of a jQuery object is 0
- length: 0,
-
- // The number of elements contained in the matched element set
- size: function() {
- return this.length;
- },
-
- toArray: function() {
- return core_slice.call( this );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
- return num == null ?
-
- // Return a 'clean' array
- this.toArray() :
-
- // Return just the object
- ( num < 0 ? this[ this.length + num ] : this[ num ] );
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems ) {
-
- // Build a new jQuery matched element set
- var ret = jQuery.merge( this.constructor(), elems );
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
- ret.context = this.context;
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- // (You can seed the arguments with an array of args, but this is
- // only used internally.)
- each: function( callback, args ) {
- return jQuery.each( this, callback, args );
- },
-
- ready: function( fn ) {
- // Add the callback
- jQuery.ready.promise().done( fn );
-
- return this;
- },
-
- slice: function() {
- return this.pushStack( core_slice.apply( this, arguments ) );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- eq: function( i ) {
- var len = this.length,
- j = +i + ( i < 0 ? len : 0 );
- return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map(this, function( elem, i ) {
- return callback.call( elem, i, elem );
- }));
- },
-
- end: function() {
- return this.prevObject || this.constructor(null);
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: core_push,
- sort: [].sort,
- splice: [].splice
-};
-
-// Give the init function the jQuery prototype for later instantiation
-jQuery.fn.init.prototype = jQuery.fn;
-
-jQuery.extend = jQuery.fn.extend = function() {
- var options, name, src, copy, copyIsArray, clone,
- target = arguments[0] || {},
- i = 1,
- length = arguments.length,
- deep = false;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
- target = arguments[1] || {};
- // skip the boolean and the target
- i = 2;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
- target = {};
- }
-
- // extend jQuery itself if only one argument is passed
- if ( length === i ) {
- target = this;
- --i;
- }
-
- for ( ; i < length; i++ ) {
- // Only deal with non-null/undefined values
- if ( (options = arguments[ i ]) != null ) {
- // Extend the base object
- for ( name in options ) {
- src = target[ name ];
- copy = options[ name ];
-
- // Prevent never-ending loop
- if ( target === copy ) {
- continue;
- }
-
- // Recurse if we're merging plain objects or arrays
- if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
- if ( copyIsArray ) {
- copyIsArray = false;
- clone = src && jQuery.isArray(src) ? src : [];
-
- } else {
- clone = src && jQuery.isPlainObject(src) ? src : {};
- }
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend({
- // Unique for each copy of jQuery on the page
- expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ),
-
- noConflict: function( deep ) {
- if ( window.$ === jQuery ) {
- window.$ = _$;
- }
-
- if ( deep && window.jQuery === jQuery ) {
- window.jQuery = _jQuery;
- }
-
- return jQuery;
- },
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // A counter to track how many items to wait for before
- // the ready event fires. See #6781
- readyWait: 1,
-
- // Hold (or release) the ready event
- holdReady: function( hold ) {
- if ( hold ) {
- jQuery.readyWait++;
- } else {
- jQuery.ready( true );
- }
- },
-
- // Handle when the DOM is ready
- ready: function( wait ) {
-
- // Abort if there are pending holds or we're already ready
- if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
- return;
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If a normal DOM Ready event fired, decrement, and wait if need be
- if ( wait !== true && --jQuery.readyWait > 0 ) {
- return;
- }
-
- // If there are functions bound, to execute
- readyList.resolveWith( document, [ jQuery ] );
-
- // Trigger any bound ready events
- if ( jQuery.fn.trigger ) {
- jQuery( document ).trigger("ready").off("ready");
- }
- },
-
- // See test/unit/core.js for details concerning isFunction.
- // Since version 1.3, DOM methods and functions like alert
- // aren't supported. They return false on IE (#2968).
- isFunction: function( obj ) {
- return jQuery.type(obj) === "function";
- },
-
- isArray: Array.isArray,
-
- isWindow: function( obj ) {
- return obj != null && obj == obj.window;
- },
-
- isNumeric: function( obj ) {
- return !isNaN( parseFloat(obj) ) && isFinite( obj );
- },
-
- type: function( obj ) {
- if ( obj == null ) {
- return String( obj );
- }
- // Support: Safari <=5.1 (functionish RegExp)
- return typeof obj === "object" || typeof obj === "function" ?
- class2type[ core_toString.call(obj) ] || "object" :
- typeof obj;
- },
-
- isPlainObject: function( obj ) {
- // Not plain objects:
- // - Any object or value whose internal [[Class]] property is not "[object Object]"
- // - DOM nodes
- // - window
- if ( jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- // Support: Firefox >16
- // The try/catch suppresses exceptions thrown when attempting to access
- // the "constructor" property of certain host objects, ie. |window.location|
- try {
- if ( obj.constructor &&
- !core_hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) {
- return false;
- }
- } catch ( e ) {
- return false;
- }
-
- // If the function hasn't returned already, we're confident that
- // |obj| is a plain object, created by {} or constructed with new Object
- return true;
- },
-
- isEmptyObject: function( obj ) {
- var name;
- for ( name in obj ) {
- return false;
- }
- return true;
- },
-
- error: function( msg ) {
- throw new Error( msg );
- },
-
- // data: string of html
- // context (optional): If specified, the fragment will be created in this context, defaults to document
- // keepScripts (optional): If true, will include scripts passed in the html string
- parseHTML: function( data, context, keepScripts ) {
- if ( !data || typeof data !== "string" ) {
- return null;
- }
- if ( typeof context === "boolean" ) {
- keepScripts = context;
- context = false;
- }
- context = context || document;
-
- var parsed = rsingleTag.exec( data ),
- scripts = !keepScripts && [];
-
- // Single tag
- if ( parsed ) {
- return [ context.createElement( parsed[1] ) ];
- }
-
- parsed = jQuery.buildFragment( [ data ], context, scripts );
-
- if ( scripts ) {
- jQuery( scripts ).remove();
- }
-
- return jQuery.merge( [], parsed.childNodes );
- },
-
- parseJSON: JSON.parse,
-
- // Cross-browser xml parsing
- parseXML: function( data ) {
- var xml, tmp;
- if ( !data || typeof data !== "string" ) {
- return null;
- }
-
- // Support: IE9
- try {
- tmp = new DOMParser();
- xml = tmp.parseFromString( data , "text/xml" );
- } catch ( e ) {
- xml = undefined;
- }
-
- if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
- jQuery.error( "Invalid XML: " + data );
- }
- return xml;
- },
-
- noop: function() {},
-
- // Evaluates a script in a global context
- globalEval: function( data ) {
- var indirect = eval;
- if ( jQuery.trim( data ) ) {
- indirect( data + ";" );
- }
- },
-
- // Convert dashed to camelCase; used by the css and data modules
- // Microsoft forgot to hump their vendor prefix (#9572)
- camelCase: function( string ) {
- return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
- },
-
- nodeName: function( elem, name ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
- },
-
- // args is for internal usage only
- each: function( obj, callback, args ) {
- var value,
- i = 0,
- length = obj.length,
- isArray = isArraylike( obj );
-
- if ( args ) {
- if ( isArray ) {
- for ( ; i < length; i++ ) {
- value = callback.apply( obj[ i ], args );
-
- if ( value === false ) {
- break;
- }
- }
- } else {
- for ( i in obj ) {
- value = callback.apply( obj[ i ], args );
-
- if ( value === false ) {
- break;
- }
- }
- }
-
- // A special, fast, case for the most common use of each
- } else {
- if ( isArray ) {
- for ( ; i < length; i++ ) {
- value = callback.call( obj[ i ], i, obj[ i ] );
-
- if ( value === false ) {
- break;
- }
- }
- } else {
- for ( i in obj ) {
- value = callback.call( obj[ i ], i, obj[ i ] );
-
- if ( value === false ) {
- break;
- }
- }
- }
- }
-
- return obj;
- },
-
- trim: function( text ) {
- return text == null ? "" : core_trim.call( text );
- },
-
- // results is for internal usage only
- makeArray: function( arr, results ) {
- var ret = results || [];
-
- if ( arr != null ) {
- if ( isArraylike( Object(arr) ) ) {
- jQuery.merge( ret,
- typeof arr === "string" ?
- [ arr ] : arr
- );
- } else {
- core_push.call( ret, arr );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, arr, i ) {
- return arr == null ? -1 : core_indexOf.call( arr, elem, i );
- },
-
- merge: function( first, second ) {
- var l = second.length,
- i = first.length,
- j = 0;
-
- if ( typeof l === "number" ) {
- for ( ; j < l; j++ ) {
- first[ i++ ] = second[ j ];
- }
- } else {
- while ( second[j] !== undefined ) {
- first[ i++ ] = second[ j++ ];
- }
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, inv ) {
- var retVal,
- ret = [],
- i = 0,
- length = elems.length;
- inv = !!inv;
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( ; i < length; i++ ) {
- retVal = !!callback( elems[ i ], i );
- if ( inv !== retVal ) {
- ret.push( elems[ i ] );
- }
- }
-
- return ret;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var value,
- i = 0,
- length = elems.length,
- isArray = isArraylike( elems ),
- ret = [];
-
- // Go through the array, translating each of the items to their
- if ( isArray ) {
- for ( ; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret[ ret.length ] = value;
- }
- }
-
- // Go through every key on the object,
- } else {
- for ( i in elems ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret[ ret.length ] = value;
- }
- }
- }
-
- // Flatten any nested arrays
- return core_concat.apply( [], ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- // Bind a function to a context, optionally partially applying any
- // arguments.
- proxy: function( fn, context ) {
- var tmp, args, proxy;
-
- if ( typeof context === "string" ) {
- tmp = fn[ context ];
- context = fn;
- fn = tmp;
- }
-
- // Quick check to determine if target is callable, in the spec
- // this throws a TypeError, but we will just return undefined.
- if ( !jQuery.isFunction( fn ) ) {
- return undefined;
- }
-
- // Simulated bind
- args = core_slice.call( arguments, 2 );
- proxy = function() {
- return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) );
- };
-
- // Set the guid of unique handler to the same of original handler, so it can be removed
- proxy.guid = fn.guid = fn.guid || jQuery.guid++;
-
- return proxy;
- },
-
- // Multifunctional method to get and set values of a collection
- // The value/s can optionally be executed if it's a function
- access: function( elems, fn, key, value, chainable, emptyGet, raw ) {
- var i = 0,
- length = elems.length,
- bulk = key == null;
-
- // Sets many values
- if ( jQuery.type( key ) === "object" ) {
- chainable = true;
- for ( i in key ) {
- jQuery.access( elems, fn, i, key[i], true, emptyGet, raw );
- }
-
- // Sets one value
- } else if ( value !== undefined ) {
- chainable = true;
-
- if ( !jQuery.isFunction( value ) ) {
- raw = true;
- }
-
- if ( bulk ) {
- // Bulk operations run against the entire set
- if ( raw ) {
- fn.call( elems, value );
- fn = null;
-
- // ...except when executing function values
- } else {
- bulk = fn;
- fn = function( elem, key, value ) {
- return bulk.call( jQuery( elem ), value );
- };
- }
- }
-
- if ( fn ) {
- for ( ; i < length; i++ ) {
- fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );
- }
- }
- }
-
- return chainable ?
- elems :
-
- // Gets
- bulk ?
- fn.call( elems ) :
- length ? fn( elems[0], key ) : emptyGet;
- },
-
- now: Date.now
-});
-
-jQuery.ready.promise = function( obj ) {
- if ( !readyList ) {
-
- readyList = jQuery.Deferred();
-
- // Catch cases where $(document).ready() is called after the browser event has already occurred.
- // we once tried to use readyState "interactive" here, but it caused issues like the one
- // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
- if ( document.readyState === "complete" ) {
- // Handle it asynchronously to allow scripts the opportunity to delay ready
- setTimeout( jQuery.ready );
-
- } else {
-
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", completed, false );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", completed, false );
- }
- }
- return readyList.promise( obj );
-};
-
-// Populate the class2type map
-jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
-});
-
-function isArraylike( obj ) {
- var length = obj.length,
- type = jQuery.type( obj );
-
- if ( jQuery.isWindow( obj ) ) {
- return false;
- }
-
- if ( obj.nodeType === 1 && length ) {
- return true;
- }
-
- return type === "array" || type !== "function" &&
- ( length === 0 ||
- typeof length === "number" && length > 0 && ( length - 1 ) in obj );
-}
-
-// All jQuery objects should point back to these
-rootjQuery = jQuery(document);
-// String to Object options format cache
-var optionsCache = {};
-
-// Convert String-formatted options into Object-formatted ones and store in cache
-function createOptions( options ) {
- var object = optionsCache[ options ] = {};
- jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) {
- object[ flag ] = true;
- });
- return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- * options: an optional list of space-separated options that will change how
- * the callback list behaves or a more traditional option object
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible options:
- *
- * once: will ensure the callback list can only be fired once (like a Deferred)
- *
- * memory: will keep track of previous values and will call any callback added
- * after the list has been fired right away with the latest "memorized"
- * values (like a Deferred)
- *
- * unique: will ensure a callback can only be added once (no duplicate in the list)
- *
- * stopOnFalse: interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( options ) {
-
- // Convert options from String-formatted to Object-formatted if needed
- // (we check in cache first)
- options = typeof options === "string" ?
- ( optionsCache[ options ] || createOptions( options ) ) :
- jQuery.extend( {}, options );
-
- var // Last fire value (for non-forgettable lists)
- memory,
- // Flag to know if list was already fired
- fired,
- // Flag to know if list is currently firing
- firing,
- // First callback to fire (used internally by add and fireWith)
- firingStart,
- // End of the loop when firing
- firingLength,
- // Index of currently firing callback (modified by remove if needed)
- firingIndex,
- // Actual callback list
- list = [],
- // Stack of fire calls for repeatable lists
- stack = !options.once && [],
- // Fire callbacks
- fire = function( data ) {
- memory = options.memory && data;
- fired = true;
- firingIndex = firingStart || 0;
- firingStart = 0;
- firingLength = list.length;
- firing = true;
- for ( ; list && firingIndex < firingLength; firingIndex++ ) {
- if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
- memory = false; // To prevent further calls using add
- break;
- }
- }
- firing = false;
- if ( list ) {
- if ( stack ) {
- if ( stack.length ) {
- fire( stack.shift() );
- }
- } else if ( memory ) {
- list = [];
- } else {
- self.disable();
- }
- }
- },
- // Actual Callbacks object
- self = {
- // Add a callback or a collection of callbacks to the list
- add: function() {
- if ( list ) {
- // First, we save the current length
- var start = list.length;
- (function add( args ) {
- jQuery.each( args, function( _, arg ) {
- var type = jQuery.type( arg );
- if ( type === "function" ) {
- if ( !options.unique || !self.has( arg ) ) {
- list.push( arg );
- }
- } else if ( arg && arg.length && type !== "string" ) {
- // Inspect recursively
- add( arg );
- }
- });
- })( arguments );
- // Do we need to add the callbacks to the
- // current firing batch?
- if ( firing ) {
- firingLength = list.length;
- // With memory, if we're not firing then
- // we should call right away
- } else if ( memory ) {
- firingStart = start;
- fire( memory );
- }
- }
- return this;
- },
- // Remove a callback from the list
- remove: function() {
- if ( list ) {
- jQuery.each( arguments, function( _, arg ) {
- var index;
- while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
- list.splice( index, 1 );
- // Handle firing indexes
- if ( firing ) {
- if ( index <= firingLength ) {
- firingLength--;
- }
- if ( index <= firingIndex ) {
- firingIndex--;
- }
- }
- }
- });
- }
- return this;
- },
- // Check if a given callback is in the list.
- // If no argument is given, return whether or not list has callbacks attached.
- has: function( fn ) {
- return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length );
- },
- // Remove all callbacks from the list
- empty: function() {
- list = [];
- firingLength = 0;
- return this;
- },
- // Have the list do nothing anymore
- disable: function() {
- list = stack = memory = undefined;
- return this;
- },
- // Is it disabled?
- disabled: function() {
- return !list;
- },
- // Lock the list in its current state
- lock: function() {
- stack = undefined;
- if ( !memory ) {
- self.disable();
- }
- return this;
- },
- // Is it locked?
- locked: function() {
- return !stack;
- },
- // Call all callbacks with the given context and arguments
- fireWith: function( context, args ) {
- args = args || [];
- args = [ context, args.slice ? args.slice() : args ];
- if ( list && ( !fired || stack ) ) {
- if ( firing ) {
- stack.push( args );
- } else {
- fire( args );
- }
- }
- return this;
- },
- // Call all the callbacks with the given arguments
- fire: function() {
- self.fireWith( this, arguments );
- return this;
- },
- // To know if the callbacks have already been called at least once
- fired: function() {
- return !!fired;
- }
- };
-
- return self;
-};
-jQuery.extend({
-
- Deferred: function( func ) {
- var tuples = [
- // action, add listener, listener list, final state
- [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
- [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
- [ "notify", "progress", jQuery.Callbacks("memory") ]
- ],
- state = "pending",
- promise = {
- state: function() {
- return state;
- },
- always: function() {
- deferred.done( arguments ).fail( arguments );
- return this;
- },
- then: function( /* fnDone, fnFail, fnProgress */ ) {
- var fns = arguments;
- return jQuery.Deferred(function( newDefer ) {
- jQuery.each( tuples, function( i, tuple ) {
- var action = tuple[ 0 ],
- fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
- // deferred[ done | fail | progress ] for forwarding actions to newDefer
- deferred[ tuple[1] ](function() {
- var returned = fn && fn.apply( this, arguments );
- if ( returned && jQuery.isFunction( returned.promise ) ) {
- returned.promise()
- .done( newDefer.resolve )
- .fail( newDefer.reject )
- .progress( newDefer.notify );
- } else {
- newDefer[ action + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments );
- }
- });
- });
- fns = null;
- }).promise();
- },
- // Get a promise for this deferred
- // If obj is provided, the promise aspect is added to the object
- promise: function( obj ) {
- return obj != null ? jQuery.extend( obj, promise ) : promise;
- }
- },
- deferred = {};
-
- // Keep pipe for back-compat
- promise.pipe = promise.then;
-
- // Add list-specific methods
- jQuery.each( tuples, function( i, tuple ) {
- var list = tuple[ 2 ],
- stateString = tuple[ 3 ];
-
- // promise[ done | fail | progress ] = list.add
- promise[ tuple[1] ] = list.add;
-
- // Handle state
- if ( stateString ) {
- list.add(function() {
- // state = [ resolved | rejected ]
- state = stateString;
-
- // [ reject_list | resolve_list ].disable; progress_list.lock
- }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
- }
-
- // deferred[ resolve | reject | notify ]
- deferred[ tuple[0] ] = function() {
- deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments );
- return this;
- };
- deferred[ tuple[0] + "With" ] = list.fireWith;
- });
-
- // Make the deferred a promise
- promise.promise( deferred );
-
- // Call given func if any
- if ( func ) {
- func.call( deferred, deferred );
- }
-
- // All done!
- return deferred;
- },
-
- // Deferred helper
- when: function( subordinate /* , ..., subordinateN */ ) {
- var i = 0,
- resolveValues = core_slice.call( arguments ),
- length = resolveValues.length,
-
- // the count of uncompleted subordinates
- remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
-
- // the master Deferred. If resolveValues consist of only a single Deferred, just use that.
- deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
-
- // Update function for both resolve and progress values
- updateFunc = function( i, contexts, values ) {
- return function( value ) {
- contexts[ i ] = this;
- values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value;
- if( values === progressValues ) {
- deferred.notifyWith( contexts, values );
- } else if ( !( --remaining ) ) {
- deferred.resolveWith( contexts, values );
- }
- };
- },
-
- progressValues, progressContexts, resolveContexts;
-
- // add listeners to Deferred subordinates; treat others as resolved
- if ( length > 1 ) {
- progressValues = new Array( length );
- progressContexts = new Array( length );
- resolveContexts = new Array( length );
- for ( ; i < length; i++ ) {
- if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
- resolveValues[ i ].promise()
- .done( updateFunc( i, resolveContexts, resolveValues ) )
- .fail( deferred.reject )
- .progress( updateFunc( i, progressContexts, progressValues ) );
- } else {
- --remaining;
- }
- }
- }
-
- // if we're not waiting on anything, resolve the master
- if ( !remaining ) {
- deferred.resolveWith( resolveContexts, resolveValues );
- }
-
- return deferred.promise();
- }
-});
-jQuery.support = (function( support ) {
- var input = document.createElement("input"),
- fragment = document.createDocumentFragment(),
- div = document.createElement("div"),
- select = document.createElement("select"),
- opt = select.appendChild( document.createElement("option") );
-
- // Finish early in limited environments
- if ( !input.type ) {
- return support;
- }
-
- input.type = "checkbox";
-
- // Check the default checkbox/radio value ("" on old WebKit; "on" elsewhere)
- support.checkOn = input.value === "";
-
- // Must access the parent to make an option select properly
- // Support: IE9, IE10
- support.optSelected = opt.selected;
-
- // jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode
- support.boxModel = document.compatMode === "CSS1Compat";
-
- // Will be defined later
- support.reliableMarginRight = true;
- support.boxSizingReliable = true;
- support.pixelPosition = false;
-
- // Make sure checked status is properly cloned
- // Support: IE9, IE10
- input.checked = true;
- support.noCloneChecked = input.cloneNode( true ).checked;
-
- // Make sure that the options inside disabled selects aren't marked as disabled
- // (WebKit marks them as disabled)
- select.disabled = true;
- support.optDisabled = !opt.disabled;
-
- // Check if an input maintains its value after becoming a radio
- // Support: IE9, IE10, Opera
- input = document.createElement("input");
- input.value = "t";
- input.type = "radio";
- support.radioValue = input.value === "t";
-
- // #11217 - WebKit loses check when the name is after the checked attribute
- input.setAttribute( "checked", "t" );
- input.setAttribute( "name", "t" );
-
- fragment.appendChild( input );
-
- // old WebKit doesn't clone checked state correctly in fragments
- support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
- // Support: Firefox 17+
- // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
- support.focusinBubbles = "onfocusin" in window;
-
- div.style.backgroundClip = "content-box";
- div.cloneNode( true ).style.backgroundClip = "";
- support.clearCloneStyle = div.style.backgroundClip === "content-box";
-
- // Run tests that need a body at doc ready
- jQuery(function() {
- var container, marginDiv,
- divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",
- body = document.getElementsByTagName("body")[ 0 ];
-
- if ( !body ) {
- // Return for frameset docs that don't have a body
- return;
- }
-
- container = document.createElement("div");
- container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px";
-
- // Check box-sizing and margin behavior
- body.appendChild( container ).appendChild( div );
- div.innerHTML = "";
- div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";
-
- support.boxSizing = div.offsetWidth === 4;
- support.doesNotIncludeMarginInBodyOffset = body.offsetTop !== 1;
-
- // Use window.getComputedStyle because jsdom on node.js will break without it.
- if ( window.getComputedStyle ) {
- support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";
- support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px";
-
- // Check if div with explicit width and no margin-right incorrectly
- // gets computed margin-right based on width of container. (#3333)
- // Fails in WebKit before Feb 2011 nightlies
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
- marginDiv = div.appendChild( document.createElement("div") );
- marginDiv.style.cssText = div.style.cssText = divReset;
- marginDiv.style.marginRight = marginDiv.style.width = "0";
- div.style.width = "1px";
-
- support.reliableMarginRight =
- !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight );
- }
-
- body.removeChild( container );
- });
-
- return support;
-})( {} );
-
-/*
- Implementation Summary
-
- 1. Enforce API surface and semantic compatibility with 1.9.x branch
- 2. Improve the module's maintainability by reducing the storage
- paths to a single mechanism.
- 3. Use the same single mechanism to support "private" and "user" data.
- 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
- 5. Avoid exposing implementation details on user objects (eg. expando properties)
- 6. Provide a clear path for implementation upgrade to WeakMap in 2014
-*/
-var data_user, data_priv,
- rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/,
- rmultiDash = /([A-Z])/g;
-
-function Data() {
- this.cache = {};
- this.expando = jQuery.expando + Math.random();
-}
-
-Data.uid = 1;
-
-Data.prototype = {
- key: function( owner ) {
- var descriptor = {},
- // Check if the owner object already has a cache key
- unlock = owner[ this.expando ];
-
- // If not, create one
- if ( !unlock ) {
- unlock = Data.uid++;
- descriptor[ this.expando ] = { value: unlock };
-
- // Secure it in a non-enumerable, non-writable property
- try {
- Object.defineProperties( owner, descriptor );
-
- // Support: Android<4
- // Fallback to a less secure definition
- } catch ( e ) {
- descriptor[ this.expando ] = unlock;
- jQuery.extend( owner, descriptor );
- }
- }
-
- // Ensure the cache object
- if ( !this.cache[ unlock ] ) {
- this.cache[ unlock ] = {};
- }
-
- return unlock;
- },
- set: function( owner, data, value ) {
- var prop,
- // There may be an unlock assigned to this node,
- // if there is no entry for this "owner", create one inline
- // and set the unlock as though an owner entry had always existed
- unlock = this.key( owner ),
- cache = this.cache[ unlock ];
-
- // Handle: [ owner, key, value ] args
- if ( typeof data === "string" ) {
- cache[ data ] = value;
-
- // Handle: [ owner, { properties } ] args
- } else {
- // Support an expectation from the old data system where plain
- // objects used to initialize would be set to the cache by
- // reference, instead of having properties and values copied.
- // Note, this will kill the connection between
- // "this.cache[ unlock ]" and "cache"
- if ( jQuery.isEmptyObject( cache ) ) {
- this.cache[ unlock ] = data;
- // Otherwise, copy the properties one-by-one to the cache object
- } else {
- for ( prop in data ) {
- cache[ prop ] = data[ prop ];
- }
- }
- }
-
- return this;
- },
- get: function( owner, key ) {
- // Either a valid cache is found, or will be created.
- // New caches will be created and the unlock returned,
- // allowing direct access to the newly created
- // empty data object.
- var cache = this.cache[ this.key( owner ) ];
-
- return key === undefined ?
- cache : cache[ key ];
- },
- access: function( owner, key, value ) {
- // In cases where either:
- //
- // 1. No key was specified
- // 2. A string key was specified, but no value provided
- //
- // Take the "read" path and allow the get method to determine
- // which value to return, respectively either:
- //
- // 1. The entire cache object
- // 2. The data stored at the key
- //
- if ( key === undefined ||
- ((key && typeof key === "string") && value === undefined) ) {
- return this.get( owner, key );
- }
-
- // [*]When the key is not a string, or both a key and value
- // are specified, set or extend (existing objects) with either:
- //
- // 1. An object of properties
- // 2. A key and value
- //
- this.set( owner, key, value );
-
- // Since the "set" path can have two possible entry points
- // return the expected data based on which path was taken[*]
- return value !== undefined ? value : key;
- },
- remove: function( owner, key ) {
- var i, name,
- unlock = this.key( owner ),
- cache = this.cache[ unlock ];
-
- if ( key === undefined ) {
- this.cache[ unlock ] = {};
- } else {
- // Support array or space separated string of keys
- if ( jQuery.isArray( key ) ) {
- // If "name" is an array of keys...
- // When data is initially created, via ("key", "val") signature,
- // keys will be converted to camelCase.
- // Since there is no way to tell _how_ a key was added, remove
- // both plain key and camelCase key. #12786
- // This will only penalize the array argument path.
- name = key.concat( key.map( jQuery.camelCase ) );
- } else {
- // Try the string as a key before any manipulation
- if ( key in cache ) {
- name = [ key ];
- } else {
- // If a key with the spaces exists, use it.
- // Otherwise, create an array by matching non-whitespace
- name = jQuery.camelCase( key );
- name = name in cache ?
- [ name ] : ( name.match( core_rnotwhite ) || [] );
- }
- }
-
- i = name.length;
- while ( i-- ) {
- delete cache[ name[i] ];
- }
- }
- },
- hasData: function( owner ) {
- return !jQuery.isEmptyObject(
- this.cache[ this.key( owner ) ]
- );
- },
- discard: function( owner ) {
- delete this.cache[ this.key( owner ) ];
- }
-};
-
-// This will be used by remove()/cleanData() in manipulation to sever
-// remaining references to node objects. One day we'll replace the dual
-// arrays with a WeakMap and this won't be an issue.
-// (Splices the data objects out of the internal cache arrays)
-function data_discard( owner ) {
- data_user.discard( owner );
- data_priv.discard( owner );
-}
-
-// These may be used throughout the jQuery core codebase
-data_user = new Data();
-data_priv = new Data();
-
-
-jQuery.extend({
- // This is no longer relevant to jQuery core, but must remain
- // supported for the sake of jQuery 1.9.x API surface compatibility.
- acceptData: function() {
- return true;
- },
-
- hasData: function( elem ) {
- return data_user.hasData( elem ) || data_priv.hasData( elem );
- },
-
- data: function( elem, name, data ) {
- return data_user.access( elem, name, data );
- },
-
- removeData: function( elem, name ) {
- return data_user.remove( elem, name );
- },
-
- // TODO: Replace all calls to _data and _removeData with direct
- // calls to
- //
- // data_priv.access( elem, name, data );
- //
- // data_priv.remove( elem, name );
- //
- _data: function( elem, name, data ) {
- return data_priv.access( elem, name, data );
- },
-
- _removeData: function( elem, name ) {
- return data_priv.remove( elem, name );
- }
-});
-
-jQuery.fn.extend({
- data: function( key, value ) {
- var attrs, name,
- elem = this[0],
- i = 0,
- data = null;
-
- // Gets all values
- if ( key === undefined ) {
- if ( this.length ) {
- data = data_user.get( elem );
-
- if ( elem.nodeType === 1 && !data_priv.get( elem, "hasDataAttrs" ) ) {
- attrs = elem.attributes;
- for ( ; i < attrs.length; i++ ) {
- name = attrs[i].name;
-
- if ( name.indexOf( "data-" ) === 0 ) {
- name = jQuery.camelCase( name.substring(5) );
- dataAttr( elem, name, data[ name ] );
- }
- }
- data_priv.set( elem, "hasDataAttrs", true );
- }
- }
-
- return data;
- }
-
- // Sets multiple values
- if ( typeof key === "object" ) {
- return this.each(function() {
- data_user.set( this, key );
- });
- }
-
- return jQuery.access( this, function( value ) {
- var data,
- camelKey = jQuery.camelCase( key );
-
- // Get the Data...
- if ( value === undefined ) {
-
- // Attempt to get data from the cache
- // with the key as-is
- data = data_user.get( elem, key );
- if ( data !== undefined ) {
- return data;
- }
- // Attempt to "discover" the data in
- // HTML5 custom data-* attrs
- data = dataAttr( elem, key, undefined );
- if ( data !== undefined ) {
- return data;
- }
-
- // As a last resort, attempt to find
- // the data by checking AGAIN, but with
- // a camelCased key.
- data = data_user.get( elem, camelKey );
- if ( data !== undefined ) {
- return data;
- }
-
- // We tried really hard, but the data doesn't exist.
- return undefined;
- }
-
- // Set the data...
- this.each(function() {
- // First, attempt to store a copy or reference of any
- // data that might've been store with a camelCased key.
- var data = data_user.get( this, camelKey );
-
- // For HTML5 data-* attribute interop, we have to
- // store property names with dashes in a camelCase form.
- // This might not apply to all properties...*
- data_user.set( this, camelKey, value );
-
- // *... In the case of properties that might ACTUALLY
- // have dashes, we need to also store a copy of that
- // unchanged property.
- if ( /-/.test( key ) && data !== undefined ) {
- data_user.set( this, key, value );
- }
- });
- }, null, value, arguments.length > 1, null, true );
- },
-
- removeData: function( key ) {
- return this.each(function() {
- data_user.remove( this, key );
- });
- }
-});
-
-function dataAttr( elem, key, data ) {
- var name;
-
- // If nothing was found internally, try to fetch any
- // data from the HTML5 data-* attribute
- if ( data === undefined && elem.nodeType === 1 ) {
-
- name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
- data = elem.getAttribute( name );
-
- if ( typeof data === "string" ) {
- try {
- data = data === "true" ? true :
- data === "false" ? false :
- data === "null" ? null :
- // Only convert to a number if it doesn't change the string
- +data + "" === data ? +data :
- rbrace.test( data ) ?
- JSON.parse( data ) : data;
- } catch( e ) {}
-
- // Make sure we set the data so it isn't changed later
- data_user.set( elem, key, data );
- } else {
- data = undefined;
- }
- }
- return data;
-}
-jQuery.extend({
- queue: function( elem, type, data ) {
- var queue;
-
- if ( elem ) {
- type = ( type || "fx" ) + "queue";
- queue = jQuery._data( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( data ) {
- if ( !queue || jQuery.isArray(data) ) {
- queue = jQuery._data( elem, type, jQuery.makeArray(data) );
- } else {
- queue.push( data );
- }
- }
- return queue || [];
- }
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ),
- startLength = queue.length,
- fn = queue.shift(),
- hooks = jQuery._queueHooks( elem, type ),
- next = function() {
- jQuery.dequeue( elem, type );
- };
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- startLength--;
- }
-
- hooks.cur = fn;
- if ( fn ) {
-
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift( "inprogress" );
- }
-
- // clear up the last queue stop function
- delete hooks.stop;
- fn.call( elem, next, hooks );
- }
-
- if ( !startLength && hooks ) {
- hooks.empty.fire();
- }
- },
-
- // not intended for public consumption - generates a queueHooks object, or returns the current one
- _queueHooks: function( elem, type ) {
- var key = type + "queueHooks";
- return jQuery._data( elem, key ) || jQuery._data( elem, key, {
- empty: jQuery.Callbacks("once memory").add(function() {
- jQuery._removeData( elem, type + "queue" );
- jQuery._removeData( elem, key );
- })
- });
- }
-});
-
-jQuery.fn.extend({
- queue: function( type, data ) {
- var setter = 2;
-
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- setter--;
- }
-
- if ( arguments.length < setter ) {
- return jQuery.queue( this[0], type );
- }
-
- return data === undefined ?
- this :
- this.each(function() {
- var queue = jQuery.queue( this, type, data );
-
- // ensure a hooks for this queue
- jQuery._queueHooks( this, type );
-
- if ( type === "fx" && queue[0] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- });
- },
- dequeue: function( type ) {
- return this.each(function() {
- jQuery.dequeue( this, type );
- });
- },
- // Based off of the plugin by Clint Helfers, with permission.
- // http://blindsignals.com/index.php/2009/07/jquery-delay/
- delay: function( time, type ) {
- time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
- type = type || "fx";
-
- return this.queue( type, function( next, hooks ) {
- var timeout = setTimeout( next, time );
- hooks.stop = function() {
- clearTimeout( timeout );
- };
- });
- },
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- },
- // Get a promise resolved when queues of a certain type
- // are emptied (fx is the type by default)
- promise: function( type, obj ) {
- var tmp,
- count = 1,
- defer = jQuery.Deferred(),
- elements = this,
- i = this.length,
- resolve = function() {
- if ( !( --count ) ) {
- defer.resolveWith( elements, [ elements ] );
- }
- };
-
- if ( typeof type !== "string" ) {
- obj = type;
- type = undefined;
- }
- type = type || "fx";
-
- while( i-- ) {
- tmp = jQuery._data( elements[ i ], type + "queueHooks" );
- if ( tmp && tmp.empty ) {
- count++;
- tmp.empty.add( resolve );
- }
- }
- resolve();
- return defer.promise( obj );
- }
-});
-var nodeHook, boolHook,
- rclass = /[\t\r\n]/g,
- rreturn = /\r/g,
- rfocusable = /^(?:input|select|textarea|button|object)$/i,
- rclickable = /^(?:a|area)$/i,
- rboolean = /^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i;
-
-jQuery.fn.extend({
- attr: function( name, value ) {
- return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 );
- },
-
- removeAttr: function( name ) {
- return this.each(function() {
- jQuery.removeAttr( this, name );
- });
- },
-
- prop: function( name, value ) {
- return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 );
- },
-
- removeProp: function( name ) {
- name = jQuery.propFix[ name ] || name;
- return this.each(function() {
- // try/catch handles cases where IE balks (such as removing a property on window)
- try {
- this[ name ] = undefined;
- delete this[ name ];
- } catch( e ) {}
- });
- },
-
- addClass: function( value ) {
- var classes, elem, cur, clazz, j,
- i = 0,
- len = this.length,
- proceed = typeof value === "string" && value;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function( j ) {
- jQuery( this ).addClass( value.call( this, j, this.className ) );
- });
- }
-
- if ( proceed ) {
- // The disjunction here is for better compressibility (see removeClass)
- classes = ( value || "" ).match( core_rnotwhite ) || [];
-
- for ( ; i < len; i++ ) {
- elem = this[ i ];
- cur = elem.nodeType === 1 && ( elem.className ?
- ( " " + elem.className + " " ).replace( rclass, " " ) :
- " "
- );
-
- if ( cur ) {
- j = 0;
- while ( (clazz = classes[j++]) ) {
- if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
- cur += clazz + " ";
- }
- }
- elem.className = jQuery.trim( cur );
-
- }
- }
- }
-
- return this;
- },
-
- removeClass: function( value ) {
- var classes, elem, cur, clazz, j,
- i = 0,
- len = this.length,
- proceed = arguments.length === 0 || typeof value === "string" && value;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function( j ) {
- jQuery( this ).removeClass( value.call( this, j, this.className ) );
- });
- }
- if ( proceed ) {
- classes = ( value || "" ).match( core_rnotwhite ) || [];
-
- for ( ; i < len; i++ ) {
- elem = this[ i ];
- // This expression is here for better compressibility (see addClass)
- cur = elem.nodeType === 1 && ( elem.className ?
- ( " " + elem.className + " " ).replace( rclass, " " ) :
- ""
- );
-
- if ( cur ) {
- j = 0;
- while ( (clazz = classes[j++]) ) {
- // Remove *all* instances
- while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
- cur = cur.replace( " " + clazz + " ", " " );
- }
- }
- elem.className = value ? jQuery.trim( cur ) : "";
- }
- }
- }
-
- return this;
- },
-
- toggleClass: function( value, stateVal ) {
- var type = typeof value,
- isBool = typeof stateVal === "boolean";
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function( i ) {
- jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
- });
- }
-
- return this.each(function() {
- if ( type === "string" ) {
- // toggle individual class names
- var className,
- i = 0,
- self = jQuery( this ),
- state = stateVal,
- classNames = value.match( core_rnotwhite ) || [];
-
- while ( (className = classNames[ i++ ]) ) {
- // check each className given, space separated list
- state = isBool ? state : !self.hasClass( className );
- self[ state ? "addClass" : "removeClass" ]( className );
- }
-
- // Toggle whole class name
- } else if ( type === core_strundefined || type === "boolean" ) {
- if ( this.className ) {
- // store className if set
- jQuery._data( this, "__className__", this.className );
- }
-
- // If the element has a class name or if we're passed "false",
- // then remove the whole classname (if there was one, the above saved it).
- // Otherwise bring back whatever was previously saved (if anything),
- // falling back to the empty string if nothing was stored.
- this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
- }
- });
- },
-
- hasClass: function( selector ) {
- var className = " " + selector + " ",
- i = 0,
- l = this.length;
- for ( ; i < l; i++ ) {
- if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) {
- return true;
- }
- }
-
- return false;
- },
-
- val: function( value ) {
- var hooks, ret, isFunction,
- elem = this[0];
-
- if ( !arguments.length ) {
- if ( elem ) {
- hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];
-
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
- return ret;
- }
-
- ret = elem.value;
-
- return typeof ret === "string" ?
- // handle most common string cases
- ret.replace(rreturn, "") :
- // handle cases where value is null/undef or number
- ret == null ? "" : ret;
- }
-
- return;
- }
-
- isFunction = jQuery.isFunction( value );
-
- return this.each(function( i ) {
- var val,
- self = jQuery(this);
-
- if ( this.nodeType !== 1 ) {
- return;
- }
-
- if ( isFunction ) {
- val = value.call( this, i, self.val() );
- } else {
- val = value;
- }
-
- // Treat null/undefined as ""; convert numbers to string
- if ( val == null ) {
- val = "";
- } else if ( typeof val === "number" ) {
- val += "";
- } else if ( jQuery.isArray( val ) ) {
- val = jQuery.map(val, function ( value ) {
- return value == null ? "" : value + "";
- });
- }
-
- hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
-
- // If set returns undefined, fall back to normal setting
- if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
- this.value = val;
- }
- });
- }
-});
-
-jQuery.extend({
- valHooks: {
- option: {
- get: function( elem ) {
- // attributes.value is undefined in Blackberry 4.7 but
- // uses .value. See #6932
- var val = elem.attributes.value;
- return !val || val.specified ? elem.value : elem.text;
- }
- },
- select: {
- get: function( elem ) {
- var value, option,
- options = elem.options,
- index = elem.selectedIndex,
- one = elem.type === "select-one" || index < 0,
- values = one ? null : [],
- max = one ? index + 1 : options.length,
- i = index < 0 ?
- max :
- one ? index : 0;
-
- // Loop through all the selected options
- for ( ; i < max; i++ ) {
- option = options[ i ];
-
- // oldIE doesn't update selected after form reset (#2551)
- if ( ( option.selected || i === index ) &&
- // Don't return options that are disabled or in a disabled optgroup
- ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) &&
- ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
-
- // Get the specific value for the option
- value = jQuery( option ).val();
-
- // We don't need an array for one selects
- if ( one ) {
- return value;
- }
-
- // Multi-Selects return an array
- values.push( value );
- }
- }
-
- return values;
- },
-
- set: function( elem, value ) {
- var values = jQuery.makeArray( value );
-
- jQuery(elem).find("option").each(function() {
- this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
- });
-
- if ( !values.length ) {
- elem.selectedIndex = -1;
- }
- return values;
- }
- }
- },
-
- attr: function( elem, name, value ) {
- var ret, hooks, notxml,
- nType = elem.nodeType;
-
- // don't get/set attributes on text, comment and attribute nodes
- if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- // Fallback to prop when attributes are not supported
- if ( typeof elem.getAttribute === core_strundefined ) {
- return jQuery.prop( elem, name, value );
- }
-
- notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
- // All attributes are lowercase
- // Grab necessary hook if one is defined
- if ( notxml ) {
- name = name.toLowerCase();
- hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
- }
-
- if ( value !== undefined ) {
-
- if ( value === null ) {
- jQuery.removeAttr( elem, name );
-
- } else if ( hooks && notxml && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
- return ret;
-
- } else {
- elem.setAttribute( name, value + "" );
- return value;
- }
-
- } else if ( hooks && notxml && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
- return ret;
-
- } else {
-
- // In IE9+, Flash objects don't have .getAttribute (#12945)
- // Support: IE9+
- if ( typeof elem.getAttribute !== core_strundefined ) {
- ret = elem.getAttribute( name );
- }
-
- // Non-existent attributes return null, we normalize to undefined
- return ret == null ?
- undefined :
- ret;
- }
- },
-
- removeAttr: function( elem, value ) {
- var name, propName,
- i = 0,
- attrNames = value && value.match( core_rnotwhite );
-
- if ( attrNames && elem.nodeType === 1 ) {
- while ( (name = attrNames[i++]) ) {
- propName = jQuery.propFix[ name ] || name;
-
- // Boolean attributes get special treatment (#10870)
- // Set corresponding property to false for boolean attributes
- if ( rboolean.test( name ) ) {
- elem[ propName ] = false;
- }
-
- elem.removeAttribute( name );
- }
- }
- },
-
- attrHooks: {
- type: {
- set: function( elem, value ) {
- if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
- // Setting the type on a radio button after the value resets the value in IE6-9
- // Reset value to default in case type is set after value during creation
- var val = elem.value;
- elem.setAttribute( "type", value );
- if ( val ) {
- elem.value = val;
- }
- return value;
- }
- }
- }
- },
-
- propFix: {
- tabindex: "tabIndex",
- readonly: "readOnly",
- "for": "htmlFor",
- "class": "className",
- maxlength: "maxLength",
- cellspacing: "cellSpacing",
- cellpadding: "cellPadding",
- rowspan: "rowSpan",
- colspan: "colSpan",
- usemap: "useMap",
- frameborder: "frameBorder",
- contenteditable: "contentEditable"
- },
-
- prop: function( elem, name, value ) {
- var ret, hooks, notxml,
- nType = elem.nodeType;
-
- // don't get/set properties on text, comment and attribute nodes
- if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
- if ( notxml ) {
- // Fix name and attach hooks
- name = jQuery.propFix[ name ] || name;
- hooks = jQuery.propHooks[ name ];
- }
-
- if ( value !== undefined ) {
- if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
- return ret;
-
- } else {
- return ( elem[ name ] = value );
- }
-
- } else {
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
- return ret;
-
- } else {
- return elem[ name ];
- }
- }
- },
-
- propHooks: {
- tabIndex: {
- get: function( elem ) {
- // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
- var attributeNode = elem.getAttributeNode("tabindex");
-
- return attributeNode && attributeNode.specified ?
- parseInt( attributeNode.value, 10 ) :
- rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
- 0 :
- undefined;
- }
- }
- }
-});
-
-// Hook for boolean attributes
-boolHook = {
- get: function( elem, name ) {
- return elem.getAttribute( name ) !== null ?
- name.toLowerCase() :
- undefined;
- },
- set: function( elem, value, name ) {
- if ( value === false ) {
- // Remove boolean attributes when set to false
- jQuery.removeAttr( elem, name );
- } else {
- elem.setAttribute( name, name );
- }
- return name;
- }
-};
-
-// Radios and checkboxes getter/setter
-if ( !jQuery.support.checkOn ) {
- jQuery.each([ "radio", "checkbox" ], function() {
- jQuery.valHooks[ this ] = {
- get: function( elem ) {
- // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
- return elem.getAttribute("value") === null ? "on" : elem.value;
- }
- };
- });
-}
-jQuery.each([ "radio", "checkbox" ], function() {
- jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
- set: function( elem, value ) {
- if ( jQuery.isArray( value ) ) {
- return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
- }
- }
- });
-});
-
-// IE9/10 do not see a selected option inside an optgroup unless you access it
-// Support: IE9, IE10
-if ( !jQuery.support.optSelected ) {
- jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
- get: function( elem ) {
- var parent = elem.parentNode;
- if ( parent && parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- return null;
- }
- });
-}
-var rkeyEvent = /^key/,
- rmouseEvent = /^(?:mouse|contextmenu)|click/,
- rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
- rtypenamespace = /^([^.]*)(?:\.(.+)|)$/;
-
-function returnTrue() {
- return true;
-}
-
-function returnFalse() {
- return false;
-}
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
- global: {},
-
- add: function( elem, types, handler, data, selector ) {
-
- var handleObjIn, eventHandle, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = data_priv.get( elem );
-
- // Don't attach events to noData or text/comment nodes (but allow plain objects)
- if ( !elemData ) {
- return;
- }
-
- // Caller can pass in an object of custom data in lieu of the handler
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- selector = handleObjIn.selector;
- }
-
- // Make sure that the handler has a unique ID, used to find/remove it later
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure and main handler, if this is the first
- if ( !(events = elemData.events) ) {
- events = elemData.events = {};
- }
- if ( !(eventHandle = elemData.handle) ) {
- eventHandle = elemData.handle = function( e ) {
- // Discard the second event of a jQuery.event.trigger() and
- // when an event is called after a page has unloaded
- return typeof jQuery !== core_strundefined && (!e || jQuery.event.triggered !== e.type) ?
- jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
- undefined;
- };
- // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
- eventHandle.elem = elem;
- }
-
- // Handle multiple events separated by a space
- types = ( types || "" ).match( core_rnotwhite ) || [""];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[t] ) || [];
- type = origType = tmp[1];
- namespaces = ( tmp[2] || "" ).split( "." ).sort();
-
- // There *must* be a type, no attaching namespace-only handlers
- if ( !type ) {
- continue;
- }
-
- // If event changes its type, use the special event handlers for the changed type
- special = jQuery.event.special[ type ] || {};
-
- // If selector defined, determine special event api type, otherwise given type
- type = ( selector ? special.delegateType : special.bindType ) || type;
-
- // Update special based on newly reset type
- special = jQuery.event.special[ type ] || {};
-
- // handleObj is passed to all event handlers
- handleObj = jQuery.extend({
- type: type,
- origType: origType,
- data: data,
- handler: handler,
- guid: handler.guid,
- selector: selector,
- needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
- namespace: namespaces.join(".")
- }, handleObjIn );
-
- // Init the event handler queue if we're the first
- if ( !(handlers = events[ type ]) ) {
- handlers = events[ type ] = [];
- handlers.delegateCount = 0;
-
- // Only use addEventListener if the special events handler returns false
- if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle, false );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add to the element's handler list, delegates in front
- if ( selector ) {
- handlers.splice( handlers.delegateCount++, 0, handleObj );
- } else {
- handlers.push( handleObj );
- }
-
- // Keep track of which events have ever been used, for event optimization
- jQuery.event.global[ type ] = true;
- }
-
- // Nullify elem to prevent memory leaks in IE
- elem = null;
- },
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, selector, mappedTypes ) {
-
- var j, origCount, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = data_priv.hasData( elem ) && data_priv.get( elem );
-
- if ( !elemData || !(events = elemData.events) ) {
- return;
- }
-
- // Once for each type.namespace in types; type may be omitted
- types = ( types || "" ).match( core_rnotwhite ) || [""];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[t] ) || [];
- type = origType = tmp[1];
- namespaces = ( tmp[2] || "" ).split( "." ).sort();
-
- // Unbind all events (on this namespace, if provided) for the element
- if ( !type ) {
- for ( type in events ) {
- jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
- }
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
- type = ( selector ? special.delegateType : special.bindType ) || type;
- handlers = events[ type ] || [];
- tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" );
-
- // Remove matching events
- origCount = j = handlers.length;
- while ( j-- ) {
- handleObj = handlers[ j ];
-
- if ( ( mappedTypes || origType === handleObj.origType ) &&
- ( !handler || handler.guid === handleObj.guid ) &&
- ( !tmp || tmp.test( handleObj.namespace ) ) &&
- ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
- handlers.splice( j, 1 );
-
- if ( handleObj.selector ) {
- handlers.delegateCount--;
- }
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
- }
-
- // Remove generic event handler if we removed something and no more handlers exist
- // (avoids potential for endless recursion during removal of special event handlers)
- if ( origCount && !handlers.length ) {
- if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
- jQuery.removeEvent( elem, type, elemData.handle );
- }
-
- delete events[ type ];
- }
- }
-
- // Remove the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- delete elemData.handle;
-
- // removeData also checks for emptiness and clears the expando if empty
- // so use it instead of delete
- jQuery._removeData( elem, "events" );
- }
- },
-
- trigger: function( event, data, elem, onlyHandlers ) {
-
- var i, cur, tmp, bubbleType, ontype, handle, special,
- eventPath = [ elem || document ],
- type = core_hasOwn.call( event, "type" ) ? event.type : event,
- namespaces = core_hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : [];
-
- cur = tmp = elem = elem || document;
-
- // Don't do events on text and comment nodes
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- // focus/blur morphs to focusin/out; ensure we're not firing them right now
- if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
- return;
- }
-
- if ( type.indexOf(".") >= 0 ) {
- // Namespaced trigger; create a regexp to match event type in handle()
- namespaces = type.split(".");
- type = namespaces.shift();
- namespaces.sort();
- }
- ontype = type.indexOf(":") < 0 && "on" + type;
-
- // Caller can pass in a jQuery.Event object, Object, or just an event type string
- event = event[ jQuery.expando ] ?
- event :
- new jQuery.Event( type, typeof event === "object" && event );
-
- // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
- event.isTrigger = onlyHandlers ? 2 : 3;
- event.namespace = namespaces.join(".");
- event.namespace_re = event.namespace ?
- new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) :
- null;
-
- // Clean up the event in case it is being reused
- event.result = undefined;
- if ( !event.target ) {
- event.target = elem;
- }
-
- // Clone any incoming data and prepend the event, creating the handler arg list
- data = data == null ?
- [ event ] :
- jQuery.makeArray( data, [ event ] );
-
- // Allow special events to draw outside the lines
- special = jQuery.event.special[ type ] || {};
- if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
- return;
- }
-
- // Determine event propagation path in advance, per W3C events spec (#9951)
- // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
- if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
-
- bubbleType = special.delegateType || type;
- if ( !rfocusMorph.test( bubbleType + type ) ) {
- cur = cur.parentNode;
- }
- for ( ; cur; cur = cur.parentNode ) {
- eventPath.push( cur );
- tmp = cur;
- }
-
- // Only add window if we got to document (e.g., not plain obj or detached DOM)
- if ( tmp === (elem.ownerDocument || document) ) {
- eventPath.push( tmp.defaultView || tmp.parentWindow || window );
- }
- }
-
- // Fire handlers on the event path
- i = 0;
- while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) {
-
- event.type = i > 1 ?
- bubbleType :
- special.bindType || type;
-
- // jQuery handler
- handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
- if ( handle ) {
- handle.apply( cur, data );
- }
-
- // Native handler
- handle = ontype && cur[ ontype ];
- if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) {
- event.preventDefault();
- }
- }
- event.type = type;
-
- // If nobody prevented the default action, do it now
- if ( !onlyHandlers && !event.isDefaultPrevented() ) {
-
- if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
- !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
-
- // Call a native DOM method on the target with the same name name as the event.
- // Don't do default actions on window, that's where global variables be (#6170)
- if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {
-
- // Don't re-trigger an onFOO event when we call its FOO() method
- tmp = elem[ ontype ];
-
- if ( tmp ) {
- elem[ ontype ] = null;
- }
-
- // Prevent re-triggering of the same event, since we already bubbled it above
- jQuery.event.triggered = type;
- elem[ type ]();
- jQuery.event.triggered = undefined;
-
- if ( tmp ) {
- elem[ ontype ] = tmp;
- }
- }
- }
- }
-
- return event.result;
- },
-
- dispatch: function( event ) {
-
- // Make a writable jQuery.Event from the native event object
- event = jQuery.event.fix( event );
-
- var i, j, ret, matched, handleObj,
- handlerQueue = [],
- args = core_slice.call( arguments ),
- handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [],
- special = jQuery.event.special[ event.type ] || {};
-
- // Use the fix-ed jQuery.Event rather than the (read-only) native event
- args[0] = event;
- event.delegateTarget = this;
-
- // Call the preDispatch hook for the mapped type, and let it bail if desired
- if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
- return;
- }
-
- // Determine handlers
- handlerQueue = jQuery.event.handlers.call( this, event, handlers );
-
- // Run delegates first; they may want to stop propagation beneath us
- i = 0;
- while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) {
- event.currentTarget = matched.elem;
-
- j = 0;
- while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) {
-
- // Triggered event must either 1) have no namespace, or
- // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
- if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) {
-
- event.handleObj = handleObj;
- event.data = handleObj.data;
-
- ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
- .apply( matched.elem, args );
-
- if ( ret !== undefined ) {
- if ( (event.result = ret) === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
- }
- }
- }
-
- // Call the postDispatch hook for the mapped type
- if ( special.postDispatch ) {
- special.postDispatch.call( this, event );
- }
-
- return event.result;
- },
-
- handlers: function( event, handlers ) {
- var i, matches, sel, handleObj,
- handlerQueue = [],
- delegateCount = handlers.delegateCount,
- cur = event.target;
-
- // Find delegate handlers
- // Black-hole SVG instance trees (#13180)
- // Avoid non-left-click bubbling in Firefox (#3861)
- if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
-
- for ( ; cur != this; cur = cur.parentNode || this ) {
-
- // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
- if ( cur.disabled !== true || event.type !== "click" ) {
- matches = [];
- for ( i = 0; i < delegateCount; i++ ) {
- handleObj = handlers[ i ];
-
- // Don't conflict with Object.prototype properties (#13203)
- sel = handleObj.selector + " ";
-
- if ( matches[ sel ] === undefined ) {
- matches[ sel ] = handleObj.needsContext ?
- jQuery( sel, this ).index( cur ) >= 0 :
- jQuery.find( sel, this, null, [ cur ] ).length;
- }
- if ( matches[ sel ] ) {
- matches.push( handleObj );
- }
- }
- if ( matches.length ) {
- handlerQueue.push({ elem: cur, handlers: matches });
- }
- }
- }
- }
-
- // Add the remaining (directly-bound) handlers
- if ( delegateCount < handlers.length ) {
- handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) });
- }
-
- return handlerQueue;
- },
-
- // Includes some event props shared by KeyEvent and MouseEvent
- props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
-
- fixHooks: {},
-
- keyHooks: {
- props: "char charCode key keyCode".split(" "),
- filter: function( event, original ) {
-
- // Add which for key events
- if ( event.which == null ) {
- event.which = original.charCode != null ? original.charCode : original.keyCode;
- }
-
- return event;
- }
- },
-
- mouseHooks: {
- props: "button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
- filter: function( event, original ) {
- var eventDoc, doc, body,
- button = original.button;
-
- // Calculate pageX/Y if missing and clientX/Y available
- if ( event.pageX == null && original.clientX != null ) {
- eventDoc = event.target.ownerDocument || document;
- doc = eventDoc.documentElement;
- body = eventDoc.body;
-
- event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
- event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 );
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- // Note: button is not normalized, so don't use it
- if ( !event.which && button !== undefined ) {
- event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
- }
-
- return event;
- }
- },
-
- fix: function( event ) {
- if ( event[ jQuery.expando ] ) {
- return event;
- }
-
- // Create a writable copy of the event object and normalize some properties
- var i, prop, copy,
- type = event.type,
- originalEvent = event,
- fixHook = this.fixHooks[ type ];
-
- if ( !fixHook ) {
- this.fixHooks[ type ] = fixHook =
- rmouseEvent.test( type ) ? this.mouseHooks :
- rkeyEvent.test( type ) ? this.keyHooks :
- {};
- }
- copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
-
- event = new jQuery.Event( originalEvent );
-
- i = copy.length;
- while ( i-- ) {
- prop = copy[ i ];
- event[ prop ] = originalEvent[ prop ];
- }
-
- // Support: Chrome 23+, Safari?
- // Target should not be a text node (#504, #13143)
- if ( event.target.nodeType === 3 ) {
- event.target = event.target.parentNode;
- }
-
- return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
- },
-
- special: {
- load: {
- // Prevent triggered image.load events from bubbling to window.load
- noBubble: true
- },
- click: {
- // For checkbox, fire native event so checked state will be right
- trigger: function() {
- if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) {
- this.click();
- return false;
- }
- }
- },
- focus: {
- // Fire native event if possible so blur/focus sequence is correct
- trigger: function() {
- if ( this !== document.activeElement && this.focus ) {
- this.focus();
- return false;
- }
- },
- delegateType: "focusin"
- },
- blur: {
- trigger: function() {
- if ( this === document.activeElement && this.blur ) {
- this.blur();
- return false;
- }
- },
- delegateType: "focusout"
- },
-
- beforeunload: {
- postDispatch: function( event ) {
-
- // Support: Firefox 10+
- if ( event.result !== undefined ) {
- event.originalEvent.returnValue = event.result;
- }
- }
- }
- },
-
- simulate: function( type, elem, event, bubble ) {
- // Piggyback on a donor event to simulate a different one.
- // Fake originalEvent to avoid donor's stopPropagation, but if the
- // simulated event prevents default then we do the same on the donor.
- var e = jQuery.extend(
- new jQuery.Event(),
- event,
- {
- type: type,
- isSimulated: true,
- originalEvent: {}
- }
- );
- if ( bubble ) {
- jQuery.event.trigger( e, null, elem );
- } else {
- jQuery.event.dispatch.call( elem, e );
- }
- if ( e.isDefaultPrevented() ) {
- event.preventDefault();
- }
- }
-};
-
-jQuery.removeEvent = function( elem, type, handle ) {
- if ( elem.removeEventListener ) {
- elem.removeEventListener( type, handle, false );
- }
-};
-
-jQuery.Event = function( src, props ) {
- // Allow instantiation without the 'new' keyword
- if ( !(this instanceof jQuery.Event) ) {
- return new jQuery.Event( src, props );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
-
- // Events bubbling up the document may have been marked as prevented
- // by a handler lower down the tree; reflect the correct value.
- this.isDefaultPrevented = ( src.defaultPrevented ||
- src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
-
- // Event type
- } else {
- this.type = src;
- }
-
- // Put explicitly provided properties onto the event object
- if ( props ) {
- jQuery.extend( this, props );
- }
-
- // Create a timestamp if incoming event doesn't have one
- this.timeStamp = src && src.timeStamp || jQuery.now();
-
- // Mark it as fixed
- this[ jQuery.expando ] = true;
-};
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse,
-
- preventDefault: function() {
- var e = this.originalEvent;
-
- this.isDefaultPrevented = returnTrue;
-
- if ( e && e.preventDefault ) {
- e.preventDefault();
- }
- },
- stopPropagation: function() {
- var e = this.originalEvent;
-
- this.isPropagationStopped = returnTrue;
-
- if ( e && e.stopPropagation ) {
- e.stopPropagation();
- }
- },
- stopImmediatePropagation: function() {
- this.isImmediatePropagationStopped = returnTrue;
- this.stopPropagation();
- }
-};
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-// Support: Chrome 15+
-jQuery.each({
- mouseenter: "mouseover",
- mouseleave: "mouseout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- delegateType: fix,
- bindType: fix,
-
- handle: function( event ) {
- var ret,
- target = this,
- related = event.relatedTarget,
- handleObj = event.handleObj;
-
- // For mousenter/leave call the handler if related is outside the target.
- // NB: No relatedTarget if the mouse left/entered the browser window
- if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
- event.type = handleObj.origType;
- ret = handleObj.handler.apply( this, arguments );
- event.type = fix;
- }
- return ret;
- }
- };
-});
-
-// Create "bubbling" focus and blur events
-// Support: Firefox 10+
-if ( !jQuery.support.focusinBubbles ) {
- jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
- // Attach a single capturing handler while someone wants focusin/focusout
- var attaches = 0,
- handler = function( event ) {
- jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
- };
-
- jQuery.event.special[ fix ] = {
- setup: function() {
- if ( attaches++ === 0 ) {
- document.addEventListener( orig, handler, true );
- }
- },
- teardown: function() {
- if ( --attaches === 0 ) {
- document.removeEventListener( orig, handler, true );
- }
- }
- };
- });
-}
-
-jQuery.fn.extend({
-
- on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
- var origFn, type;
-
- // Types can be a map of types/handlers
- if ( typeof types === "object" ) {
- // ( types-Object, selector, data )
- if ( typeof selector !== "string" ) {
- // ( types-Object, data )
- data = data || selector;
- selector = undefined;
- }
- for ( type in types ) {
- this.on( type, selector, data, types[ type ], one );
- }
- return this;
- }
-
- if ( data == null && fn == null ) {
- // ( types, fn )
- fn = selector;
- data = selector = undefined;
- } else if ( fn == null ) {
- if ( typeof selector === "string" ) {
- // ( types, selector, fn )
- fn = data;
- data = undefined;
- } else {
- // ( types, data, fn )
- fn = data;
- data = selector;
- selector = undefined;
- }
- }
- if ( fn === false ) {
- fn = returnFalse;
- } else if ( !fn ) {
- return this;
- }
-
- if ( one === 1 ) {
- origFn = fn;
- fn = function( event ) {
- // Can use an empty set, since event contains the info
- jQuery().off( event );
- return origFn.apply( this, arguments );
- };
- // Use same guid so caller can remove using origFn
- fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
- }
- return this.each( function() {
- jQuery.event.add( this, types, fn, data, selector );
- });
- },
- one: function( types, selector, data, fn ) {
- return this.on( types, selector, data, fn, 1 );
- },
- off: function( types, selector, fn ) {
- var handleObj, type;
- if ( types && types.preventDefault && types.handleObj ) {
- // ( event ) dispatched jQuery.Event
- handleObj = types.handleObj;
- jQuery( types.delegateTarget ).off(
- handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
- handleObj.selector,
- handleObj.handler
- );
- return this;
- }
- if ( typeof types === "object" ) {
- // ( types-object [, selector] )
- for ( type in types ) {
- this.off( type, selector, types[ type ] );
- }
- return this;
- }
- if ( selector === false || typeof selector === "function" ) {
- // ( types [, fn] )
- fn = selector;
- selector = undefined;
- }
- if ( fn === false ) {
- fn = returnFalse;
- }
- return this.each(function() {
- jQuery.event.remove( this, types, fn, selector );
- });
- },
-
- bind: function( types, data, fn ) {
- return this.on( types, null, data, fn );
- },
- unbind: function( types, fn ) {
- return this.off( types, null, fn );
- },
-
- delegate: function( selector, types, data, fn ) {
- return this.on( types, selector, data, fn );
- },
- undelegate: function( selector, types, fn ) {
- // ( namespace ) or ( selector, types [, fn] )
- return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn );
- },
-
- trigger: function( type, data ) {
- return this.each(function() {
- jQuery.event.trigger( type, data, this );
- });
- },
- triggerHandler: function( type, data ) {
- var elem = this[0];
- if ( elem ) {
- return jQuery.event.trigger( type, data, elem, true );
- }
- }
-});
-/*!
- * Sizzle CSS Selector Engine
- * Copyright 2013 jQuery Foundation and other contributors
- * Released under the MIT license
- * http://sizzlejs.com/
- */
-(function( window, undefined ) {
-
-var i,
- cachedruns,
- Expr,
- getText,
- isXML,
- compile,
- outermostContext,
- recompare,
- sortInput,
-
- // Local document vars
- setDocument,
- document,
- docElem,
- documentIsXML,
- rbuggyQSA,
- rbuggyMatches,
- matches,
- contains,
-
- // Instance-specific data
- expando = "sizzle" + -(new Date()),
- preferredDoc = window.document,
- support = {},
- dirruns = 0,
- done = 0,
- classCache = createCache(),
- tokenCache = createCache(),
- compilerCache = createCache(),
- hasDuplicate = false,
- sortOrder = function() { return 0; },
-
- // General-purpose constants
- strundefined = typeof undefined,
- MAX_NEGATIVE = 1 << 31,
-
- // Array methods
- arr = [],
- pop = arr.pop,
- push_native = arr.push,
- push = arr.push,
- slice = arr.slice,
- // Use a stripped-down indexOf if we can't use a native one
- indexOf = arr.indexOf || function( elem ) {
- var i = 0,
- len = this.length;
- for ( ; i < len; i++ ) {
- if ( this[i] === elem ) {
- return i;
- }
- }
- return -1;
- },
-
-
- // Regular expressions
-
- // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace
- whitespace = "[\\x20\\t\\r\\n\\f]",
- // http://www.w3.org/TR/css3-syntax/#characters
- characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
-
- // Loosely modeled on CSS identifier characters
- // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
- // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
- identifier = characterEncoding.replace( "w", "w#" ),
-
- // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors
- operators = "([*^$|!~]?=)",
- attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace +
- "*(?:" + operators + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]",
-
- // Prefer arguments quoted,
- // then not containing pseudos/brackets,
- // then attribute selectors/non-parenthetical expressions,
- // then anything else
- // These preferences are here to reduce the number of selectors
- // needing tokenize in the PSEUDO preFilter
- pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)",
-
- // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
- rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
-
- rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
- rcombinators = new RegExp( "^" + whitespace + "*([\\x20\\t\\r\\n\\f>+~])" + whitespace + "*" ),
- rpseudo = new RegExp( pseudos ),
- ridentifier = new RegExp( "^" + identifier + "$" ),
-
- matchExpr = {
- "ID": new RegExp( "^#(" + characterEncoding + ")" ),
- "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ),
- "NAME": new RegExp( "^\\[name=['\"]?(" + characterEncoding + ")['\"]?\\]" ),
- "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ),
- "ATTR": new RegExp( "^" + attributes ),
- "PSEUDO": new RegExp( "^" + pseudos ),
- "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
- "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
- "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
- // For use in libraries implementing .is()
- // We use this for POS matching in `select`
- "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
- whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
- },
-
- rsibling = /[\x20\t\r\n\f]*[+~]/,
-
- rnative = /^[^{]+\{\s*\[native code/,
-
- // Easily-parseable/retrievable ID or TAG or CLASS selectors
- rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
-
- rinputs = /^(?:input|select|textarea|button)$/i,
- rheader = /^h\d$/i,
-
- rescape = /'|\\/g,
- rattributeQuotes = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,
-
- // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
- runescape = /\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,
- funescape = function( _, escaped ) {
- var high = "0x" + escaped - 0x10000;
- // NaN means non-codepoint
- return high !== high ?
- escaped :
- // BMP codepoint
- high < 0 ?
- String.fromCharCode( high + 0x10000 ) :
- // Supplemental Plane codepoint (surrogate pair)
- String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
- };
-
-// Optimize for push.apply( _, NodeList )
-try {
- push.apply(
- (arr = slice.call( preferredDoc.childNodes )),
- preferredDoc.childNodes
- );
- // Support: Android<4.0
- // Detect silently failing push.apply
- arr[ preferredDoc.childNodes.length ].nodeType;
-} catch ( e ) {
- push = { apply: arr.length ?
-
- // Leverage slice if possible
- function( target, els ) {
- push_native.apply( target, slice.call(els) );
- } :
-
- // Support: IE<9
- // Otherwise append directly
- function( target, els ) {
- var j = target.length,
- i = 0;
- // Can't trust NodeList.length
- while ( (target[j++] = els[i++]) ) {}
- target.length = j - 1;
- }
- };
-}
-
-/**
- * For feature detection
- * @param {Function} fn The function to test for native support
- */
-function isNative( fn ) {
- return rnative.test( fn + "" );
-}
-
-/**
- * Create key-value caches of limited size
- * @returns {Function(string, Object)} Returns the Object data after storing it on itself with
- * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
- * deleting the oldest entry
- */
-function createCache() {
- var cache,
- keys = [];
-
- return (cache = function( key, value ) {
- // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
- if ( keys.push( key += " " ) > Expr.cacheLength ) {
- // Only keep the most recent entries
- delete cache[ keys.shift() ];
- }
- return (cache[ key ] = value);
- });
-}
-
-/**
- * Mark a function for special use by Sizzle
- * @param {Function} fn The function to mark
- */
-function markFunction( fn ) {
- fn[ expando ] = true;
- return fn;
-}
-
-/**
- * Support testing using an element
- * @param {Function} fn Passed the created div and expects a boolean result
- */
-function assert( fn ) {
- var div = document.createElement("div");
-
- try {
- return !!fn( div );
- } catch (e) {
- return false;
- } finally {
- // release memory in IE
- div = null;
- }
-}
-
-function Sizzle( selector, context, results, seed ) {
- var match, elem, m, nodeType,
- // QSA vars
- i, groups, old, nid, newContext, newSelector;
-
- if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
- setDocument( context );
- }
-
- context = context || document;
- results = results || [];
-
- if ( !selector || typeof selector !== "string" ) {
- return results;
- }
-
- if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) {
- return [];
- }
-
- if ( !documentIsXML && !seed ) {
-
- // Shortcuts
- if ( (match = rquickExpr.exec( selector )) ) {
- // Speed-up: Sizzle("#ID")
- if ( (m = match[1]) ) {
- if ( nodeType === 9 ) {
- elem = context.getElementById( m );
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- if ( elem && elem.parentNode ) {
- // Handle the case where IE, Opera, and Webkit return items
- // by name instead of ID
- if ( elem.id === m ) {
- results.push( elem );
- return results;
- }
- } else {
- return results;
- }
- } else {
- // Context is not a document
- if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
- contains( context, elem ) && elem.id === m ) {
- results.push( elem );
- return results;
- }
- }
-
- // Speed-up: Sizzle("TAG")
- } else if ( match[2] ) {
- push.apply( results, context.getElementsByTagName( selector ) );
- return results;
-
- // Speed-up: Sizzle(".CLASS")
- } else if ( (m = match[3]) && support.getByClassName && context.getElementsByClassName ) {
- push.apply( results, context.getElementsByClassName( m ) );
- return results;
- }
- }
-
- // QSA path
- if ( support.qsa && !rbuggyQSA.test(selector) ) {
- old = true;
- nid = expando;
- newContext = context;
- newSelector = nodeType === 9 && selector;
-
- // qSA works strangely on Element-rooted queries
- // We can work around this by specifying an extra ID on the root
- // and working up from there (Thanks to Andrew Dupont for the technique)
- // IE 8 doesn't work on object elements
- if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
- groups = tokenize( selector );
-
- if ( (old = context.getAttribute("id")) ) {
- nid = old.replace( rescape, "\\$&" );
- } else {
- context.setAttribute( "id", nid );
- }
- nid = "[id='" + nid + "'] ";
-
- i = groups.length;
- while ( i-- ) {
- groups[i] = nid + toSelector( groups[i] );
- }
- newContext = rsibling.test( selector ) && context.parentNode || context;
- newSelector = groups.join(",");
- }
-
- if ( newSelector ) {
- try {
- push.apply( results,
- newContext.querySelectorAll( newSelector )
- );
- return results;
- } catch(qsaError) {
- } finally {
- if ( !old ) {
- context.removeAttribute("id");
- }
- }
- }
- }
- }
-
- // All others
- return select( selector.replace( rtrim, "$1" ), context, results, seed );
-}
-
-/**
- * Detect xml
- * @param {Element|Object} elem An element or a document
- */
-isXML = Sizzle.isXML = function( elem ) {
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = elem && (elem.ownerDocument || elem).documentElement;
- return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-/**
- * Sets document-related variables once based on the current document
- * @param {Element|Object} [doc] An element or document object to use to set the document
- * @returns {Object} Returns the current document
- */
-setDocument = Sizzle.setDocument = function( node ) {
- var doc = node ? node.ownerDocument || node : preferredDoc;
-
- // If no document and documentElement is available, return
- if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
- return document;
- }
-
- // Set our document
- document = doc;
- docElem = doc.documentElement;
-
- // Support tests
- documentIsXML = isXML( doc );
-
- // Check if getElementsByTagName("*") returns only elements
- support.tagNameNoComments = assert(function( div ) {
- div.appendChild( doc.createComment("") );
- return !div.getElementsByTagName("*").length;
- });
-
- // Check if attributes should be retrieved by attribute nodes
- support.attributes = assert(function( div ) {
- div.innerHTML = " ";
- var type = typeof div.lastChild.getAttribute("multiple");
- // IE8 returns a string for some attributes even when not present
- return type !== "boolean" && type !== "string";
- });
-
- // Check if getElementsByClassName can be trusted
- support.getByClassName = assert(function( div ) {
- // Opera can't find a second classname (in 9.6)
- div.innerHTML = "
";
- if ( !div.getElementsByClassName || !div.getElementsByClassName("e").length ) {
- return false;
- }
-
- // Safari 3.2 caches class attributes and doesn't catch changes
- div.lastChild.className = "e";
- return div.getElementsByClassName("e").length === 2;
- });
-
- // Check if getElementsByName privileges form controls or returns elements by ID
- // If so, assume (for broader support) that getElementById returns elements by name
- support.getByName = assert(function( div ) {
- // Inject content
- div.id = expando + 0;
- // Support: Windows 8 Native Apps
- // Assigning innerHTML with "name" attributes throws uncatchable exceptions
- // http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx
- div.appendChild( document.createElement("a") ).setAttribute( "name", expando );
- div.appendChild( document.createElement("i") ).setAttribute( "name", expando );
- docElem.appendChild( div );
-
- // Test
- var pass = doc.getElementsByName &&
- // buggy browsers will return fewer than the correct 2
- doc.getElementsByName( expando ).length === 2 +
- // buggy browsers will return more than the correct 0
- doc.getElementsByName( expando + 0 ).length;
-
- // Cleanup
- docElem.removeChild( div );
-
- return pass;
- });
-
- // Support: Webkit<537.32
- // Detached nodes confoundingly follow *each other*
- support.sortDetached = assert(function( div1 ) {
- return div1.compareDocumentPosition &&
- // Should return 1, but Webkit returns 4 (following)
- (div1.compareDocumentPosition( document.createElement("div") ) & 1);
- });
-
- // IE6/7 return modified attributes
- Expr.attrHandle = assert(function( div ) {
- div.innerHTML = " ";
- return div.firstChild && typeof div.firstChild.getAttribute !== strundefined &&
- div.firstChild.getAttribute("href") === "#";
- }) ?
- {} :
- {
- "href": function( elem ) {
- return elem.getAttribute( "href", 2 );
- },
- "type": function( elem ) {
- return elem.getAttribute("type");
- }
- };
-
- // ID find and filter
- if ( support.getByName ) {
- Expr.find["ID"] = function( id, context ) {
- if ( typeof context.getElementById !== strundefined && !documentIsXML ) {
- var m = context.getElementById( id );
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- return m && m.parentNode ? [m] : [];
- }
- };
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- return elem.getAttribute("id") === attrId;
- };
- };
- } else {
- Expr.find["ID"] = function( id, context ) {
- if ( typeof context.getElementById !== strundefined && !documentIsXML ) {
- var m = context.getElementById( id );
-
- return m ?
- m.id === id || typeof m.getAttributeNode !== strundefined && m.getAttributeNode("id").value === id ?
- [m] :
- undefined :
- [];
- }
- };
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id");
- return node && node.value === attrId;
- };
- };
- }
-
- // Tag
- Expr.find["TAG"] = support.tagNameNoComments ?
- function( tag, context ) {
- if ( typeof context.getElementsByTagName !== strundefined ) {
- return context.getElementsByTagName( tag );
- }
- } :
- function( tag, context ) {
- var elem,
- tmp = [],
- i = 0,
- results = context.getElementsByTagName( tag );
-
- // Filter out possible comments
- if ( tag === "*" ) {
- while ( (elem = results[i++]) ) {
- if ( elem.nodeType === 1 ) {
- tmp.push( elem );
- }
- }
-
- return tmp;
- }
- return results;
- };
-
- // Name
- Expr.find["NAME"] = support.getByName && function( tag, context ) {
- if ( typeof context.getElementsByName !== strundefined ) {
- return context.getElementsByName( name );
- }
- };
-
- // Class
- Expr.find["CLASS"] = support.getByClassName && function( className, context ) {
- if ( typeof context.getElementsByClassName !== strundefined && !documentIsXML ) {
- return context.getElementsByClassName( className );
- }
- };
-
- // QSA and matchesSelector support
-
- // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
- rbuggyMatches = [];
-
- // qSa(:focus) reports false when true (Chrome 21),
- // no need to also add to buggyMatches since matches checks buggyQSA
- // A support test would require too much code (would include document ready)
- rbuggyQSA = [ ":focus" ];
-
- if ( (support.qsa = isNative(doc.querySelectorAll)) ) {
- // Build QSA regex
- // Regex strategy adopted from Diego Perini
- assert(function( div ) {
- // Select is set to empty string on purpose
- // This is to test IE's treatment of not explictly
- // setting a boolean content attribute,
- // since its presence should be enough
- // http://bugs.jquery.com/ticket/12359
- div.innerHTML = " ";
-
- // IE8 - Some boolean attributes are not treated correctly
- if ( !div.querySelectorAll("[selected]").length ) {
- rbuggyQSA.push( "\\[" + whitespace + "*(?:checked|disabled|ismap|multiple|readonly|selected|value)" );
- }
-
- // Webkit/Opera - :checked should return selected option elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- // IE8 throws error here and will not see later tests
- if ( !div.querySelectorAll(":checked").length ) {
- rbuggyQSA.push(":checked");
- }
- });
-
- assert(function( div ) {
-
- // Opera 10-12/IE8 - ^= $= *= and empty values
- // Should not select anything
- div.innerHTML = " ";
- if ( div.querySelectorAll("[i^='']").length ) {
- rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:\"\"|'')" );
- }
-
- // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
- // IE8 throws error here and will not see later tests
- if ( !div.querySelectorAll(":enabled").length ) {
- rbuggyQSA.push( ":enabled", ":disabled" );
- }
-
- // Opera 10-11 does not throw on post-comma invalid pseudos
- div.querySelectorAll("*,:x");
- rbuggyQSA.push(",.*:");
- });
- }
-
- if ( (support.matchesSelector = isNative( (matches = docElem.matchesSelector ||
- docElem.mozMatchesSelector ||
- docElem.webkitMatchesSelector ||
- docElem.oMatchesSelector ||
- docElem.msMatchesSelector) )) ) {
-
- assert(function( div ) {
- // Check to see if it's possible to do matchesSelector
- // on a disconnected node (IE 9)
- support.disconnectedMatch = matches.call( div, "div" );
-
- // This should fail with an exception
- // Gecko does not error, returns false instead
- matches.call( div, "[s!='']:x" );
- rbuggyMatches.push( "!=", pseudos );
- });
- }
-
- rbuggyQSA = new RegExp( rbuggyQSA.join("|") );
- rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
-
- // Element contains another
- // Purposefully does not implement inclusive descendent
- // As in, an element does not contain itself
- contains = isNative(docElem.contains) || docElem.compareDocumentPosition ?
- function( a, b ) {
- var adown = a.nodeType === 9 ? a.documentElement : a,
- bup = b && b.parentNode;
- return a === bup || !!( bup && bup.nodeType === 1 && (
- adown.contains ?
- adown.contains( bup ) :
- a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
- ));
- } :
- function( a, b ) {
- if ( b ) {
- while ( (b = b.parentNode) ) {
- if ( b === a ) {
- return true;
- }
- }
- }
- return false;
- };
-
- // Document order sorting
- sortOrder = docElem.compareDocumentPosition ?
- function( a, b ) {
-
- // Flag for duplicate removal
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b );
-
- if ( compare ) {
- // Disconnected nodes
- if ( compare & 1 ||
- (recompare && b.compareDocumentPosition( a ) === compare) ) {
-
- // Choose the first element that is related to our preferred document
- if ( a === doc || contains(preferredDoc, a) ) {
- return -1;
- }
- if ( b === doc || contains(preferredDoc, b) ) {
- return 1;
- }
-
- // Maintain original order
- return sortInput ?
- ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
- 0;
- }
-
- return compare & 4 ? -1 : 1;
- }
-
- // Not directly comparable, sort on existence of method
- return a.compareDocumentPosition ? -1 : 1;
- } :
- function( a, b ) {
- var cur,
- i = 0,
- aup = a.parentNode,
- bup = b.parentNode,
- ap = [ a ],
- bp = [ b ];
-
- // Exit early if the nodes are identical
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
-
- // Parentless nodes are either documents or disconnected
- } else if ( !aup || !bup ) {
- return a === doc ? -1 :
- b === doc ? 1 :
- aup ? -1 :
- bup ? 1 :
- 0;
-
- // If the nodes are siblings, we can do a quick check
- } else if ( aup === bup ) {
- return siblingCheck( a, b );
- }
-
- // Otherwise we need full lists of their ancestors for comparison
- cur = a;
- while ( (cur = cur.parentNode) ) {
- ap.unshift( cur );
- }
- cur = b;
- while ( (cur = cur.parentNode) ) {
- bp.unshift( cur );
- }
-
- // Walk down the tree looking for a discrepancy
- while ( ap[i] === bp[i] ) {
- i++;
- }
-
- return i ?
- // Do a sibling check if the nodes have a common ancestor
- siblingCheck( ap[i], bp[i] ) :
-
- // Otherwise nodes in our document sort first
- ap[i] === preferredDoc ? -1 :
- bp[i] === preferredDoc ? 1 :
- 0;
- };
-
- return document;
-};
-
-Sizzle.matches = function( expr, elements ) {
- return Sizzle( expr, null, null, elements );
-};
-
-Sizzle.matchesSelector = function( elem, expr ) {
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- // Make sure that attribute selectors are quoted
- expr = expr.replace( rattributeQuotes, "='$1']" );
-
- // rbuggyQSA always contains :focus, so no need for an existence check
- if ( support.matchesSelector && !documentIsXML && (!rbuggyMatches || !rbuggyMatches.test(expr)) && !rbuggyQSA.test(expr) ) {
- try {
- var ret = matches.call( elem, expr );
-
- // IE 9's matchesSelector returns false on disconnected nodes
- if ( ret || support.disconnectedMatch ||
- // As well, disconnected nodes are said to be in a document
- // fragment in IE 9
- elem.document && elem.document.nodeType !== 11 ) {
- return ret;
- }
- } catch(e) {}
- }
-
- return Sizzle( expr, document, null, [elem] ).length > 0;
-};
-
-Sizzle.contains = function( context, elem ) {
- // Set document vars if needed
- if ( ( context.ownerDocument || context ) !== document ) {
- setDocument( context );
- }
- return contains( context, elem );
-};
-
-Sizzle.attr = function( elem, name ) {
- var val;
-
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- if ( !documentIsXML ) {
- name = name.toLowerCase();
- }
- if ( (val = Expr.attrHandle[ name ]) ) {
- return val( elem );
- }
- if ( documentIsXML || support.attributes ) {
- return elem.getAttribute( name );
- }
- return ( (val = elem.getAttributeNode( name )) || elem.getAttribute( name ) ) && elem[ name ] === true ?
- name :
- val && val.specified ? val.value : null;
-};
-
-Sizzle.error = function( msg ) {
- throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-// Document sorting and removing duplicates
-Sizzle.uniqueSort = function( results ) {
- var elem,
- duplicates = [],
- j = 0,
- i = 0;
-
- // Unless we *know* we can detect duplicates, assume their presence
- hasDuplicate = !support.detectDuplicates;
- // Compensate for sort limitations
- recompare = !support.sortDetached;
- sortInput = !support.sortStable && results.slice( 0 );
- results.sort( sortOrder );
-
- if ( hasDuplicate ) {
- while ( (elem = results[i++]) ) {
- if ( elem === results[ i ] ) {
- j = duplicates.push( i );
- }
- }
- while ( j-- ) {
- results.splice( duplicates[ j ], 1 );
- }
- }
-
- return results;
-};
-
-/**
- * Checks document order of two siblings
- * @param {Element} a
- * @param {Element} b
- * @returns Returns -1 if a precedes b, 1 if a follows b
- */
-function siblingCheck( a, b ) {
- var cur = b && a,
- diff = cur && ( ~b.sourceIndex || MAX_NEGATIVE ) - ( ~a.sourceIndex || MAX_NEGATIVE );
-
- // Use IE sourceIndex if available on both nodes
- if ( diff ) {
- return diff;
- }
-
- // Check if b follows a
- if ( cur ) {
- while ( (cur = cur.nextSibling) ) {
- if ( cur === b ) {
- return -1;
- }
- }
- }
-
- return a ? 1 : -1;
-}
-
-// Returns a function to use in pseudos for input types
-function createInputPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === type;
- };
-}
-
-// Returns a function to use in pseudos for buttons
-function createButtonPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return (name === "input" || name === "button") && elem.type === type;
- };
-}
-
-// Returns a function to use in pseudos for positionals
-function createPositionalPseudo( fn ) {
- return markFunction(function( argument ) {
- argument = +argument;
- return markFunction(function( seed, matches ) {
- var j,
- matchIndexes = fn( [], seed.length, argument ),
- i = matchIndexes.length;
-
- // Match elements found at the specified indexes
- while ( i-- ) {
- if ( seed[ (j = matchIndexes[i]) ] ) {
- seed[j] = !(matches[j] = seed[j]);
- }
- }
- });
- });
-}
-
-/**
- * Utility function for retrieving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-getText = Sizzle.getText = function( elem ) {
- var node,
- ret = "",
- i = 0,
- nodeType = elem.nodeType;
-
- if ( !nodeType ) {
- // If no nodeType, this is expected to be an array
- for ( ; (node = elem[i]); i++ ) {
- // Do not traverse comment nodes
- ret += getText( node );
- }
- } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
- // Use textContent for elements
- // innerText usage removed for consistency of new lines (see #11153)
- if ( typeof elem.textContent === "string" ) {
- return elem.textContent;
- } else {
- // Traverse its children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- ret += getText( elem );
- }
- }
- } else if ( nodeType === 3 || nodeType === 4 ) {
- return elem.nodeValue;
- }
- // Do not include comment or processing instruction nodes
-
- return ret;
-};
-
-Expr = Sizzle.selectors = {
-
- // Can be adjusted by the user
- cacheLength: 50,
-
- createPseudo: markFunction,
-
- match: matchExpr,
-
- find: {},
-
- relative: {
- ">": { dir: "parentNode", first: true },
- " ": { dir: "parentNode" },
- "+": { dir: "previousSibling", first: true },
- "~": { dir: "previousSibling" }
- },
-
- preFilter: {
- "ATTR": function( match ) {
- match[1] = match[1].replace( runescape, funescape );
-
- // Move the given value to match[3] whether quoted or unquoted
- match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape );
-
- if ( match[2] === "~=" ) {
- match[3] = " " + match[3] + " ";
- }
-
- return match.slice( 0, 4 );
- },
-
- "CHILD": function( match ) {
- /* matches from matchExpr["CHILD"]
- 1 type (only|nth|...)
- 2 what (child|of-type)
- 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
- 4 xn-component of xn+y argument ([+-]?\d*n|)
- 5 sign of xn-component
- 6 x of xn-component
- 7 sign of y-component
- 8 y of y-component
- */
- match[1] = match[1].toLowerCase();
-
- if ( match[1].slice( 0, 3 ) === "nth" ) {
- // nth-* requires argument
- if ( !match[3] ) {
- Sizzle.error( match[0] );
- }
-
- // numeric x and y parameters for Expr.filter.CHILD
- // remember that false/true cast respectively to 0/1
- match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
- match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
-
- // other types prohibit arguments
- } else if ( match[3] ) {
- Sizzle.error( match[0] );
- }
-
- return match;
- },
-
- "PSEUDO": function( match ) {
- var excess,
- unquoted = !match[5] && match[2];
-
- if ( matchExpr["CHILD"].test( match[0] ) ) {
- return null;
- }
-
- // Accept quoted arguments as-is
- if ( match[4] ) {
- match[2] = match[4];
-
- // Strip excess characters from unquoted arguments
- } else if ( unquoted && rpseudo.test( unquoted ) &&
- // Get excess from tokenize (recursively)
- (excess = tokenize( unquoted, true )) &&
- // advance to the next closing parenthesis
- (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
-
- // excess is a negative index
- match[0] = match[0].slice( 0, excess );
- match[2] = unquoted.slice( 0, excess );
- }
-
- // Return only captures needed by the pseudo filter method (type and argument)
- return match.slice( 0, 3 );
- }
- },
-
- filter: {
-
- "TAG": function( nodeName ) {
- if ( nodeName === "*" ) {
- return function() { return true; };
- }
-
- nodeName = nodeName.replace( runescape, funescape ).toLowerCase();
- return function( elem ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
- };
- },
-
- "CLASS": function( className ) {
- var pattern = classCache[ className + " " ];
-
- return pattern ||
- (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
- classCache( className, function( elem ) {
- return pattern.test( elem.className || (typeof elem.getAttribute !== strundefined && elem.getAttribute("class")) || "" );
- });
- },
-
- "ATTR": function( name, operator, check ) {
- return function( elem ) {
- var result = Sizzle.attr( elem, name );
-
- if ( result == null ) {
- return operator === "!=";
- }
- if ( !operator ) {
- return true;
- }
-
- result += "";
-
- return operator === "=" ? result === check :
- operator === "!=" ? result !== check :
- operator === "^=" ? check && result.indexOf( check ) === 0 :
- operator === "*=" ? check && result.indexOf( check ) > -1 :
- operator === "$=" ? check && result.slice( -check.length ) === check :
- operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 :
- operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
- false;
- };
- },
-
- "CHILD": function( type, what, argument, first, last ) {
- var simple = type.slice( 0, 3 ) !== "nth",
- forward = type.slice( -4 ) !== "last",
- ofType = what === "of-type";
-
- return first === 1 && last === 0 ?
-
- // Shortcut for :nth-*(n)
- function( elem ) {
- return !!elem.parentNode;
- } :
-
- function( elem, context, xml ) {
- var cache, outerCache, node, diff, nodeIndex, start,
- dir = simple !== forward ? "nextSibling" : "previousSibling",
- parent = elem.parentNode,
- name = ofType && elem.nodeName.toLowerCase(),
- useCache = !xml && !ofType;
-
- if ( parent ) {
-
- // :(first|last|only)-(child|of-type)
- if ( simple ) {
- while ( dir ) {
- node = elem;
- while ( (node = node[ dir ]) ) {
- if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
- return false;
- }
- }
- // Reverse direction for :only-* (if we haven't yet done so)
- start = dir = type === "only" && !start && "nextSibling";
- }
- return true;
- }
-
- start = [ forward ? parent.firstChild : parent.lastChild ];
-
- // non-xml :nth-child(...) stores cache data on `parent`
- if ( forward && useCache ) {
- // Seek `elem` from a previously-cached index
- outerCache = parent[ expando ] || (parent[ expando ] = {});
- cache = outerCache[ type ] || [];
- nodeIndex = cache[0] === dirruns && cache[1];
- diff = cache[0] === dirruns && cache[2];
- node = nodeIndex && parent.childNodes[ nodeIndex ];
-
- while ( (node = ++nodeIndex && node && node[ dir ] ||
-
- // Fallback to seeking `elem` from the start
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- // When found, cache indexes on `parent` and break
- if ( node.nodeType === 1 && ++diff && node === elem ) {
- outerCache[ type ] = [ dirruns, nodeIndex, diff ];
- break;
- }
- }
-
- // Use previously-cached element index if available
- } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
- diff = cache[1];
-
- // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
- } else {
- // Use the same loop as above to seek `elem` from the start
- while ( (node = ++nodeIndex && node && node[ dir ] ||
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
- // Cache the index of each encountered element
- if ( useCache ) {
- (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
- }
-
- if ( node === elem ) {
- break;
- }
- }
- }
- }
-
- // Incorporate the offset, then check against cycle size
- diff -= last;
- return diff === first || ( diff % first === 0 && diff / first >= 0 );
- }
- };
- },
-
- "PSEUDO": function( pseudo, argument ) {
- // pseudo-class names are case-insensitive
- // http://www.w3.org/TR/selectors/#pseudo-classes
- // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
- // Remember that setFilters inherits from pseudos
- var args,
- fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
- Sizzle.error( "unsupported pseudo: " + pseudo );
-
- // The user may use createPseudo to indicate that
- // arguments are needed to create the filter function
- // just as Sizzle does
- if ( fn[ expando ] ) {
- return fn( argument );
- }
-
- // But maintain support for old signatures
- if ( fn.length > 1 ) {
- args = [ pseudo, pseudo, "", argument ];
- return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
- markFunction(function( seed, matches ) {
- var idx,
- matched = fn( seed, argument ),
- i = matched.length;
- while ( i-- ) {
- idx = indexOf.call( seed, matched[i] );
- seed[ idx ] = !( matches[ idx ] = matched[i] );
- }
- }) :
- function( elem ) {
- return fn( elem, 0, args );
- };
- }
-
- return fn;
- }
- },
-
- pseudos: {
- // Potentially complex pseudos
- "not": markFunction(function( selector ) {
- // Trim the selector passed to compile
- // to avoid treating leading and trailing
- // spaces as combinators
- var input = [],
- results = [],
- matcher = compile( selector.replace( rtrim, "$1" ) );
-
- return matcher[ expando ] ?
- markFunction(function( seed, matches, context, xml ) {
- var elem,
- unmatched = matcher( seed, null, xml, [] ),
- i = seed.length;
-
- // Match elements unmatched by `matcher`
- while ( i-- ) {
- if ( (elem = unmatched[i]) ) {
- seed[i] = !(matches[i] = elem);
- }
- }
- }) :
- function( elem, context, xml ) {
- input[0] = elem;
- matcher( input, null, xml, results );
- return !results.pop();
- };
- }),
-
- "has": markFunction(function( selector ) {
- return function( elem ) {
- return Sizzle( selector, elem ).length > 0;
- };
- }),
-
- "contains": markFunction(function( text ) {
- return function( elem ) {
- return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
- };
- }),
-
- // "Whether an element is represented by a :lang() selector
- // is based solely on the element's language value
- // being equal to the identifier C,
- // or beginning with the identifier C immediately followed by "-".
- // The matching of C against the element's language value is performed case-insensitively.
- // The identifier C does not have to be a valid language name."
- // http://www.w3.org/TR/selectors/#lang-pseudo
- "lang": markFunction( function( lang ) {
- // lang value must be a valid identifider
- if ( !ridentifier.test(lang || "") ) {
- Sizzle.error( "unsupported lang: " + lang );
- }
- lang = lang.replace( runescape, funescape ).toLowerCase();
- return function( elem ) {
- var elemLang;
- do {
- if ( (elemLang = documentIsXML ?
- elem.getAttribute("xml:lang") || elem.getAttribute("lang") :
- elem.lang) ) {
-
- elemLang = elemLang.toLowerCase();
- return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
- }
- } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
- return false;
- };
- }),
-
- // Miscellaneous
- "target": function( elem ) {
- var hash = window.location && window.location.hash;
- return hash && hash.slice( 1 ) === elem.id;
- },
-
- "root": function( elem ) {
- return elem === docElem;
- },
-
- "focus": function( elem ) {
- return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
- },
-
- // Boolean properties
- "enabled": function( elem ) {
- return elem.disabled === false;
- },
-
- "disabled": function( elem ) {
- return elem.disabled === true;
- },
-
- "checked": function( elem ) {
- // In CSS3, :checked should return both checked and selected elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- var nodeName = elem.nodeName.toLowerCase();
- return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
- },
-
- "selected": function( elem ) {
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- if ( elem.parentNode ) {
- elem.parentNode.selectedIndex;
- }
-
- return elem.selected === true;
- },
-
- // Contents
- "empty": function( elem ) {
- // http://www.w3.org/TR/selectors/#empty-pseudo
- // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)),
- // not comment, processing instructions, or others
- // Thanks to Diego Perini for the nodeName shortcut
- // Greater than "@" means alpha characters (specifically not starting with "#" or "?")
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) {
- return false;
- }
- }
- return true;
- },
-
- "parent": function( elem ) {
- return !Expr.pseudos["empty"]( elem );
- },
-
- // Element/input types
- "header": function( elem ) {
- return rheader.test( elem.nodeName );
- },
-
- "input": function( elem ) {
- return rinputs.test( elem.nodeName );
- },
-
- "button": function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === "button" || name === "button";
- },
-
- "text": function( elem ) {
- var attr;
- // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)
- // use getAttribute instead to test this case
- return elem.nodeName.toLowerCase() === "input" &&
- elem.type === "text" &&
- ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type );
- },
-
- // Position-in-collection
- "first": createPositionalPseudo(function() {
- return [ 0 ];
- }),
-
- "last": createPositionalPseudo(function( matchIndexes, length ) {
- return [ length - 1 ];
- }),
-
- "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
- return [ argument < 0 ? argument + length : argument ];
- }),
-
- "even": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 0;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "odd": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 1;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; --i >= 0; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; ++i < length; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- })
- }
-};
-
-// Add button/input type pseudos
-for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
- Expr.pseudos[ i ] = createInputPseudo( i );
-}
-for ( i in { submit: true, reset: true } ) {
- Expr.pseudos[ i ] = createButtonPseudo( i );
-}
-
-function tokenize( selector, parseOnly ) {
- var matched, match, tokens, type,
- soFar, groups, preFilters,
- cached = tokenCache[ selector + " " ];
-
- if ( cached ) {
- return parseOnly ? 0 : cached.slice( 0 );
- }
-
- soFar = selector;
- groups = [];
- preFilters = Expr.preFilter;
-
- while ( soFar ) {
-
- // Comma and first run
- if ( !matched || (match = rcomma.exec( soFar )) ) {
- if ( match ) {
- // Don't consume trailing commas as valid
- soFar = soFar.slice( match[0].length ) || soFar;
- }
- groups.push( tokens = [] );
- }
-
- matched = false;
-
- // Combinators
- if ( (match = rcombinators.exec( soFar )) ) {
- matched = match.shift();
- tokens.push( {
- value: matched,
- // Cast descendant combinators to space
- type: match[0].replace( rtrim, " " )
- } );
- soFar = soFar.slice( matched.length );
- }
-
- // Filters
- for ( type in Expr.filter ) {
- if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
- (match = preFilters[ type ]( match ))) ) {
- matched = match.shift();
- tokens.push( {
- value: matched,
- type: type,
- matches: match
- } );
- soFar = soFar.slice( matched.length );
- }
- }
-
- if ( !matched ) {
- break;
- }
- }
-
- // Return the length of the invalid excess
- // if we're just parsing
- // Otherwise, throw an error or return tokens
- return parseOnly ?
- soFar.length :
- soFar ?
- Sizzle.error( selector ) :
- // Cache the tokens
- tokenCache( selector, groups ).slice( 0 );
-}
-
-function toSelector( tokens ) {
- var i = 0,
- len = tokens.length,
- selector = "";
- for ( ; i < len; i++ ) {
- selector += tokens[i].value;
- }
- return selector;
-}
-
-function addCombinator( matcher, combinator, base ) {
- var dir = combinator.dir,
- checkNonElements = base && dir === "parentNode",
- doneName = done++;
-
- return combinator.first ?
- // Check against closest ancestor/preceding element
- function( elem, context, xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- return matcher( elem, context, xml );
- }
- }
- } :
-
- // Check against all ancestor/preceding elements
- function( elem, context, xml ) {
- var data, cache, outerCache,
- dirkey = dirruns + " " + doneName;
-
- // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching
- if ( xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- if ( matcher( elem, context, xml ) ) {
- return true;
- }
- }
- }
- } else {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- outerCache = elem[ expando ] || (elem[ expando ] = {});
- if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) {
- if ( (data = cache[1]) === true || data === cachedruns ) {
- return data === true;
- }
- } else {
- cache = outerCache[ dir ] = [ dirkey ];
- cache[1] = matcher( elem, context, xml ) || cachedruns;
- if ( cache[1] === true ) {
- return true;
- }
- }
- }
- }
- }
- };
-}
-
-function elementMatcher( matchers ) {
- return matchers.length > 1 ?
- function( elem, context, xml ) {
- var i = matchers.length;
- while ( i-- ) {
- if ( !matchers[i]( elem, context, xml ) ) {
- return false;
- }
- }
- return true;
- } :
- matchers[0];
-}
-
-function condense( unmatched, map, filter, context, xml ) {
- var elem,
- newUnmatched = [],
- i = 0,
- len = unmatched.length,
- mapped = map != null;
-
- for ( ; i < len; i++ ) {
- if ( (elem = unmatched[i]) ) {
- if ( !filter || filter( elem, context, xml ) ) {
- newUnmatched.push( elem );
- if ( mapped ) {
- map.push( i );
- }
- }
- }
- }
-
- return newUnmatched;
-}
-
-function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
- if ( postFilter && !postFilter[ expando ] ) {
- postFilter = setMatcher( postFilter );
- }
- if ( postFinder && !postFinder[ expando ] ) {
- postFinder = setMatcher( postFinder, postSelector );
- }
- return markFunction(function( seed, results, context, xml ) {
- var temp, i, elem,
- preMap = [],
- postMap = [],
- preexisting = results.length,
-
- // Get initial elements from seed or context
- elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
-
- // Prefilter to get matcher input, preserving a map for seed-results synchronization
- matcherIn = preFilter && ( seed || !selector ) ?
- condense( elems, preMap, preFilter, context, xml ) :
- elems,
-
- matcherOut = matcher ?
- // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
- postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
-
- // ...intermediate processing is necessary
- [] :
-
- // ...otherwise use results directly
- results :
- matcherIn;
-
- // Find primary matches
- if ( matcher ) {
- matcher( matcherIn, matcherOut, context, xml );
- }
-
- // Apply postFilter
- if ( postFilter ) {
- temp = condense( matcherOut, postMap );
- postFilter( temp, [], context, xml );
-
- // Un-match failing elements by moving them back to matcherIn
- i = temp.length;
- while ( i-- ) {
- if ( (elem = temp[i]) ) {
- matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
- }
- }
- }
-
- if ( seed ) {
- if ( postFinder || preFilter ) {
- if ( postFinder ) {
- // Get the final matcherOut by condensing this intermediate into postFinder contexts
- temp = [];
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) ) {
- // Restore matcherIn since elem is not yet a final match
- temp.push( (matcherIn[i] = elem) );
- }
- }
- postFinder( null, (matcherOut = []), temp, xml );
- }
-
- // Move matched elements from seed to results to keep them synchronized
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) &&
- (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) {
-
- seed[temp] = !(results[temp] = elem);
- }
- }
- }
-
- // Add elements to results, through postFinder if defined
- } else {
- matcherOut = condense(
- matcherOut === results ?
- matcherOut.splice( preexisting, matcherOut.length ) :
- matcherOut
- );
- if ( postFinder ) {
- postFinder( null, results, matcherOut, xml );
- } else {
- push.apply( results, matcherOut );
- }
- }
- });
-}
-
-function matcherFromTokens( tokens ) {
- var checkContext, matcher, j,
- len = tokens.length,
- leadingRelative = Expr.relative[ tokens[0].type ],
- implicitRelative = leadingRelative || Expr.relative[" "],
- i = leadingRelative ? 1 : 0,
-
- // The foundational matcher ensures that elements are reachable from top-level context(s)
- matchContext = addCombinator( function( elem ) {
- return elem === checkContext;
- }, implicitRelative, true ),
- matchAnyContext = addCombinator( function( elem ) {
- return indexOf.call( checkContext, elem ) > -1;
- }, implicitRelative, true ),
- matchers = [ function( elem, context, xml ) {
- return ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
- (checkContext = context).nodeType ?
- matchContext( elem, context, xml ) :
- matchAnyContext( elem, context, xml ) );
- } ];
-
- for ( ; i < len; i++ ) {
- if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
- matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
- } else {
- matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
-
- // Return special upon seeing a positional matcher
- if ( matcher[ expando ] ) {
- // Find the next relative operator (if any) for proper handling
- j = ++i;
- for ( ; j < len; j++ ) {
- if ( Expr.relative[ tokens[j].type ] ) {
- break;
- }
- }
- return setMatcher(
- i > 1 && elementMatcher( matchers ),
- i > 1 && toSelector( tokens.slice( 0, i - 1 ) ).replace( rtrim, "$1" ),
- matcher,
- i < j && matcherFromTokens( tokens.slice( i, j ) ),
- j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
- j < len && toSelector( tokens )
- );
- }
- matchers.push( matcher );
- }
- }
-
- return elementMatcher( matchers );
-}
-
-function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
- // A counter to specify which element is currently being matched
- var matcherCachedRuns = 0,
- bySet = setMatchers.length > 0,
- byElement = elementMatchers.length > 0,
- superMatcher = function( seed, context, xml, results, expandContext ) {
- var elem, j, matcher,
- setMatched = [],
- matchedCount = 0,
- i = "0",
- unmatched = seed && [],
- outermost = expandContext != null,
- contextBackup = outermostContext,
- // We must always have either seed elements or context
- elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ),
- // Use integer dirruns iff this is the outermost matcher
- dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1);
-
- if ( outermost ) {
- outermostContext = context !== document && context;
- cachedruns = matcherCachedRuns;
- }
-
- // Add elements passing elementMatchers directly to results
- // Keep `i` a string if there are no elements so `matchedCount` will be "00" below
- for ( ; (elem = elems[i]) != null; i++ ) {
- if ( byElement && elem ) {
- j = 0;
- while ( (matcher = elementMatchers[j++]) ) {
- if ( matcher( elem, context, xml ) ) {
- results.push( elem );
- break;
- }
- }
- if ( outermost ) {
- dirruns = dirrunsUnique;
- cachedruns = ++matcherCachedRuns;
- }
- }
-
- // Track unmatched elements for set filters
- if ( bySet ) {
- // They will have gone through all possible matchers
- if ( (elem = !matcher && elem) ) {
- matchedCount--;
- }
-
- // Lengthen the array for every element, matched or not
- if ( seed ) {
- unmatched.push( elem );
- }
- }
- }
-
- // Apply set filters to unmatched elements
- matchedCount += i;
- if ( bySet && i !== matchedCount ) {
- j = 0;
- while ( (matcher = setMatchers[j++]) ) {
- matcher( unmatched, setMatched, context, xml );
- }
-
- if ( seed ) {
- // Reintegrate element matches to eliminate the need for sorting
- if ( matchedCount > 0 ) {
- while ( i-- ) {
- if ( !(unmatched[i] || setMatched[i]) ) {
- setMatched[i] = pop.call( results );
- }
- }
- }
-
- // Discard index placeholder values to get only actual matches
- setMatched = condense( setMatched );
- }
-
- // Add matches to results
- push.apply( results, setMatched );
-
- // Seedless set matches succeeding multiple successful matchers stipulate sorting
- if ( outermost && !seed && setMatched.length > 0 &&
- ( matchedCount + setMatchers.length ) > 1 ) {
-
- Sizzle.uniqueSort( results );
- }
- }
-
- // Override manipulation of globals by nested matchers
- if ( outermost ) {
- dirruns = dirrunsUnique;
- outermostContext = contextBackup;
- }
-
- return unmatched;
- };
-
- return bySet ?
- markFunction( superMatcher ) :
- superMatcher;
-}
-
-compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) {
- var i,
- setMatchers = [],
- elementMatchers = [],
- cached = compilerCache[ selector + " " ];
-
- if ( !cached ) {
- // Generate a function of recursive functions that can be used to check each element
- if ( !group ) {
- group = tokenize( selector );
- }
- i = group.length;
- while ( i-- ) {
- cached = matcherFromTokens( group[i] );
- if ( cached[ expando ] ) {
- setMatchers.push( cached );
- } else {
- elementMatchers.push( cached );
- }
- }
-
- // Cache the compiled function
- cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
- }
- return cached;
-};
-
-function multipleContexts( selector, contexts, results ) {
- var i = 0,
- len = contexts.length;
- for ( ; i < len; i++ ) {
- Sizzle( selector, contexts[i], results );
- }
- return results;
-}
-
-function select( selector, context, results, seed ) {
- var i, tokens, token, type, find,
- match = tokenize( selector );
-
- if ( !seed ) {
- // Try to minimize operations if there is only one group
- if ( match.length === 1 ) {
-
- // Take a shortcut and set the context if the root selector is an ID
- tokens = match[0] = match[0].slice( 0 );
- if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
- context.nodeType === 9 && !documentIsXML &&
- Expr.relative[ tokens[1].type ] ) {
-
- context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
- if ( !context ) {
- return results;
- }
-
- selector = selector.slice( tokens.shift().value.length );
- }
-
- // Fetch a seed set for right-to-left matching
- i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
- while ( i-- ) {
- token = tokens[i];
-
- // Abort if we hit a combinator
- if ( Expr.relative[ (type = token.type) ] ) {
- break;
- }
- if ( (find = Expr.find[ type ]) ) {
- // Search, expanding context for leading sibling combinators
- if ( (seed = find(
- token.matches[0].replace( runescape, funescape ),
- rsibling.test( tokens[0].type ) && context.parentNode || context
- )) ) {
-
- // If seed is empty or no tokens remain, we can return early
- tokens.splice( i, 1 );
- selector = seed.length && toSelector( tokens );
- if ( !selector ) {
- push.apply( results, seed );
- return results;
- }
-
- break;
- }
- }
- }
- }
- }
-
- // Compile and execute a filtering function
- // Provide `match` to avoid retokenization if we modified the selector above
- compile( selector, match )(
- seed,
- context,
- documentIsXML,
- results,
- rsibling.test( selector )
- );
- return results;
-}
-
-// Deprecated
-Expr.pseudos["nth"] = Expr.pseudos["eq"];
-
-// Easy API for creating new setFilters
-function setFilters() {}
-setFilters.prototype = Expr.filters = Expr.pseudos;
-Expr.setFilters = new setFilters();
-
-// Check sort stability
-support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
-
-// Initialize with the default document
-setDocument();
-
-// Always assume the presence of duplicates if sort doesn't
-// pass them to our comparison function (as in Google Chrome).
-[0, 0].sort( sortOrder );
-support.detectDuplicates = hasDuplicate;
-
-// Override sizzle attribute retrieval
-Sizzle.attr = jQuery.attr;
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[":"] = jQuery.expr.pseudos;
-jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-})( window );
-var runtil = /Until$/,
- rparentsprev = /^(?:parents|prev(?:Until|All))/,
- isSimple = /^.[^:#\[\.,]*$/,
- rneedsContext = jQuery.expr.match.needsContext,
- // methods guaranteed to produce a unique set when starting from a unique set
- guaranteedUnique = {
- children: true,
- contents: true,
- next: true,
- prev: true
- };
-
-jQuery.fn.extend({
- find: function( selector ) {
- var self, matched, i,
- l = this.length;
-
- if ( typeof selector !== "string" ) {
- self = this;
- return this.pushStack( jQuery( selector ).filter(function() {
- for ( i = 0; i < l; i++ ) {
- if ( jQuery.contains( self[ i ], this ) ) {
- return true;
- }
- }
- }) );
- }
-
- matched = [];
- for ( i = 0; i < l; i++ ) {
- jQuery.find( selector, this[ i ], matched );
- }
-
- // Needed because $( selector, context ) becomes $( context ).find( selector )
- matched = this.pushStack( l > 1 ? jQuery.unique( matched ) : matched );
- matched.selector = ( this.selector ? this.selector + " " : "" ) + selector;
- return matched;
- },
-
- has: function( target ) {
- var targets = jQuery( target, this ),
- l = targets.length;
-
- return this.filter(function() {
- var i = 0;
- for ( ; i < l; i++ ) {
- if ( jQuery.contains( this, targets[i] ) ) {
- return true;
- }
- }
- });
- },
-
- not: function( selector ) {
- return this.pushStack( winnow(this, selector, false) );
- },
-
- filter: function( selector ) {
- return this.pushStack( winnow(this, selector, true) );
- },
-
- is: function( selector ) {
- return !!selector && (
- typeof selector === "string" ?
- // If this is a positional/relative selector, check membership in the returned set
- // so $("p:first").is("p:last") won't return true for a doc with two "p".
- rneedsContext.test( selector ) ?
- jQuery( selector, this.context ).index( this[ 0 ] ) >= 0 :
- jQuery.filter( selector, this ).length > 0 :
- this.filter( selector ).length > 0 );
- },
-
- closest: function( selectors, context ) {
- var cur,
- i = 0,
- l = this.length,
- matched = [],
- pos = ( rneedsContext.test( selectors ) || typeof selectors !== "string" ) ?
- jQuery( selectors, context || this.context ) :
- 0;
-
- for ( ; i < l; i++ ) {
- for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) {
- // Always skip document fragments
- if ( cur.nodeType < 11 && (pos ?
- pos.index(cur) > -1 :
-
- // Don't pass non-elements to Sizzle
- cur.nodeType === 1 &&
- jQuery.find.matchesSelector(cur, selectors)) ) {
-
- cur = matched.push( cur );
- break;
- }
- }
- }
-
- return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched );
- },
-
- // Determine the position of an element within
- // the matched set of elements
- index: function( elem ) {
-
- // No argument, return index in parent
- if ( !elem ) {
- return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
- }
-
- // index in selector
- if ( typeof elem === "string" ) {
- return core_indexOf.call( jQuery( elem ), this[ 0 ] );
- }
-
- // Locate the position of the desired element
- return core_indexOf.call( this,
-
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[ 0 ] : elem
- );
- },
-
- add: function( selector, context ) {
- var set = typeof selector === "string" ?
- jQuery( selector, context ) :
- jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
- all = jQuery.merge( this.get(), set );
-
- return this.pushStack( jQuery.unique(all) );
- },
-
- addBack: function( selector ) {
- return this.add( selector == null ?
- this.prevObject : this.prevObject.filter(selector)
- );
- }
-});
-
-function sibling( cur, dir ) {
- while ( (cur = cur[dir]) && cur.nodeType !== 1 ) {}
-
- return cur;
-}
-
-jQuery.each({
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return jQuery.dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return sibling( elem, "nextSibling" );
- },
- prev: function( elem ) {
- return sibling( elem, "previousSibling" );
- },
- nextAll: function( elem ) {
- return jQuery.dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return jQuery.dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );
- },
- children: function( elem ) {
- return jQuery.sibling( elem.firstChild );
- },
- contents: function( elem ) {
- return jQuery.nodeName( elem, "iframe" ) ?
- elem.contentDocument || elem.contentWindow.document :
- jQuery.merge( [], elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var matched = jQuery.map( this, fn, until );
-
- if ( !runtil.test( name ) ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- matched = jQuery.filter( selector, matched );
- }
-
- if ( this.length > 1 ) {
- if ( !guaranteedUnique[ name ] ) {
- jQuery.unique( matched );
- }
-
- if ( rparentsprev.test( name ) ) {
- matched.reverse();
- }
- }
-
- return this.pushStack( matched );
- };
-});
-
-jQuery.extend({
- filter: function( expr, elems, not ) {
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- return elems.length === 1 ?
- jQuery.find.matchesSelector( elems[ 0 ], expr ) ? [ elems[ 0 ] ] : [] :
- jQuery.find.matches( expr, elems );
- },
-
- dir: function( elem, dir, until ) {
- var matched = [],
- truncate = until !== undefined;
-
- while ( (elem = elem[ dir ]) && elem.nodeType !== 9 ) {
- if ( elem.nodeType === 1 ) {
- if ( truncate && jQuery( elem ).is( until ) ) {
- break;
- }
- matched.push( elem );
- }
- }
- return matched;
- },
-
- sibling: function( n, elem ) {
- var matched = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- matched.push( n );
- }
- }
-
- return matched;
- }
-});
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, keep ) {
-
- // Can't pass null or undefined to indexOf in Firefox 4
- // Set to 0 to skip string check
- qualifier = qualifier || 0;
-
- var filtered;
-
- if ( jQuery.isFunction( qualifier ) ) {
- return jQuery.grep(elements, function( elem, i ) {
- var retVal = !!qualifier.call( elem, i, elem );
- return retVal === keep;
- });
- }
-
- if ( qualifier.nodeType ) {
- return jQuery.grep(elements, function( elem ) {
- return ( elem === qualifier ) === keep;
- });
- }
-
- if ( typeof qualifier === "string" ) {
- filtered = jQuery.grep(elements, function( elem ) {
- return elem.nodeType === 1;
- });
-
- if ( isSimple.test( qualifier ) ) {
- return jQuery.filter( qualifier, filtered, !keep );
- }
-
- qualifier = jQuery.filter( qualifier, filtered );
- }
-
- return jQuery.grep(elements, function( elem ) {
- return ( core_indexOf.call( qualifier, elem ) >= 0 ) === keep;
- });
-}
-var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
- rtagName = /<([\w:]+)/,
- rhtml = /<|?\w+;/,
- rnoInnerhtml = /<(?:script|style|link)/i,
- manipulation_rcheckableType = /^(?:checkbox|radio)$/i,
- // checked="checked" or checked
- rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
- rscriptType = /^$|\/(?:java|ecma)script/i,
- rscriptTypeMasked = /^true\/(.*)/,
- rcleanScript = /^\s*\s*$/g,
-
- // We have to close these tags to support XHTML (#13200)
- wrapMap = {
-
- // Support: IE 9
- option: [ 1, "", " " ],
-
- thead: [ 1, "" ],
- tr: [ 2, "" ],
- td: [ 3, "" ],
-
- _default: [ 0, "", "" ]
- };
-
-// Support: IE 9
-wrapMap.optgroup = wrapMap.option;
-
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.col = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-jQuery.fn.extend({
- text: function( value ) {
- return jQuery.access( this, function( value ) {
- return value === undefined ?
- jQuery.text( this ) :
- this.empty().append( ( this[ 0 ] && this[ 0 ].ownerDocument || document ).createTextNode( value ) );
- }, null, value, arguments.length );
- },
-
- wrapAll: function( html ) {
- var wrap;
-
- if ( jQuery.isFunction( html ) ) {
- return this.each(function( i ) {
- jQuery( this ).wrapAll( html.call(this, i) );
- });
- }
-
- if ( this[ 0 ] ) {
-
- // The elements to wrap the target around
- wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
-
- if ( this[ 0 ].parentNode ) {
- wrap.insertBefore( this[ 0 ] );
- }
-
- wrap.map(function() {
- var elem = this;
-
- while ( elem.firstElementChild ) {
- elem = elem.firstElementChild;
- }
-
- return elem;
- }).append( this );
- }
-
- return this;
- },
-
- wrapInner: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each(function( i ) {
- jQuery( this ).wrapInner( html.call(this, i) );
- });
- }
-
- return this.each(function() {
- var self = jQuery( this ),
- contents = self.contents();
-
- if ( contents.length ) {
- contents.wrapAll( html );
-
- } else {
- self.append( html );
- }
- });
- },
-
- wrap: function( html ) {
- var isFunction = jQuery.isFunction( html );
-
- return this.each(function( i ) {
- jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
- });
- },
-
- unwrap: function() {
- return this.parent().each(function() {
- if ( !jQuery.nodeName( this, "body" ) ) {
- jQuery( this ).replaceWith( this.childNodes );
- }
- }).end();
- },
-
- append: function() {
- return this.domManip(arguments, true, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- this.appendChild( elem );
- }
- });
- },
-
- prepend: function() {
- return this.domManip(arguments, true, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- this.insertBefore( elem, this.firstChild );
- }
- });
- },
-
- before: function() {
- return this.domManip(arguments, false, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this );
- }
- });
- },
-
- after: function() {
- return this.domManip(arguments, false, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this.nextSibling );
- }
- });
- },
-
- // keepData is for internal use only--do not document
- remove: function( selector, keepData ) {
- var elem,
- i = 0,
- l = this.length;
-
- for ( ; i < l; i++ ) {
- elem = this[ i ];
-
- if ( !selector || jQuery.filter( selector, [ elem ] ).length > 0 ) {
- if ( !keepData && elem.nodeType === 1 ) {
- jQuery.cleanData( getAll( elem ) );
- }
-
- if ( elem.parentNode ) {
- if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) {
- setGlobalEval( getAll( elem, "script" ) );
- }
- elem.parentNode.removeChild( elem );
- }
- }
- }
-
- return this;
- },
-
- empty: function() {
- var elem,
- i = 0,
- l = this.length;
-
- for ( ; i < l; i++ ) {
- elem = this[ i ];
-
- if ( elem.nodeType === 1 ) {
-
- // Prevent memory leaks
- jQuery.cleanData( getAll( elem, false ) );
-
- // Remove any remaining nodes
- elem.textContent = "";
- }
- }
-
- return this;
- },
-
- clone: function( dataAndEvents, deepDataAndEvents ) {
- dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
- deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
- return this.map( function () {
- return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
- });
- },
-
- html: function( value ) {
- return jQuery.access( this, function( value ) {
- var elem = this[ 0 ] || {},
- i = 0,
- l = this.length;
-
- if ( value === undefined && elem.nodeType === 1 ) {
- return elem.innerHTML;
- }
-
- // See if we can take a shortcut and just use innerHTML
- if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
- !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
-
- value = value.replace( rxhtmlTag, "<$1>$2>" );
-
- try {
- for ( ; i < l; i++ ) {
- elem = this[ i ] || {};
-
- // Remove element nodes and prevent memory leaks
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( getAll( elem, false ) );
- elem.innerHTML = value;
- }
- }
-
- elem = 0;
-
- // If using innerHTML throws an exception, use the fallback method
- } catch( e ) {}
- }
-
- if ( elem ) {
- this.empty().append( value );
- }
- }, null, value, arguments.length );
- },
-
- replaceWith: function( value ) {
- var isFunction = jQuery.isFunction( value );
-
- // Make sure that the elements are removed from the DOM before they are inserted
- // this can help fix replacing a parent with child elements
- if ( !isFunction && typeof value !== "string" ) {
- value = jQuery( value ).not( this ).detach();
- }
-
- return value !== "" ?
- this.domManip( [ value ], true, function( elem ) {
- var next = this.nextSibling,
- parent = this.parentNode;
-
- if ( parent ) {
- jQuery( this ).remove();
- parent.insertBefore( elem, next );
- }
- }) :
- this.remove();
- },
-
- detach: function( selector ) {
- return this.remove( selector, true );
- },
-
- domManip: function( args, table, callback ) {
-
- // Flatten any nested arrays
- args = core_concat.apply( [], args );
-
- var fragment, first, scripts, hasScripts, node, doc,
- i = 0,
- l = this.length,
- set = this,
- iNoClone = l - 1,
- value = args[ 0 ],
- isFunction = jQuery.isFunction( value );
-
- // We can't cloneNode fragments that contain checked, in WebKit
- if ( isFunction || !( l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test( value ) ) ) {
- return this.each(function( index ) {
- var self = set.eq( index );
- if ( isFunction ) {
- args[ 0 ] = value.call( this, index, table ? self.html() : undefined );
- }
- self.domManip( args, table, callback );
- });
- }
-
- if ( l ) {
- fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this );
- first = fragment.firstChild;
-
- if ( fragment.childNodes.length === 1 ) {
- fragment = first;
- }
-
- if ( first ) {
- table = table && jQuery.nodeName( first, "tr" );
- scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
- hasScripts = scripts.length;
-
- // Use the original fragment for the last item instead of the first because it can end up
- // being emptied incorrectly in certain situations (#8070).
- for ( ; i < l; i++ ) {
- node = fragment;
-
- if ( i !== iNoClone ) {
- node = jQuery.clone( node, true, true );
-
- // Keep references to cloned scripts for later restoration
- if ( hasScripts ) {
- // Support: QtWebKit
- // jQuery.merge because core_push.apply(_, arraylike) throws
- jQuery.merge( scripts, getAll( node, "script" ) );
- }
- }
-
- callback.call(
- table && jQuery.nodeName( this[ i ], "table" ) ?
- findOrAppend( this[ i ], "tbody" ) :
- this[ i ],
- node,
- i
- );
- }
-
- if ( hasScripts ) {
- doc = scripts[ scripts.length - 1 ].ownerDocument;
-
- // Reenable scripts
- jQuery.map( scripts, restoreScript );
-
- // Evaluate executable scripts on first document insertion
- for ( i = 0; i < hasScripts; i++ ) {
- node = scripts[ i ];
- if ( rscriptType.test( node.type || "" ) &&
- !data_priv.access( node, "globalEval" ) && jQuery.contains( doc, node ) ) {
-
- if ( node.src ) {
- // Hope ajax is available...
- jQuery.ajax({
- url: node.src,
- type: "GET",
- dataType: "script",
- async: false,
- global: false,
- "throws": true
- });
- } else {
- jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) );
- }
- }
- }
- }
- }
- }
-
- return this;
- }
-});
-
-jQuery.each({
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
-}, function( name, original ) {
- jQuery.fn[ name ] = function( selector ) {
- var elems,
- ret = [],
- insert = jQuery( selector ),
- last = insert.length - 1,
- i = 0;
-
- for ( ; i <= last; i++ ) {
- elems = i === last ? this : this.clone( true );
- jQuery( insert[ i ] )[ original ]( elems );
-
- // Support: QtWebKit
- // .get() because core_push.apply(_, arraylike) throws
- core_push.apply( ret, elems.get() );
- }
-
- return this.pushStack( ret );
- };
-});
-
-jQuery.extend({
- clone: function( elem, dataAndEvents, deepDataAndEvents ) {
- var i, l, srcElements, destElements,
- clone = elem.cloneNode( true ),
- inPage = jQuery.contains( elem.ownerDocument, elem );
-
- // Support: IE >=9
- // Fix Cloning issues
- if ( !jQuery.support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && !jQuery.isXMLDoc( elem ) ) {
-
- // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
- destElements = getAll( clone );
- srcElements = getAll( elem );
-
- for ( i = 0, l = srcElements.length; i < l; i++ ) {
- fixInput( srcElements[ i ], destElements[ i ] );
- }
- }
-
- // Copy the events from the original to the clone
- if ( dataAndEvents ) {
- if ( deepDataAndEvents ) {
- srcElements = srcElements || getAll( elem );
- destElements = destElements || getAll( clone );
-
- for ( i = 0, l = srcElements.length; i < l; i++ ) {
- cloneCopyEvent( srcElements[ i ], destElements[ i ] );
- }
- } else {
- cloneCopyEvent( elem, clone );
- }
- }
-
- // Preserve script evaluation history
- destElements = getAll( clone, "script" );
- if ( destElements.length > 0 ) {
- setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
- }
-
- // Return the cloned set
- return clone;
- },
-
- buildFragment: function( elems, context, scripts, selection ) {
- var elem, tmp, tag, wrap, contains, j,
- i = 0,
- l = elems.length,
- fragment = context.createDocumentFragment(),
- nodes = [];
-
- for ( ; i < l; i++ ) {
- elem = elems[ i ];
-
- if ( elem || elem === 0 ) {
-
- // Add nodes directly
- if ( jQuery.type( elem ) === "object" ) {
- // Support: QtWebKit
- // jQuery.merge because core_push.apply(_, arraylike) throws
- jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
-
- // Convert non-html into a text node
- } else if ( !rhtml.test( elem ) ) {
- nodes.push( context.createTextNode( elem ) );
-
- // Convert html into DOM nodes
- } else {
- tmp = tmp || fragment.appendChild( context.createElement("div") );
-
- // Deserialize a standard representation
- tag = ( rtagName.exec( elem ) || ["", ""] )[ 1 ].toLowerCase();
- wrap = wrapMap[ tag ] || wrapMap._default;
- tmp.innerHTML = wrap[ 1 ] + elem.replace( rxhtmlTag, "<$1>$2>" ) + wrap[ 2 ];
-
- // Descend through wrappers to the right content
- j = wrap[ 0 ];
- while ( j-- ) {
- tmp = tmp.firstChild;
- }
-
- // Support: QtWebKit
- // jQuery.merge because core_push.apply(_, arraylike) throws
- jQuery.merge( nodes, tmp.childNodes );
-
- // Remember the top-level container
- tmp = fragment.firstChild;
-
- // Fixes #12346
- // Support: Webkit, IE
- tmp.textContent = "";
- }
- }
- }
-
- // Remove wrapper from fragment
- fragment.textContent = "";
-
- i = 0;
- while ( (elem = nodes[ i++ ]) ) {
-
- // #4087 - If origin and destination elements are the same, and this is
- // that element, do not do anything
- if ( selection && jQuery.inArray( elem, selection ) !== -1 ) {
- continue;
- }
-
- contains = jQuery.contains( elem.ownerDocument, elem );
-
- // Append to fragment
- tmp = getAll( fragment.appendChild( elem ), "script" );
-
- // Preserve script evaluation history
- if ( contains ) {
- setGlobalEval( tmp );
- }
-
- // Capture executables
- if ( scripts ) {
- j = 0;
- while ( (elem = tmp[ j++ ]) ) {
- if ( rscriptType.test( elem.type || "" ) ) {
- scripts.push( elem );
- }
- }
- }
- }
-
- return fragment;
- },
-
- cleanData: function( elems, /* internal */ acceptData ) {
- var data, elem, type,
- l = elems.length,
- i = 0,
- special = jQuery.event.special;
-
- for ( ; i < l; i++ ) {
- elem = elems[ i ];
-
- if ( acceptData || jQuery.acceptData( elem ) ) {
-
- data = data_priv.access( elem );
-
- if ( data ) {
- for ( type in data.events ) {
- if ( special[ type ] ) {
- jQuery.event.remove( elem, type );
-
- // This is a shortcut to avoid jQuery.event.remove's overhead
- } else {
- jQuery.removeEvent( elem, type, data.handle );
- }
- }
- }
- }
- // Discard any remaining `private` and `user` data
- data_discard( elem );
- }
- }
-});
-
-function findOrAppend( elem, tag ) {
- return elem.getElementsByTagName( tag )[ 0 ] || elem.appendChild( elem.ownerDocument.createElement(tag) );
-}
-
-// Replace/restore the type attribute of script elements for safe DOM manipulation
-function disableScript( elem ) {
- var attr = elem.getAttributeNode("type");
- elem.type = ( attr && attr.specified ) + "/" + elem.type;
- return elem;
-}
-function restoreScript( elem ) {
- var match = rscriptTypeMasked.exec( elem.type );
-
- if ( match ) {
- elem.type = match[ 1 ];
- } else {
- elem.removeAttribute("type");
- }
-
- return elem;
-}
-
-// Mark scripts as having already been evaluated
-function setGlobalEval( elems, refElements ) {
- var l = elems.length,
- i = 0;
-
- for ( ; i < l; i++ ) {
- data_priv.set(
- elems[ i ], "globalEval", !refElements || data_priv.get( refElements[ i ], "globalEval" )
- );
- }
-}
-
-function cloneCopyEvent( src, dest ) {
- var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
-
- if ( dest.nodeType !== 1 ) {
- return;
- }
-
- // 1. Copy private data: events, handlers, etc.
- if ( data_priv.hasData( src ) ) {
- pdataOld = data_priv.access( src );
- pdataCur = jQuery.extend( {}, pdataOld );
- events = pdataOld.events;
-
- data_priv.set( dest, pdataCur );
-
- if ( events ) {
- delete pdataCur.handle;
- pdataCur.events = {};
-
- for ( type in events ) {
- for ( i = 0, l = events[ type ].length; i < l; i++ ) {
- jQuery.event.add( dest, type, events[ type ][ i ] );
- }
- }
- }
- }
-
- // 2. Copy user data
- if ( data_user.hasData( src ) ) {
- udataOld = data_user.access( src );
- udataCur = jQuery.extend( {}, udataOld );
-
- data_user.set( dest, udataCur );
- }
-}
-
-
-function getAll( context, tag ) {
- var ret = context.getElementsByTagName ? context.getElementsByTagName( tag || "*" ) :
- context.querySelectorAll ? context.querySelectorAll( tag || "*" ) :
- [];
-
- return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
- jQuery.merge( [ context ], ret ) :
- ret;
-}
-
-// Support: IE >= 9
-function fixInput( src, dest ) {
- var nodeName = dest.nodeName.toLowerCase();
-
- // Fails to persist the checked state of a cloned checkbox or radio button.
- if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) {
- dest.checked = src.checked;
-
- // Fails to return the selected option to the default selected state when cloning options
- } else if ( nodeName === "input" || nodeName === "textarea" ) {
- dest.defaultValue = src.defaultValue;
- }
-}
-var curCSS, iframe,
- // swappable if display is none or starts with table except "table", "table-cell", or "table-caption"
- // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
- rdisplayswap = /^(none|table(?!-c[ea]).+)/,
- rmargin = /^margin/,
- rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ),
- rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ),
- rrelNum = new RegExp( "^([+-])=(" + core_pnum + ")", "i" ),
- elemdisplay = { BODY: "block" },
-
- cssShow = { position: "absolute", visibility: "hidden", display: "block" },
- cssNormalTransform = {
- letterSpacing: 0,
- fontWeight: 400
- },
-
- cssExpand = [ "Top", "Right", "Bottom", "Left" ],
- cssPrefixes = [ "Webkit", "O", "Moz", "ms" ];
-
-// return a css property mapped to a potentially vendor prefixed property
-function vendorPropName( style, name ) {
-
- // shortcut for names that are not vendor prefixed
- if ( name in style ) {
- return name;
- }
-
- // check for vendor prefixed names
- var capName = name.charAt(0).toUpperCase() + name.slice(1),
- origName = name,
- i = cssPrefixes.length;
-
- while ( i-- ) {
- name = cssPrefixes[ i ] + capName;
- if ( name in style ) {
- return name;
- }
- }
-
- return origName;
-}
-
-function isHidden( elem, el ) {
- // isHidden might be called from jQuery#filter function;
- // in that case, element will be second argument
- elem = el || elem;
- return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
-}
-
-// NOTE: we've included the "window" in window.getComputedStyle
-// because jsdom on node.js will break without it.
-function getStyles( elem ) {
- return window.getComputedStyle( elem, null );
-}
-
-function showHide( elements, show ) {
- var display, elem, hidden,
- values = [],
- index = 0,
- length = elements.length;
-
- for ( ; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
-
- values[ index ] = jQuery._data( elem, "olddisplay" );
- display = elem.style.display;
- if ( show ) {
- // Reset the inline display of this element to learn if it is
- // being hidden by cascaded rules or not
- if ( !values[ index ] && display === "none" ) {
- elem.style.display = "";
- }
-
- // Set elements which have been overridden with display: none
- // in a stylesheet to whatever the default browser style is
- // for such an element
- if ( elem.style.display === "" && isHidden( elem ) ) {
- values[ index ] = jQuery._data( elem, "olddisplay", css_defaultDisplay(elem.nodeName) );
- }
- } else {
-
- if ( !values[ index ] ) {
- hidden = isHidden( elem );
-
- if ( display && display !== "none" || !hidden ) {
- jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) );
- }
- }
- }
- }
-
- // Set the display of most of the elements in a second loop
- // to avoid the constant reflow
- for ( index = 0; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
- if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
- elem.style.display = show ? values[ index ] || "" : "none";
- }
- }
-
- return elements;
-}
-
-jQuery.fn.extend({
- css: function( name, value ) {
- return jQuery.access( this, function( elem, name, value ) {
- var styles, len,
- map = {},
- i = 0;
-
- if ( jQuery.isArray( name ) ) {
- styles = getStyles( elem );
- len = name.length;
-
- for ( ; i < len; i++ ) {
- map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
- }
-
- return map;
- }
-
- return value !== undefined ?
- jQuery.style( elem, name, value ) :
- jQuery.css( elem, name );
- }, name, value, arguments.length > 1 );
- },
- show: function() {
- return showHide( this, true );
- },
- hide: function() {
- return showHide( this );
- },
- toggle: function( state ) {
- var bool = typeof state === "boolean";
-
- return this.each(function() {
- if ( bool ? state : isHidden( this ) ) {
- jQuery( this ).show();
- } else {
- jQuery( this ).hide();
- }
- });
- }
-});
-
-jQuery.extend({
- // Add in style property hooks for overriding the default
- // behavior of getting and setting a style property
- cssHooks: {
- opacity: {
- get: function( elem, computed ) {
- if ( computed ) {
- // We should always get a number back from opacity
- var ret = curCSS( elem, "opacity" );
- return ret === "" ? "1" : ret;
- }
- }
- }
- },
-
- // Exclude the following css properties to add px
- cssNumber: {
- "columnCount": true,
- "fillOpacity": true,
- "fontWeight": true,
- "lineHeight": true,
- "opacity": true,
- "orphans": true,
- "widows": true,
- "zIndex": true,
- "zoom": true
- },
-
- // Add in properties whose names you wish to fix before
- // setting or getting the value
- cssProps: {
- // normalize float css property
- "float": "cssFloat"
- },
-
- // Get and set the style property on a DOM Node
- style: function( elem, name, value, extra ) {
- // Don't set styles on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
- return;
- }
-
- // Make sure that we're working with the right name
- var ret, type, hooks,
- origName = jQuery.camelCase( name ),
- style = elem.style;
-
- name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) );
-
- // gets hook for the prefixed version
- // followed by the unprefixed version
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // Check if we're setting a value
- if ( value !== undefined ) {
- type = typeof value;
-
- // convert relative number strings (+= or -=) to relative numbers. #7345
- if ( type === "string" && (ret = rrelNum.exec( value )) ) {
- value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) );
- // Fixes bug #9237
- type = "number";
- }
-
- // Make sure that NaN and null values aren't set. See: #7116
- if ( value == null || type === "number" && isNaN( value ) ) {
- return;
- }
-
- // If a number was passed in, add 'px' to the (except for certain CSS properties)
- if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
- value += "px";
- }
-
- // Fixes #8908, it can be done more correctly by specifying setters in cssHooks,
- // but it would mean to define eight (for every problematic property) identical functions
- if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) {
- style[ name ] = "inherit";
- }
-
- // If a hook was provided, use that value, otherwise just set the specified value
- if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {
- style[ name ] = value;
- }
-
- } else {
- // If a hook was provided get the non-computed value from there
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
- return ret;
- }
-
- // Otherwise just get the value from the style object
- return style[ name ];
- }
- },
-
- css: function( elem, name, extra, styles ) {
- var val, num, hooks,
- origName = jQuery.camelCase( name );
-
- // Make sure that we're working with the right name
- name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) );
-
- // gets hook for the prefixed version
- // followed by the unprefixed version
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // If a hook was provided get the computed value from there
- if ( hooks && "get" in hooks ) {
- val = hooks.get( elem, true, extra );
- }
-
- // Otherwise, if a way to get the computed value exists, use that
- if ( val === undefined ) {
- val = curCSS( elem, name, styles );
- }
-
- //convert "normal" to computed value
- if ( val === "normal" && name in cssNormalTransform ) {
- val = cssNormalTransform[ name ];
- }
-
- // Return, converting to number if forced or a qualifier was provided and val looks numeric
- if ( extra === "" || extra ) {
- num = parseFloat( val );
- return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;
- }
- return val;
- },
-
- // A method for quickly swapping in/out CSS properties to get correct calculations
- swap: function( elem, options, callback, args ) {
- var ret, name,
- old = {};
-
- // Remember the old values, and insert the new ones
- for ( name in options ) {
- old[ name ] = elem.style[ name ];
- elem.style[ name ] = options[ name ];
- }
-
- ret = callback.apply( elem, args || [] );
-
- // Revert the old values
- for ( name in options ) {
- elem.style[ name ] = old[ name ];
- }
-
- return ret;
- }
-});
-
-curCSS = function( elem, name, _computed ) {
- var width, minWidth, maxWidth,
- computed = _computed || getStyles( elem ),
-
- // Support: IE9
- // getPropertyValue is only needed for .css('filter') in IE9, see #12537
- ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined,
- style = elem.style;
-
- if ( computed ) {
-
- if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
- ret = jQuery.style( elem, name );
- }
-
- // Support: Chrome <17, Safari 5.1
- // A tribute to the "awesome hack by Dean Edwards"
- // Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right
- // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
- // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
- if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {
-
- // Remember the original values
- width = style.width;
- minWidth = style.minWidth;
- maxWidth = style.maxWidth;
-
- // Put in the new values to get a computed value out
- style.minWidth = style.maxWidth = style.width = ret;
- ret = computed.width;
-
- // Revert the changed values
- style.width = width;
- style.minWidth = minWidth;
- style.maxWidth = maxWidth;
- }
- }
-
- return ret;
-};
-
-
-function setPositiveNumber( elem, value, subtract ) {
- var matches = rnumsplit.exec( value );
- return matches ?
- // Guard against undefined "subtract", e.g., when used as in cssHooks
- Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :
- value;
-}
-
-function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
- var i = extra === ( isBorderBox ? "border" : "content" ) ?
- // If we already have the right measurement, avoid augmentation
- 4 :
- // Otherwise initialize for horizontal or vertical properties
- name === "width" ? 1 : 0,
-
- val = 0;
-
- for ( ; i < 4; i += 2 ) {
- // both box models exclude margin, so add it if we want it
- if ( extra === "margin" ) {
- val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
- }
-
- if ( isBorderBox ) {
- // border-box includes padding, so remove it if we want content
- if ( extra === "content" ) {
- val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
- }
-
- // at this point, extra isn't border nor margin, so remove border
- if ( extra !== "margin" ) {
- val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- } else {
- // at this point, extra isn't content, so add padding
- val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
-
- // at this point, extra isn't content nor padding, so add border
- if ( extra !== "padding" ) {
- val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- }
- }
-
- return val;
-}
-
-function getWidthOrHeight( elem, name, extra ) {
-
- // Start with offset property, which is equivalent to the border-box value
- var valueIsBorderBox = true,
- val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
- styles = getStyles( elem ),
- isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
-
- // some non-html elements return undefined for offsetWidth, so check for null/undefined
- // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
- // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
- if ( val <= 0 || val == null ) {
- // Fall back to computed then uncomputed css if necessary
- val = curCSS( elem, name, styles );
- if ( val < 0 || val == null ) {
- val = elem.style[ name ];
- }
-
- // Computed unit is not pixels. Stop here and return.
- if ( rnumnonpx.test(val) ) {
- return val;
- }
-
- // we need the check for style in case a browser which returns unreliable values
- // for getComputedStyle silently falls back to the reliable elem.style
- valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] );
-
- // Normalize "", auto, and prepare for extra
- val = parseFloat( val ) || 0;
- }
-
- // use the active box-sizing model to add/subtract irrelevant styles
- return ( val +
- augmentWidthOrHeight(
- elem,
- name,
- extra || ( isBorderBox ? "border" : "content" ),
- valueIsBorderBox,
- styles
- )
- ) + "px";
-}
-
-// Try to determine the default display value of an element
-function css_defaultDisplay( nodeName ) {
- var doc = document,
- display = elemdisplay[ nodeName ];
-
- if ( !display ) {
- display = actualDisplay( nodeName, doc );
-
- // If the simple way fails, read from inside an iframe
- if ( display === "none" || !display ) {
- // Use the already-created iframe if possible
- iframe = ( iframe ||
- jQuery("")
- .css( "cssText", "display:block !important" )
- ).appendTo( doc.documentElement );
-
- // Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
- doc = ( iframe[0].contentWindow || iframe[0].contentDocument ).document;
- doc.write("");
- doc.close();
-
- display = actualDisplay( nodeName, doc );
- iframe.detach();
- }
-
- // Store the correct default display
- elemdisplay[ nodeName ] = display;
- }
-
- return display;
-}
-
-// Called ONLY from within css_defaultDisplay
-function actualDisplay( name, doc ) {
- var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
- display = jQuery.css( elem[0], "display" );
- elem.remove();
- return display;
-}
-
-jQuery.each([ "height", "width" ], function( i, name ) {
- jQuery.cssHooks[ name ] = {
- get: function( elem, computed, extra ) {
- if ( computed ) {
- // certain elements can have dimension info if we invisibly show them
- // however, it must have a current display style that would benefit from this
- return elem.offsetWidth === 0 && rdisplayswap.test( jQuery.css( elem, "display" ) ) ?
- jQuery.swap( elem, cssShow, function() {
- return getWidthOrHeight( elem, name, extra );
- }) :
- getWidthOrHeight( elem, name, extra );
- }
- },
-
- set: function( elem, value, extra ) {
- var styles = extra && getStyles( elem );
- return setPositiveNumber( elem, value, extra ?
- augmentWidthOrHeight(
- elem,
- name,
- extra,
- jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
- styles
- ) : 0
- );
- }
- };
-});
-
-// These hooks cannot be added until DOM ready because the support test
-// for it is not run until after DOM ready
-jQuery(function() {
- if ( !jQuery.support.reliableMarginRight ) {
- jQuery.cssHooks.marginRight = {
- get: function( elem, computed ) {
- if ( computed ) {
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
- // Work around by temporarily setting element display to inline-block
- return jQuery.swap( elem, { "display": "inline-block" },
- curCSS, [ elem, "marginRight" ] );
- }
- }
- };
- }
-
- // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
- // getComputedStyle returns percent when specified for top/left/bottom/right
- // rather than make the css module depend on the offset module, we just check for it here
- if ( !jQuery.support.pixelPosition && jQuery.fn.position ) {
- jQuery.each( [ "top", "left" ], function( i, prop ) {
- jQuery.cssHooks[ prop ] = {
- get: function( elem, computed ) {
- if ( computed ) {
- computed = curCSS( elem, prop );
- // if curCSS returns percentage, fallback to offset
- return rnumnonpx.test( computed ) ?
- jQuery( elem ).position()[ prop ] + "px" :
- computed;
- }
- }
- };
- });
- }
-
-});
-
-if ( jQuery.expr && jQuery.expr.filters ) {
- jQuery.expr.filters.hidden = function( elem ) {
- // Support: Opera <= 12.12
- // Opera reports offsetWidths and offsetHeights less than zero on some elements
- return elem.offsetWidth <= 0 && elem.offsetHeight <= 0;
- };
-
- jQuery.expr.filters.visible = function( elem ) {
- return !jQuery.expr.filters.hidden( elem );
- };
-}
-
-// These hooks are used by animate to expand properties
-jQuery.each({
- margin: "",
- padding: "",
- border: "Width"
-}, function( prefix, suffix ) {
- jQuery.cssHooks[ prefix + suffix ] = {
- expand: function( value ) {
- var i = 0,
- expanded = {},
-
- // assumes a single number if not a string
- parts = typeof value === "string" ? value.split(" ") : [ value ];
-
- for ( ; i < 4; i++ ) {
- expanded[ prefix + cssExpand[ i ] + suffix ] =
- parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
- }
-
- return expanded;
- }
- };
-
- if ( !rmargin.test( prefix ) ) {
- jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
- }
-});
-var r20 = /%20/g,
- rbracket = /\[\]$/,
- rCRLF = /\r?\n/g,
- rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
- rsubmittable = /^(?:input|select|textarea|keygen)/i;
-
-jQuery.fn.extend({
- serialize: function() {
- return jQuery.param( this.serializeArray() );
- },
- serializeArray: function() {
- return this.map(function(){
- // Can add propHook for "elements" to filter or add form elements
- var elements = jQuery.prop( this, "elements" );
- return elements ? jQuery.makeArray( elements ) : this;
- })
- .filter(function(){
- var type = this.type;
- // Use .is(":disabled") so that fieldset[disabled] works
- return this.name && !jQuery( this ).is( ":disabled" ) &&
- rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
- ( this.checked || !manipulation_rcheckableType.test( type ) );
- })
- .map(function( i, elem ){
- var val = jQuery( this ).val();
-
- return val == null ?
- null :
- jQuery.isArray( val ) ?
- jQuery.map( val, function( val ){
- return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- }) :
- { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- }).get();
- }
-});
-
-//Serialize an array of form elements or a set of
-//key/values into a query string
-jQuery.param = function( a, traditional ) {
- var prefix,
- s = [],
- add = function( key, value ) {
- // If value is a function, invoke it and return its value
- value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
- s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
- };
-
- // Set traditional to true for jQuery <= 1.3.2 behavior.
- if ( traditional === undefined ) {
- traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
- }
-
- // If an array was passed in, assume that it is an array of form elements.
- if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
- // Serialize the form elements
- jQuery.each( a, function() {
- add( this.name, this.value );
- });
-
- } else {
- // If traditional, encode the "old" way (the way 1.3.2 or older
- // did it), otherwise encode params recursively.
- for ( prefix in a ) {
- buildParams( prefix, a[ prefix ], traditional, add );
- }
- }
-
- // Return the resulting serialization
- return s.join( "&" ).replace( r20, "+" );
-};
-
-function buildParams( prefix, obj, traditional, add ) {
- var name;
-
- if ( jQuery.isArray( obj ) ) {
- // Serialize array item.
- jQuery.each( obj, function( i, v ) {
- if ( traditional || rbracket.test( prefix ) ) {
- // Treat each array item as a scalar.
- add( prefix, v );
-
- } else {
- // Item is non-scalar (array or object), encode its numeric index.
- buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );
- }
- });
-
- } else if ( !traditional && jQuery.type( obj ) === "object" ) {
- // Serialize object item.
- for ( name in obj ) {
- buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
- }
-
- } else {
- // Serialize scalar item.
- add( prefix, obj );
- }
-}
-jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
- "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
-
- // Handle event binding
- jQuery.fn[ name ] = function( data, fn ) {
- return arguments.length > 0 ?
- this.on( name, null, data, fn ) :
- this.trigger( name );
- };
-});
-
-jQuery.fn.hover = function( fnOver, fnOut ) {
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
-};
-var
- // Document location
- ajaxLocParts,
- ajaxLocation,
-
- ajax_nonce = jQuery.now(),
-
- ajax_rquery = /\?/,
- rhash = /#.*$/,
- rts = /([?&])_=[^&]*/,
- rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
- // #7653, #8125, #8152: local protocol detection
- rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
- rnoContent = /^(?:GET|HEAD)$/,
- rprotocol = /^\/\//,
- rurl = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,
-
- // Keep a copy of the old load method
- _load = jQuery.fn.load,
-
- /* Prefilters
- * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
- * 2) These are called:
- * - BEFORE asking for a transport
- * - AFTER param serialization (s.data is a string if s.processData is true)
- * 3) key is the dataType
- * 4) the catchall symbol "*" can be used
- * 5) execution will start with transport dataType and THEN continue down to "*" if needed
- */
- prefilters = {},
-
- /* Transports bindings
- * 1) key is the dataType
- * 2) the catchall symbol "*" can be used
- * 3) selection will start with transport dataType and THEN go to "*" if needed
- */
- transports = {},
-
- // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
- allTypes = "*/".concat("*");
-
-// #8138, IE may throw an exception when accessing
-// a field from window.location if document.domain has been set
-try {
- ajaxLocation = location.href;
-} catch( e ) {
- // Use the href attribute of an A element
- // since IE will modify it given document.location
- ajaxLocation = document.createElement( "a" );
- ajaxLocation.href = "";
- ajaxLocation = ajaxLocation.href;
-}
-
-// Segment location into parts
-ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
- // dataTypeExpression is optional and defaults to "*"
- return function( dataTypeExpression, func ) {
-
- if ( typeof dataTypeExpression !== "string" ) {
- func = dataTypeExpression;
- dataTypeExpression = "*";
- }
-
- var dataType,
- i = 0,
- dataTypes = dataTypeExpression.toLowerCase().match( core_rnotwhite ) || [];
-
- if ( jQuery.isFunction( func ) ) {
- // For each dataType in the dataTypeExpression
- while ( (dataType = dataTypes[i++]) ) {
- // Prepend if requested
- if ( dataType[0] === "+" ) {
- dataType = dataType.slice( 1 ) || "*";
- (structure[ dataType ] = structure[ dataType ] || []).unshift( func );
-
- // Otherwise append
- } else {
- (structure[ dataType ] = structure[ dataType ] || []).push( func );
- }
- }
- }
- };
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
-
- var inspected = {},
- seekingTransport = ( structure === transports );
-
- function inspect( dataType ) {
- var selected;
- inspected[ dataType ] = true;
- jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
- var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
- if( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
- options.dataTypes.unshift( dataTypeOrTransport );
- inspect( dataTypeOrTransport );
- return false;
- } else if ( seekingTransport ) {
- return !( selected = dataTypeOrTransport );
- }
- });
- return selected;
- }
-
- return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
- var key, deep,
- flatOptions = jQuery.ajaxSettings.flatOptions || {};
-
- for ( key in src ) {
- if ( src[ key ] !== undefined ) {
- ( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];
- }
- }
- if ( deep ) {
- jQuery.extend( true, target, deep );
- }
-
- return target;
-}
-
-jQuery.fn.load = function( url, params, callback ) {
- if ( typeof url !== "string" && _load ) {
- return _load.apply( this, arguments );
- }
-
- var selector, type, response,
- self = this,
- off = url.indexOf(" ");
-
- if ( off >= 0 ) {
- selector = url.slice( off, url.length );
- url = url.slice( 0, off );
- }
-
- // If it's a function
- if ( jQuery.isFunction( params ) ) {
-
- // We assume that it's the callback
- callback = params;
- params = undefined;
-
- // Otherwise, build a param string
- } else if ( params && typeof params === "object" ) {
- type = "POST";
- }
-
- // If we have elements to modify, make the request
- if ( self.length > 0 ) {
- jQuery.ajax({
- url: url,
-
- // if "type" variable is undefined, then "GET" method will be used
- type: type,
- dataType: "html",
- data: params
- }).done(function( responseText ) {
-
- // Save response for use in complete callback
- response = arguments;
-
- self.html( selector ?
-
- // If a selector was specified, locate the right elements in a dummy div
- // Exclude scripts to avoid IE 'Permission Denied' errors
- jQuery("").append( jQuery.parseHTML( responseText ) ).find( selector ) :
-
- // Otherwise use the full result
- responseText );
-
- }).complete( callback && function( jqXHR, status ) {
- self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );
- });
- }
-
- return this;
-};
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ){
- jQuery.fn[ type ] = function( fn ){
- return this.on( type, fn );
- };
-});
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
- jQuery[ method ] = function( url, data, callback, type ) {
- // shift arguments if data argument was omitted
- if ( jQuery.isFunction( data ) ) {
- type = type || callback;
- callback = data;
- data = undefined;
- }
-
- return jQuery.ajax({
- url: url,
- type: method,
- dataType: type,
- data: data,
- success: callback
- });
- };
-});
-
-jQuery.extend({
-
- // Counter for holding the number of active queries
- active: 0,
-
- // Last-Modified header cache for next request
- lastModified: {},
- etag: {},
-
- ajaxSettings: {
- url: ajaxLocation,
- type: "GET",
- isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
- global: true,
- processData: true,
- async: true,
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- /*
- timeout: 0,
- data: null,
- dataType: null,
- username: null,
- password: null,
- cache: null,
- throws: false,
- traditional: false,
- headers: {},
- */
-
- accepts: {
- "*": allTypes,
- text: "text/plain",
- html: "text/html",
- xml: "application/xml, text/xml",
- json: "application/json, text/javascript"
- },
-
- contents: {
- xml: /xml/,
- html: /html/,
- json: /json/
- },
-
- responseFields: {
- xml: "responseXML",
- text: "responseText",
- json: "responseJSON"
- },
-
- // Data converters
- // Keys separate source (or catchall "*") and destination types with a single space
- converters: {
-
- // Convert anything to text
- "* text": String,
-
- // Text to html (true = no transformation)
- "text html": true,
-
- // Evaluate text as a json expression
- "text json": jQuery.parseJSON,
-
- // Parse text as xml
- "text xml": jQuery.parseXML
- },
-
- // For options that shouldn't be deep extended:
- // you can add your own custom options here if
- // and when you create one that shouldn't be
- // deep extended (see ajaxExtend)
- flatOptions: {
- url: true,
- context: true
- }
- },
-
- // Creates a full fledged settings object into target
- // with both ajaxSettings and settings fields.
- // If target is omitted, writes into ajaxSettings.
- ajaxSetup: function( target, settings ) {
- return settings ?
-
- // Building a settings object
- ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
-
- // Extending ajaxSettings
- ajaxExtend( jQuery.ajaxSettings, target );
- },
-
- ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
- ajaxTransport: addToPrefiltersOrTransports( transports ),
-
- // Main method
- ajax: function( url, options ) {
-
- // If url is an object, simulate pre-1.5 signature
- if ( typeof url === "object" ) {
- options = url;
- url = undefined;
- }
-
- // Force options to be an object
- options = options || {};
-
- var transport,
- // URL without anti-cache param
- cacheURL,
- // Response headers
- responseHeadersString,
- responseHeaders,
- // timeout handle
- timeoutTimer,
- // Cross-domain detection vars
- parts,
- // To know if global events are to be dispatched
- fireGlobals,
- // Loop variable
- i,
- // Create the final options object
- s = jQuery.ajaxSetup( {}, options ),
- // Callbacks context
- callbackContext = s.context || s,
- // Context for global events is callbackContext if it is a DOM node or jQuery collection
- globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ?
- jQuery( callbackContext ) :
- jQuery.event,
- // Deferreds
- deferred = jQuery.Deferred(),
- completeDeferred = jQuery.Callbacks("once memory"),
- // Status-dependent callbacks
- statusCode = s.statusCode || {},
- // Headers (they are sent all at once)
- requestHeaders = {},
- requestHeadersNames = {},
- // The jqXHR state
- state = 0,
- // Default abort message
- strAbort = "canceled",
- // Fake xhr
- jqXHR = {
- readyState: 0,
-
- // Builds headers hashtable if needed
- getResponseHeader: function( key ) {
- var match;
- if ( state === 2 ) {
- if ( !responseHeaders ) {
- responseHeaders = {};
- while ( (match = rheaders.exec( responseHeadersString )) ) {
- responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
- }
- }
- match = responseHeaders[ key.toLowerCase() ];
- }
- return match == null ? null : match;
- },
-
- // Raw string
- getAllResponseHeaders: function() {
- return state === 2 ? responseHeadersString : null;
- },
-
- // Caches the header
- setRequestHeader: function( name, value ) {
- var lname = name.toLowerCase();
- if ( !state ) {
- name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
- requestHeaders[ name ] = value;
- }
- return this;
- },
-
- // Overrides response content-type header
- overrideMimeType: function( type ) {
- if ( !state ) {
- s.mimeType = type;
- }
- return this;
- },
-
- // Status-dependent callbacks
- statusCode: function( map ) {
- var code;
- if ( map ) {
- if ( state < 2 ) {
- for ( code in map ) {
- // Lazy-add the new callback in a way that preserves old ones
- statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
- }
- } else {
- // Execute the appropriate callbacks
- jqXHR.always( map[ jqXHR.status ] );
- }
- }
- return this;
- },
-
- // Cancel the request
- abort: function( statusText ) {
- var finalText = statusText || strAbort;
- if ( transport ) {
- transport.abort( finalText );
- }
- done( 0, finalText );
- return this;
- }
- };
-
- // Attach deferreds
- deferred.promise( jqXHR ).complete = completeDeferred.add;
- jqXHR.success = jqXHR.done;
- jqXHR.error = jqXHR.fail;
-
- // Remove hash character (#7531: and string promotion)
- // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
- // Handle falsy url in the settings object (#10093: consistency with old signature)
- // We also use the url parameter if available
- s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
-
- // Alias method option to type as per ticket #12004
- s.type = options.method || options.type || s.method || s.type;
-
- // Extract dataTypes list
- s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( core_rnotwhite ) || [""];
-
- // A cross-domain request is in order when we have a protocol:host:port mismatch
- if ( s.crossDomain == null ) {
- parts = rurl.exec( s.url.toLowerCase() );
- s.crossDomain = !!( parts &&
- ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
- ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
- ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
- );
- }
-
- // Convert data if not already a string
- if ( s.data && s.processData && typeof s.data !== "string" ) {
- s.data = jQuery.param( s.data, s.traditional );
- }
-
- // Apply prefilters
- inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
- // If request was aborted inside a prefilter, stop there
- if ( state === 2 ) {
- return jqXHR;
- }
-
- // We can fire global events as of now if asked to
- fireGlobals = s.global;
-
- // Watch for a new set of requests
- if ( fireGlobals && jQuery.active++ === 0 ) {
- jQuery.event.trigger("ajaxStart");
- }
-
- // Uppercase the type
- s.type = s.type.toUpperCase();
-
- // Determine if request has content
- s.hasContent = !rnoContent.test( s.type );
-
- // Save the URL in case we're toying with the If-Modified-Since
- // and/or If-None-Match header later on
- cacheURL = s.url;
-
- // More options handling for requests with no content
- if ( !s.hasContent ) {
-
- // If data is available, append data to url
- if ( s.data ) {
- cacheURL = ( s.url += ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
- // #9682: remove data so that it's not used in an eventual retry
- delete s.data;
- }
-
- // Add anti-cache in url if needed
- if ( s.cache === false ) {
- s.url = rts.test( cacheURL ) ?
-
- // If there is already a '_' parameter, set its value
- cacheURL.replace( rts, "$1_=" + ajax_nonce++ ) :
-
- // Otherwise add one to the end
- cacheURL + ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ajax_nonce++;
- }
- }
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- if ( jQuery.lastModified[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
- }
- if ( jQuery.etag[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
- }
- }
-
- // Set the correct header, if data is being sent
- if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
- jqXHR.setRequestHeader( "Content-Type", s.contentType );
- }
-
- // Set the Accepts header for the server, depending on the dataType
- jqXHR.setRequestHeader(
- "Accept",
- s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
- s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
- s.accepts[ "*" ]
- );
-
- // Check for headers option
- for ( i in s.headers ) {
- jqXHR.setRequestHeader( i, s.headers[ i ] );
- }
-
- // Allow custom headers/mimetypes and early abort
- if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
- // Abort if not done already and return
- return jqXHR.abort();
- }
-
- // aborting is no longer a cancellation
- strAbort = "abort";
-
- // Install callbacks on deferreds
- for ( i in { success: 1, error: 1, complete: 1 } ) {
- jqXHR[ i ]( s[ i ] );
- }
-
- // Get transport
- transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
- // If no transport, we auto-abort
- if ( !transport ) {
- done( -1, "No Transport" );
- } else {
- jqXHR.readyState = 1;
-
- // Send global event
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
- }
- // Timeout
- if ( s.async && s.timeout > 0 ) {
- timeoutTimer = setTimeout(function() {
- jqXHR.abort("timeout");
- }, s.timeout );
- }
-
- try {
- state = 1;
- transport.send( requestHeaders, done );
- } catch ( e ) {
- // Propagate exception as error if not done
- if ( state < 2 ) {
- done( -1, e );
- // Simply rethrow otherwise
- } else {
- throw e;
- }
- }
- }
-
- // Callback for when everything is done
- function done( status, nativeStatusText, responses, headers ) {
- var isSuccess, success, error, response, modified,
- statusText = nativeStatusText;
-
- // Called once
- if ( state === 2 ) {
- return;
- }
-
- // State is "done" now
- state = 2;
-
- // Clear timeout if it exists
- if ( timeoutTimer ) {
- clearTimeout( timeoutTimer );
- }
-
- // Dereference transport for early garbage collection
- // (no matter how long the jqXHR object will be used)
- transport = undefined;
-
- // Cache response headers
- responseHeadersString = headers || "";
-
- // Set readyState
- jqXHR.readyState = status > 0 ? 4 : 0;
-
- // Determine if successful
- isSuccess = status >= 200 && status < 300 || status === 304;
-
- // Get response data
- if ( responses ) {
- response = ajaxHandleResponses( s, jqXHR, responses );
- }
-
- // Convert no matter what (that way responseXXX fields are always set)
- response = ajaxConvert( s, response, jqXHR, isSuccess );
-
- // If successful, handle type chaining
- if ( isSuccess ) {
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- modified = jqXHR.getResponseHeader("Last-Modified");
- if ( modified ) {
- jQuery.lastModified[ cacheURL ] = modified;
- }
- modified = jqXHR.getResponseHeader("etag");
- if ( modified ) {
- jQuery.etag[ cacheURL ] = modified;
- }
- }
-
- // if no content
- if ( status === 204 ) {
- statusText = "nocontent";
-
- // if not modified
- } else if ( status === 304 ) {
- statusText = "notmodified";
-
- // If we have data, let's convert it
- } else {
- statusText = response.state;
- success = response.data;
- error = response.error;
- isSuccess = !error;
- }
- } else {
- // We extract error from statusText
- // then normalize statusText and status for non-aborts
- error = statusText;
- if ( status || !statusText ) {
- statusText = "error";
- if ( status < 0 ) {
- status = 0;
- }
- }
- }
-
- // Set data for the fake xhr object
- jqXHR.status = status;
- jqXHR.statusText = ( nativeStatusText || statusText ) + "";
-
- // Success/Error
- if ( isSuccess ) {
- deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
- } else {
- deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
- }
-
- // Status-dependent callbacks
- jqXHR.statusCode( statusCode );
- statusCode = undefined;
-
- if ( fireGlobals ) {
- globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
- [ jqXHR, s, isSuccess ? success : error ] );
- }
-
- // Complete
- completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
- // Handle the global AJAX counter
- if ( !( --jQuery.active ) ) {
- jQuery.event.trigger("ajaxStop");
- }
- }
- }
-
- return jqXHR;
- },
-
- getScript: function( url, callback ) {
- return jQuery.get( url, undefined, callback, "script" );
- },
-
- getJSON: function( url, data, callback ) {
- return jQuery.get( url, data, callback, "json" );
- }
-});
-
-/* Handles responses to an ajax request:
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
-
- var ct, type, finalDataType, firstDataType,
- contents = s.contents,
- dataTypes = s.dataTypes;
-
- // Remove auto dataType and get content-type in the process
- while( dataTypes[ 0 ] === "*" ) {
- dataTypes.shift();
- if ( ct === undefined ) {
- ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");
- }
- }
-
- // Check if we're dealing with a known content-type
- if ( ct ) {
- for ( type in contents ) {
- if ( contents[ type ] && contents[ type ].test( ct ) ) {
- dataTypes.unshift( type );
- break;
- }
- }
- }
-
- // Check to see if we have a response for the expected dataType
- if ( dataTypes[ 0 ] in responses ) {
- finalDataType = dataTypes[ 0 ];
- } else {
- // Try convertible dataTypes
- for ( type in responses ) {
- if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
- finalDataType = type;
- break;
- }
- if ( !firstDataType ) {
- firstDataType = type;
- }
- }
- // Or just use first one
- finalDataType = finalDataType || firstDataType;
- }
-
- // If we found a dataType
- // We add the dataType to the list if needed
- // and return the corresponding response
- if ( finalDataType ) {
- if ( finalDataType !== dataTypes[ 0 ] ) {
- dataTypes.unshift( finalDataType );
- }
- return responses[ finalDataType ];
- }
-}
-
-/* Chain conversions given the request and the original response
- * Also sets the responseXXX fields on the jqXHR instance
- */
-function ajaxConvert( s, response, jqXHR, isSuccess ) {
- var conv2, current, conv, tmp, prev,
- converters = {},
- // Work with a copy of dataTypes in case we need to modify it for conversion
- dataTypes = s.dataTypes.slice();
-
- // Create converters map with lowercased keys
- if ( dataTypes[ 1 ] ) {
- for ( conv in s.converters ) {
- converters[ conv.toLowerCase() ] = s.converters[ conv ];
- }
- }
-
- current = dataTypes.shift();
-
- // Convert to each sequential dataType
- while ( current ) {
-
- if ( s.responseFields[ current ] ) {
- jqXHR[ s.responseFields[ current ] ] = response;
- }
-
- // Apply the dataFilter if provided
- if ( !prev && isSuccess && s.dataFilter ) {
- response = s.dataFilter( response, s.dataType );
- }
-
- prev = current;
- current = dataTypes.shift();
-
- if ( current ) {
-
- // There's only work to do if current dataType is non-auto
- if ( current === "*" ) {
-
- current = prev;
-
- // Convert response if prev dataType is non-auto and differs from current
- } else if ( prev !== "*" && prev !== current ) {
-
- // Seek a direct converter
- conv = converters[ prev + " " + current ] || converters[ "* " + current ];
-
- // If none found, seek a pair
- if ( !conv ) {
- for ( conv2 in converters ) {
-
- // If conv2 outputs current
- tmp = conv2.split( " " );
- if ( tmp[ 1 ] === current ) {
-
- // If prev can be converted to accepted input
- conv = converters[ prev + " " + tmp[ 0 ] ] ||
- converters[ "* " + tmp[ 0 ] ];
- if ( conv ) {
- // Condense equivalence converters
- if ( conv === true ) {
- conv = converters[ conv2 ];
-
- // Otherwise, insert the intermediate dataType
- } else if ( converters[ conv2 ] !== true ) {
- current = tmp[ 0 ];
- dataTypes.unshift( tmp[ 1 ] );
- }
- break;
- }
- }
- }
- }
-
- // Apply converter (if not an equivalence)
- if ( conv !== true ) {
-
- // Unless errors are allowed to bubble, catch and return them
- if ( conv && s[ "throws" ] ) {
- response = conv( response );
- } else {
- try {
- response = conv( response );
- } catch ( e ) {
- return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current };
- }
- }
- }
- }
- }
- }
-
- return { state: "success", data: response };
-}
-// Install script dataType
-jQuery.ajaxSetup({
- accepts: {
- script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /(?:java|ecma)script/
- },
- converters: {
- "text script": function( text ) {
- jQuery.globalEval( text );
- return text;
- }
- }
-});
-
-// Handle cache's special case and crossDomain
-jQuery.ajaxPrefilter( "script", function( s ) {
- if ( s.cache === undefined ) {
- s.cache = false;
- }
- if ( s.crossDomain ) {
- s.type = "GET";
- }
-});
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function( s ) {
- // This transport only deals with cross domain requests
- if ( s.crossDomain ) {
- var script, callback;
- return {
- send: function( _, complete ) {
- script = jQuery("
{{name.first}} {{name.last}}
-