annotate Blast output page example trimmed_files/jig.js @ 20:53cd304c5f26

Add index for multiple results; fix layout of query ruler for edge case The query ruler did not layout nicely if the last segment was too short to contain the text. For very short last segments the text is now displayed after the ruler.
author Jan Kanis <jan.code@jankanis.nl>
date Wed, 14 May 2014 16:20:29 +0200
parents ffe82516a83c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
1 (function(){function Ka(){var g=null,j=jQuery.cookie("WebCubbyUser");if(j)if(j.indexOf("logged-in=true")>-1)if(j=j.match(/my-name=([^;]+)/i))g=j[1];return g}function W(g){this.name=this.selector="";this.onPage=false;this.dependsOn=[];this.interactions=[];this.overrideDefaults={};this.addCss=function(){document.write('<link type="text/css" rel="stylesheet" href="'+pa+"css/jquery.ui."+this.name+La+'"/>')};this.addJs=function(){document.write('<script type="text/javascript" src="'+pa+"js/jquery.ui."+
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
2 this.name+Ma+'"><\/script>')};this.addDependent=function(){for(var j=0;j<this.dependsOn.length;j++)qa[this.dependsOn[j]].addToPage()};this.addInteractions=function(){for(var j=0;j<this.interactions.length;j++)document.write('<script type="text/javascript" src="'+pa+"js/jquery.ui."+this.interactions[j]+Ma+'"><\/script>')};this.addToPage=function(){if(!this.onPage){this.addInteractions();this.addDependent();this.addJs();this.addCss();this.onPage=true}};Z.extend(this,g)}if(!(typeof jQuery!=="undefined"&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
3 typeof jQuery.ui!=="undefined"&&typeof jQuery.ui.jig!=="undefined")){(function(g,j){function q(a){var b=Za[a]={},d,e;a=a.split(/\s+/);d=0;for(e=a.length;d<e;d++)b[a[d]]=true;return b}function v(a,b,d){if(d===j&&a.nodeType===1){d="data-"+b.replace(Gb,"-$1").toLowerCase();d=a.getAttribute(d);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:c.isNumeric(d)?parseFloat(d):Hb.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=j}return d}function p(a){for(var b in a)if(!(b===
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
4 "data"&&c.isEmptyObject(a[b])))if(b!=="toJSON")return false;return true}function s(a,b,d){var e=b+"defer",f=b+"queue",h=b+"mark",l=c._data(a,e);if(l&&(d==="queue"||!c._data(a,f))&&(d==="mark"||!c._data(a,h)))setTimeout(function(){if(!c._data(a,f)&&!c._data(a,h)){c.removeData(a,e,true);l.fire()}},0)}function r(){return false}function x(){return true}function C(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function G(a,b,d){b=b||0;if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
5 h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Ib.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function I(a){var b=$a.split("|");a=a.createDocumentFragment();if(a.createElement)for(;b.length;)a.createElement(b.pop());return a}function N(a){return c.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
6 a}function O(a,b){if(!(b.nodeType!==1||!c.hasData(a))){var d,e,f;e=c._data(a);a=c._data(b,e);var h=e.events;if(h){delete a.handle;a.events={};for(d in h){e=0;for(f=h[d].length;e<f;e++)c.event.add(b,d+(h[d][e].namespace?".":"")+h[d][e].namespace,h[d][e],h[d][e].data)}}if(a.data)a.data=c.extend({},a.data)}}function Q(a,b){var d;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);d=b.nodeName.toLowerCase();if(d==="object")b.outerHTML=a.outerHTML;else if(d===
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
7 "input"&&(a.type==="checkbox"||a.type==="radio")){if(a.checked)b.defaultChecked=b.checked=a.checked;if(b.value!==a.value)b.value=a.value}else if(d==="option")b.selected=a.defaultSelected;else if(d==="input"||d==="textarea")b.defaultValue=a.defaultValue;b.removeAttribute(c.expando)}}function P(a){return typeof a.getElementsByTagName!=="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!=="undefined"?a.querySelectorAll("*"):[]}function R(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
8 a.checked}function ea(a){var b=(a.nodeName||"").toLowerCase();if(b==="input")R(a);else b!=="script"&&typeof a.getElementsByTagName!=="undefined"&&c.grep(a.getElementsByTagName("input"),R)}function ta(a){var b=L.createElement("div");ab.appendChild(b);b.innerHTML=a.outerHTML;return b.firstChild}function ua(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval((b.text||b.textContent||b.innerHTML||"").replace(Jb,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)}function va(a,b,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
9 d){var e=b==="width"?a.offsetWidth:a.offsetHeight,f=b==="width"?Kb:Lb,h=0,l=f.length;if(e>0){if(d!=="border")for(;h<l;h++){d||(e-=parseFloat(c.css(a,"padding"+f[h]))||0);if(d==="margin")e+=parseFloat(c.css(a,d+f[h]))||0;else e-=parseFloat(c.css(a,"border"+f[h]+"Width"))||0}return e+"px"}e=wa(a,b,b);if(e<0||e==null)e=a.style[b]||0;e=parseFloat(e)||0;if(d)for(;h<l;h++){e+=parseFloat(c.css(a,"padding"+f[h]))||0;if(d!=="padding")e+=parseFloat(c.css(a,"border"+f[h]+"Width"))||0;if(d==="margin")e+=parseFloat(c.css(a,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
10 d+f[h]))||0}return e+"px"}function Ea(a){return function(b,d){if(typeof b!=="string"){d=b;b="*"}if(c.isFunction(d)){b=b.toLowerCase().split(bb);for(var e=0,f=b.length,h,l;e<f;e++){h=b[e];if(l=/^\+/.test(h))h=h.substr(1)||"*";h=a[h]=a[h]||[];h[l?"unshift":"push"](d)}}}}function fa(a,b,d,e,f,h){f=f||b.dataTypes[0];h=h||{};h[f]=true;f=a[f];for(var l=0,m=f?f.length:0,n=a===Na,t;l<m&&(n||!t);l++){t=f[l](b,d,e);if(typeof t==="string")if(!n||h[t])t=j;else{b.dataTypes.unshift(t);t=fa(a,b,d,e,t,h)}}if((n||
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
11 !t)&&!h["*"])t=fa(a,b,d,e,"*",h);return t}function Ba(a,b){var d,e,f=c.ajaxSettings.flatOptions||{};for(d in b)if(b[d]!==j)(f[d]?a:e||(e={}))[d]=b[d];e&&c.extend(true,a,e)}function xa(a,b,d,e){if(c.isArray(b))c.each(b,function(h,l){d||Mb.test(a)?e(a,l):xa(a+"["+(typeof l==="object"||c.isArray(l)?h:"")+"]",l,d,e)});else if(!d&&b!=null&&typeof b==="object")for(var f in b)xa(a+"["+f+"]",b[f],d,e);else e(a,b)}function Oa(a,b,d){var e=a.contents,f=a.dataTypes,h=a.responseFields,l,m,n,t;for(m in h)if(m in
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
12 d)b[h[m]]=d[m];for(;f[0]==="*";){f.shift();if(l===j)l=a.mimeType||b.getResponseHeader("content-type")}if(l)for(m in e)if(e[m]&&e[m].test(l)){f.unshift(m);break}if(f[0]in d)n=f[0];else{for(m in d){if(!f[0]||a.converters[m+" "+f[0]]){n=m;break}t||(t=m)}n=n||t}if(n){n!==f[0]&&f.unshift(n);return d[n]}}function Nb(a,b){if(a.dataFilter)b=a.dataFilter(b,a.dataType);var d=a.dataTypes,e={},f,h,l=d.length,m,n=d[0],t,E,y,H,D;for(f=1;f<l;f++){if(f===1)for(h in a.converters)if(typeof h==="string")e[h.toLowerCase()]=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
13 a.converters[h];t=n;n=d[f];if(n==="*")n=t;else if(t!=="*"&&t!==n){E=t+" "+n;y=e[E]||e["* "+n];if(!y){D=j;for(H in e){m=H.split(" ");if(m[0]===t||m[0]==="*")if(D=e[m[1]+" "+n]){H=e[H];if(H===true)y=D;else if(D===true)y=H;break}}}y||D||c.error("No conversion from "+E.replace(" "," to "));if(y!==true)b=y?y(b):D(H(b))}}return b}function cb(){try{return new g.XMLHttpRequest}catch(a){}}function Ob(){try{return new g.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}function db(){setTimeout(Pb,0);return Fa=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
14 c.now()}function Pb(){Fa=j}function ya(a,b){var d={};c.each(eb.concat.apply([],eb.slice(0,b)),function(){d[this]=a});return d}function fb(a){if(!Pa[a]){var b=L.body,d=c("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){if(!la){la=L.createElement("iframe");la.frameBorder=la.width=la.height=0}b.appendChild(la);if(!za||!la.createElement){za=(la.contentWindow||la.contentDocument).document;za.write((L.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");za.close()}d=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
15 za.createElement(a);za.body.appendChild(d);e=c.css(d,"display");b.removeChild(la)}Pa[a]=e}return Pa[a]}function Qa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var L=g.document,Qb=g.navigator,Rb=g.location,c=function(){function a(){if(!b.isReady){try{L.documentElement.doScroll("left")}catch(o){setTimeout(a,1);return}b.ready()}}var b=function(o,A){return new b.fn.init(o,A,f)},d=g.jQuery,e=g.$,f,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,l=/\S/,m=/^\s+/,n=/\s+$/,t=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
16 /^<(\w+)\s*\/?>(?:<\/\1>)?$/,E=/^[\],:{}\s]*$/,y=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,H=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,D=/(?:^|:|,)(?:\s*\[)+/g,S=/(webkit)[ \/]([\w.]+)/,$=/(opera)(?:.*version)?[ \/]([\w.]+)/,ba=/(msie) ([\w.]+)/,aa=/(mozilla)(?:.*? rv:([\w.]+))?/,na=/-([a-z]|[0-9])/ig,T=/^-ms-/,ma=function(o,A){return(A+"").toUpperCase()},ia=Qb.userAgent,i,k,u=Object.prototype.toString,w=Object.prototype.hasOwnProperty,z=Array.prototype.push,B=Array.prototype.slice,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
17 J=String.prototype.trim,M=Array.prototype.indexOf,V={};b.fn=b.prototype={constructor:b,init:function(o,A,K){var F;if(!o)return this;if(o.nodeType){this.context=this[0]=o;this.length=1;return this}if(o==="body"&&!A&&L.body){this.context=L;this[0]=L.body;this.selector=o;this.length=1;return this}if(typeof o==="string")if((F=o.charAt(0)==="<"&&o.charAt(o.length-1)===">"&&o.length>=3?[null,o,null]:h.exec(o))&&(F[1]||!A))if(F[1]){K=(A=A instanceof b?A[0]:A)?A.ownerDocument||A:L;if(o=t.exec(o))if(b.isPlainObject(A)){o=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
18 [L.createElement(o[1])];b.fn.attr.call(o,A,true)}else o=[K.createElement(o[1])];else{o=b.buildFragment([F[1]],[K]);o=(o.cacheable?b.clone(o.fragment):o.fragment).childNodes}return b.merge(this,o)}else{if((A=L.getElementById(F[2]))&&A.parentNode){if(A.id!==F[2])return K.find(o);this.length=1;this[0]=A}this.context=L;this.selector=o;return this}else return!A||A.jquery?(A||K).find(o):this.constructor(A).find(o);else if(b.isFunction(o))return K.ready(o);if(o.selector!==j){this.selector=o.selector;this.context=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
19 o.context}return b.makeArray(o,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return B.call(this,0)},get:function(o){return o==null?this.toArray():o<0?this[this.length+o]:this[o]},pushStack:function(o,A,K){var F=this.constructor();b.isArray(o)?z.apply(F,o):b.merge(F,o);F.prevObject=this;F.context=this.context;if(A==="find")F.selector=this.selector+(this.selector?" ":"")+K;else if(A)F.selector=this.selector+"."+A+"("+K+")";return F},each:function(o,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
20 A){return b.each(this,o,A)},ready:function(o){b.bindReady();i.add(o);return this},eq:function(o){o=+o;return o===-1?this.slice(o):this.slice(o,o+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(B.apply(this,arguments),"slice",B.call(arguments).join(","))},map:function(o){return this.pushStack(b.map(this,function(A,K){return o.call(A,K,A)}))},end:function(){return this.prevObject||this.constructor(null)},push:z,sort:[].sort,splice:[].splice};
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
21 b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var o,A,K,F,X,U=arguments[0]||{},ca=1,da=arguments.length,Ra=false;if(typeof U==="boolean"){Ra=U;U=arguments[1]||{};ca=2}if(typeof U!=="object"&&!b.isFunction(U))U={};if(da===ca){U=this;--ca}for(;ca<da;ca++)if((o=arguments[ca])!=null)for(A in o){K=U[A];F=o[A];if(U!==F)if(Ra&&F&&(b.isPlainObject(F)||(X=b.isArray(F)))){if(X){X=false;K=K&&b.isArray(K)?K:[]}else K=K&&b.isPlainObject(K)?K:{};U[A]=b.extend(Ra,K,F)}else if(F!==j)U[A]=F}return U};b.extend({noConflict:function(o){if(g.$===
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
22 b)g.$=e;if(o&&g.jQuery===b)g.jQuery=d;return b},isReady:false,readyWait:1,holdReady:function(o){if(o)b.readyWait++;else b.ready(true)},ready:function(o){if(o===true&&!--b.readyWait||o!==true&&!b.isReady){if(!L.body)return setTimeout(b.ready,1);b.isReady=true;if(!(o!==true&&--b.readyWait>0)){i.fireWith(L,[b]);b.fn.trigger&&b(L).trigger("ready").off("ready")}}},bindReady:function(){if(!i){i=b.Callbacks("once memory");if(L.readyState==="complete")return setTimeout(b.ready,1);if(L.addEventListener){L.addEventListener("DOMContentLoaded",
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
23 k,false);g.addEventListener("load",b.ready,false)}else if(L.attachEvent){L.attachEvent("onreadystatechange",k);g.attachEvent("onload",b.ready);var o=false;try{o=g.frameElement==null}catch(A){}L.documentElement.doScroll&&o&&a()}}},isFunction:function(o){return b.type(o)==="function"},isArray:Array.isArray||function(o){return b.type(o)==="array"},isWindow:function(o){return o&&typeof o==="object"&&"setInterval"in o},isNumeric:function(o){return!isNaN(parseFloat(o))&&isFinite(o)},type:function(o){return o==
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
24 null?String(o):V[u.call(o)]||"object"},isPlainObject:function(o){if(!o||b.type(o)!=="object"||o.nodeType||b.isWindow(o))return false;try{if(o.constructor&&!w.call(o,"constructor")&&!w.call(o.constructor.prototype,"isPrototypeOf"))return false}catch(A){return false}var K;for(K in o);return K===j||w.call(o,K)},isEmptyObject:function(o){for(var A in o)return false;return true},error:function(o){throw new Error(o);},parseJSON:function(o){if(typeof o!=="string"||!o)return null;o=b.trim(o);if(g.JSON&&g.JSON.parse)return g.JSON.parse(o);
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
25 if(E.test(o.replace(y,"@").replace(H,"]").replace(D,"")))return(new Function("return "+o))();b.error("Invalid JSON: "+o)},parseXML:function(o){var A,K;try{if(g.DOMParser){K=new DOMParser;A=K.parseFromString(o,"text/xml")}else{A=new ActiveXObject("Microsoft.XMLDOM");A.async="false";A.loadXML(o)}}catch(F){A=j}if(!A||!A.documentElement||A.getElementsByTagName("parsererror").length)b.error("Invalid XML: "+o);return A},noop:function(){},globalEval:function(o){if(o&&l.test(o))(g.execScript||function(A){g.eval.call(g,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
26 A)})(o)},camelCase:function(o){return o.replace(T,"ms-").replace(na,ma)},nodeName:function(o,A){return o.nodeName&&o.nodeName.toUpperCase()===A.toUpperCase()},each:function(o,A,K){var F,X=0,U=o.length,ca=U===j||b.isFunction(o);if(K)if(ca)for(F in o){if(A.apply(o[F],K)===false)break}else for(;X<U;){if(A.apply(o[X++],K)===false)break}else if(ca)for(F in o){if(A.call(o[F],F,o[F])===false)break}else for(;X<U;)if(A.call(o[X],X,o[X++])===false)break;return o},trim:J?function(o){return o==null?"":J.call(o)}:
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
27 function(o){return o==null?"":o.toString().replace(m,"").replace(n,"")},makeArray:function(o,A){A=A||[];if(o!=null){var K=b.type(o);o.length==null||K==="string"||K==="function"||K==="regexp"||b.isWindow(o)?z.call(A,o):b.merge(A,o)}return A},inArray:function(o,A,K){var F;if(A){if(M)return M.call(A,o,K);F=A.length;for(K=K?K<0?Math.max(0,F+K):K:0;K<F;K++)if(K in A&&A[K]===o)return K}return-1},merge:function(o,A){var K=o.length,F=0;if(typeof A.length==="number")for(var X=A.length;F<X;F++)o[K++]=A[F];
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
28 else for(;A[F]!==j;)o[K++]=A[F++];o.length=K;return o},grep:function(o,A,K){var F=[],X;K=!!K;for(var U=0,ca=o.length;U<ca;U++){X=!!A(o[U],U);K!==X&&F.push(o[U])}return F},map:function(o,A,K){var F,X,U=[],ca=0,da=o.length;if(o instanceof b||da!==j&&typeof da==="number"&&(da>0&&o[0]&&o[da-1]||da===0||b.isArray(o)))for(;ca<da;ca++){F=A(o[ca],ca,K);if(F!=null)U[U.length]=F}else for(X in o){F=A(o[X],X,K);if(F!=null)U[U.length]=F}return U.concat.apply([],U)},guid:1,proxy:function(o,A){if(typeof A==="string"){var K=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
29 o[A];A=o;o=K}if(!b.isFunction(o))return j;var F=B.call(arguments,2);K=function(){return o.apply(A,F.concat(B.call(arguments)))};K.guid=o.guid=o.guid||K.guid||b.guid++;return K},access:function(o,A,K,F,X,U){var ca=o.length;if(typeof A==="object"){for(var da in A)b.access(o,da,A[da],F,X,K);return o}if(K!==j){F=!U&&F&&b.isFunction(K);for(da=0;da<ca;da++)X(o[da],A,F?K.call(o[da],da,X(o[da],A)):K,U);return o}return ca?X(o[0],A):j},now:function(){return(new Date).getTime()},uaMatch:function(o){o=o.toLowerCase();
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
30 o=S.exec(o)||$.exec(o)||ba.exec(o)||o.indexOf("compatible")<0&&aa.exec(o)||[];return{browser:o[1]||"",version:o[2]||"0"}},sub:function(){function o(K,F){return new o.fn.init(K,F)}b.extend(true,o,this);o.superclass=this;o.fn=o.prototype=this();o.fn.constructor=o;o.sub=this.sub;o.fn.init=function(K,F){if(F&&F instanceof b&&!(F instanceof o))F=o(F);return b.fn.init.call(this,K,F,A)};o.fn.init.prototype=o.fn;var A=o(L);return o},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
31 function(o,A){V["[object "+A+"]"]=A.toLowerCase()});ia=b.uaMatch(ia);if(ia.browser){b.browser[ia.browser]=true;b.browser.version=ia.version}if(b.browser.webkit)b.browser.safari=true;if(l.test("\u00a0")){m=/^[\s\xA0]+/;n=/[\s\xA0]+$/}f=b(L);if(L.addEventListener)k=function(){L.removeEventListener("DOMContentLoaded",k,false);b.ready()};else if(L.attachEvent)k=function(){if(L.readyState==="complete"){L.detachEvent("onreadystatechange",k);b.ready()}};return b}(),Za={};c.Callbacks=function(a){a=a?Za[a]||
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
32 q(a):{};var b=[],d=[],e,f,h,l,m,n=function(y){var H,D,S,$;H=0;for(D=y.length;H<D;H++){S=y[H];$=c.type(S);if($==="array")n(S);else if($==="function")if(!a.unique||!E.has(S))b.push(S)}},t=function(y,H){H=H||[];e=!a.memory||[y,H];f=true;m=h||0;h=0;for(l=b.length;b&&m<l;m++)if(b[m].apply(y,H)===false&&a.stopOnFalse){e=true;break}f=false;if(b)if(a.once)if(e===true)E.disable();else b=[];else if(d&&d.length){e=d.shift();E.fireWith(e[0],e[1])}},E={add:function(){if(b){var y=b.length;n(arguments);if(f)l=b.length;
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
33 else if(e&&e!==true){h=y;t(e[0],e[1])}}return this},remove:function(){if(b)for(var y=arguments,H=0,D=y.length;H<D;H++)for(var S=0;S<b.length;S++)if(y[H]===b[S]){if(f)if(S<=l){l--;S<=m&&m--}b.splice(S--,1);if(a.unique)break}return this},has:function(y){if(b)for(var H=0,D=b.length;H<D;H++)if(y===b[H])return true;return false},empty:function(){b=[];return this},disable:function(){b=d=e=j;return this},disabled:function(){return!b},lock:function(){d=j;if(!e||e===true)E.disable();return this},locked:function(){return!d},
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
34 fireWith:function(y,H){if(d)if(f)a.once||d.push([y,H]);else a.once&&e||t(y,H);return this},fire:function(){E.fireWith(this,arguments);return this},fired:function(){return!!e}};return E};var Sa=[].slice;c.extend({Deferred:function(a){var b=c.Callbacks("once memory"),d=c.Callbacks("once memory"),e=c.Callbacks("memory"),f="pending",h={resolve:b,reject:d,notify:e},l={done:b.add,fail:d.add,progress:e.add,state:function(){return f},isResolved:b.fired,isRejected:d.fired,then:function(t,E,y){m.done(t).fail(E).progress(y);
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
35 return this},always:function(){m.done.apply(m,arguments).fail.apply(m,arguments);return this},pipe:function(t,E,y){return c.Deferred(function(H){c.each({done:[t,"resolve"],fail:[E,"reject"],progress:[y,"notify"]},function(D,S){var $=S[0],ba=S[1],aa;c.isFunction($)?m[D](function(){(aa=$.apply(this,arguments))&&c.isFunction(aa.promise)?aa.promise().then(H.resolve,H.reject,H.notify):H[ba+"With"](this===m?H:this,[aa])}):m[D](H[ba])})}).promise()},promise:function(t){if(t==null)t=l;else for(var E in l)t[E]=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
36 l[E];return t}},m=l.promise({}),n;for(n in h){m[n]=h[n].fire;m[n+"With"]=h[n].fireWith}m.done(function(){f="resolved"},d.disable,e.lock).fail(function(){f="rejected"},b.disable,e.lock);a&&a.call(m,m);return m},when:function(a){function b(E){return function(y){e[E]=arguments.length>1?Sa.call(arguments,0):y;--m||n.resolveWith(n,e)}}function d(E){return function(y){l[E]=arguments.length>1?Sa.call(arguments,0):y;n.notifyWith(t,l)}}var e=Sa.call(arguments,0),f=0,h=e.length,l=new Array(h),m=h,n=h<=1&&a&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
37 c.isFunction(a.promise)?a:c.Deferred(),t=n.promise();if(h>1){for(;f<h;f++)if(e[f]&&e[f].promise&&c.isFunction(e[f].promise))e[f].promise().then(b(f),n.reject,d(f));else--m;m||n.resolveWith(n,e)}else if(n!==a)n.resolveWith(n,h?[a]:[]);return t}});c.support=function(){var a,b,d,e,f,h,l,m,n=L.createElement("div");n.setAttribute("className","t");n.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";b=n.getElementsByTagName("*");d=n.getElementsByTagName("a")[0];
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
38 if(!b||!b.length||!d)return{};e=L.createElement("select");f=e.appendChild(L.createElement("option"));b=n.getElementsByTagName("input")[0];a={leadingWhitespace:n.firstChild.nodeType===3,tbody:!n.getElementsByTagName("tbody").length,htmlSerialize:!!n.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.55/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:b.value==="on",optSelected:f.selected,getSetAttribute:n.className!==
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
39 "t",enctype:!!L.createElement("form").enctype,html5Clone:L.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};b.checked=true;a.noCloneChecked=b.cloneNode(true).checked;e.disabled=true;a.optDisabled=!f.disabled;try{delete n.test}catch(t){a.deleteExpando=false}if(!n.addEventListener&&n.attachEvent&&n.fireEvent){n.attachEvent("onclick",
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
40 function(){a.noCloneEvent=false});n.cloneNode(true).fireEvent("onclick")}b=L.createElement("input");b.value="t";b.setAttribute("type","radio");a.radioValue=b.value==="t";b.setAttribute("checked","checked");n.appendChild(b);d=L.createDocumentFragment();d.appendChild(n.lastChild);a.checkClone=d.cloneNode(true).cloneNode(true).lastChild.checked;a.appendChecked=b.checked;d.removeChild(b);d.appendChild(n);n.innerHTML="";if(g.getComputedStyle){b=L.createElement("div");b.style.width="0";b.style.marginRight=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
41 "0";n.style.width="2px";n.appendChild(b);a.reliableMarginRight=(parseInt((g.getComputedStyle(b,null)||{marginRight:0}).marginRight,10)||0)===0}if(n.attachEvent)for(l in{submit:1,change:1,focusin:1}){b="on"+l;m=b in n;if(!m){n.setAttribute(b,"return;");m=typeof n[b]==="function"}a[l+"Bubbles"]=m}d.removeChild(n);d=e=f=b=n=b=null;c(function(){var E,y,H,D,S=L.getElementsByTagName("body")[0];if(S){E=L.createElement("div");E.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
42 S.insertBefore(E,S.firstChild);n=L.createElement("div");E.appendChild(n);n.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";h=n.getElementsByTagName("td");m=h[0].offsetHeight===0;h[0].style.display="";h[1].style.display="none";a.reliableHiddenOffsets=m&&h[0].offsetHeight===0;n.innerHTML="";n.style.width=n.style.paddingLeft="1px";c.boxModel=a.boxModel=n.offsetWidth===2;if(typeof n.style.zoom!=="undefined"){n.style.display="inline";n.style.zoom=1;a.inlineBlockNeedsLayout=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
43 n.offsetWidth===2;n.style.display="";n.innerHTML="<div style='width:4px;'></div>";a.shrinkWrapBlocks=n.offsetWidth!==2}n.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;visibility:hidden;border:0;";n.innerHTML="<div style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;'><div></div></div><table style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
44 y=n.firstChild;H=y.firstChild;D={doesNotAddBorder:H.offsetTop!==5,doesAddBorderForTableAndCells:y.nextSibling.firstChild.firstChild.offsetTop===5};H.style.position="fixed";H.style.top="20px";D.fixedPosition=H.offsetTop===20||H.offsetTop===15;H.style.position=H.style.top="";y.style.overflow="hidden";y.style.position="relative";D.subtractsBorderForOverflowNotVisible=H.offsetTop===-5;D.doesNotIncludeMarginInBodyOffset=S.offsetTop!==1;S.removeChild(E);n=null;c.extend(a,D)}});return a}();var Hb=/^(?:\{.*\}|\[.*\])$/,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
45 Gb=/([A-Z])/g;c.extend({cache:{},uuid:0,expando:"jQuery"+(c.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(a){a=a.nodeType?c.cache[a[c.expando]]:a[c.expando];return!!a&&!p(a)},data:function(a,b,d,e){if(c.acceptData(a)){var f;f=c.expando;var h=typeof b==="string",l=a.nodeType,m=l?c.cache:a,n=l?a[f]:a[f]&&f,t=b==="events";if(!((!n||!m[n]||!t&&!e&&!m[n].data)&&h&&d===j)){if(!n)if(l)a[f]=n=++c.uuid;else n=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
46 f;if(!m[n]){m[n]={};if(!l)m[n].toJSON=c.noop}if(typeof b==="object"||typeof b==="function")if(e)m[n]=c.extend(m[n],b);else m[n].data=c.extend(m[n].data,b);f=a=m[n];if(!e){if(!a.data)a.data={};a=a.data}if(d!==j)a[c.camelCase(b)]=d;if(t&&!a[b])return f.events;if(h){d=a[b];if(d==null)d=a[c.camelCase(b)]}else d=a;return d}}},removeData:function(a,b,d){if(c.acceptData(a)){var e,f,h,l=c.expando,m=a.nodeType,n=m?c.cache:a,t=m?a[l]:l;if(n[t]){if(b)if(e=d?n[t]:n[t].data){if(!c.isArray(b))if(b in e)b=[b];else{b=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
47 c.camelCase(b);b=b in e?[b]:b.split(" ")}f=0;for(h=b.length;f<h;f++)delete e[b[f]];if(!(d?p:c.isEmptyObject)(e))return}if(!d){delete n[t].data;if(!p(n[t]))return}if(c.support.deleteExpando||!n.setInterval)delete n[t];else n[t]=null;if(m)if(c.support.deleteExpando)delete a[l];else if(a.removeAttribute)a.removeAttribute(l);else a[l]=null}}},_data:function(a,b,d){return c.data(a,b,d,true)},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
48 b)}return true}});c.fn.extend({data:function(a,b){var d,e,f,h=null;if(typeof a==="undefined"){if(this.length){h=c.data(this[0]);if(this[0].nodeType===1&&!c._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var l=0,m=e.length;l<m;l++){f=e[l].name;if(f.indexOf("data-")===0){f=c.camelCase(f.substring(5));v(this[0],f,h[f])}}c._data(this[0],"parsedAttrs",true)}}return h}else if(typeof a==="object")return this.each(function(){c.data(this,a)});d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===j){h=this.triggerHandler("getData"+
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
49 d[1]+"!",[d[0]]);if(h===j&&this.length){h=c.data(this[0],a);h=v(this[0],a,h)}return h===j&&d[1]?this.data(d[0]):h}else return this.each(function(){var n=c(this),t=[d[0],b];n.triggerHandler("setData"+d[1]+"!",t);c.data(this,a,b);n.triggerHandler("changeData"+d[1]+"!",t)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({_mark:function(a,b){if(a){b=(b||"fx")+"mark";c._data(a,b,(c._data(a,b)||0)+1)}},_unmark:function(a,b,d){if(a!==true){d=b;b=a;a=false}if(b){d=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
50 d||"fx";var e=d+"mark";if(a=a?0:(c._data(b,e)||1)-1)c._data(b,e,a);else{c.removeData(b,e,true);s(b,d,"mark")}}},queue:function(a,b,d){var e;if(a){b=(b||"fx")+"queue";e=c._data(a,b);if(d)if(!e||c.isArray(d))e=c._data(a,b,c.makeArray(d));else e.push(d);return e||[]}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift(),f={};if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");c._data(a,b+".run",f);e.call(a,function(){c.dequeue(a,b)},f)}if(!d.length){c.removeData(a,b+"queue "+
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
51 b+".run",true);s(a,b,"queue")}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===j)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(d,e){var f=setTimeout(d,a);e.stop=function(){clearTimeout(f)}})},clearQueue:function(a){return this.queue(a||
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
52 "fx",[])},promise:function(a,b){function d(){--h||e.resolveWith(f,[f])}if(typeof a!=="string"){b=a;a=j}a=a||"fx";var e=c.Deferred(),f=this;b=f.length;var h=1,l=a+"defer",m=a+"queue";a=a+"mark";for(var n;b--;)if(n=c.data(f[b],l,j,true)||(c.data(f[b],m,j,true)||c.data(f[b],a,j,true))&&c.data(f[b],l,c.Callbacks("once memory"),true)){h++;n.add(d)}d();return e.promise()}});var gb=/[\n\t\r]/g,Ga=/\s+/,Sb=/\r/g,Tb=/^(?:button|input)$/i,Ub=/^(?:button|input|object|select|textarea)$/i,Vb=/^a(?:rea)?$/i,hb=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
53 /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,ib=c.support.getSetAttribute,oa,jb,kb;c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.removeAttr(this,a)})},prop:function(a,b){return c.access(this,a,b,true,c.prop)},removeProp:function(a){a=c.propFix[a]||a;return this.each(function(){try{this[a]=j;delete this[a]}catch(b){}})},addClass:function(a){var b,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
54 d,e,f,h,l,m;if(c.isFunction(a))return this.each(function(n){c(this).addClass(a.call(this,n,this.className))});if(a&&typeof a==="string"){b=a.split(Ga);d=0;for(e=this.length;d<e;d++){f=this[d];if(f.nodeType===1)if(!f.className&&b.length===1)f.className=a;else{h=" "+f.className+" ";l=0;for(m=b.length;l<m;l++)~h.indexOf(" "+b[l]+" ")||(h+=b[l]+" ");f.className=c.trim(h)}}}return this},removeClass:function(a){var b,d,e,f,h,l,m;if(c.isFunction(a))return this.each(function(n){c(this).removeClass(a.call(this,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
55 n,this.className))});if(a&&typeof a==="string"||a===j){b=(a||"").split(Ga);d=0;for(e=this.length;d<e;d++){f=this[d];if(f.nodeType===1&&f.className)if(a){h=(" "+f.className+" ").replace(gb," ");l=0;for(m=b.length;l<m;l++)h=h.replace(" "+b[l]+" "," ");f.className=c.trim(h)}else f.className=""}}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){c(this).toggleClass(a.call(this,f,this.className,b),b)});return this.each(function(){if(d===
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
56 "string")for(var f,h=0,l=c(this),m=b,n=a.split(Ga);f=n[h++];){m=e?m:!l.hasClass(f);l[m?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c._data(this,"__className__",this.className);this.className=this.className||a===false?"":c._data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1&&(" "+this[b].className+" ").replace(gb," ").indexOf(a)>-1)return true;return false},val:function(a){var b,d,e,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
57 f=this[0];if(arguments.length){e=c.isFunction(a);return this.each(function(h){var l=c(this);if(this.nodeType===1){h=e?a.call(this,h,l.val()):a;if(h==null)h="";else if(typeof h==="number")h+="";else if(c.isArray(h))h=c.map(h,function(m){return m==null?"":m+""});b=c.valHooks[this.nodeName.toLowerCase()]||c.valHooks[this.type];if(!b||!("set"in b)||b.set(this,h,"value")===j)this.value=h}})}else if(f){if((b=c.valHooks[f.nodeName.toLowerCase()]||c.valHooks[f.type])&&"get"in b&&(d=b.get(f,"value"))!==j)return d;
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
58 d=f.value;return typeof d==="string"?d.replace(Sb,""):d==null?"":d}}});c.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,d,e=a.selectedIndex,f=[],h=a.options,l=a.type==="select-one";if(e<0)return null;a=l?e:0;for(d=l?e+1:h.length;a<d;a++){b=h[a];if(b.selected&&(c.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!c.nodeName(b.parentNode,"optgroup"))){b=c(b).val();if(l)return b;
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
59 f.push(b)}}if(l&&!f.length&&h.length)return c(h[e]).val();return f},set:function(a,b){var d=c.makeArray(b);c(a).find("option").each(function(){this.selected=c.inArray(c(this).val(),d)>=0});if(!d.length)a.selectedIndex=-1;return d}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,e){var f,h,l=a.nodeType;if(!(!a||l===3||l===8||l===2)){if(e&&b in c.attrFn)return c(a)[b](d);if(typeof a.getAttribute==="undefined")return c.prop(a,b,d);if(e=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
60 l!==1||!c.isXMLDoc(a)){b=b.toLowerCase();h=c.attrHooks[b]||(hb.test(b)?jb:oa)}if(d!==j)if(d===null)c.removeAttr(a,b);else if(h&&"set"in h&&e&&(f=h.set(a,d,b))!==j)return f;else{a.setAttribute(b,""+d);return d}else if(h&&"get"in h&&e&&(f=h.get(a,b))!==null)return f;else{f=a.getAttribute(b);return f===null?j:f}}},removeAttr:function(a,b){var d,e,f,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(Ga);for(f=d.length;h<f;h++)if(e=d[h]){b=c.propFix[e]||e;c.attr(a,e,"");a.removeAttribute(ib?e:b);if(hb.test(e)&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
61 b in a)a[b]=false}}},attrHooks:{type:{set:function(a,b){if(Tb.test(a.nodeName)&&a.parentNode)c.error("type property can't be changed");else if(!c.support.radioValue&&b==="radio"&&c.nodeName(a,"input")){var d=a.value;a.setAttribute("type",b);if(d)a.value=d;return b}}},value:{get:function(a,b){if(oa&&c.nodeName(a,"button"))return oa.get(a,b);return b in a?a.value:null},set:function(a,b,d){if(oa&&c.nodeName(a,"button"))return oa.set(a,b,d);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
62 "for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,b,d){var e,f,h=a.nodeType;if(!(!a||h===3||h===8||h===2)){if(h!==1||!c.isXMLDoc(a)){b=c.propFix[b]||b;f=c.propHooks[b]}return d!==j?f&&"set"in f&&(e=f.set(a,d,b))!==j?e:(a[b]=d):f&&"get"in f&&(e=f.get(a,b))!==null?e:a[b]}},propHooks:{tabIndex:{get:function(a){var b=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
63 a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):Ub.test(a.nodeName)||Vb.test(a.nodeName)&&a.href?0:j}}}});c.attrHooks.tabindex=c.propHooks.tabIndex;jb={get:function(a,b){var d,e=c.prop(a,b);return e===true||typeof e!=="boolean"&&(d=a.getAttributeNode(b))&&d.nodeValue!==false?b.toLowerCase():j},set:function(a,b,d){if(b===false)c.removeAttr(a,d);else{b=c.propFix[d]||d;if(b in a)a[b]=true;a.setAttribute(d,d.toLowerCase())}return d}};if(!ib){kb={name:true,id:true};oa=c.valHooks.button=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
64 {get:function(a,b){return(a=a.getAttributeNode(b))&&(kb[b]?a.nodeValue!=="":a.specified)?a.nodeValue:j},set:function(a,b,d){var e=a.getAttributeNode(d);if(!e){e=L.createAttribute(d);a.setAttributeNode(e)}return e.nodeValue=b+""}};c.attrHooks.tabindex.set=oa.set;c.each(["width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{set:function(d,e){if(e===""){d.setAttribute(b,"auto");return e}}})});c.attrHooks.contenteditable={get:oa.get,set:function(a,b,d){if(b==="")b="false";oa.set(a,b,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
65 d)}}}c.support.hrefNormalized||c.each(["href","src","width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{get:function(d){d=d.getAttribute(b,2);return d===null?j:d}})});if(!c.support.style)c.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||j},set:function(a,b){return a.style.cssText=""+b}};if(!c.support.optSelected)c.propHooks.selected=c.extend(c.propHooks.selected,{get:function(){return null}});if(!c.support.enctype)c.propFix.enctype="encoding";c.support.checkOn||
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
66 c.each(["radio","checkbox"],function(){c.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}});c.each(["radio","checkbox"],function(){c.valHooks[this]=c.extend(c.valHooks[this],{set:function(a,b){if(c.isArray(b))return a.checked=c.inArray(c(a).val(),b)>=0}})});var Ta=/^(?:textarea|input|select)$/i,lb=/^([^\.]*)?(?:\.(.+))?$/,Wb=/\bhover(\.\S+)?\b/,Xb=/^key/,Yb=/^(?:mouse|contextmenu)|click/,mb=/^(?:focusinfocus|focusoutblur)$/,Zb=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
67 $b=function(a){if(a=Zb.exec(a)){a[1]=(a[1]||"").toLowerCase();a[3]=a[3]&&new RegExp("(?:^|\\s)"+a[3]+"(?:\\s|$)")}return a},ac=function(a,b){var d=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(d.id||{}).value===b[2])&&(!b[3]||b[3].test((d["class"]||{}).value))},nb=function(a){return c.event.special.hover?a:a.replace(Wb,"mouseenter$1 mouseleave$1")};c.event={add:function(a,b,d,e,f){var h,l,m,n,t,E,y,H,D;if(!(a.nodeType===3||a.nodeType===8||!b||!d||!(h=c._data(a)))){if(d.handler){y=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
68 d;d=y.handler}if(!d.guid)d.guid=c.guid++;m=h.events;if(!m)h.events=m={};l=h.handle;if(!l){h.handle=l=function(S){return typeof c!=="undefined"&&(!S||c.event.triggered!==S.type)?c.event.dispatch.apply(l.elem,arguments):j};l.elem=a}b=c.trim(nb(b)).split(" ");for(h=0;h<b.length;h++){n=lb.exec(b[h])||[];t=n[1];E=(n[2]||"").split(".").sort();D=c.event.special[t]||{};t=(f?D.delegateType:D.bindType)||t;D=c.event.special[t]||{};n=c.extend({type:t,origType:n[1],data:e,handler:d,guid:d.guid,selector:f,quick:$b(f),
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
69 namespace:E.join(".")},y);H=m[t];if(!H){H=m[t]=[];H.delegateCount=0;if(!D.setup||D.setup.call(a,e,E,l)===false)if(a.addEventListener)a.addEventListener(t,l,false);else a.attachEvent&&a.attachEvent("on"+t,l)}if(D.add){D.add.call(a,n);if(!n.handler.guid)n.handler.guid=d.guid}f?H.splice(H.delegateCount++,0,n):H.push(n);c.event.global[t]=true}a=null}},global:{},remove:function(a,b,d,e,f){var h=c.hasData(a)&&c._data(a),l,m,n,t,E,y,H,D,S,$;if(h&&(H=h.events)){b=c.trim(nb(b||"")).split(" ");for(l=0;l<b.length;l++){m=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
70 lb.exec(b[l])||[];n=t=m[1];m=m[2];if(n){D=c.event.special[n]||{};n=(e?D.delegateType:D.bindType)||n;S=H[n]||[];E=S.length;m=m?new RegExp("(^|\\.)"+m.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(y=0;y<S.length;y++){$=S[y];if((f||t===$.origType)&&(!d||d.guid===$.guid)&&(!m||m.test($.namespace))&&(!e||e===$.selector||e==="**"&&$.selector)){S.splice(y--,1);$.selector&&S.delegateCount--;D.remove&&D.remove.call(a,$)}}if(S.length===0&&E!==S.length){if(!D.teardown||D.teardown.call(a,m)===false)c.removeEvent(a,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
71 n,h.handle);delete H[n]}}else for(n in H)c.event.remove(a,n+b[l],d,e,true)}if(c.isEmptyObject(H)){if(b=h.handle)b.elem=null;c.removeData(a,["events","handle"],true)}}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(a,b,d,e){if(!(d&&(d.nodeType===3||d.nodeType===8))){var f=a.type||a,h=[],l,m,n,t,E;if(!mb.test(f+c.event.triggered)){if(f.indexOf("!")>=0){f=f.slice(0,-1);l=true}if(f.indexOf(".")>=0){h=f.split(".");f=h.shift();h.sort()}if(!((!d||c.event.customEvent[f])&&!c.event.global[f])){a=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
72 typeof a==="object"?a[c.expando]?a:new c.Event(f,a):new c.Event(f);a.type=f;a.isTrigger=true;a.exclusive=l;a.namespace=h.join(".");a.namespace_re=a.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;l=f.indexOf(":")<0?"on"+f:"";if(d){a.result=j;if(!a.target)a.target=d;b=b!=null?c.makeArray(b):[];b.unshift(a);n=c.event.special[f]||{};if(!(n.trigger&&n.trigger.apply(d,b)===false)){E=[[d,n.bindType||f]];if(!e&&!n.noBubble&&!c.isWindow(d)){t=n.delegateType||f;h=mb.test(t+f)?d:d.parentNode;
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
73 for(m=null;h;h=h.parentNode){E.push([h,t]);m=h}if(m&&m===d.ownerDocument)E.push([m.defaultView||m.parentWindow||g,t])}for(m=0;m<E.length&&!a.isPropagationStopped();m++){h=E[m][0];a.type=E[m][1];(t=(c._data(h,"events")||{})[a.type]&&c._data(h,"handle"))&&t.apply(h,b);(t=l&&h[l])&&c.acceptData(h)&&t.apply(h,b)===false&&a.preventDefault()}a.type=f;if(!e&&!a.isDefaultPrevented())if((!n._default||n._default.apply(d.ownerDocument,b)===false)&&!(f==="click"&&c.nodeName(d,"a"))&&c.acceptData(d))if(l&&d[f]&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
74 (f!=="focus"&&f!=="blur"||a.target.offsetWidth!==0)&&!c.isWindow(d)){if(m=d[l])d[l]=null;c.event.triggered=f;d[f]();c.event.triggered=j;if(m)d[l]=m}return a.result}}else{d=c.cache;for(m in d)d[m].events&&d[m].events[f]&&c.event.trigger(a,b,d[m].handle.elem,true)}}}}},dispatch:function(a){a=c.event.fix(a||g.event);var b=(c._data(this,"events")||{})[a.type]||[],d=b.delegateCount,e=[].slice.call(arguments,0),f=!a.exclusive&&!a.namespace,h=[],l,m,n,t,E,y,H;e[0]=a;a.delegateTarget=this;if(d&&!a.target.disabled&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
75 !(a.button&&a.type==="click")){n=c(this);n.context=this.ownerDocument||this;for(m=a.target;m!=this;m=m.parentNode||this){E={};y=[];n[0]=m;for(l=0;l<d;l++){t=b[l];H=t.selector;if(E[H]===j)E[H]=t.quick?ac(m,t.quick):n.is(H);E[H]&&y.push(t)}y.length&&h.push({elem:m,matches:y})}}b.length>d&&h.push({elem:this,matches:b.slice(d)});for(l=0;l<h.length&&!a.isPropagationStopped();l++){d=h[l];a.currentTarget=d.elem;for(b=0;b<d.matches.length&&!a.isImmediatePropagationStopped();b++){t=d.matches[b];if(f||!a.namespace&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
76 !t.namespace||a.namespace_re&&a.namespace_re.test(t.namespace)){a.data=t.data;a.handleObj=t;t=((c.event.special[t.origType]||{}).handle||t.handler).apply(d.elem,e);if(t!==j){a.result=t;if(t===false){a.preventDefault();a.stopPropagation()}}}}}return a.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
77 filter:function(a,b){if(a.which==null)a.which=b.charCode!=null?b.charCode:b.keyCode;return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var d,e,f=b.button,h=b.fromElement;if(a.pageX==null&&b.clientX!=null){d=a.target.ownerDocument||L;e=d.documentElement;d=d.body;a.pageX=b.clientX+(e&&e.scrollLeft||d&&d.scrollLeft||0)-(e&&e.clientLeft||d&&d.clientLeft||0);a.pageY=b.clientY+(e&&e.scrollTop||d&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
78 d.scrollTop||0)-(e&&e.clientTop||d&&d.clientTop||0)}if(!a.relatedTarget&&h)a.relatedTarget=h===a.target?b.toElement:h;if(!a.which&&f!==j)a.which=f&1?1:f&2?3:f&4?2:0;return a}},fix:function(a){if(a[c.expando])return a;var b,d,e=a,f=c.event.fixHooks[a.type]||{},h=f.props?this.props.concat(f.props):this.props;a=c.Event(e);for(b=h.length;b;){d=h[--b];a[d]=e[d]}if(!a.target)a.target=e.srcElement||L;if(a.target.nodeType===3)a.target=a.target.parentNode;if(a.metaKey===j)a.metaKey=a.ctrlKey;return f.filter?
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
79 f.filter(a,e):a},special:{ready:{setup:c.bindReady},load:{noBubble:true},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}},simulate:function(a,b,d,e){a=c.extend(new c.Event,d,{type:a,isSimulated:true,originalEvent:{}});e?c.event.trigger(a,null,b):c.event.dispatch.call(b,a);a.isDefaultPrevented()&&d.preventDefault()}};c.event.handle=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
80 c.event.dispatch;c.removeEvent=L.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};c.Event=function(a,b){if(!(this instanceof c.Event))return new c.Event(a,b);if(a&&a.type){this.originalEvent=a;this.type=a.type;this.isDefaultPrevented=a.defaultPrevented||a.returnValue===false||a.getPreventDefault&&a.getPreventDefault()?x:r}else this.type=a;b&&c.extend(this,b);this.timeStamp=a&&a.timeStamp||c.now();this[c.expando]=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
81 true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=x;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=x;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=x;this.stopPropagation()},isDefaultPrevented:r,isPropagationStopped:r,isImmediatePropagationStopped:r};c.each({mouseenter:"mouseover",
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
82 mouseleave:"mouseout"},function(a,b){c.event.special[a]={delegateType:b,bindType:b,handle:function(d){var e=d.relatedTarget,f=d.handleObj,h;if(!e||e!==this&&!c.contains(this,e)){d.type=f.origType;h=f.handler.apply(this,arguments);d.type=b}return h}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(c.nodeName(this,"form"))return false;c.event.add(this,"click._submit keypress._submit",function(a){a=a.target;if((a=c.nodeName(a,"input")||c.nodeName(a,"button")?a.form:j)&&!a._submit_attached){c.event.add(a,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
83 "submit._submit",function(b){this.parentNode&&!b.isTrigger&&c.event.simulate("submit",this.parentNode,b,true)});a._submit_attached=true}})},teardown:function(){if(c.nodeName(this,"form"))return false;c.event.remove(this,"._submit")}};if(!c.support.changeBubbles)c.event.special.change={setup:function(){if(Ta.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){c.event.add(this,"propertychange._change",function(a){if(a.originalEvent.propertyName==="checked")this._just_changed=true});
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
84 c.event.add(this,"click._change",function(a){if(this._just_changed&&!a.isTrigger){this._just_changed=false;c.event.simulate("change",this,a,true)}})}return false}c.event.add(this,"beforeactivate._change",function(a){a=a.target;if(Ta.test(a.nodeName)&&!a._change_attached){c.event.add(a,"change._change",function(b){this.parentNode&&!b.isSimulated&&!b.isTrigger&&c.event.simulate("change",this.parentNode,b,true)});a._change_attached=true}})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
85 a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){c.event.remove(this,"._change");return Ta.test(this.nodeName)}};c.support.focusinBubbles||c.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(f){c.event.simulate(b,f.target,c.event.fix(f),true)};c.event.special[b]={setup:function(){d++===0&&L.addEventListener(a,e,true)},teardown:function(){--d===0&&L.removeEventListener(a,e,true)}}});c.fn.extend({on:function(a,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
86 b,d,e,f){var h,l;if(typeof a==="object"){if(typeof b!=="string"){d=b;b=j}for(l in a)this.on(l,b,d,a[l],f);return this}if(d==null&&e==null){e=b;d=b=j}else if(e==null)if(typeof b==="string"){e=d;d=j}else{e=d;d=b;b=j}if(e===false)e=r;else if(!e)return this;if(f===1){h=e;e=function(m){c().off(m);return h.apply(this,arguments)};e.guid=h.guid||(h.guid=c.guid++)}return this.each(function(){c.event.add(this,a,e,d,b)})},one:function(a,b,d,e){return this.on.call(this,a,b,d,e,1)},off:function(a,b,d){if(a&&a.preventDefault&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
87 a.handleObj){var e=a.handleObj;c(a.delegateTarget).off(e.namespace?e.type+"."+e.namespace:e.type,e.selector,e.handler);return this}if(typeof a==="object"){for(e in a)this.off(e,b,a[e]);return this}if(b===false||typeof b==="function"){d=b;b=j}if(d===false)d=r;return this.each(function(){c.event.remove(this,a,d,b)})},bind:function(a,b,d){return this.on(a,null,b,d)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,d){c(this.context).on(a,this.selector,b,d);return this},die:function(a,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
88 b){c(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,d,e){return this.on(b,a,d,e)},undelegate:function(a,b,d){return arguments.length==1?this.off(a,"**"):this.off(b,a,d)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return c.event.trigger(a,b,this[0],true)},toggle:function(a){var b=arguments,d=a.guid||c.guid++,e=0,f=function(h){var l=(c._data(this,"lastToggle"+a.guid)||0)%e;c._data(this,"lastToggle"+
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
89 a.guid,l+1);h.preventDefault();return b[l].apply(this,arguments)||false};for(f.guid=d;e<b.length;)b[e++].guid=d;return this.click(f)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});c.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(a,b){c.fn[b]=function(d,e){if(e==null){e=d;d=null}return arguments.length>
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
90 0?this.on(b,null,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true;if(Xb.test(b))c.event.fixHooks[b]=c.event.keyHooks;if(Yb.test(b))c.event.fixHooks[b]=c.event.mouseHooks});(function(){function a(i,k,u,w,z,B){z=0;for(var J=w.length;z<J;z++){var M=w[z];if(M){var V=false;for(M=M[i];M;){if(M[e]===u){V=w[M.sizset];break}if(M.nodeType===1&&!B){M[e]=u;M.sizset=z}if(M.nodeName.toLowerCase()===k){V=M;break}M=M[i]}w[z]=V}}}function b(i,k,u,w,z,B){z=0;for(var J=w.length;z<J;z++){var M=w[z];if(M){var V=false;
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
91 for(M=M[i];M;){if(M[e]===u){V=w[M.sizset];break}if(M.nodeType===1){if(!B){M[e]=u;M.sizset=z}if(typeof k!=="string"){if(M===k){V=true;break}}else if(y.filter(k,[M]).length>0){V=M;break}}M=M[i]}w[z]=V}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),f=0,h=Object.prototype.toString,l=false,m=true,n=/\\/g,t=/\r\n/g,E=/\W/;[0,0].sort(function(){m=false;return 0});
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
92 var y=function(i,k,u,w){u=u||[];var z=k=k||L;if(k.nodeType!==1&&k.nodeType!==9)return[];if(!i||typeof i!=="string")return u;var B,J,M,V,o,A=true,K=y.isXML(k),F=[],X=i;do{d.exec("");if(B=d.exec(X)){X=B[3];F.push(B[1]);if(B[2]){V=B[3];break}}}while(B);if(F.length>1&&S.exec(i))if(F.length===2&&D.relative[F[0]])J=ia(F[0]+F[1],k,w);else for(J=D.relative[F[0]]?[k]:y(F.shift(),k);F.length;){i=F.shift();if(D.relative[i])i+=F.shift();J=ia(i,J,w)}else{if(!w&&F.length>1&&k.nodeType===9&&!K&&D.match.ID.test(F[0])&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
93 !D.match.ID.test(F[F.length-1])){B=y.find(F.shift(),k,K);k=B.expr?y.filter(B.expr,B.set)[0]:B.set[0]}if(k){B=w?{expr:F.pop(),set:aa(w)}:y.find(F.pop(),F.length===1&&(F[0]==="~"||F[0]==="+")&&k.parentNode?k.parentNode:k,K);J=B.expr?y.filter(B.expr,B.set):B.set;if(F.length>0)M=aa(J);else A=false;for(;F.length;){B=o=F.pop();if(D.relative[o])B=F.pop();else o="";if(B==null)B=k;D.relative[o](M,B,K)}}else M=[]}M||(M=J);M||y.error(o||i);if(h.call(M)==="[object Array]")if(A)if(k&&k.nodeType===1)for(i=0;M[i]!=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
94 null;i++){if(M[i]&&(M[i]===true||M[i].nodeType===1&&y.contains(k,M[i])))u.push(J[i])}else for(i=0;M[i]!=null;i++)M[i]&&M[i].nodeType===1&&u.push(J[i]);else u.push.apply(u,M);else aa(M,u);if(V){y(V,z,u,w);y.uniqueSort(u)}return u};y.uniqueSort=function(i){if(T){l=m;i.sort(T);if(l)for(var k=1;k<i.length;k++)i[k]===i[k-1]&&i.splice(k--,1)}return i};y.matches=function(i,k){return y(i,null,null,k)};y.matchesSelector=function(i,k){return y(k,null,null,[i]).length>0};y.find=function(i,k,u){var w,z,B,J,M,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
95 V;if(!i)return[];z=0;for(B=D.order.length;z<B;z++){M=D.order[z];if(J=D.leftMatch[M].exec(i)){V=J[1];J.splice(1,1);if(V.substr(V.length-1)!=="\\"){J[1]=(J[1]||"").replace(n,"");w=D.find[M](J,k,u);if(w!=null){i=i.replace(D.match[M],"");break}}}}w||(w=typeof k.getElementsByTagName!=="undefined"?k.getElementsByTagName("*"):[]);return{set:w,expr:i}};y.filter=function(i,k,u,w){for(var z,B,J,M,V,o,A,K,F=i,X=[],U=k,ca=k&&k[0]&&y.isXML(k[0]);i&&k.length;){for(J in D.filter)if((z=D.leftMatch[J].exec(i))!=null&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
96 z[2]){o=D.filter[J];V=z[1];B=false;z.splice(1,1);if(V.substr(V.length-1)!=="\\"){if(U===X)X=[];if(D.preFilter[J])if(z=D.preFilter[J](z,U,u,X,w,ca)){if(z===true)continue}else B=M=true;if(z)for(A=0;(V=U[A])!=null;A++)if(V){M=o(V,z,A,U);K=w^M;if(u&&M!=null)if(K)B=true;else U[A]=false;else if(K){X.push(V);B=true}}if(M!==j){u||(U=X);i=i.replace(D.match[J],"");if(!B)return[];break}}}if(i===F)if(B==null)y.error(i);else break;F=i}return U};y.error=function(i){throw new Error("Syntax error, unrecognized expression: "+
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
97 i);};var H=y.getText=function(i){var k,u;k=i.nodeType;var w="";if(k)if(k===1||k===9)if(typeof i.textContent==="string")return i.textContent;else if(typeof i.innerText==="string")return i.innerText.replace(t,"");else for(i=i.firstChild;i;i=i.nextSibling)w+=H(i);else{if(k===3||k===4)return i.nodeValue}else for(k=0;u=i[k];k++)if(u.nodeType!==8)w+=H(u);return w},D=y.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
98 ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(i){return i.getAttribute("href")},
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
99 type:function(i){return i.getAttribute("type")}},relative:{"+":function(i,k){var u=typeof k==="string",w=u&&!E.test(k);u=u&&!w;if(w)k=k.toLowerCase();w=0;for(var z=i.length,B;w<z;w++)if(B=i[w]){for(;(B=B.previousSibling)&&B.nodeType!==1;);i[w]=u||B&&B.nodeName.toLowerCase()===k?B||false:B===k}u&&y.filter(k,i,true)},">":function(i,k){var u,w=typeof k==="string",z=0,B=i.length;if(w&&!E.test(k))for(k=k.toLowerCase();z<B;z++){if(u=i[z]){u=u.parentNode;i[z]=u.nodeName.toLowerCase()===k?u:false}}else{for(;z<
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
100 B;z++)if(u=i[z])i[z]=w?u.parentNode:u.parentNode===k;w&&y.filter(k,i,true)}},"":function(i,k,u){var w,z=f++,B=b;if(typeof k==="string"&&!E.test(k)){w=k=k.toLowerCase();B=a}B("parentNode",k,z,i,w,u)},"~":function(i,k,u){var w,z=f++,B=b;if(typeof k==="string"&&!E.test(k)){w=k=k.toLowerCase();B=a}B("previousSibling",k,z,i,w,u)}},find:{ID:function(i,k,u){if(typeof k.getElementById!=="undefined"&&!u)return(i=k.getElementById(i[1]))&&i.parentNode?[i]:[]},NAME:function(i,k){if(typeof k.getElementsByName!==
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
101 "undefined"){var u=[];k=k.getElementsByName(i[1]);for(var w=0,z=k.length;w<z;w++)k[w].getAttribute("name")===i[1]&&u.push(k[w]);return u.length===0?null:u}},TAG:function(i,k){if(typeof k.getElementsByTagName!=="undefined")return k.getElementsByTagName(i[1])}},preFilter:{CLASS:function(i,k,u,w,z,B){i=" "+i[1].replace(n,"")+" ";if(B)return i;B=0;for(var J;(J=k[B])!=null;B++)if(J)if(z^(J.className&&(" "+J.className+" ").replace(/[\t\n\r]/g," ").indexOf(i)>=0))u||w.push(J);else if(u)k[B]=false;return false},
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
102 ID:function(i){return i[1].replace(n,"")},TAG:function(i){return i[1].replace(n,"").toLowerCase()},CHILD:function(i){if(i[1]==="nth"){i[2]||y.error(i[0]);i[2]=i[2].replace(/^\+|\s*/g,"");var k=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(i[2]==="even"&&"2n"||i[2]==="odd"&&"2n+1"||!/\D/.test(i[2])&&"0n+"+i[2]||i[2]);i[2]=k[1]+(k[2]||1)-0;i[3]=k[3]-0}else i[2]&&y.error(i[0]);i[0]=f++;return i},ATTR:function(i,k,u,w,z,B){k=i[1]=i[1].replace(n,"");if(!B&&D.attrMap[k])i[1]=D.attrMap[k];i[4]=(i[4]||i[5]||"").replace(n,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
103 "");if(i[2]==="~=")i[4]=" "+i[4]+" ";return i},PSEUDO:function(i,k,u,w,z){if(i[1]==="not")if((d.exec(i[3])||"").length>1||/^\w/.test(i[3]))i[3]=y(i[3],null,null,k);else{i=y.filter(i[3],k,u,true^z);u||w.push.apply(w,i);return false}else if(D.match.POS.test(i[0])||D.match.CHILD.test(i[0]))return true;return i},POS:function(i){i.unshift(true);return i}},filters:{enabled:function(i){return i.disabled===false&&i.type!=="hidden"},disabled:function(i){return i.disabled===true},checked:function(i){return i.checked===
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
104 true},selected:function(i){return i.selected===true},parent:function(i){return!!i.firstChild},empty:function(i){return!i.firstChild},has:function(i,k,u){return!!y(u[3],i).length},header:function(i){return/h\d/i.test(i.nodeName)},text:function(i){var k=i.getAttribute("type"),u=i.type;return i.nodeName.toLowerCase()==="input"&&"text"===u&&(k===u||k===null)},radio:function(i){return i.nodeName.toLowerCase()==="input"&&"radio"===i.type},checkbox:function(i){return i.nodeName.toLowerCase()==="input"&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
105 "checkbox"===i.type},file:function(i){return i.nodeName.toLowerCase()==="input"&&"file"===i.type},password:function(i){return i.nodeName.toLowerCase()==="input"&&"password"===i.type},submit:function(i){var k=i.nodeName.toLowerCase();return(k==="input"||k==="button")&&"submit"===i.type},image:function(i){return i.nodeName.toLowerCase()==="input"&&"image"===i.type},reset:function(i){var k=i.nodeName.toLowerCase();return(k==="input"||k==="button")&&"reset"===i.type},button:function(i){var k=i.nodeName.toLowerCase();
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
106 return k==="input"&&"button"===i.type||k==="button"},input:function(i){return/input|select|textarea|button/i.test(i.nodeName)},focus:function(i){return i===i.ownerDocument.activeElement}},setFilters:{first:function(i,k){return k===0},last:function(i,k,u,w){return k===w.length-1},even:function(i,k){return k%2===0},odd:function(i,k){return k%2===1},lt:function(i,k,u){return k<u[3]-0},gt:function(i,k,u){return k>u[3]-0},nth:function(i,k,u){return u[3]-0===k},eq:function(i,k,u){return u[3]-0===k}},filter:{PSEUDO:function(i,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
107 k,u,w){var z=k[1],B=D.filters[z];if(B)return B(i,u,k,w);else if(z==="contains")return(i.textContent||i.innerText||H([i])||"").indexOf(k[3])>=0;else if(z==="not"){k=k[3];u=0;for(w=k.length;u<w;u++)if(k[u]===i)return false;return true}else y.error(z)},CHILD:function(i,k){var u,w,z,B;u=k[1];var J=i;switch(u){case "only":case "first":for(;J=J.previousSibling;)if(J.nodeType===1)return false;if(u==="first")return true;J=i;case "last":for(;J=J.nextSibling;)if(J.nodeType===1)return false;return true;case "nth":u=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
108 k[2];w=k[3];if(u===1&&w===0)return true;k=k[0];if((z=i.parentNode)&&(z[e]!==k||!i.nodeIndex)){B=0;for(J=z.firstChild;J;J=J.nextSibling)if(J.nodeType===1)J.nodeIndex=++B;z[e]=k}i=i.nodeIndex-w;return u===0?i===0:i%u===0&&i/u>=0}},ID:function(i,k){return i.nodeType===1&&i.getAttribute("id")===k},TAG:function(i,k){return k==="*"&&i.nodeType===1||!!i.nodeName&&i.nodeName.toLowerCase()===k},CLASS:function(i,k){return(" "+(i.className||i.getAttribute("class"))+" ").indexOf(k)>-1},ATTR:function(i,k){var u=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
109 k[1];i=y.attr?y.attr(i,u):D.attrHandle[u]?D.attrHandle[u](i):i[u]!=null?i[u]:i.getAttribute(u);u=i+"";var w=k[2];k=k[4];return i==null?w==="!=":!w&&y.attr?i!=null:w==="="?u===k:w==="*="?u.indexOf(k)>=0:w==="~="?(" "+u+" ").indexOf(k)>=0:!k?u&&i!==false:w==="!="?u!==k:w==="^="?u.indexOf(k)===0:w==="$="?u.substr(u.length-k.length)===k:w==="|="?u===k||u.substr(0,k.length+1)===k+"-":false},POS:function(i,k,u,w){var z=D.setFilters[k[2]];if(z)return z(i,u,k,w)}}},S=D.match.POS,$=function(i,k){return"\\"+
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
110 (k-0+1)};for(var ba in D.match){D.match[ba]=new RegExp(D.match[ba].source+/(?![^\[]*\])(?![^\(]*\))/.source);D.leftMatch[ba]=new RegExp(/(^(?:.|\r|\n)*?)/.source+D.match[ba].source.replace(/\\(\d+)/g,$))}var aa=function(i,k){i=Array.prototype.slice.call(i,0);if(k){k.push.apply(k,i);return k}return i};try{Array.prototype.slice.call(L.documentElement.childNodes,0)}catch(na){aa=function(i,k){var u=0;k=k||[];if(h.call(i)==="[object Array]")Array.prototype.push.apply(k,i);else if(typeof i.length==="number")for(var w=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
111 i.length;u<w;u++)k.push(i[u]);else for(;i[u];u++)k.push(i[u]);return k}}var T,ma;if(L.documentElement.compareDocumentPosition)T=function(i,k){if(i===k){l=true;return 0}if(!i.compareDocumentPosition||!k.compareDocumentPosition)return i.compareDocumentPosition?-1:1;return i.compareDocumentPosition(k)&4?-1:1};else{T=function(i,k){if(i===k){l=true;return 0}else if(i.sourceIndex&&k.sourceIndex)return i.sourceIndex-k.sourceIndex;var u,w,z=[],B=[];u=i.parentNode;w=k.parentNode;var J=u;if(u===w)return ma(i,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
112 k);else if(u){if(!w)return 1}else return-1;for(;J;){z.unshift(J);J=J.parentNode}for(J=w;J;){B.unshift(J);J=J.parentNode}u=z.length;w=B.length;for(J=0;J<u&&J<w;J++)if(z[J]!==B[J])return ma(z[J],B[J]);return J===u?ma(i,B[J],-1):ma(z[J],k,1)};ma=function(i,k,u){if(i===k)return u;for(i=i.nextSibling;i;){if(i===k)return-1;i=i.nextSibling}return 1}}(function(){var i=L.createElement("div"),k="script"+(new Date).getTime(),u=L.documentElement;i.innerHTML="<a name='"+k+"'/>";u.insertBefore(i,u.firstChild);
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
113 if(L.getElementById(k)){D.find.ID=function(w,z,B){if(typeof z.getElementById!=="undefined"&&!B)return(z=z.getElementById(w[1]))?z.id===w[1]||typeof z.getAttributeNode!=="undefined"&&z.getAttributeNode("id").nodeValue===w[1]?[z]:j:[]};D.filter.ID=function(w,z){var B=typeof w.getAttributeNode!=="undefined"&&w.getAttributeNode("id");return w.nodeType===1&&B&&B.nodeValue===z}}u.removeChild(i);u=i=null})();(function(){var i=L.createElement("div");i.appendChild(L.createComment(""));if(i.getElementsByTagName("*").length>
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
114 0)D.find.TAG=function(k,u){u=u.getElementsByTagName(k[1]);if(k[1]==="*"){k=[];for(var w=0;u[w];w++)u[w].nodeType===1&&k.push(u[w]);u=k}return u};i.innerHTML="<a href='#'></a>";if(i.firstChild&&typeof i.firstChild.getAttribute!=="undefined"&&i.firstChild.getAttribute("href")!=="#")D.attrHandle.href=function(k){return k.getAttribute("href",2)};i=null})();L.querySelectorAll&&function(){var i=y,k=L.createElement("div");k.innerHTML="<p class='TEST'></p>";if(!(k.querySelectorAll&&k.querySelectorAll(".TEST").length===
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
115 0)){y=function(w,z,B,J){z=z||L;if(!J&&!y.isXML(z)){var M=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(w);if(M&&(z.nodeType===1||z.nodeType===9))if(M[1])return aa(z.getElementsByTagName(w),B);else if(M[2]&&D.find.CLASS&&z.getElementsByClassName)return aa(z.getElementsByClassName(M[2]),B);if(z.nodeType===9){if(w==="body"&&z.body)return aa([z.body],B);else if(M&&M[3]){var V=z.getElementById(M[3]);if(V&&V.parentNode){if(V.id===M[3])return aa([V],B)}else return aa([],B)}try{return aa(z.querySelectorAll(w),
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
116 B)}catch(o){}}else if(z.nodeType===1&&z.nodeName.toLowerCase()!=="object"){M=z;var A=(V=z.getAttribute("id"))||"__sizzle__",K=z.parentNode,F=/^\s*[+~]/.test(w);if(V)A=A.replace(/'/g,"\\$&");else z.setAttribute("id",A);if(F&&K)z=z.parentNode;try{if(!F||K)return aa(z.querySelectorAll("[id='"+A+"'] "+w),B)}catch(X){}finally{V||M.removeAttribute("id")}}}return i(w,z,B,J)};for(var u in i)y[u]=i[u];k=null}}();(function(){var i=L.documentElement,k=i.matchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
117 i.msMatchesSelector;if(k){var u=!k.call(L.createElement("div"),"div"),w=false;try{k.call(L.documentElement,"[test!='']:sizzle")}catch(z){w=true}y.matchesSelector=function(B,J){J=J.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!y.isXML(B))try{if(w||!D.match.PSEUDO.test(J)&&!/!=/.test(J)){var M=k.call(B,J);if(M||!u||B.document&&B.document.nodeType!==11)return M}}catch(V){}return y(J,null,null,[B]).length>0}}})();(function(){var i=L.createElement("div");i.innerHTML="<div class='test e'></div><div class='test'></div>";
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
118 if(!(!i.getElementsByClassName||i.getElementsByClassName("e").length===0)){i.lastChild.className="e";if(i.getElementsByClassName("e").length!==1){D.order.splice(1,0,"CLASS");D.find.CLASS=function(k,u,w){if(typeof u.getElementsByClassName!=="undefined"&&!w)return u.getElementsByClassName(k[1])};i=null}}})();y.contains=L.documentElement.contains?function(i,k){return i!==k&&(i.contains?i.contains(k):true)}:L.documentElement.compareDocumentPosition?function(i,k){return!!(i.compareDocumentPosition(k)&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
119 16)}:function(){return false};y.isXML=function(i){return(i=(i?i.ownerDocument||i:0).documentElement)?i.nodeName!=="HTML":false};var ia=function(i,k,u){var w,z=[],B="";for(k=k.nodeType?[k]:k;w=D.match.PSEUDO.exec(i);){B+=w[0];i=i.replace(D.match.PSEUDO,"")}i=D.relative[i]?i+"*":i;w=0;for(var J=k.length;w<J;w++)y(i,k[w],z,u);return y.filter(B,z)};y.attr=c.attr;y.selectors.attrMap={};c.find=y;c.expr=y.selectors;c.expr[":"]=c.expr.filters;c.unique=y.uniqueSort;c.text=y.getText;c.isXMLDoc=y.isXML;c.contains=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
120 y.contains})();var bc=/Until$/,cc=/^(?:parents|prevUntil|prevAll)/,dc=/,/,Ib=/^.[^:#\[\.,]*$/,ec=Array.prototype.slice,ob=c.expr.match.POS,fc={children:true,contents:true,next:true,prev:true};c.fn.extend({find:function(a){var b=this,d,e;if(typeof a!=="string")return c(a).filter(function(){d=0;for(e=b.length;d<e;d++)if(c.contains(b[d],this))return true});var f=this.pushStack("","find",a),h,l,m;d=0;for(e=this.length;d<e;d++){h=f.length;c.find(a,this[d],f);if(d>0)for(l=h;l<f.length;l++)for(m=0;m<h;m++)if(f[m]===
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
121 f[l]){f.splice(l--,1);break}}return f},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(G(this,a,false),"not",a)},filter:function(a){return this.pushStack(G(this,a,true),"filter",a)},is:function(a){return!!a&&(typeof a==="string"?ob.test(a)?c(a,this.context).index(this[0])>=0:c.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var d=[],e,f,h=this[0];if(c.isArray(a)){for(f=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
122 1;h&&h.ownerDocument&&h!==b;){for(e=0;e<a.length;e++)c(h).is(a[e])&&d.push({selector:a[e],elem:h,level:f});h=h.parentNode;f++}return d}var l=ob.test(a)||typeof a!=="string"?c(a,b||this.context):0;e=0;for(f=this.length;e<f;e++)for(h=this[e];h;)if(l?l.index(h)>-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||!h.ownerDocument||h===b||h.nodeType===11)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
123 this.prevAll().length:-1;if(typeof a==="string")return c.inArray(this[0],c(a));return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b):c.makeArray(a&&a.nodeType?[a]:a);b=c.merge(this.get(),a);return this.pushStack(C(a[0])||C(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
124 "parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
125 "iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,e){var f=c.map(this,b,d);bc.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1&&!fc[a]?c.unique(f):f;if((this.length>1||dc.test(e))&&cc.test(a))f=f.reverse();return this.pushStack(f,a,ec.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
126 b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===j||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var $a="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gc=/ jQuery\d+="(?:\d+|null)"/g,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
127 Ua=/^\s+/,pb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,qb=/<([\w:]+)/,hc=/<tbody/i,ic=/<|&#?\w+;/,jc=/<(?:script|style)/i,kc=/<(?:script|object|embed|option|style)/i,rb=new RegExp("<(?:"+$a+")","i"),sb=/checked\s*(?:[^=]|=\s*.checked.)/i,lc=/\/(java|ecma)script/i,Jb=/^\s*<!(?:\[CDATA\[|\-\-)/,ga={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
128 "<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},ab=I(L);ga.optgroup=ga.option;ga.tbody=ga.tfoot=ga.colgroup=ga.caption=ga.thead;ga.th=ga.td;if(!c.support.htmlSerialize)ga._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==j)return this.empty().append((this[0]&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
129 this[0].ownerDocument||L).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
130 return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){var b=c.isFunction(a);return this.each(function(d){c(this).wrapAll(b?a.call(this,d):a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
131 1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
132 "after",arguments);a.push.apply(a,c.clean(arguments));return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=a==null?false:a;b=b==
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
133 null?a:b;return this.map(function(){return c.clone(this,a,b)})},html:function(a){if(a===j)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(gc,""):null;else if(typeof a==="string"&&!jc.test(a)&&(c.support.leadingWhitespace||!Ua.test(a))&&!ga[(qb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(pb,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(e){this.empty().append(a)}}else c.isFunction(a)?
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
134 this.each(function(f){var h=c(this);h.html(a.call(this,f,h.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),e=d.html();d.replaceWith(a.call(this,b,e))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.length?this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
135 a):this},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,h,l=a[0],m=[];if(!c.support.checkClone&&arguments.length===3&&typeof l==="string"&&sb.test(l))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(l))return this.each(function(y){var H=c(this);a[0]=l.call(this,y,b?H.html():j);H.domManip(a,b,d)});if(this[0]){e=l&&l.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
136 m);h=e.fragment;if(f=h.childNodes.length===1?(h=h.firstChild):h.firstChild){b=b&&c.nodeName(f,"tr");for(var n=0,t=this.length,E=t-1;n<t;n++)d.call(b?N(this[n],f):this[n],e.cacheable||t>1&&n<E?c.clone(h,true,true):h)}m.length&&c.each(m,ua)}return this}});c.buildFragment=function(a,b,d){var e,f,h,l,m=a[0];if(b&&b[0])l=b[0].ownerDocument||b[0];l.createDocumentFragment||(l=L);if(a.length===1&&typeof m==="string"&&m.length<512&&l===L&&m.charAt(0)==="<"&&!kc.test(m)&&(c.support.checkClone||!sb.test(m))&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
137 (c.support.html5Clone||!rb.test(m))){f=true;if((h=c.fragments[m])&&h!==1)e=h}if(!e){e=l.createDocumentFragment();c.clean(a,l,e,d)}if(f)c.fragments[m]=h?e:1;return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
138 0;for(var h=d.length;f<h;f++){var l=(f>0?this.clone(true):this).get();c(d[f])[b](l);e=e.concat(l)}return this.pushStack(e,a,d.selector)}}});c.extend({clone:function(a,b,d){var e,f,h,l=c.support.html5Clone||!rb.test("<"+a.nodeName)?a.cloneNode(true):ta(a);if((!c.support.noCloneEvent||!c.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!c.isXMLDoc(a)){Q(a,l);e=P(a);f=P(l);for(h=0;e[h];++h)f[h]&&Q(e[h],f[h])}if(b){O(a,l);if(d){e=P(a);f=P(l);for(h=0;e[h];++h)O(e[h],f[h])}}return l},clean:function(a,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
139 b,d,e){b=b||L;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||L;for(var f=[],h,l=0,m;(m=a[l])!=null;l++){if(typeof m==="number")m+="";if(m){if(typeof m==="string")if(ic.test(m)){m=m.replace(pb,"<$1></$2>");h=(qb.exec(m)||["",""])[1].toLowerCase();var n=ga[h]||ga._default,t=n[0],E=b.createElement("div");b===L?ab.appendChild(E):I(b).appendChild(E);for(E.innerHTML=n[1]+m+n[2];t--;)E=E.lastChild;if(!c.support.tbody){t=hc.test(m);n=h==="table"&&!t?E.firstChild&&E.firstChild.childNodes:
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
140 n[1]==="<table>"&&!t?E.childNodes:[];for(h=n.length-1;h>=0;--h)c.nodeName(n[h],"tbody")&&!n[h].childNodes.length&&n[h].parentNode.removeChild(n[h])}!c.support.leadingWhitespace&&Ua.test(m)&&E.insertBefore(b.createTextNode(Ua.exec(m)[0]),E.firstChild);m=E.childNodes}else m=b.createTextNode(m);var y;if(!c.support.appendChecked)if(m[0]&&typeof(y=m.length)==="number")for(h=0;h<y;h++)ea(m[h]);else ea(m);if(m.nodeType)f.push(m);else f=c.merge(f,m)}}if(d){a=function(H){return!H.type||lc.test(H.type)};for(l=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
141 0;f[l];l++)if(e&&c.nodeName(f[l],"script")&&(!f[l].type||f[l].type.toLowerCase()==="text/javascript"))e.push(f[l].parentNode?f[l].parentNode.removeChild(f[l]):f[l]);else{if(f[l].nodeType===1){b=c.grep(f[l].getElementsByTagName("script"),a);f.splice.apply(f,[l+1,0].concat(b))}d.appendChild(f[l])}}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,h=c.support.deleteExpando,l=0,m;(m=a[l])!=null;l++)if(!(m.nodeName&&c.noData[m.nodeName.toLowerCase()]))if(d=m[c.expando]){if((b=e[d])&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
142 b.events){for(var n in b.events)f[n]?c.event.remove(m,n):c.removeEvent(m,n,b.handle);if(b.handle)b.handle.elem=null}if(h)delete m[c.expando];else m.removeAttribute&&m.removeAttribute(c.expando);delete e[d]}}});var Va=/alpha\([^)]*\)/i,mc=/opacity=([^)]*)/,nc=/([A-Z]|^ms)/g,tb=/^-?\d+(?:px)?$/i,oc=/^-?\d/,pc=/^([\-+])=([\-+.\de]+)/,qc={position:"absolute",visibility:"hidden",display:"block"},Kb=["Left","Right"],Lb=["Top","Bottom"],wa,ub,vb;c.fn.css=function(a,b){if(arguments.length===2&&b===j)return this;
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
143 return c.access(this,a,b,true,function(d,e,f){return f!==j?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){a=wa(a,"opacity","opacity");return a===""?"1":a}else return a.style.opacity}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h=c.camelCase(b),
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
144 l=a.style,m=c.cssHooks[h];b=c.cssProps[h]||h;if(d!==j){e=typeof d;if(e==="string"&&(f=pc.exec(d))){d=+(f[1]+1)*+f[2]+parseFloat(c.css(a,b));e="number"}if(!(d==null||e==="number"&&isNaN(d))){if(e==="number"&&!c.cssNumber[h])d+="px";if(!m||!("set"in m)||(d=m.set(a,d))!==j)try{l[b]=d}catch(n){}}}else{if(m&&"get"in m&&(f=m.get(a,false,e))!==j)return f;return l[b]}}},css:function(a,b,d){var e,f;b=c.camelCase(b);f=c.cssHooks[b];b=c.cssProps[b]||b;if(b==="cssFloat")b="float";if(f&&"get"in f&&(e=f.get(a,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
145 true,d))!==j)return e;else if(wa)return wa(a,b)},swap:function(a,b,d){var e={};for(var f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;if(e){if(d.offsetWidth!==0)return va(d,b,f);else c.swap(d,qc,function(){h=va(d,b,f)});return h}},set:function(d,e){if(tb.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
146 b){return mc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;a=a.currentStyle;var e=c.isNumeric(b)?"alpha(opacity="+b*100+")":"",f=a&&a.filter||d.filter||"";d.zoom=1;if(b>=1&&c.trim(f.replace(Va,""))===""){d.removeAttribute("filter");if(a&&!a.filter)return}d.filter=Va.test(f)?f.replace(Va,e):f+" "+e}};c(function(){if(!c.support.reliableMarginRight)c.cssHooks.marginRight={get:function(a,b){var d;c.swap(a,{display:"inline-block"},
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
147 function(){d=b?wa(a,"margin-right","marginRight"):a.style.marginRight});return d}}});if(L.defaultView&&L.defaultView.getComputedStyle)ub=function(a,b){var d,e,f;b=b.replace(nc,"-$1").toLowerCase();if((e=a.ownerDocument.defaultView)&&(f=e.getComputedStyle(a,null))){d=f.getPropertyValue(b);if(d===""&&!c.contains(a.ownerDocument.documentElement,a))d=c.style(a,b)}return d};if(L.documentElement.currentStyle)vb=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;if(f===null&&h&&(d=h[b]))f=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
148 d;if(!tb.test(f)&&oc.test(f)){d=h.left;if(e=a.runtimeStyle&&a.runtimeStyle.left)a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=d;if(e)a.runtimeStyle.left=e}return f===""?"auto":f};wa=ub||vb;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style&&a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var rc=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
149 /%20/g,Mb=/\[\]$/,wb=/\r?\n/g,sc=/#.*$/,tc=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,uc=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,vc=/^(?:GET|HEAD)$/,wc=/^\/\//,xb=/\?/,xc=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,yc=/^(?:select|textarea)/i,bb=/\s+/,zc=/([?&])_=[^&]*/,yb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,zb=c.fn.load,Na={},Ab={},ra,sa,Bb=["*/"]+["*"];try{ra=Rb.href}catch(Lc){ra=L.createElement("a");ra.href="";
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
150 ra=ra.href}sa=yb.exec(ra.toLowerCase())||[];c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&zb)return zb.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=j}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,m,n){n=l.responseText;if(l.isResolved()){l.done(function(t){n=t});
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
151 h.html(f?c("<div>").append(n.replace(xc,"")).find(f):n)}d&&h.each(d,[n,m,l])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||yc.test(this.nodeName)||uc.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d.replace(wb,"\r\n")}}):
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
152 {name:b.name,value:a.replace(wb,"\r\n")}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.on(b,d)}});c.each(["get","post"],function(a,b){c[b]=function(d,e,f,h){if(c.isFunction(e)){h=h||f;f=e;e=j}return c.ajax({type:b,url:d,data:e,success:f,dataType:h})}});c.extend({getScript:function(a,b){return c.get(a,j,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},ajaxSetup:function(a,b){if(b)Ba(a,c.ajaxSettings);
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
153 else{b=a;a=c.ajaxSettings}Ba(a,b);return a},ajaxSettings:{url:ra,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(sa[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Bb},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":g.String,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
154 "text html":true,"text json":c.parseJSON,"text xml":c.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:Ea(Na),ajaxTransport:Ea(Ab),ajax:function(a,b){function d(i,k,u,w){if(ba!==2){ba=2;$&&clearTimeout($);S=j;H=w||"";T.readyState=i>0?4:0;var z,B,J;w=k;u=u?Oa(e,T,u):j;var M;if(i>=200&&i<300||i===304){if(e.ifModified){if(M=T.getResponseHeader("Last-Modified"))c.lastModified[t]=M;if(M=T.getResponseHeader("Etag"))c.etag[t]=M}if(i===304){w="notmodified";z=true}else try{B=Nb(e,u);w="success";
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
155 z=true}catch(V){w="parsererror";J=V}}else{J=w;if(!w||i){w="error";if(i<0)i=0}}T.status=i;T.statusText=""+(k||w);z?l.resolveWith(f,[B,w,T]):l.rejectWith(f,[T,w,J]);T.statusCode(n);n=j;if(aa)h.trigger("ajax"+(z?"Success":"Error"),[T,e,z?B:J]);m.fireWith(f,[T,w]);if(aa){h.trigger("ajaxComplete",[T,e]);--c.active||c.event.trigger("ajaxStop")}}}if(typeof a==="object"){b=a;a=j}b=b||{};var e=c.ajaxSetup({},b),f=e.context||e,h=f!==e&&(f.nodeType||f instanceof c)?c(f):c.event,l=c.Deferred(),m=c.Callbacks("once memory"),
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
156 n=e.statusCode||{},t,E={},y={},H,D,S,$,ba=0,aa,na,T={readyState:0,setRequestHeader:function(i,k){if(!ba){var u=i.toLowerCase();i=y[u]=y[u]||i;E[i]=k}return this},getAllResponseHeaders:function(){return ba===2?H:null},getResponseHeader:function(i){var k;if(ba===2){if(!D)for(D={};k=tc.exec(H);)D[k[1].toLowerCase()]=k[2];k=D[i.toLowerCase()]}return k===j?null:k},overrideMimeType:function(i){if(!ba)e.mimeType=i;return this},abort:function(i){i=i||"abort";S&&S.abort(i);d(0,i);return this}};l.promise(T);
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
157 T.success=T.done;T.error=T.fail;T.complete=m.add;T.statusCode=function(i){if(i){var k;if(ba<2)for(k in i)n[k]=[n[k],i[k]];else{k=i[T.status];T.then(k,k)}}return this};e.url=((a||e.url)+"").replace(sc,"").replace(wc,sa[1]+"//");e.dataTypes=c.trim(e.dataType||"*").toLowerCase().split(bb);if(e.crossDomain==null){a=yb.exec(e.url.toLowerCase());e.crossDomain=!!(a&&(a[1]!=sa[1]||a[2]!=sa[2]||(a[3]||(a[1]==="http:"?80:443))!=(sa[3]||(sa[1]==="http:"?80:443))))}if(e.data&&e.processData&&typeof e.data!=="string")e.data=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
158 c.param(e.data,e.traditional);fa(Na,e,b,T);if(ba===2)return false;aa=e.global;e.type=e.type.toUpperCase();e.hasContent=!vc.test(e.type);aa&&c.active++===0&&c.event.trigger("ajaxStart");if(!e.hasContent){if(e.data){e.url+=(xb.test(e.url)?"&":"?")+e.data;delete e.data}t=e.url;if(e.cache===false){a=c.now();var ma=e.url.replace(zc,"$1_="+a);e.url=ma+(ma===e.url?(xb.test(e.url)?"&":"?")+"_="+a:"")}}if(e.data&&e.hasContent&&e.contentType!==false||b.contentType)T.setRequestHeader("Content-Type",e.contentType);
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
159 if(e.ifModified){t=t||e.url;c.lastModified[t]&&T.setRequestHeader("If-Modified-Since",c.lastModified[t]);c.etag[t]&&T.setRequestHeader("If-None-Match",c.etag[t])}T.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", "+Bb+"; q=0.01":""):e.accepts["*"]);for(na in e.headers)T.setRequestHeader(na,e.headers[na]);if(e.beforeSend&&(e.beforeSend.call(f,T,e)===false||ba===2)){T.abort();return false}for(na in{success:1,error:1,complete:1})T[na](e[na]);
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
160 if(S=fa(Ab,e,b,T)){T.readyState=1;aa&&h.trigger("ajaxSend",[T,e]);if(e.async&&e.timeout>0)$=setTimeout(function(){T.abort("timeout")},e.timeout);try{ba=1;S.send(E,d)}catch(ia){if(ba<2)d(-1,ia);else throw ia;}}else d(-1,"No Transport");return T},param:function(a,b){var d=[],e=function(h,l){l=c.isFunction(l)?l():l;d[d.length]=encodeURIComponent(h)+"="+encodeURIComponent(l)};if(b===j)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery&&!c.isPlainObject(a))c.each(a,function(){e(this.name,this.value)});
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
161 else for(var f in a)xa(f,a[f],b,e);return d.join("&").replace(rc,"+")}});c.extend({active:0,lastModified:{},etag:{}});var Ac=c.now(),Ha=/(\=)\?(&|$)|\?\?/i;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return c.expando+"_"+Ac++}});c.ajaxPrefilter("json jsonp",function(a,b,d){b=a.contentType==="application/x-www-form-urlencoded"&&typeof a.data==="string";if(a.dataTypes[0]==="jsonp"||a.jsonp!==false&&(Ha.test(a.url)||b&&Ha.test(a.data))){var e,f=a.jsonpCallback=c.isFunction(a.jsonpCallback)?
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
162 a.jsonpCallback():a.jsonpCallback,h=g[f],l=a.url,m=a.data,n="$1"+f+"$2";if(a.jsonp!==false){l=l.replace(Ha,n);if(a.url===l){if(b)m=m.replace(Ha,n);if(a.data===m)l+=(/\?/.test(l)?"&":"?")+a.jsonp+"="+f}}a.url=l;a.data=m;g[f]=function(t){e=[t]};d.always(function(){g[f]=h;e&&c.isFunction(h)&&g[f](e[0])});a.converters["script json"]=function(){e||c.error(f+" was not called");return e[0]};a.dataTypes[0]="json";return"script"}});c.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
163 contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){c.globalEval(a);return a}}});c.ajaxPrefilter("script",function(a){if(a.cache===j)a.cache=false;if(a.crossDomain){a.type="GET";a.global=false}});c.ajaxTransport("script",function(a){if(a.crossDomain){var b,d=L.head||L.getElementsByTagName("head")[0]||L.documentElement;return{send:function(e,f){b=L.createElement("script");b.async="async";if(a.scriptCharset)b.charset=a.scriptCharset;b.src=a.url;b.onload=b.onreadystatechange=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
164 function(h,l){if(l||!b.readyState||/loaded|complete/.test(b.readyState)){b.onload=b.onreadystatechange=null;d&&b.parentNode&&d.removeChild(b);b=j;l||f(200,"success")}};d.insertBefore(b,d.firstChild)},abort:function(){b&&b.onload(0,1)}}}});var Wa=g.ActiveXObject?function(){for(var a in Aa)Aa[a](0,1)}:false,Bc=0,Aa;c.ajaxSettings.xhr=g.ActiveXObject?function(){return!this.isLocal&&cb()||Ob()}:cb;(function(a){c.extend(c.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})})(c.ajaxSettings.xhr());c.support.ajax&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
165 c.ajaxTransport(function(a){if(!a.crossDomain||c.support.cors){var b;return{send:function(d,e){var f=a.xhr(),h,l;a.username?f.open(a.type,a.url,a.async,a.username,a.password):f.open(a.type,a.url,a.async);if(a.xhrFields)for(l in a.xhrFields)f[l]=a.xhrFields[l];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType);if(!a.crossDomain&&!d["X-Requested-With"])d["X-Requested-With"]="XMLHttpRequest";try{for(l in d)f.setRequestHeader(l,d[l])}catch(m){}f.send(a.hasContent&&a.data||null);b=function(n,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
166 t){var E,y,H,D,S;try{if(b&&(t||f.readyState===4)){b=j;if(h){f.onreadystatechange=c.noop;Wa&&delete Aa[h]}if(t)f.readyState!==4&&f.abort();else{E=f.status;H=f.getAllResponseHeaders();D={};if((S=f.responseXML)&&S.documentElement)D.xml=S;D.text=f.responseText;try{y=f.statusText}catch($){y=""}if(!E&&a.isLocal&&!a.crossDomain)E=D.text?200:404;else if(E===1223)E=204}}}catch(ba){t||e(-1,ba)}D&&e(E,y,D,H)};if(!a.async||f.readyState===4)b();else{h=++Bc;if(Wa){if(!Aa){Aa={};c(g).unload(Wa)}Aa[h]=b}f.onreadystatechange=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
167 b}},abort:function(){b&&b(0,1)}}}});var Pa={},la,za,Cc=/^(?:toggle|show|hide)$/,Dc=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Ia,eb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Fa;c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(ya("show",3),a,b,d);else{d=0;for(var e=this.length;d<e;d++){a=this[d];if(a.style){b=a.style.display;if(!c._data(a,"olddisplay")&&b==="none")b=a.style.display="";
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
168 b===""&&c.css(a,"display")==="none"&&c._data(a,"olddisplay",fb(a.nodeName))}}for(d=0;d<e;d++){a=this[d];if(a.style){b=a.style.display;if(b===""||b==="none")a.style.display=c._data(a,"olddisplay")||""}}return this}},hide:function(a,b,d){if(a||a===0)return this.animate(ya("hide",3),a,b,d);else{d=0;for(var e=this.length;d<e;d++){a=this[d];if(a.style){b=c.css(a,"display");b!=="none"&&!c._data(a,"olddisplay")&&c._data(a,"olddisplay",b)}}for(d=0;d<e;d++)if(this[d].style)this[d].style.display="none";return this}},
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
169 _toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||e?this.each(function(){var f=e?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(ya("toggle",3),a,b,d);return this},fadeTo:function(a,b,d,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,e)},animate:function(a,b,d,e){function f(){h.queue===false&&c._mark(this);var l=c.extend({},h),m=this.nodeType===
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
170 1,n=m&&c(this).is(":hidden"),t,E,y,H,D;l.animatedProperties={};for(y in a){t=c.camelCase(y);if(y!==t){a[t]=a[y];delete a[y]}E=a[t];if(c.isArray(E)){l.animatedProperties[t]=E[1];E=a[t]=E[0]}else l.animatedProperties[t]=l.specialEasing&&l.specialEasing[t]||l.easing||"swing";if(E==="hide"&&n||E==="show"&&!n)return l.complete.call(this);if(m&&(t==="height"||t==="width")){l.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(c.css(this,"display")==="inline"&&c.css(this,"float")===
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
171 "none")if(!c.support.inlineBlockNeedsLayout||fb(this.nodeName)==="inline")this.style.display="inline-block";else this.style.zoom=1}}if(l.overflow!=null)this.style.overflow="hidden";for(y in a){m=new c.fx(this,l,y);E=a[y];if(Cc.test(E))if(t=c._data(this,"toggle"+y)||(E==="toggle"?n?"show":"hide":0)){c._data(this,"toggle"+y,t==="show"?"hide":"show");m[t]()}else m[E]();else{t=Dc.exec(E);H=m.cur();if(t){E=parseFloat(t[2]);D=t[3]||(c.cssNumber[y]?"":"px");if(D!=="px"){c.style(this,y,(E||1)+D);H=(E||1)/
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
172 m.cur()*H;c.style(this,y,H+D)}if(t[1])E=(t[1]==="-="?-1:1)*E+H;m.custom(H,E,D)}else m.custom(H,E,"")}}return true}var h=c.speed(b,d,e);if(c.isEmptyObject(a))return this.each(h.complete,[false]);a=c.extend({},a);return h.queue===false?this.each(f):this.queue(h.queue,f)},stop:function(a,b,d){if(typeof a!=="string"){d=b;b=a;a=j}if(b&&a!==false)this.queue(a||"fx",[]);return this.each(function(){function e(n,t,E){t=t[E];c.removeData(n,E,true);t.stop(d)}var f,h=false,l=c.timers,m=c._data(this);d||c._unmark(true,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
173 this);if(a==null)for(f in m)m[f]&&m[f].stop&&f.indexOf(".run")===f.length-4&&e(this,m,f);else if(m[f=a+".run"]&&m[f].stop)e(this,m,f);for(f=l.length;f--;)if(l[f].elem===this&&(a==null||l[f].queue===a)){d?l[f](true):l[f].saveState();h=true;l.splice(f,1)}d&&h||c.dequeue(this,a)})}});c.each({slideDown:ya("show",1),slideUp:ya("hide",1),slideToggle:ya("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
174 d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;if(e.queue==null||e.queue===true)e.queue="fx";e.old=e.complete;e.complete=function(f){c.isFunction(e.old)&&e.old.call(this);if(e.queue)c.dequeue(this,e.queue);else f!==false&&c._unmark(this)};return e},
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
175 easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;b.orig=b.orig||{}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=c.css(this.elem,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
176 this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,d){function e(l){return f.step(l)}var f=this,h=c.fx;this.startTime=Fa||db();this.end=b;this.now=this.start=a;this.pos=this.state=0;this.unit=d||this.unit||(c.cssNumber[this.prop]?"":"px");e.queue=this.options.queue;e.elem=this.elem;e.saveState=function(){f.options.hide&&c._data(f.elem,"fxshow"+f.prop)===j&&c._data(f.elem,"fxshow"+f.prop,f.start)};if(e()&&c.timers.push(e)&&!Ia)Ia=setInterval(h.tick,h.interval)},show:function(){var a=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
177 c._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||c.style(this.elem,this.prop);this.options.show=true;a!==j?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c._data(this.elem,"fxshow"+this.prop)||c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b,d=Fa||db(),e=true,f=this.elem,h=this.options;if(a||d>=h.duration+this.startTime){this.now=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
178 this.end;this.pos=this.state=1;this.update();h.animatedProperties[this.prop]=true;for(b in h.animatedProperties)if(h.animatedProperties[b]!==true)e=false;if(e){h.overflow!=null&&!c.support.shrinkWrapBlocks&&c.each(["","X","Y"],function(l,m){f.style["overflow"+m]=h.overflow[l]});h.hide&&c(f).hide();if(h.hide||h.show)for(b in h.animatedProperties){c.style(f,b,h.orig[b]);c.removeData(f,"fxshow"+b,true);c.removeData(f,"toggle"+b,true)}if(a=h.complete){h.complete=false;a.call(f)}}return false}else{if(h.duration==
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
179 Infinity)this.now=d;else{a=d-this.startTime;this.state=a/h.duration;this.pos=c.easing[h.animatedProperties[this.prop]](this.state,a,0,1,h.duration);this.now=this.start+(this.end-this.start)*this.pos}this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a,b=c.timers,d=0;d<b.length;d++){a=b[d];!a()&&b[d]===a&&b.splice(d--,1)}b.length||c.fx.stop()},interval:13,stop:function(){clearInterval(Ia);Ia=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
180 a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=a.now+a.unit;else a.elem[a.prop]=a.now}}});c.each(["width","height"],function(a,b){c.fx.step[b]=function(d){c.style(d.elem,b,Math.max(0,d.now)+d.unit)}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};var Ec=/^t(?:able|d|h)$/i,Cb=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in L.documentElement?function(a){var b=this[0],
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
181 d;if(a)return this.each(function(l){c.offset.setOffset(this,a,l)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,h=f.documentElement;if(!d||!c.contains(h,b))return d?{top:d.top,left:d.left}:{top:0,left:0};b=f.body;f=Qa(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&h.scrollTop||b.scrollTop)-(h.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&h.scrollLeft||
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
182 b.scrollLeft)-(h.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(E){c.offset.setOffset(this,a,E)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d,e=b.offsetParent,f=b,h=b.ownerDocument,l=h.documentElement,m=h.body;d=(h=h.defaultView)?h.getComputedStyle(b,null):b.currentStyle;for(var n=b.offsetTop,t=b.offsetLeft;(b=b.parentNode)&&b!==m&&b!==l;){if(c.support.fixedPosition&&d.position==="fixed")break;d=h?h.getComputedStyle(b,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
183 null):b.currentStyle;n-=b.scrollTop;t-=b.scrollLeft;if(b===e){n+=b.offsetTop;t+=b.offsetLeft;if(c.support.doesNotAddBorder&&!(c.support.doesAddBorderForTableAndCells&&Ec.test(b.nodeName))){n+=parseFloat(d.borderTopWidth)||0;t+=parseFloat(d.borderLeftWidth)||0}f=e;e=b.offsetParent}if(c.support.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){n+=parseFloat(d.borderTopWidth)||0;t+=parseFloat(d.borderLeftWidth)||0}d=d}if(d.position==="relative"||d.position==="static"){n+=m.offsetTop;t+=m.offsetLeft}if(c.support.fixedPosition&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
184 d.position==="fixed"){n+=Math.max(l.scrollTop,m.scrollTop);t+=Math.max(l.scrollLeft,m.scrollLeft)}return{top:n,left:t}};c.offset={bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;if(c.support.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.css(a,"marginTop"))||0;d+=parseFloat(c.css(a,"marginLeft"))||0}return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.position="relative";var f=c(a),h=f.offset(),l=c.css(a,"top"),m=c.css(a,"left"),n={},t={};if((e===
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
185 "absolute"||e==="fixed")&&c.inArray("auto",[l,m])>-1){t=f.position();e=t.top;m=t.left}else{e=parseFloat(l)||0;m=parseFloat(m)||0}if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)n.top=b.top-h.top+e;if(b.left!=null)n.left=b.left-h.left+m;"using"in b?b.using.call(a,n):f.css(n)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Cb.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
186 "marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||L.body;a&&!Cb.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f,h;if(e===j){f=this[0];if(!f)return null;return(h=Qa(f))?"pageXOffset"in h?h[a?"pageYOffset":
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
187 "pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}return this.each(function(){if(h=Qa(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e})}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){var e=this[0];return e?e.style?parseFloat(c.css(e,d,"padding")):this[d]():null};c.fn["outer"+b]=function(e){var f=this[0];return f?f.style?parseFloat(c.css(f,d,e?"margin":"border")):this[d]():null};c.fn[d]=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
188 function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(m){var n=c(this);n[d](e.call(this,m,n[d]()))});if(c.isWindow(f)){var h=f.document.documentElement["client"+b],l=f.document.body;return f.document.compatMode==="CSS1Compat"&&h||l&&l["client"+b]||h}else if(f.nodeType===9)return Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===j){f=c.css(f,d);h=parseFloat(f);
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
189 return c.isNumeric(h)?h:f}else return this.css(d,typeof e==="string"?e:e+"px")}});g.jQuery=g.$=c;typeof define==="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return c})})(window);var Z=jQuery;Z.noConflict();jQuery.cookie=function(g,j,q){if(typeof j!="undefined"){q=q||{};if(j===null){j="";q.expires=-1}var v="";if(q.expires&&(typeof q.expires=="number"||q.expires.toUTCString)){if(typeof q.expires=="number"){v=new Date;v.setTime(v.getTime()+q.expires*24*60*60*1E3)}else v=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
190 q.expires;v="; expires="+v.toUTCString()}var p=q.path?"; path="+q.path:"",s=q.domain?"; domain="+q.domain:"";q=q.secure?"; secure":"";document.cookie=[g,"=",encodeURIComponent(j),v,p,s,q].join("")}else{j=null;if(document.cookie&&document.cookie!=""){q=document.cookie.split(";");for(v=0;v<q.length;v++){p=jQuery.trim(q[v]);if(p.substring(0,g.length+1)==g+"="&&p.match("=")){j=decodeURIComponent(p.substring(g.length+1));break}else if(!p.match("=")&&p.substring(0,g.length)==g){j="";break}}}return j}};
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
191 jQuery.fn.extend({elementFrame:function(){var g=jQuery(this);if(arguments.length===1){var j=arguments[0],q=j.topleft,v=j.bottomright,p=q.x,s=j.width||v.x-q.x;v=j.height||v.y-q.y;g.css("top",q.y+"px");g.css("left",p+"px");if(!j.ignoreDimensions){g.width(s);g.height(v)}g.css("zIndex",j.zIndex);return this}else{g=jQuery(this);var r=g.offset();s=g.width();v=g.height();j=g.outerWidth()||s;q=g.outerHeight()||v;p=r.left;var x=p+j;r=r.top;var C=r+q;g=g.css("z-index");return{width:s,height:v,outerWidth:j,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
192 outerHeight:q,zIndex:g,topleft:{x:p,y:r},topright:{x:x,y:r},bottomleft:{x:p,y:C},bottomright:{x:x,y:C}}}},windowFrame:function(){var g=jQuery(document.body),j=0,q=jQuery(document.body).width();if(self.innerHeight)j=self.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)j=document.documentElement.clientHeight;else if(document.body)j=document.body.clientHeight;var v=parseInt(g.css("margin-left"),10),p=parseInt(g.css("margin-right"),10);g=self.pageYOffset||jQuery.boxModel&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
193 document.documentElement.scrollTop||document.body.scrollTop;var s=g+j,r=self.pageXOffset||jQuery.boxModel&&document.documentElement.scrollLeft||document.body.scrollLeft;v=r+q+p+v;p=scrollWidth=0;p=document.documentElement&&document.documentElement.scrollHeight>p?document.documentElement.scrollHeight:document.body.scrollHeight>j?document.body.scrollHeight:document.body.offsetHeight;scrollWidth=document.documentElement&&document.documentElement.scrollWidth>scrollWidth?document.documentElement.scrollWidth:
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
194 document.body.scrollWidth>q?document.body.scrollWidth:document.body.offsetWidth;return{width:q,height:j,scrollWidth:scrollWidth,scrollHeight:p,topleft:{x:r,y:g},topright:{x:v,y:g},bottomleft:{x:r,y:s},bottomright:{x:v,y:s}}},_availableFrameSizesHelper:function(g,j,q,v,p,s){return g===0||j===0?null:{width:g,height:j,topleft:{x:s,y:q},topright:{x:v,y:q},bottomleft:{x:s,y:p},bottomright:{x:v,y:p}}},availableFrameSizes:function(){var g=jQuery(this),j=g.elementFrame(),q=g.windowFrame(),v=q.topleft.y,p=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
195 q.topleft.x;g=q.topright.x;var s=q.bottomright.y,r=j.topleft.y,x=j.bottomleft.y,C=j.topleft.x,G=j.topright.x,I=j.width,N=j.height,O=r-v;if(O<0)O=0;var Q=s-x;if(Q<0)Q=0;var P=C-p;if(P<0)P=0;var R=g-G;if(R<0)R=0;j=this._availableFrameSizesHelper(q.width,O,v,g,r,p);var ea=this._availableFrameSizesHelper(q.width,Q,x,g,s,p),ta=this._availableFrameSizesHelper(P,q.height,v,G,s,p);q=this._availableFrameSizesHelper(R,q.height,v,g,s,G);var ua=this._availableFrameSizesHelper(P,O,v,C,r,p),va=this._availableFrameSizesHelper(I,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
196 O,v,G,r,C);v=this._availableFrameSizesHelper(R,O,v,g,r,G);O=this._availableFrameSizesHelper(P,Q,x,C,s,p);I=this._availableFrameSizesHelper(I,Q,x,G,s,C);s=this._availableFrameSizesHelper(R,Q,x,g,s,G);p=this._availableFrameSizesHelper(P,N,r,C,x,p);g=this._availableFrameSizesHelper(R,N,r,g,x,G);return{top:j,bottom:ea,left:ta,right:q,topleft:ua,topcenter:va,topright:v,bottomleft:O,bottomcenter:I,bottomright:s,middleleft:p,middleright:g}},elementFramePercentHidden:function(){var g=jQuery(this),j=g.windowFrame(),
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
197 q=g.elementFrame();g=j.topleft.y;var v=j.topleft.x,p=j.bottomright.x,s=j.bottomright.y,r=q.topleft.y,x=q.bottomleft.y,C=q.topleft.x,G=q.topright.x,I=q.outerWidth;q=q.outerHeight;var N=rPixel=tPixel=bPixel=0,O=rPercent=tPercent=bPercent=0,Q=false;v=C-v;if(v<0){Q=true;N=v*-1;O=(I+v)/I*100}v=p-G;if(v<0){Q=true;rPixel=v*-1;rPercent=100-(I+v)/I*100}v=r-g;if(v<0){Q=true;tPixel=v*-1;tPercent=(q+v)/q*100}v=s-x+(!jQuery.browser.msie&&j.scrollWidth>j.width+16?-16:0);if(v<0){Q=true;bPixel=v*-1;bPercent=100-
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
198 (q+v)/q*100}return{isHidden:Q,left:O,right:rPercent,top:tPercent,bottom:bPercent,pixels:{left:N,right:rPixel,top:tPixel,bottom:bPixel}}},moveFrameIntoView:function(){var g=jQuery(this),j=g.elementFramePercentHidden();if(j.isHidden){var q=j.pixels.bottom,v=j.pixels.left,p=j.pixels.right;j=j.pixels.top||-q||0;if(j!==0){j=parseInt(g.css("top"),10)+parseInt(j,10);g.css("top",j+"px")}v=v||-p||0;if(v!==0){v=parseInt(g.css("left"),10)+parseInt(v,10);g.css("left",v+"px")}}},setFramePosition:function(g,j){var q=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
199 jQuery(this).css("top",-1000).css("display","block"),v=jQuery(j.element),p=q.elementFrame(),s=v.elementFrame();q.windowFrame();for(var r=q.parents().get(),x=false,C=0;C<r.length;C++)if(jQuery(r[C]).css("position")=="relative"){x=true;break}if(x)C=r=0;else{r=s.topleft.x;C=s.topleft.y}j=this._getFrameOffsetPosition(v,s.height,s.width,j.vertical,j.hortizontal);r+=j.offsetX;C+=j.offsetY;v=this._getFrameOffsetPosition(q,p.height,p.width,g.vertical,g.hortizontal);j=r+(g.customOffsetX||0)-v.offsetX;v=C+
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
200 (g.customOffsetY||0)-v.offsetY;if(x){j-=r;v-=C}p={topleft:{x:j,y:v},width:p.width,height:p.height,ignoreDimensions:true};x=q.css("opacity");r=q.css("filter");C=q.css("-ms-filter");q.css("opacity",0).css("filter","alpha(opacity=0)").css("-ms-filter","progid:DXImageTransform.Microsoft.Alpha(Opacity=0)").elementFrame(p);if(!g.adjustFit||g.adjustFit.toLowerCase()==="autoadjust"||g.adjustFit.toLowerCase()==="slide")q.moveFrameIntoView();q.css("display","none").css("opacity",x).css("filter",r).css("-ms-filter",
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
201 C);return this},_getFrameOffsetPosition:function(g,j,q,v,p){function s(C,G){if(C.indexOf("%")>0){C=parseFloat(C)/100;return Math.floor(G*C)}else return C.length>0?parseInt(C):0}var r=0,x=0;switch(v.toLowerCase()){case "top":case "t":r=parseInt(g.css("margin-top"),10)||0;break;case "middle":case "m":case "center":case "c":r=Math.floor(j/2);break;case "bottom":case "b":r=j;break;default:r=s(v,j);if(isNaN(r))r=0}switch(p.toLowerCase()){case "left":case "l":x=parseInt(g.css("margin-left"),10)||0;break;
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
202 case "center":case "c":x=Math.floor(q/2);break;case "right":case "r":x=q;break;default:x=s(p,q);if(isNaN(x))x=0}return{offsetX:x,offsetY:r}},centerFrameInWindow:function(){var g=jQuery(this),j=false;if(g.is(":visible").length===0){j=true;g.css("top","-10000px").css("display","block")}var q=g.elementFrame(),v=g.windowFrame();j&&g.css("display","none");j=Math.floor((v.width-q.width)/2)+v.topleft.x;v=Math.floor((v.height-q.height)/2)+v.topleft.y;g.elementFrame({topleft:{x:j,y:v},width:q.width,height:q.height,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
203 ignoreDimensions:true});return this},createIE6LayerFix:function(g){if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)<7){var j=jQuery("<iframe src='javascript:\"\";' class='ui-ncbi-iframe-fix' marginwidth='0' marginheight='0' align='bottom' scrolling='no' frameborder='0'></iframe>"),q=jQuery(this).elementFrame();if(q.zIndex!=="auto"&&typeof parseInt(q.zIndex,10)==="number")q.zIndex-=1;j.elementFrame(q);g&&j.appendTo(document.body);return j}return null}});(function(g){g.fn.hoverIntent=function(j,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
204 q){var v={sensitivity:7,interval:100,timeout:0};v=g.extend(v,q?{over:j,out:q}:j);var p,s,r,x,C=function(N){p=N.pageX;s=N.pageY},G=function(N,O){O.hoverIntent_t=clearTimeout(O.hoverIntent_t);if(Math.abs(r-p)+Math.abs(x-s)<v.sensitivity){g(O).unbind("mousemove",C);O.hoverIntent_s=1;return v.over.apply(O,[N])}else{r=p;x=s;O.hoverIntent_t=setTimeout(function(){G(N,O)},v.interval)}},I=function(N,O){O.hoverIntent_t=clearTimeout(O.hoverIntent_t);O.hoverIntent_s=0;return v.out.apply(O,[N])};j=function(N){for(var O=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
205 (N.type=="mouseover"?N.fromElement:N.toElement)||N.relatedTarget;O&&O!=this;)try{O=O.parentNode}catch(Q){O=this}if(O==this)return false;var P=jQuery.extend({},N),R=this;if(R.hoverIntent_t)R.hoverIntent_t=clearTimeout(R.hoverIntent_t);if(N.type=="mouseover"){r=P.pageX;x=P.pageY;g(R).bind("mousemove",C);if(R.hoverIntent_s!=1)R.hoverIntent_t=setTimeout(function(){G(P,R)},v.interval)}else{g(R).unbind("mousemove",C);if(R.hoverIntent_s==1)R.hoverIntent_t=setTimeout(function(){I(P,R)},v.timeout)}};return this.mouseover(j).mouseout(j)}})(jQuery);
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
206 if(!this.JSON)this.JSON={};(function(){function g(G){return G<10?"0"+G:G}function j(G){p.lastIndex=0;return p.test(G)?'"'+G.replace(p,function(I){var N=x[I];return typeof N==="string"?N:"\\u"+("0000"+I.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+G+'"'}function q(G,I){var N,O,Q=s,P,R=I[G];if(R&&typeof R==="object"&&typeof R.toJSON==="function")R=R.toJSON(G);if(typeof C==="function")R=C.call(I,G,R);switch(typeof R){case "string":return j(R);case "number":return isFinite(R)?String(R):"null";case "boolean":case "null":return String(R);
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
207 case "object":if(!R)return"null";s+=r;P=[];if(Object.prototype.toString.apply(R)==="[object Array]"){O=R.length;for(G=0;G<O;G+=1)P[G]=q(G,R)||"null";I=P.length===0?"[]":s?"[\n"+s+P.join(",\n"+s)+"\n"+Q+"]":"["+P.join(",")+"]";s=Q;return I}if(C&&typeof C==="object"){O=C.length;for(G=0;G<O;G+=1){N=C[G];if(typeof N==="string")if(I=q(N,R))P.push(j(N)+(s?": ":":")+I)}}else for(N in R)if(Object.hasOwnProperty.call(R,N))if(I=q(N,R))P.push(j(N)+(s?": ":":")+I);I=P.length===0?"{}":s?"{\n"+s+P.join(",\n"+s)+
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
208 "\n"+Q+"}":"{"+P.join(",")+"}";s=Q;return I}}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+g(this.getUTCMonth()+1)+"-"+g(this.getUTCDate())+"T"+g(this.getUTCHours())+":"+g(this.getUTCMinutes())+":"+g(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var v=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
209 p=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s,r,x={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},C;if(typeof JSON.stringify!=="function")JSON.stringify=function(G,I,N){var O;r=s="";if(typeof N==="number")for(O=0;O<N;O+=1)r+=" ";else if(typeof N==="string")r=N;if((C=I)&&typeof I!=="function"&&(typeof I!=="object"||typeof I.length!=="number"))throw new Error("JSON.stringify");return q("",
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
210 {"":G})};if(typeof JSON.parse!=="function")JSON.parse=function(G,I){function N(O,Q){var P,R,ea=O[Q];if(ea&&typeof ea==="object")for(P in ea)if(Object.hasOwnProperty.call(ea,P)){R=N(ea,P);if(R!==undefined)ea[P]=R;else delete ea[P]}return I.call(O,Q,ea)}v.lastIndex=0;if(v.test(G))G=G.replace(v,function(O){return"\\u"+("0000"+O.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(G.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
211 "]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){G=eval("("+G+")");return typeof I==="function"?N({"":G},""):G}throw new SyntaxError("JSON.parse");}})();(function(g,j){function q(p,s){var r=p.nodeName.toLowerCase();if("area"===r){s=p.parentNode;r=s.name;if(!p.href||!r||s.nodeName.toLowerCase()!=="map")return false;p=g("img[usemap=#"+r+"]")[0];return!!p&&v(p)}return(/input|select|textarea|button|object/.test(r)?!p.disabled:"a"==r?p.href||s:s)&&v(p)}function v(p){return!g(p).parents().andSelf().filter(function(){return g.curCSS(this,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
212 "visibility")==="hidden"||g.expr.filters.hidden(this)}).length}g.ui=g.ui||{};if(!g.ui.version){g.extend(g.ui,{version:"1.8.17",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
213 g.fn.extend({propAttr:g.fn.prop||g.fn.attr,_focus:g.fn.focus,focus:function(p,s){return typeof p==="number"?this.each(function(){var r=this;setTimeout(function(){g(r).focus();s&&s.call(r)},p)}):this._focus.apply(this,arguments)},scrollParent:function(){var p;p=g.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(g.curCSS(this,"position",1))&&/(auto|scroll)/.test(g.curCSS(this,"overflow",
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
214 1)+g.curCSS(this,"overflow-y",1)+g.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(g.curCSS(this,"overflow",1)+g.curCSS(this,"overflow-y",1)+g.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!p.length?g(document):p},zIndex:function(p){if(p!==j)return this.css("zIndex",p);if(this.length){p=g(this[0]);for(var s;p.length&&p[0]!==document;){s=p.css("position");if(s==="absolute"||s==="relative"||s==="fixed"){s=parseInt(p.css("zIndex"),
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
215 10);if(!isNaN(s)&&s!==0)return s}p=p.parent()}}return 0},disableSelection:function(){return this.bind((g.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(p){p.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});g.each(["Width","Height"],function(p,s){function r(I,N,O,Q){g.each(x,function(){N-=parseFloat(g.curCSS(I,"padding"+this,true))||0;if(O)N-=parseFloat(g.curCSS(I,"border"+this+"Width",true))||0;if(Q)N-=parseFloat(g.curCSS(I,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
216 "margin"+this,true))||0});return N}var x=s==="Width"?["Left","Right"]:["Top","Bottom"],C=s.toLowerCase(),G={innerWidth:g.fn.innerWidth,innerHeight:g.fn.innerHeight,outerWidth:g.fn.outerWidth,outerHeight:g.fn.outerHeight};g.fn["inner"+s]=function(I){if(I===j)return G["inner"+s].call(this);return this.each(function(){g(this).css(C,r(this,I)+"px")})};g.fn["outer"+s]=function(I,N){if(typeof I!=="number")return G["outer"+s].call(this,I);return this.each(function(){g(this).css(C,r(this,I,true,N)+"px")})}});
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
217 g.extend(g.expr[":"],{data:function(p,s,r){return!!g.data(p,r[3])},focusable:function(p){return q(p,!isNaN(g.attr(p,"tabindex")))},tabbable:function(p){var s=g.attr(p,"tabindex"),r=isNaN(s);return(r||s>=0)&&q(p,!r)}});g(function(){var p=document.body,s=p.appendChild(s=document.createElement("div"));g.extend(s.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});g.support.minHeight=s.offsetHeight===100;g.support.selectstart="onselectstart"in s;p.removeChild(s).style.display="none"});g.extend(g.ui,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
218 {plugin:{add:function(p,s,r){p=g.ui[p].prototype;for(var x in r){p.plugins[x]=p.plugins[x]||[];p.plugins[x].push([s,r[x]])}},call:function(p,s,r){if((s=p.plugins[s])&&p.element[0].parentNode)for(var x=0;x<s.length;x++)p.options[s[x][0]]&&s[x][1].apply(p.element,r)}},contains:function(p,s){return document.compareDocumentPosition?p.compareDocumentPosition(s)&16:p!==s&&p.contains(s)},hasScroll:function(p,s){if(g(p).css("overflow")==="hidden")return false;s=s&&s==="left"?"scrollLeft":"scrollTop";var r=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
219 false;if(p[s]>0)return true;p[s]=1;r=p[s]>0;p[s]=0;return r},isOverAxis:function(p,s,r){return p>s&&p<s+r},isOver:function(p,s,r,x,C,G){return g.ui.isOverAxis(p,r,C)&&g.ui.isOverAxis(s,x,G)}})}})(jQuery);(function(g,j){if(g.cleanData){var q=g.cleanData;g.cleanData=function(p){for(var s=0,r;(r=p[s])!=null;s++)try{g(r).triggerHandler("remove")}catch(x){}q(p)}}else{var v=g.fn.remove;g.fn.remove=function(p,s){return this.each(function(){if(!s)if(!p||g.filter(p,[this]).length)g("*",this).add([this]).each(function(){try{g(this).triggerHandler("remove")}catch(r){}});
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
220 return v.call(g(this),p,s)})}}g.widget=function(p,s,r){var x=p.split(".")[0],C;p=p.split(".")[1];C=x+"-"+p;if(!r){r=s;s=g.Widget}g.expr[":"][C]=function(G){return!!g.data(G,p)};g[x]=g[x]||{};g[x][p]=function(G,I){arguments.length&&this._createWidget(G,I)};s=new s;s.options=g.extend(true,{},s.options);g[x][p].prototype=g.extend(true,s,{namespace:x,widgetName:p,widgetEventPrefix:g[x][p].prototype.widgetEventPrefix||p,widgetBaseClass:C},r);g.widget.bridge(p,g[x][p])};g.widget.bridge=function(p,s){g.fn[p]=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
221 function(r){var x=typeof r==="string",C=Array.prototype.slice.call(arguments,1),G=this;r=!x&&C.length?g.extend.apply(null,[true,r].concat(C)):r;if(x&&r.charAt(0)==="_")return G;x?this.each(function(){var I=g.data(this,p),N=I&&g.isFunction(I[r])?I[r].apply(I,C):I;if(N!==I&&N!==j){G=N;return false}}):this.each(function(){var I=g.data(this,p);I?I.option(r||{})._init():g.data(this,p,new s(r,this))});return G}};g.Widget=function(p,s){arguments.length&&this._createWidget(p,s)};g.Widget.prototype={widgetName:"widget",
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
222 widgetEventPrefix:"",options:{disabled:false},_createWidget:function(p,s){g.data(s,this.widgetName,this);this.element=g(s);this.options=g.extend(true,{},this.options,this._getCreateOptions(),p);var r=this;this.element.bind("remove."+this.widgetName,function(){r.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return g.metadata&&g.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
223 this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(p,s){var r=p;if(arguments.length===0)return g.extend({},this.options);if(typeof p==="string"){if(s===j)return this.options[p];r={};r[p]=s}this._setOptions(r);return this},_setOptions:function(p){var s=this;g.each(p,function(r,x){s._setOption(r,x)});return this},_setOption:function(p,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
224 s){this.options[p]=s;if(p==="disabled")this.widget()[s?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",s);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(p,s,r){var x,C=this.options[p];r=r||{};s=g.Event(s);s.type=(p===this.widgetEventPrefix?p:this.widgetEventPrefix+p).toLowerCase();s.target=this.element[0];if(p=s.originalEvent)for(x in p)x in s||
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
225 (s[x]=p[x]);this.element.trigger(s,r);return!(g.isFunction(C)&&C.call(this.element[0],s,r)===false||s.isDefaultPrevented())}}})(jQuery);(function(g){var j=false;g(document).mouseup(function(){j=false});g.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var q=this;this.element.bind("mousedown."+this.widgetName,function(v){return q._mouseDown(v)}).bind("click."+this.widgetName,function(v){if(true===g.data(v.target,q.widgetName+".preventClickEvent")){g.removeData(v.target,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
226 q.widgetName+".preventClickEvent");v.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(q){if(!j){this._mouseStarted&&this._mouseUp(q);this._mouseDownEvent=q;var v=this,p=q.which==1,s=typeof this.options.cancel=="string"&&q.target.nodeName?g(q.target).closest(this.options.cancel).length:false;if(!p||s||!this._mouseCapture(q))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
227 setTimeout(function(){v.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(q)&&this._mouseDelayMet(q)){this._mouseStarted=this._mouseStart(q)!==false;if(!this._mouseStarted){q.preventDefault();return true}}true===g.data(q.target,this.widgetName+".preventClickEvent")&&g.removeData(q.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(r){return v._mouseMove(r)};this._mouseUpDelegate=function(r){return v._mouseUp(r)};g(document).bind("mousemove."+this.widgetName,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
228 this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);q.preventDefault();return j=true}},_mouseMove:function(q){if(g.browser.msie&&!(document.documentMode>=9)&&!q.button)return this._mouseUp(q);if(this._mouseStarted){this._mouseDrag(q);return q.preventDefault()}if(this._mouseDistanceMet(q)&&this._mouseDelayMet(q))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,q)!==false)?this._mouseDrag(q):this._mouseUp(q);return!this._mouseStarted},_mouseUp:function(q){g(document).unbind("mousemove."+
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
229 this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;q.target==this._mouseDownEvent.target&&g.data(q.target,this.widgetName+".preventClickEvent",true);this._mouseStop(q)}return false},_mouseDistanceMet:function(q){return Math.max(Math.abs(this._mouseDownEvent.pageX-q.pageX),Math.abs(this._mouseDownEvent.pageY-q.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
230 _mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);(function(g){g.ui=g.ui||{};var j=/left|center|right/,q=/top|center|bottom/,v={},p=g.fn.position,s=g.fn.offset;g.fn.position=function(r){if(!r||!r.of)return p.apply(this,arguments);r=g.extend({},r);var x=g(r.of),C=x[0],G=(r.collision||"flip").split(" "),I=r.offset?r.offset.split(" "):[0,0],N,O,Q;if(C.nodeType===9){N=x.width();O=x.height();Q={top:0,left:0}}else if(C.setTimeout){N=x.width();O=x.height();
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
231 Q={top:x.scrollTop(),left:x.scrollLeft()}}else if(C.preventDefault){r.at="left top";N=O=0;Q={top:r.of.pageY,left:r.of.pageX}}else{N=x.outerWidth();O=x.outerHeight();Q=x.offset()}g.each(["my","at"],function(){var P=(r[this]||"").split(" ");if(P.length===1)P=j.test(P[0])?P.concat(["center"]):q.test(P[0])?["center"].concat(P):["center","center"];P[0]=j.test(P[0])?P[0]:"center";P[1]=q.test(P[1])?P[1]:"center";r[this]=P});if(G.length===1)G[1]=G[0];I[0]=parseInt(I[0],10)||0;if(I.length===1)I[1]=I[0];I[1]=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
232 parseInt(I[1],10)||0;if(r.at[0]==="right")Q.left+=N;else if(r.at[0]==="center")Q.left+=N/2;if(r.at[1]==="bottom")Q.top+=O;else if(r.at[1]==="center")Q.top+=O/2;Q.left+=I[0];Q.top+=I[1];return this.each(function(){var P=g(this),R=P.outerWidth(),ea=P.outerHeight(),ta=parseInt(g.curCSS(this,"marginLeft",true))||0,ua=parseInt(g.curCSS(this,"marginTop",true))||0,va=R+ta+(parseInt(g.curCSS(this,"marginRight",true))||0),Ea=ea+ua+(parseInt(g.curCSS(this,"marginBottom",true))||0),fa=g.extend({},Q),Ba;if(r.my[0]===
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
233 "right")fa.left-=R;else if(r.my[0]==="center")fa.left-=R/2;if(r.my[1]==="bottom")fa.top-=ea;else if(r.my[1]==="center")fa.top-=ea/2;if(!v.fractions){fa.left=Math.round(fa.left);fa.top=Math.round(fa.top)}Ba={left:fa.left-ta,top:fa.top-ua};g.each(["left","top"],function(xa,Oa){g.ui.position[G[xa]]&&g.ui.position[G[xa]][Oa](fa,{targetWidth:N,targetHeight:O,elemWidth:R,elemHeight:ea,collisionPosition:Ba,collisionWidth:va,collisionHeight:Ea,offset:I,my:r.my,at:r.at})});g.fn.bgiframe&&P.bgiframe();P.offset(g.extend(fa,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
234 {using:r.using}))})};g.ui.position={fit:{left:function(r,x){var C=g(window);C=x.collisionPosition.left+x.collisionWidth-C.width()-C.scrollLeft();r.left=C>0?r.left-C:Math.max(r.left-x.collisionPosition.left,r.left)},top:function(r,x){var C=g(window);C=x.collisionPosition.top+x.collisionHeight-C.height()-C.scrollTop();r.top=C>0?r.top-C:Math.max(r.top-x.collisionPosition.top,r.top)}},flip:{left:function(r,x){if(x.at[0]!=="center"){var C=g(window);C=x.collisionPosition.left+x.collisionWidth-C.width()-
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
235 C.scrollLeft();var G=x.my[0]==="left"?-x.elemWidth:x.my[0]==="right"?x.elemWidth:0,I=x.at[0]==="left"?x.targetWidth:-x.targetWidth,N=-2*x.offset[0];r.left+=x.collisionPosition.left<0?G+I+N:C>0?G+I+N:0}},top:function(r,x){if(x.at[1]!=="center"){var C=g(window);C=x.collisionPosition.top+x.collisionHeight-C.height()-C.scrollTop();var G=x.my[1]==="top"?-x.elemHeight:x.my[1]==="bottom"?x.elemHeight:0,I=x.at[1]==="top"?x.targetHeight:-x.targetHeight,N=-2*x.offset[1];r.top+=x.collisionPosition.top<0?G+I+
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
236 N:C>0?G+I+N:0}}}};if(!g.offset.setOffset){g.offset.setOffset=function(r,x){if(/static/.test(g.curCSS(r,"position")))r.style.position="relative";var C=g(r),G=C.offset(),I=parseInt(g.curCSS(r,"top",true),10)||0,N=parseInt(g.curCSS(r,"left",true),10)||0;G={top:x.top-G.top+I,left:x.left-G.left+N};"using"in x?x.using.call(r,G):C.css(G)};g.fn.offset=function(r){var x=this[0];if(!x||!x.ownerDocument)return null;if(r)return this.each(function(){g.offset.setOffset(this,r)});return s.call(this)}}(function(){var r=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
237 document.getElementsByTagName("body")[0],x=document.createElement("div"),C,G;C=document.createElement(r?"div":"body");G={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};r&&jQuery.extend(G,{position:"absolute",left:"-1000px",top:"-1000px"});for(var I in G)C.style[I]=G[I];C.appendChild(x);G=r||document.documentElement;G.insertBefore(C,G.firstChild);x.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;";x=g(x).offset(function(N,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
238 O){return O}).offset();C.innerHTML="";G.removeChild(C);r=x.top+x.left+(r?2E3:0);v.fractions=r>21&&r<22})()})(jQuery);if(typeof jQuery.ui.jig==="undefined")jQuery.ui.jig={};jQuery.ui.jig._decodeJSON=function(g){try{return eval("({"+g+"})")}catch(j){jQuery.ui.jig._isConsole("error")&&console.error("Error parsing jig metatag, or jig-dataconfig. Problem with JSON string: '"+g+"'. Error: "+j.message+".")}};jQuery.ui.jig._setLocalConfig=function(g,j){if(g=g.attr("config")){g=jQuery.ui.jig._decodeJSON(g);
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
239 jQuery.extend(j,g)}return j};jQuery.ui.jig._generateId=function(g,j){j=typeof j!=="undefined"?"-"+j:"";arguments.callee.i++;for(var q="ui-"+g+j+"-"+arguments.callee.i;document.getElementById(q);){arguments.callee.i++;q="ui-"+g+j+arguments.callee.i}return q};jQuery.ui.jig._generateId.i=0;jQuery.ui.jig._isConsole=function(g){var j=typeof window.console!=="undefined"||false;if(j)var q=typeof window.console[g]!=="undefined"||false;return j&&q?true:false};jQuery.ui.jig._getFncFromStr=function(g){var j=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
240 null,q=typeof g;if(q==="function")j=g;else if(q==="string"){g=g.replace(/^[^:]*:\s*/,"").replace(/\s*$/,"").split(".");if(j=window[g[0]])for(q=1;q<g.length;q++){j=j[g[q]];if(!j){j=null;break}}else j=null}return j};jQuery.ui.jig.registerPageHeightWatcher=function(){var g=jQuery(document.body);if(!g.data("hasHeightWatcher")){g.data("_lastHeight",null);g.data("hasHeightWatcher",true);g.data("heightWatcher",window.setInterval(function(){jQuery.ui.jig.watchPageHeight()},250))}};jQuery.ui.jig.watchPageHeight=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
241 function(){var g=jQuery(document.body),j=g.height(),q=g.data("_lastHeight");if(q!==j){q&&g.trigger("ncbijigpageheightchanged");g.data("_lastHeight",j)}};jQuery.ui.jig.requiresLoginURL="/account/signin/?inlinelogin=true";jQuery.ui.jig.requiresLoginWidth=405;jQuery.ui.jig.requiresLoginHeight=560;jQuery.ui.jig.embeddedIframe=null;jQuery.ui.jig._requiresLoginIframe=null;jQuery.ui.jig.requiresLogin=function(g){function j(){g&&g(Ka(),false)}function q(){if(!jQuery.ui.jig.embeddedIframe){var v=jQuery('<div style="display:none"><a href="#jig-ncbi_requires_login">Inline Login Component</a></div><div id="jig-ncbi_requires_login" title="My NCBI Sign In"><iframe style="width:'+
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
242 jQuery.ui.jig.requiresLoginWidth+"px;height:"+jQuery.ui.jig.requiresLoginHeight+'px;" src="'+jQuery.ui.jig.requiresLoginURL+'"></iframe></div>').css("display","none").appendTo(document.body,true);v.find("a").attr("href","#jig-ncbi_requires_login").ncbidialog({width:"auto",height:"auto"}).ncbidialog("open");jQuery.ui.jig._requiresLoginIframe=v;jQuery.ui.jig.waitForLoginCookie(function(p){var s=p||Ka()||" ";try{jQuery("#myncbiusername").show();jQuery("#mnu").html(s);jQuery("#sign_in").hide();jQuery("#sign_out, #myncbi").show();
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
243 v.find("a:eq(0)").ncbidialog("close");document.body.removeChild(v.get(0))}catch(r){}g&&g(p,true,window.location.href)})}}jQuery.ui.jig._requiresLoginIframe&&jQuery.ui.jig._requiresLoginIframe.hide().remove();jQuery.ui.jig.checkIfLoggedIn(j,q)};jQuery.ui.jig.getElementWidgets=function(g,j){g=jQuery(g).data();var q=[];for(var v in g)g[v]instanceof jQuery.ui[j]&&q.push(g[v]);return q};jQuery.ui.jig._isLoggedIn=null;jQuery.ui.jig.checkIfLoggedIn=function(g,j){var q=jQuery.ui.jig._isLoggedIn;Ka()===null?
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
244 j():window.setTimeout(function(){q===null?jQuery.ajax({url:"https://"+window.location.hostname+(window.location.port?":"+window.location.port:"")+"/account/ajax/issignedin/?callback=?",dataType:"jsonp",jsonpCallback:"issignedin",cache:false,success:function(v){v=v&&v.is_signed_in;jQuery.ui.jig._isLoggedIn=v;jQuery.ui.jig._checkIfLoggedInNotify(v,g,j)},error:function(){jQuery.ui.jig._isLoggedIn=null;jQuery.ui.jig._checkIfLoggedInNotify(false,g,j)}}):jQuery.ui.jig._checkIfLoggedInNotify(q,g,j)},50)};
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
245 jQuery.ui.jig._autoCheckState=function(){function g(){jQuery.ui.jig.checkIfLoggedIn(jQuery.ui.jig._autoCheckState,jQuery.ui.jig._autoCheckState)}jQuery.ui.jig._autoCheckStateTimer&&window.clearTimeout(jQuery.ui.jig._autoCheckStateTimer);jQuery.ui.jig._isLoggedIn=null;jQuery.ui.jig._autoCheckStateTimer=window.setTimeout(g,6E5)};jQuery.ui.jig._checkIfLoggedInNotify=function(g,j,q){if(g&&j)j();else!g&&q&&q();g||jQuery.ui.jig._removeLoggedInFlag()};jQuery.ui.jig.waitForLoginCookie_logincheck=false;jQuery.ui.jig.waitForLoginCookie=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
246 function(g){var j=function(){var q=jQuery.cookie("WebCubbyUser");q&&q.indexOf("logged-in=true")>-1?window.setTimeout(g,30):window.setTimeout(j,10)};if(jQuery.ui.jig.waitForLoginCookie_logincheck&&jQuery.ui.jig._isLoggedIn===null)jQuery.ui.jig._isLoggedIn_wait(j);else{jQuery.ui.jig.waitForLoginCookie_logincheck=true;window.setTimeout(function(){jQuery.ui.jig.checkIfLoggedIn(j,j)},50)}};jQuery.ui.jig._isLoggedIn_wait=function(g){jQuery.ui.jig._isLoggedIn!==null?g():window.setTimeout(function(){jQuery.ui.jig._isLoggedIn_wait(g)},
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
247 10)};jQuery.ui.jig._removeLoggedInFlag=function(){var g=jQuery.cookie("WebCubbyUser");if(g&&g.indexOf("logged-in=true")>-1){var j=jQuery.cookie("lout");if(!(j&&new Date-parseInt(j,10)<1E4)){g=g.replace("logged-in=true","logged-in=false");jQuery.cookie("WebCubbyUser",g,{path:"/",domain:".nih.gov"});jQuery.cookie("lout",(new Date).getTime())}}};jQuery(document).on("ncbiajaxcomplete",function(g,j){(g=jQuery("html").data("ncbiajaxcompleteCalls"))||(g=[]);g.push(j.ncbiajaxname);jQuery("html").data("ncbiajaxcompleteCalls",
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
248 g)});var Fc=jQuery.ajax;jQuery.ajax=function(){var g=arguments[1];if(g&&g.ncbiajaxname){var j=function(){jQuery(document).trigger("ncbiajaxcomplete",{ncbiajaxname:g.ncbiajaxname})};if(g.complete){var q=g.complete;g.complete=function(){var v=q.apply(this,arguments);j();return v}}else g.complete=j}return Fc.apply(this,arguments)};(function(){jQuery(window).load(function(){jQuery.ui.jig.hasOnloadFired=true});jQuery.ui.jig.hasOnloadFired=false})();var ja=Z.ui;if(typeof ja.jig==="undefined")ja.jig={};
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
249 var Y=ja.jig;document.location.search.search(/jig_debug=true/i)!==-1&&typeof window.console==="undefined"&&Z(function(){Z("body").prepend('<div style="border: 2px solid #ccc; height: 150px; overflow:auto;"><h2 style="color:red">jig Console</h2><ul id="jig-cons"></ul></div>');console={};for(var g=["log","info","warn","group","groupEnd"],j=function(p){Z("#jig-cons").append("<li>"+p+"</li>")},q=0;q<g.length;q++){var v=g[q];if(typeof console[v]==="undefined")console[v]=j}});document.compatMode==="BackCompat"&&
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
250 Y._isConsole("warn")&&console.warn("Document is in quirks mode. jig widgets only work properly when in standards mode. Please add or correct your DOCTYPE definition in your page.");Y.scanned=false;Y.version="1.13";Y._jsExt=null;Y._cssExt=null;Y._foundWidgets={};Y._widgDict={ncbiaccordion:new W({name:"ncbiaccordion",selector:"div.jig-ncbiaccordion, div.jig-accordion",overrideDefaults:{autoHeight:false,header:":header"}}),ncbibutton:new W({name:"ncbibutton",selector:".jig-ncbibutton, .jig-ncbibutton-gray, .jig-ncbibutton-blue, .jig-ncbibutton-copper",
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
251 interactions:["button"]}),ncbibuttonset:new W({name:"ncbibuttonset",selector:".jig-ncbibuttonset"}),ncbibasicmenu:new W({name:"ncbibasicmenu",selector:".jig-ncbibasicmenu"}),ncbimenu:new W({name:"ncbimenu",selector:"ul.jig-ncbimenu",dependsOn:["ncbibasicmenu"]}),ncbilocalnav:new W({name:"ncbilocalnav",selector:"ul.jig-ncbilocalnav",dependsOn:["ncbimenu"]}),ncbidatepicker:new W({name:"ncbidatepicker",selector:"input.jig-ncbidatepicker"}),ncbielastictextarea:new W({name:"ncbielastictextarea",selector:"textarea.jig-ncbielastictextarea"}),
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
252 ncbidialog:new W({name:"ncbidialog",selector:"a.jig-ncbidialog, button.jig-ncbidialog, input.jig-ncbidialog, textarea.jig-ncbidialog",interactions:["draggable","resizable"],overrideDefaults:{autoOpen:false}}),ncbiautocomplete:new W({name:"ncbiautocomplete",selector:'input[type="text"].jig-ncbiautocomplete,input[type="search"].jig-ncbiautocomplete'}),ncbigrid:new W({name:"ncbigrid",selector:"div.jig-ncbigrid table,div.jig-ncbigrid-scroll table,table.jig-ncbigrid,table.jig-ncbigrid-scroll",dependsOn:["ncbipopper"]}),
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
253 ncbiservergrid:new W({name:"ncbiservergrid",selector:"div.jig-ncbiservergrid table,div.jig-ncbiservergrid-scroll table,table.jig-ncbiservergrid,table.jig-ncbiservergrid-scroll",dependsOn:["ncbigrid"]}),ncbilinkedselects:new W({name:"ncbilinkedselects",selector:"select.jig-ncbilinkedselects"}),ncbipopper:new W({name:"ncbipopper",selector:".jig-ncbipopper",dependsOn:["ncbibutton"]}),ncbislideshow:new W({name:"ncbislideshow",selector:"div.jig-ncbislideshow"}),ncbitoggler:new W({name:"ncbitoggler",selector:"a.jig-ncbitoggler,a.jig-ncbitoggler-open,a.ui-ncbitoggler,a.ui-ncbitoggler-open"}),
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
254 ncbitree_base:new W({name:"ncbitree_base",selector:"ul.jig-ncbitree_base"}),ncbitree:new W({name:"ncbitree",selector:"ul.jig-ncbitree",dependsOn:["ncbitree_base"]}),ncbitabs:new W({name:"ncbitabs",selector:"div.jig-ncbitabs, div.jig-tabs, "}),ncbilinksmenu:new W({name:"ncbilinksmenu",selector:".jig-ncbilinksmenu",dependsOn:["ncbipopper"]}),ncbiclearbutton:new W({name:"ncbiclearbutton",selector:".jig-ncbiclearbutton"}),ncbiplaceholder:new W({name:"ncbiplaceholder",selector:"input[placeholder], textarea[placeholder]"}),
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
255 ncbiexpander:new W({name:"ncbiexpander",selector:".jig-ncbiexpander"}),ncbiselect:new W({name:"ncbiselect",selector:".jig-ncbiselect"}),ncbiinpagenav:new W({name:"ncbiinpagenav",selector:".jig-ncbiinpagenav"}),ncbismoothscroll:new W({name:"ncbismoothscroll",selector:".jig-ncbismoothscroll"}),ncbispinbox:new W({name:"ncbispinbox",selector:'[type="number"]'}),ncbiformvalidator:new W({name:"ncbiformvalidator",selector:"form"}),ncbihelppopper:new W({name:"ncbihelppopper",selector:".jig-ncbihelppopper"}),
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
256 ncbihelpwindow:new W({name:"ncbihelpwindow",selector:"a.jig-ncbihelpwindow"}),ncbiautofocus:new W({name:"ncbiautofocus",selector:".jig-ncbiautofocus"}),ncbihistogram:new W({name:"ncbihistogram",selector:".jig-ncbihistogram"}),ncbisetswitch:new W({name:"ncbisetswitch",selector:".jig-ncbisetswitch",dependsOn:["ncbilinksmenu"]}),ncbiexternallink:new W({name:"ncbiexternallink",selector:"body",dependsOn:["ncbipopper"]}),ncbiactivevalidation:new W({name:"ncbiactivevalidation",selector:".jig-ncbiactivevalidation"})};
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
257 var qa=Y._widgDict,Ca=[];for(var ka in qa)Ca.push(ka);var Gc=["draggable","resizable","sortable"];Y.scanjig=function(g,j){var q,v;if(j){v=j.widgets||Ca;q=j.configs||{}}else{q={};v=Ca}for(var p=0;p<v.length;p++){g=g||Z(document.body);var s=v[p];if(!(Ja&&Z.inArray(s,Xa)===-1)){var r=ja[s];if(typeof r==="undefined"&&!Y.scanned)Y._isConsole("warn")&&console.warn('jig: widget "'+s+'" does not exist. Check documentation (http://iwebdev/core/jig/ for correct name');else{!Y.scanned&&typeof r._customLocalConfig===
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
258 "undefined"&&function(I,N,O){I.prototype._create=function(){var Q;(Q=this.element.attr("config"))&&Z.ui.jig._isConsole("warn")&&console.warn('The use of the "config" attribute to set options on '+O+' is deprecated. Use "data-jigconfig" instead.');Q||(Q=this.element.data("jigconfig"));if(Q){Q=typeof Q==="string"?ja.jig._decodeJSON(Q):Q;Z.extend(this.options,Q)}if(O==="droppable"){jQuery(this.options.dragEls);var P=qa.droppable.callbacks[this.options.dropCallback];typeof P!=="undefined"&&this._setData("drop",
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
259 function(){P()})}if((Q=qa[O].interactions||null)&&Q.length>0){Q="";if(this.options.draggable&&!ja.draggable)Q+='<script type="text/javascript" src="/core/ui/'+ja.version+'/development-bundle/ui/jquery.ui.draggable.js"><\/script>';if(this.options.resizable&&!ja.resizable)Q+='<script type="text/javascript" src="/core/ui/'+ja.version+'/development-bundle/ui/jquery.ui.resizable.js"><\/script>';Z("head").append(Q)}N.apply(this,[]);Y._foundWidgets[O]=(Y._foundWidgets[O]||0)+1}}(r,r.prototype._create,s);
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
260 (function(I){r.getSelector=function(){return qa[I].selector}})(s);j={};for(var x in q)if(x===s)j=q[x];var C=Hc(Ic(s))||{};if(typeof C.contextNode!=="undefined")g=Z(C.contextNode);var G=jQuery.extend(C,j);j=qa[s].overrideDefaults;typeof j!=="undefined"&&Z.extend(G,j);j=ja[s].getSelector();C=Z(g);j=C.is(j)?C:C.find(j);j.length>0&&j.each(function(){var I=jQuery(this);if(!I.data("jigscanned"+s)){I.data("jigscanned"+s,true);I[s](G)}})}}}Y.scanned=true};Y.scan=Y.scanjig;var ha=["after","before","append",
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
261 "html","prepend"];for(ka=0;ka<ha.length;ka++){var Da=ha[ka];origMethod=Z.fn[Da];(function(g,j){Z.fn[j]=function(q,v){q=g.apply(this,[q]);if(v)j!=="after"&&j!=="before"?Z.ui.jig.scan(q,v):Z.ui.jig.scan(q.parent(),v);return q}})(origMethod,Da)}var Jc=/(.*\/)?js\/jig(?:\.nojquery)?(\.min)?\.js$/;Z("script").each(function(){var g=Z(this);if(g=Z.trim(g.attr("src")))if(g=g.match(Jc)){Y._baseURL=g[1]||"";if(g[2]===".min"){Y._isMin=true;Y._jsExt=".min.js";Y._cssExt=".min.css"}else{Y._isMin=false;Y._jsExt=
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
262 ".js";Y._cssExt=".css"}return false}});var pa=Y._baseURL;pa=Y._baseURL;var Ma=Y._jsExt,La=Y._cssExt,Ic=function(g){var j=Ya.length;if(j>0)for(var q=0;q<j;q++){var v=Ya[q],p=Z.trim(v.getAttribute("name"));if(g===p)return v}},Hc=function(g){g=Z(g);var j=g.attr("content");if(j){g.attr("name");return ja.jig._decodeJSON(j)}},Kc=function(g){document.write('<link type="text/css" rel="stylesheet" href="'+pa+"css/jquery.ui."+g+La+'"/>')},Db=function(g){document.write('<script type="text/javascript" src="'+
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
263 pa+"js/jquery.ui."+g+Ma+'"><\/script>')};ka=function(){Db("widgets");Kc("widgets");Z(document).ready(function(){Y.scan()})};document.write('<link rel="stylesheet" type="text/css" href="'+pa+"css/jig.core.theme"+La+'"/>');var Ja=null,Ya=[];Z("head").find("meta").each(function(){var g=Z.trim(Z(this).attr("name"));if(g.search(/^jig$/)!==-1)Ja=this;Z.inArray(g,Ca)!==-1&&Ya.push(this)});if(Ja){var Xa=Ja.getAttribute("content").split(/ +|, ?|;/),Eb=[];for(ka=0;ka<Xa.length;ka++){ha=Xa[ka];Da=Z.inArray(ha,
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
264 Ca)!==-1?true:false;var Fb=Z.inArray(ha,Gc)!==-1?true:false;if(!Da&&!Fb){ha='jig error: No widget with the name "'+ha+'". Check documentation at http://iwebdev/core/jig for proper name, and set meta tag accordingly';typeof window.console!=="undefined"&&typeof console.warn!=="undefined"?console.warn(ha):alert(ha)}else{if(Da){Eb.push(ha);qa[ha].addToPage()}Fb&&Db(ha)}}Z(function(){Y.scan(null,{widgets:Eb})})}else ka();window.location.host.indexOf("http://dev")!==-1&&jQuery(window).load(function(){if(typeof ncbi!==
ffe82516a83c add trimmed down html example
Jan Kanis <jan.code@jankanis.nl>
parents:
diff changeset
265 "undefined"&&ncbi.sg){Y._foundWidgets.jigwidgets="dev";Y._foundWidgets.jigversion=Y.version;ncbi.sg.ping(Y._foundWidgets)}})}})();