r207995 - www: remove proprietary dbtree.js script from r96013

Jordan Rose jordan_rose at apple.com
Mon May 5 13:09:13 PDT 2014


Gah, thanks, Alp. Anton, does your expandcollapse work here?

Jordan


On May 5, 2014, at 12:53, Alp Toker <alp at nuanti.com> wrote:

> Author: alp
> Date: Mon May  5 14:53:49 2014
> New Revision: 207995
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=207995&view=rev
> Log:
> www: remove proprietary dbtree.js script from r96013
> 
> This minified source code and artwork is copied from a commercial product and
> carries no license information:
> 
>  dbtree.js (7 kb), 25.03.2014 14:51:32
>  Purchase and download DBTree now for only $29.75 $9.75
> 
> It was used by a small TOC which looks fine now as a plain unordered list.
> 
> Removed:
>    cfe/trunk/www/analyzer/images/tree/bullet.gif
>    cfe/trunk/www/analyzer/images/tree/minus.gif
>    cfe/trunk/www/analyzer/images/tree/plus.gif
>    cfe/trunk/www/analyzer/scripts/dbtree.js
> Modified:
>    cfe/trunk/www/analyzer/content.css
>    cfe/trunk/www/analyzer/potential_checkers.html
>    cfe/trunk/www/analyzer/scan-build.html
>    cfe/trunk/www/analyzer/xcode.html
> 
> Modified: cfe/trunk/www/analyzer/content.css
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/content.css?rev=207995&r1=207994&r2=207995&view=diff
> ==============================================================================
> --- cfe/trunk/www/analyzer/content.css (original)
> +++ cfe/trunk/www/analyzer/content.css Mon May  5 14:53:49 2014
> @@ -97,18 +97,3 @@ table.checkers div.functions { margin-to
> table.checkers pre { margin: 1px; font-size: 100%; word-wrap: break-word }
> table.checkers p { margin: 10px 0px 0px 0px; }
> 
> -/* Collapsing Trees: http://dbtree.megalingo.com/web/demo/simple-collapsible-tree.cfm  */
> -#collapsetree, #collapsetree a:link, #collapsetree li a:link, #collapsetree a:visited, #collapsetree li a:visited{color:#000;text-decoration:none}
> -#collapsetree,#collapsetree ul{list-style-type:none; width:auto; margin:0; padding:0}
> -#collapsetree ul{padding-left:20px;display:none;overflow:auto}
> -#collapsetree li ul{margin:0 auto}
> -#collapsetree li{display:block;width:100%;line-height:20px;white-space:nowrap}
> -#collapsetree li a{display:block;padding-left:20px;color:#000;text-decoration:none;background:url(images/tree/bullet.gif) center left no-repeat;white-space:nowrap}
> -#collapsetree li a:hover{text-decoration:underline;background-color:transparent;color:#000}
> -#collapsetree li ul.click{display:block}
> -#collapsetree li.click a{background:url(images/tree/bullet.gif) center left no-repeat}
> -#collapsetree ul li.click a{background:url(images/tree/bullet.gif) center left no-repeat}
> -#collapsetree li a.subMenu,#collapsetree ul li a.subMenu{background:url(images/tree/plus.gif) center left no-repeat}
> -#collapsetree li a.click{background:url(images/tree/minus.gif) center left no-repeat}
> -#collapsetree ul li a.click{background:url(images/tree/minus.gif) center left no-repeat}
> -
> 
> Removed: cfe/trunk/www/analyzer/images/tree/bullet.gif
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/images/tree/bullet.gif?rev=207994&view=auto
> ==============================================================================
> Binary file - no diff available.
> 
> Removed: cfe/trunk/www/analyzer/images/tree/minus.gif
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/images/tree/minus.gif?rev=207994&view=auto
> ==============================================================================
> Binary file - no diff available.
> 
> Removed: cfe/trunk/www/analyzer/images/tree/plus.gif
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/images/tree/plus.gif?rev=207994&view=auto
> ==============================================================================
> Binary file - no diff available.
> 
> Modified: cfe/trunk/www/analyzer/potential_checkers.html
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/potential_checkers.html?rev=207995&r1=207994&r2=207995&view=diff
> ==============================================================================
> --- cfe/trunk/www/analyzer/potential_checkers.html (original)
> +++ cfe/trunk/www/analyzer/potential_checkers.html Mon May  5 14:53:49 2014
> @@ -6,10 +6,7 @@
>   <link type="text/css" rel="stylesheet" href="content.css">
>   <link type="text/css" rel="stylesheet" href="menu.css">
>   <script type="text/javascript" src="scripts/menu.js"></script>
> -  <script type="text/javascript" src="scripts/dbtree.js"></script>
> -  <script type="text/javascript" src="scripts/expandcollapse.js"></script>
> </head>
> -<body onload="initExpandCollapse()">
> 
> <div id="page">
> 
> 
> Modified: cfe/trunk/www/analyzer/scan-build.html
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/scan-build.html?rev=207995&r1=207994&r2=207995&view=diff
> ==============================================================================
> --- cfe/trunk/www/analyzer/scan-build.html (original)
> +++ cfe/trunk/www/analyzer/scan-build.html Mon May  5 14:53:49 2014
> @@ -6,7 +6,6 @@
>   <link type="text/css" rel="stylesheet" href="content.css">
>   <link type="text/css" rel="stylesheet" href="menu.css">
>   <script type="text/javascript" src="scripts/menu.js"></script>
> -  <script type="text/javascript" src="scripts/dbtree.js"></script>
> </head>
> <body>
> 
> @@ -53,7 +52,7 @@ aforementioned hack fails to work.</p>
> 
> <h2>Contents</h2>
> 
> -<ul id="collapsetree" class="dbtree onclick multiple">
> +<ul>
> <li><a href="#scanbuild">Getting Started</a>
>  <ul>
>   <li><a href="#scanbuild_basicusage">Basic Usage</a></li>
> 
> Removed: cfe/trunk/www/analyzer/scripts/dbtree.js
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/scripts/dbtree.js?rev=207994&view=auto
> ==============================================================================
> --- cfe/trunk/www/analyzer/scripts/dbtree.js (original)
> +++ cfe/trunk/www/analyzer/scripts/dbtree.js (removed)
> @@ -1 +0,0 @@
> -eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7 5,r,Q,u;7 17=[];5=H;1i();9(!1Z.1j.20){1Z.1j.20=k(a){C[C.D]=a}}7 19=\'35+/\';k 36(a){7 b,R=\'\',i=0;I(;i<a.D;i+=4){b=(19.1k(a.1l(i))&1a)<<18|(19.1k(a.1l(i+1))&1a)<<12|(19.1k(a.1l(i+2))&1a)<<6|19.1k(a.1l(i+3))&1a;R+=37.38((b&39)>>16,(b&3a)>>8,b&1a)}9(a.21(i-2)==22)1m=R.23(0,R.D-2);s 9(a.21(i-1)==22)1m=R.23(0,R.D-1);s 1m=R;z 3b(1m)}7 A={24:k(){7 a=l.E(\'X\');I(7 i=0;i<a.D;i++){9(a[i].h.F(/\\1n\\b/)==-1)3c;7 b=a[i];9(b.h.F(/\\1E\\b/)!=-1){7 c=b.E(\'a\');I(7 j=0;j<c.D;j++){m.B(c[j],\'25\',1F,o);m.B(c[j],\'26\',1G,o);m.B(c[j],\'1o\',1b,o);c[j].Y=\'1H:1I(0)\'}}7 d=b.E(\'X\');I(7 j=0;j<d.D;j++){7 e=d[j].p;e.27=J;9(b.h.F(/\\3d\\b/)!=-1){m.B(e,\'w\',A.w,o);9(b!
 .h!
> .F(/\\3e\
> \b/)==-1){e.E(\'a\')[0].Y=\'1H:1I(0)\'}}s{7 t=b.h.3f(/1J(.*)1J/);t=t?t[1]:H;m.B(e,\'3g\',A.28(e,t),o);m.B(e,\'3h\',A.29(e),o)}e.E(\'a\')[0].h+=\' 2a\'}9(b.h.F(/\\3i\\b/)!=-1)A.2b(b.v)}},2b:k(a){7 b=l.G(a+\'3j\');9(b){A.1p(b);b=b.p;1c(!!b&&(b.v!=a)){9((!b.h)||(b.h==\'\')){b.h=\'w\'}s{b.h+=\' w\'}9(b.1d.K.L()==\'a\')b.1d.h+=\' w\';b=b.p}}},29:k(a){z k(){A.1p(a)}},28:k(a,b){z k(){A.2c(a,b)}},1p:k(a){7 b=a;3k(b.2d);I(7 i=0;i<b.S.D;i++){7 c=b.S[i];9(c.K.L()==\'X\'){b.E(\'a\')[0].h+=\' w\';b.h+=\' w\';c.h+=\' w\'}}},2c:k(a,b){7 c=a;c.2d=3l(k(){A.1q(c)},b)},1q:k(a){I(7 i=0;i<a.S.D;i++){7 b=a.S[i];9(b.K.L()==\'X\'){a.E(\'a\')[0].h=a.E(\'a\')[0].h.1K(/w/g,\'\');b.h=b.h.1K(/w/g,\'\');a.h=a.h.1K(/w/g,\'\')}}},w:k(e){9(M.T){M.T.1L=J}9(e&&e.1r){e.1r()}7 a=(M.T)?M.T.2e:(e)?e.1M:H;9(!a||!(a=A.1N(a,\'2f\')))z;9(a.E(\'a\')[0].h.F(/\\2g\\b/)==-1){7 b=1e(a);9(2h(b)){9(l.G(b).h.F(/\\3m\\b/)==-1){I(n=0;n<a.p.S.D;n++){N=a.p.S[n];9(N.K.L()==\'2f\'){9(N.h.F(/\\2g\\b/)!=-1)A.1q(a.p.S[n])}}}}A.1p(a!
 )!
> }s{A.1q(a
> )}9(2h(1e(a))){z J}s{z o}},1N:k(a,b){9(a.K.L()!=b&&a.K.L()!=\'U\'){z A.1N(a.p,b)}s 9(a.K.L()==\'U\'){z H}s{z a}}};k 1i(){3n{u=M.2i?O 2i():O 3o(\'3p.3q\')}3r(e){2j(\'2k 2l: 3s 3t 3u 3v 3w-3x!\')}}k 1O(a,x){a.1f.3y=x+\'2m\'}k 1P(a,y){a.1f.3z=y+\'2m\'}k 1e(a){1c(a.h.F(/\\1n\\b/)==-1){a=a.p}9((a.h.F(/\\1n\\b/)!=-1)&&(a.h.F(/\\1E\\b/)!=-1)){I(i=0;i<17.D;i++){9(a.v==17[i].q)z i}}z a.v}k 1G(a){a=O m(a);r=a.P.p.p.v;7 b=r.1s(\'Z\');r=b[1];5=17[1e(a.P)];7 c=l.G(5.q+\'10\').3A(J);7 d=l.G(5.q+\'10\');d.p.2n(d);c.v=5.q+\'10\';l.U.2o(c);1O(c,a.x);1P(c,a.y);c.1f.1Q=\'2p\';a.1t();m.B(l,\'1u\',1R,o);z o}k 1R(c){c=O m(c);7 e;7 a=c.P;7 b=a;1c((b!=H)&&(b.K.L()!=\'U\')){9(b.v==5.q+\'10\')1g;b=b.p}9((b!=H)&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,o);e[j].Y=\'1H:1I(0)\'}}k 1U(){9(u.3O==4){9(u.3P==3Q){l.G(5.q+\'3R\').2L=u.3S;2T(5.q!
 )!
> ;2P();1i(
> )}s{2j(\'2k 2l: 3T, 3U 3V 1J 3W a 3X 3Y 3Z 40:\\n\'+u.41);1i()}}}k m(a){C.W=a?a:M.T;C.P=a.1M?a.1M:a.2e;C.x=a.2U?(a.2U):(a.42+2V.2W(l.U.2X,l.2Y.2X));C.y=a.2Z?(a.2Z):(a.43+2V.2W(l.U.30,l.2Y.30))}m.1j.44=k(){z\'m [ x = \'+C.x+\', y = \'+C.y+\' ]\'};m.1j.1t=k(){9(C.W.1r){C.W.1r();C.W.1Y()}s 9(C.W.1L){C.W.1L=J;C.W.2N=o}};m.B=k(a,b,c,d){9(l.31){a.31(b,c,d)}s 9(l.32){a.32(\'1D\'+b,c,d)}s{a[\'1D\'+b]=c}};m.1h=k(a,b,c,d){9(l.33){a.33(b,c,d)}s 9(l.34){a.34(\'1D\'+b,c,d)}s{a[\'1D\'+b]=H}};m.B(M,\'45\',A.24,o);',62,254,'|||||instance||var||if||||||||className|||function|document|Evt||false|parentNode|instanceName|nid|else||client|id|click|||return|dbTree|addEvent|this|length|getElementsByTagName|search|getElementById|null|for|true|nodeName|toLowerCase|window|node|new|source|nto|decOut|childNodes|event|body|editpage|evt|ul|href|_|_options|action||rootnode|setRequestHeader|_tip||dbtreeObj||b64s|0xff|PreventDefault|while|firstChild|getObj|style|break|removeEvent|createClient|prototype|in!
 d!
> exOf|char
> At|undecOut|bdbtree|selectstart|mOver|mOut|stopPropagation|split|consume|mouseup|type|query|datasource|username|password|table|parent|contentfield|on|bedit|dragPress|contextMenu|javascript|void|to|replace|cancelBubble|target|getTarget|setX|setY|display|contextAction|case|add|callback|open|dragMove|dragRelease|preventDefault|Array|push|charCodeAt|61|substring|init|mousedown|contextmenu|hasSubMenu|getMoutFor|getMoverFor|subMenu|mExp|mTimeout|timeout|srcElement|li|bclick|isNaN|XMLHttpRequest|alert|DBTree|Error|px|removeChild|appendChild|block|edit|tagpath|move|nodeto|Date|getTime|time|onreadystatechange|get|Pragma|no|cache|Cache|Control|must|revalidate|If|Modified|Since|lastModified|send|innerHTML|mousemove|returnValue|dragBoxDropped|expandtree|options|selectedIndex|value|reinit|pageX|Math|max|scrollLeft|documentElement|pageY|scrollTop|addEventListener|attachEvent|removeEventListener|detachEvent|ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789|decode|String|from!
 C!
> harCode|0
> xff0000|0xff00|unescape|continue|bonclick|blinkparent|match|mouseout|mouseover|bexpand|_active|clearTimeout|setTimeout|bmultiple|try|ActiveXObject|Microsoft|XMLHTTP|catch|Your|browser|is|not|Ajax|enabled|left|top|cloneNode|switch|addroot|default|moveroot|none|createElement|div|nodeValue|typeof|jumpTo|blank|eval|location|readyState|status|200|_edit|responseText|Sorry|there|seems|be|problem|retrieving|the|response|statusText|clientX|clientY|toString|load'.split('|'),0,{}))
> 
> Modified: cfe/trunk/www/analyzer/xcode.html
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/xcode.html?rev=207995&r1=207994&r2=207995&view=diff
> ==============================================================================
> --- cfe/trunk/www/analyzer/xcode.html (original)
> +++ cfe/trunk/www/analyzer/xcode.html Mon May  5 14:53:49 2014
> @@ -6,7 +6,6 @@
>   <link type="text/css" rel="stylesheet" href="content.css">
>   <link type="text/css" rel="stylesheet" href="menu.css">
>   <script type="text/javascript" src="scripts/menu.js"></script>
> -  <script type="text/javascript" src="scripts/dbtree.js"></script>  
> </head>
> <body>
> 
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list