From f4aed5f8a30e39e169dcdef1c315f0f7a5699738 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 12 Feb 2010 21:05:44 +0000 Subject: [PATCH] (1) Correctly format external Javascript link. (2) Reformat "annotations" topics list to use a collapsable tree. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96013 91177308-0d34-0410-b5e6-96231b3b80d8 --- www/analyzer/annotations.html | 33 ++++++++++++++++------------ www/analyzer/available_checks.html | 2 +- www/analyzer/content.css | 15 +++++++++++++ www/analyzer/dev_cxx.html | 2 +- www/analyzer/filing_bugs.html | 2 +- www/analyzer/images/tree/bullet.gif | Bin 0 -> 64 bytes www/analyzer/images/tree/minus.gif | Bin 0 -> 79 bytes www/analyzer/images/tree/plus.gif | Bin 0 -> 83 bytes www/analyzer/index.html | 2 +- www/analyzer/installation.html | 2 +- www/analyzer/scan-build.html | 2 +- www/analyzer/scripts/dbtree.js | 1 + www/analyzer/{ => scripts}/menu.js | 0 13 files changed, 41 insertions(+), 20 deletions(-) create mode 100644 www/analyzer/images/tree/bullet.gif create mode 100644 www/analyzer/images/tree/minus.gif create mode 100644 www/analyzer/images/tree/plus.gif create mode 100644 www/analyzer/scripts/dbtree.js rename www/analyzer/{ => scripts}/menu.js (100%) diff --git a/www/analyzer/annotations.html b/www/analyzer/annotations.html index 7f6fe38857..6204713463 100644 --- a/www/analyzer/annotations.html +++ b/www/analyzer/annotations.html @@ -5,7 +5,8 @@ Source Annotations - + + @@ -35,30 +36,34 @@ attributes.

recognized by GCC. Their use can be conditioned using preprocessor macros (examples included on this page).

- diff --git a/www/analyzer/available_checks.html b/www/analyzer/available_checks.html index 0d34882cb5..7af0865065 100644 --- a/www/analyzer/available_checks.html +++ b/www/analyzer/available_checks.html @@ -5,7 +5,7 @@ Available Checks - + diff --git a/www/analyzer/content.css b/www/analyzer/content.css index cced91621a..823fae265c 100644 --- a/www/analyzer/content.css +++ b/www/analyzer/content.css @@ -46,3 +46,18 @@ IMG.img_slide { /* Tables */ tr { vertical-align:top } + +/* 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} \ No newline at end of file diff --git a/www/analyzer/dev_cxx.html b/www/analyzer/dev_cxx.html index 58a4d16cd2..b5ef2b1091 100644 --- a/www/analyzer/dev_cxx.html +++ b/www/analyzer/dev_cxx.html @@ -5,7 +5,7 @@ Analyzer Development: C++ Support - + diff --git a/www/analyzer/filing_bugs.html b/www/analyzer/filing_bugs.html index 122e93183c..746f1cb22e 100644 --- a/www/analyzer/filing_bugs.html +++ b/www/analyzer/filing_bugs.html @@ -5,7 +5,7 @@ Filing Bugs and Feature Requests - + diff --git a/www/analyzer/images/tree/bullet.gif b/www/analyzer/images/tree/bullet.gif new file mode 100644 index 0000000000000000000000000000000000000000..de15348546992b0e4fcffe62dcef6867f385fe23 GIT binary patch literal 64 zcmZ?wbhEHb6k!lyXkcW>Tk_@q|Nn|VSr{1@7#VaJfB+=Jz$D(&zw-23{>5{)_%$$| R{q^i`Tk_@q|Nn|VSr{1@7#VaJfB+=Jz@*mGzw-23{>3a?qSzzy hqQ8DsOq>)MV$ijsGiet0A-S};OTEv3%@bj;1_0048^-_u literal 0 HcmV?d00001 diff --git a/www/analyzer/images/tree/plus.gif b/www/analyzer/images/tree/plus.gif new file mode 100644 index 0000000000000000000000000000000000000000..5398c801331c675537bae546ba34a39c365ee789 GIT binary patch literal 83 zcmZ?wbhEHb6k!lyXkcW>Tk_@q|Nn|VSr{1@7#VaJfB+=Jz@*jFzw-23{>3a?qSzzy ltS?;Fy_??Rl~$Y9v`mhzuRya{YFgZ-bKn2X*I;0<1^_#E9PClang Static Analyzer - + diff --git a/www/analyzer/installation.html b/www/analyzer/installation.html index 75ecabd80c..b84f263972 100644 --- a/www/analyzer/installation.html +++ b/www/analyzer/installation.html @@ -5,7 +5,7 @@ Obtaining the Static Analyzer - + diff --git a/www/analyzer/scan-build.html b/www/analyzer/scan-build.html index 85ee3cd181..16bdbfdbe2 100644 --- a/www/analyzer/scan-build.html +++ b/www/analyzer/scan-build.html @@ -5,7 +5,7 @@ Running the Analyzer - + diff --git a/www/analyzer/scripts/dbtree.js b/www/analyzer/scripts/dbtree.js new file mode 100644 index 0000000000..5face5db96 --- /dev/null +++ b/www/analyzer/scripts/dbtree.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,r){e=function(c){return(c35?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>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