jablonka.czprosek.czf

websvn

Subversion Repositories:
[/] [templates/] [calm/] [star-light/] [moz-behaviors.xml] - Rev 5 Go to most recent revision

Compare with Previous - Blame - Download


<?xml version="1.0" encoding="ISO-8859-1"?>
<bindings xmlns="http://www.mozilla.org/xbl" xmlns:html="http://www.w3.org/1999/xhtml">
<!--
        moz-behaviors.xml - version 1.1 (pre-release) (2005/01/17)
        Copyright 2004-2005, Dean Edwards
        Web: http://dean.edwards.name/moz-behaviors/

        This software is licensed under the CC-GNU LGPL
        Web: http://creativecommons.org/licenses/LGPL/2.1/
-->
<!--
=======================================================================
 TO DO
=======================================================================

hideFocus
fix CSSStyleDeclaration pixel*.__defineGetter__
behaviors FAQ
test Event.returnValue

=======================================================================
 DONE
=======================================================================

styleFloat
allow upper case tags/attributes
support for external JS files
better support for oncontentready/ondocumentready
support for multiple behaviors in css
ActiveXObject

=======================================================================
-->

<!-- add a behavior through css -->
<binding id="behavior" extends="#-moz-behaviors">
<implementation><constructor>
<![CDATA[
addBehavior(0);
]]></constructor></implementation>
</binding>

