Skip to content

Latest commit

 

History

History
255 lines (254 loc) · 16 KB

templating.rst

File metadata and controls

255 lines (254 loc) · 16 KB

table>a ",d=p.getElementsByTagName(""),e=p.getElementsByTagName("a ")[0];if(!d||!d.length||!e){return{}}g=c.createElement("select"),h=g.a ppendChild(c.createElement("option")),i=p.getElementsByTagName("input" )[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElemen tsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("li nk").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e .getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),css Float:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected ,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").e nctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<: nav> ",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpan do:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,re liableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMod e==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked ,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b. deleteExpando=!1}!p.addEventListener&&&&(p.attachEvent("onclick",funct ion(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.cr eateElement("input"),i.value="t",i.setAttribute("type","radio"),b.radi oValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribut e("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendCh ild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild. checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if (p.attachEvent){for(n in {submit:1,change:1,focusin:1}){m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"B ubbles"]=o}}j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i ,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="paddi ng:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;hei ght:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q=" ",d=c.createElement("div"),d.style.cssText=s+"width:0;heigh t:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.first Child),p=c.createElement("div"),d.appendChild(p),p.innerHTML=" t ",k=p .getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display ="",k[1].style.display="none",b.reliableHiddenOffsets=o&[0].offsetHeig ht===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l. style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendCh ild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{m arginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefine d"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border =0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b .inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.st yle.overflow="visible",p.innerHTML=" ",b.shrinkWrapBlocks=p.offsetWidt h!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild ,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop !==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position=" fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTo p===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.sty le.position="relative",j.subtractsBorderForOverflowNotVisible=g.offset Top===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getCompu tedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p, null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefine d"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});retu rn b}();var j=/^(?:{.}s)hover(.S+)?b/,C=/^key/,D=/^(?:mouseclic k/,E=/^(?:focusinfocus$)"):null,o=h.indexOf(":")<0?"on"+h:"";if( !e){j=f.cache;for(l in j){j[l].events&[l].events[h]&(c,d,j[l].handle.e lem,!0)}return}c.result=b,c.target|[>+~])(s,s)?( (?:.n))/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g= Object.prototype.toString,h=!1,i=!0,j=/\/g,k=/rn/g,l=/W/;[0,0].sor t(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&!==9){return[]}if(!b||typeof b!="string"){return e}var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exe c(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.l ength>1&(b)){if(w.length===2&[w[0]]){j=y(w[0]+w[1],d,f)}else{j=o.relat ive[w[0]]?[d]:m(w.shift(),d);while(w.length){b=w.shift(),o.relative[b] &&(b+=w.shift()),j=y(b,j,f)}}}else{!f&>1&===9&&!v&(w[0])&&!o.match.ID. test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr ,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(), w.length===1&&(w[0]==="~"||w[0]==="+")&?d.parentNode:d,v),j=n.expr?m.f ilter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length){q=w.p op(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r ,v)}}else{k=w=[]}}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Ar ray]"){if(!u){e.push.apply(e,k)}else{if(d&===1){for(t=0;k[t]!=null;t++ ){k[t]&&(k[t]===!0||k[t].nodeType===1&(d,k[t]))&(j[t])}}else{for(t=0;k [t]!=null;t++){k[t]&[t].nodeType===1&(j[t])}}}}else{s(k,e)}l&&(m(l,h,e ,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h){for(var b=1;b 0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a){return[]}for(e=0,f=o.order.length;e ":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e =0)?c||d.push(h):c&&(b[g]=!1))}return !1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowe rCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a [2].replace(/^+|s/g,"");var b=/(-?)(d)(?:n([+-]?d))?/.exec(a[2 ]==="even"&&"2n"|| a[2]);a[2]=b[1]+(b[2]|selectbutton/i.test (a.nodeName)},focus:function(a){return a===a.ownerDocument.activeEleme nt}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f){return f(a,c,b,d)}if(e==="contains"){retur n(a.textContent|="?e===g|r|n)?)/.source+o.ma tch[r].source.replace(/\(d+)/g,q))}o.match.globalPOS=p;var s=functio n(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);retur n b}return a};try{Array.prototype.slice.call(c.documentElement.childNo des,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]"){Array.prototype.push.apply(d,a)}else{if(typeof a.length=="number"){for(var e=a.length;c ",e.insertBefore(a,e.firstChi ld),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&("id").nodeValue ===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&("id");return a.nodeType===1&&===b}),e.removeChild(a),e=a=null}(),function(){var a=c .createElement("div");a.appendChild(c.createComment("")),a.getElements ByTagName("").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++){c[e].nodeType===1&(c[e])}c=d}return c}),a.innerHTML="",a.firstChild& a.firstChild.getAttribute!="undefined "&("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="