<binding id="-moz-behaviors">
<implementation><constructor>
<![CDATA[if(!this.addBehavior){
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(c/a))+String.fromCharCode(c%a+161)};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'[\xa1-\xff]+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp(e(c),'g'),k[c]);return p}('¤ ý=-1;ü.Ľ.˘Ž=˘(ł){Ŕ{¨(ł===0){¤ b=Ô(Ą,Ž).î("-˘÷-˘ö");b=b.ą(/^˘ő\\(([^)]*)\\)$/,"$1").˘Ż("#");¨(b){¤ p=b[0].ą(/[^\\/]+$/,"");¤ h=b[1].˘Ż("|");¤ i=h.Ĺ;Ä(i--)Ą.˘Ž(p+h[i])}}¨(!ł)Ł;¨(!°.˛[ł]){¤ S=";";˘ Č(n){¤ t=n.˘ô.đ();Ł t.ˇ(t.˘Ť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Ú.Ĺ;j++)§+=n.Ú[j].˘Ů}}Đ{Ů.Ř(˘Ş(n));¨(Č(n)=="˘Š"){Ć+=˘¨(n)}}}}Ć+=";ű Ç"};˘§();§=˘Ś(ş ˘Ą(§));¤ A=/\\˘Ř\\s+˘×\\s*\\(\\s*(["\'])\\w\\.˘Ö\\1\\s*\\)/˘Ő;§=§.ą(A,"ş ˘Ľ()");§=§.ą(/#/g,"\\\\˘Ô");¤ $=[Ů.˘˘(S)];¤ B=/(\\"[^\\"\\n]+\\")|(\\/[^\\/\\n]+\\/)|(\\{[^\\{\\}]*\\})/g;¤ ˘Ó=/#(\\d+)\\b/g;˘ ˘¤(m){Ł"#"+$.Ř(m)};˘ ˘Ň(m,i){Ł $[i-1]};Ä(B.˘Ń(§)){§=§.ą(B,˘¤)}¤ F=/\\n\\s*˘[^\\n]*\\n/g;¤ ˘Ł=§.˘Đ(F)||[];§=§.ą(F,"");§=˘Ł.˘Ď("#1",§).˘˘(S);¤ i=$.Ĺ;˘Î §=§.ą("#"+i,$[--i]);Ä(i);§+=Ć;°.˛[ł]=ş ˘Ą("¸","˙(Ą){"+§+"}")}°.˛[ł].ţ(Ą,Ą);Ł ý}ż(e){Ł 0}};ü.Ľ.˘Í=˘(c){};°.˛={Ă:[]};˝.Ň("˘Ě",˘(){Ŕ{¤ h=°.˛.Ă;¤ i=h.Ĺ;Ä(i)h[--i]();ű °.˛.Ă}ż(i){}},Ż);Ť.Ľ.Ś("ú",˘(){Ł Ą.ů});Ť.Ľ.­("ú",˘(v){Ą.ů=v});Ť.Ľ.Ś("ř",˘(){Ł Â(Ą.÷)||0});Ť.Ľ.­("ř",˘(v){Ą.÷=v+"Á"});Ť.Ľ.Ś("ö",˘(){Ł Â(Ą.ő)||0});Ť.Ľ.­("ö",˘(v){Ą.ő=v+"Á"});Ť.Ľ.Ś("ô",˘(){Ł Â(Ą.ó)||0});Ť.Ľ.­("ô",˘(v){Ą.ó=v+"Á"});Ť.Ľ.Ś("ň",˘(){Ł Â(Ą.ń)||0});Ť.Ľ.­("ň",˘(v){Ą.ń=v+"Á"});Ŕ{¤ c=Ô(Ą,Ž);¤ t=c.˘Ë}ż(i){}˘Ę{¨(!t){¤ U=/[A-Z]/g;˘ ď(m){Ł"-"+m.đ()};˘ í(p){Ł p.ą(U,ď)};ž(¤ p ˘É Ą.Ó){¨(ĺ Ą.Ó[p]=="˘Č"){Ť.Ľ.Ś(p,˘(){Ł Ą.î(í(p))})}}}}ě.Ľ.Ś("ë",˘(){Ł Ą.ę("*")});ě.Ľ.ź=˘(){Ł °.˘Ç("˘Ć")};Ş.Ľ.Ś("ë",˘(){Ł Ą.ę("*")});Ş.Ľ.Ś("ă",˘(){Ł(Ą.Î==Ą.Ń)?Ž:Ą.Î});Ş.Ľ.Ś("é",˘(){¨(!×.Ö.Ő)×.Ö.Ő=0;¤ u="˘Ĺ"+×.Ö.Ő++;˝[u]=Ą;Ą.Ś("é",˘(){Ł u});Ł u});Ş.Ľ.Ś("˘Ä",˘(){Ł Ô(Ą,Ž)});Ş.Ľ.Ś("˘Ă",˘(){Ł Ą.Ó});Ş.Ľ.Ś("č",˘(){Ł Ą.ç});Ş.Ľ.­("č",˘(v){Ą.ç=v});Ş.Ľ.˘Â=˘(n,h){Ą.Ň(n.ˇ(2),h,Ż)};Ş.Ľ.˘Á=˘(n,h){Ą.˘Ŕ(n.ˇ(2),h,Ż)};Ş.Ľ.ź=˘(){Ł Ą.Ń.ź()};Ş.Ľ.ć=˘(n,e){¨(!e)e=Ą.Ń.ź();e.˘ż(n.ˇ(2),Ż,Ż);Ą.˘ž(e);¨(ĺ Ą[n]=="˘")Ą[n]();Đ ¨(Ą.ś(n))˘˝(Ą.ś(n))};Ş.Ľ.ä=˘(e){Ł ˘ź(e==Ą||(e&&Ą.ä(e.ă)))};Ź.Ľ.Ś("Í",˘(){Ł(Ą.Ď.â==á.ŕ)?Ą.Ď:Ą.Ď.Î});Ź.Ľ.Ś("˘ť",˘(){Ł(Ą.ť=="Ý")?Ą.Ţ:(Ą.ť=="ß")?Ą.Í:Ž});Ź.Ľ.Ś("˘ş",˘(){Ł(Ą.ť=="ß")?Ą.Ţ:(Ą.ť=="Ý")?Ą.Í:Ž});Ź.Ľ.Ś("˘š",˘(){Ł(Ą.Ü==1)?1:(Ą.Ü==2)?4:2});Ź.Ľ.Ś("Ě",˘(){Ł ˘¸});Ź.Ľ.­("Ě",˘(v){¨(Ą.˘ˇ&&!v){Ą.˘ś();Ą.Ś("Ě",˘(){Ł Ż})}});Ź.Ľ.­("˘ľ",˘(v){¨(v)Ą.˘´()});Ź.Ľ.Ś("˘ł",˘(){Ł Ą.˘˛});Ź.Ľ.Ś("˘ą",˘(){Ł Ą.˘°});',95,182,'this|function|return|var|prototype|__defineGetter__|_0|if|_1|HTMLElement|CSSStyleDeclaration|Event|__defineSetter__|null|false|document|replace|behaviorUrns|_2|case|event|getAttribute|slice|element|name|new|type|createEventObject|window|for|catch|try|px|parseInt|__private|while|length|_3|__tmp|_4|_5|value|id|returnValue|srcElement|parentNode|target|else|ownerDocument|addEventListener|style|getComputedStyle|count|callee|arguments|push|_6|childNodes|_7|which|mouseover|relatedTarget|mouseout|ELEMENT_NODE|Node|nodeType|parentElement|contains|typeof|fireEvent|textContent|innerText|uniqueID|getElementsByTagName|all|HTMLDocument|_8|getPropertyValue|_9|toLowerCase|width|pixelWidth|top|pixelTop|height|pixelHeight|left|pixelLeft|cssFloat|styleFloat|delete|Element|_10|call|with|Function|join|_11|_12|XMLHttpRequest|_13|_14|_15|property|_16|indexOf|put|switch|addBehavior|split|layerY|offsetY|layerX|offsetX|stopPropagation|cancelBubble|preventDefault|cancelable|true|button|toElement|fromElement|Boolean|eval|dispatchEvent|initEvent|removeEventListener|removeEvent|attachEvent|runtimeStyle|currentStyle|moz_id|Events|createEvent|string|in|finally|display|load|removeBehavior|do|concat|match|test|_17|_18|x23|gi|XMLHTTP|ActiveXObject|bnew|nodeValue|src|script|documentElement|xml|text|parseFromString|DOMParser|responseText|send|GET|open|lastIndexOf|String|default|defaults|ondocumentready|setTimeout|oncontentready|onevent|handler|attach|method|setAttribute|get|fire|toUpperCase|tagName|url|binding|moz'.split('|'),0,{}))
}]]></constructor></implementation>
</binding>

<binding id="block-netscape6">
<content>
<html:script type="text/javascript"><![CDATA[
// netscape6 does not retain the -moz-binding css property value
//  so we disable moz-behaviors
if (/netscape6/i.test(navigator.userAgent)) {
        document.styleSheets[0].insertRule("*{-moz-binding:none!important}", 0);
}
]]></html:script>
<children/>
</content>
</binding>

<!-- manually attach behaviors to child elements of <table>s -->
<binding id="table">
<implementation><constructor><![CDATA[
        var i, j;
        if (tHead) tHead.addBehavior(0);
        for (i = 0; i < tBodies.length; i++) tBodies[i].addBehavior(0);
        for (i = 0; i < rows.length; i++) {
                for (j = 0; j < rows[i].cells.length; j++) {
                        rows[i].cells[j].addBehavior(0);
                }
        }
        if (tFoot) tFoot.addBehavior(0);
]]></constructor></implementation>
</binding>

</bindings>


Powered by WebSVN 2.2.1