diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-02-08 23:50:54 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-02-08 23:50:54 +0000 |
commit | 5a9bd1169347783112b1fb472a2d8a177529ba73 (patch) | |
tree | 62a89e1756073377baf640b59906a535ec7ca2fb | |
parent | dcee98048d5147502da2b224f01d08f24aec2293 (diff) |
Switch to drop-down menu style.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95610 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | www/analyzer/annotations.html | 1 | ||||
-rw-r--r-- | www/analyzer/index.html | 37 | ||||
-rw-r--r-- | www/analyzer/menu.css | 93 | ||||
-rw-r--r-- | www/analyzer/menu.html.incl | 69 | ||||
-rw-r--r-- | www/analyzer/menu.js | 17 |
5 files changed, 124 insertions, 93 deletions
diff --git a/www/analyzer/annotations.html b/www/analyzer/annotations.html index 819886e822..b439359b47 100644 --- a/www/analyzer/annotations.html +++ b/www/analyzer/annotations.html @@ -5,6 +5,7 @@ <title>Source Annotations</title> <link type="text/css" rel="stylesheet" href="menu.css" /> <link type="text/css" rel="stylesheet" href="content.css" /> + <link type="text/javascript" rel="javascript" href="/menu.css"/> </head> <body> diff --git a/www/analyzer/index.html b/www/analyzer/index.html index be43eef557..ed483f42f1 100644 --- a/www/analyzer/index.html +++ b/www/analyzer/index.html @@ -3,17 +3,18 @@ <html> <head> <title>Clang Static Analyzer</title> - <link type="text/css" rel="stylesheet" href="menu.css" /> - <link type="text/css" rel="stylesheet" href="content.css" /> + <link type="text/css" rel="stylesheet" href="/content.css" /> + <link type="text/css" rel="stylesheet" href="/menu.css" /> + <link type="text/javascript" rel="javascript" href="/menu.css"/> </head> <body> <!--#include virtual="menu.html.incl"--> <div id="content"> - -<h1>Clang Static Analyzer</h1> - +<table style="margin-top:-10px; padding:5px" border=0> +<tr><td> +<h1>Clang Static Analyzer</h1> <p>The Clang Static Analyzer consists of both a source code analysis framework and a standalone tool that finds bugs in C and Objective-C programs. The standalone tool is invoked from the command-line, and is intended to run in @@ -21,20 +22,6 @@ tandem with a build of a project or code base.</p> <p>Both are 100% open source and are part of the <a href="http://clang.llvm.org">Clang</a> project.</p> -<!-- -<center> -<table border=0 cellspacing=20> - <tr> - <td><center><img src="/images/analyzer_html.png"></center></td> - <td><center><img src="/images/analyzer_xcode.png"></center></td> - </tr> - <tr> - <td><center>Viewing results in a web browser</center></td> - <td><center>Viewing results in Xcode 3.2</center></td> - </tr> -</table> -</center> ---> <!-- Generated from: http://www.spiffycorners.com/index.php --> @@ -89,7 +76,7 @@ href="http://clang.llvm.org">Clang</a> project.</p> #wrappedcontent { padding:15px;} </style> -<div style="padding:0px"> +<div style="margin-left:25px; margin-right:25px; padding:0px; font-size: 80%"> <b class="spiffy"> <b class="spiffy1"><b></b></b> <b class="spiffy2"><b></b></b> @@ -137,6 +124,16 @@ industrial-quality static analysis framework for analyzing C and Objective-C programs that is freely available, extensible, and has a high quality of implementation.</p> + + + +</td><td> +<a href="images/analyzer_xcode.png"><img src="images/analyzer_xcode.png" width="450x"></a> +<center><b>Viewing static analyzer results in Xcode 3.2</b></center> +<a href="images/analyzer_html.png"><img src="images/analyzer_html.png" width="450px"></a> +<center><b>Viewing static analyzer results in web browser</b></center> +</td></tr></table> + <h3 id="Clang">Part of Clang and LLVM</h3> <p>As its name implies, the Clang Static Analyzer is built on top of <a diff --git a/www/analyzer/menu.css b/www/analyzer/menu.css index 0af58b044c..a402d5a83f 100644 --- a/www/analyzer/menu.css +++ b/www/analyzer/menu.css @@ -1,40 +1,53 @@ -/***************/ -/* page layout */ -/***************/ - -[id=menu] { - position:fixed; - width:30ex; -} -[id=content] { - /* ***** EDIT THIS VALUE IF CONTENT OVERLAPS MENU ***** */ - position:absolute; - left:35ex; - padding-right:4ex; -} - -/**************/ -/* menu style */ -/**************/ - -#menu .submenu { - padding-top:1em; - display:block; -} - -#menu label { - display:block; - font-weight: bold; - text-align: center; - color: #ffffff; - background-color: #2d58b7; -} -#menu a { - padding:0 .2em; - display:block; - text-align: center; - background-color: #EBF0FA; -} -#menu a:visited { - color:rgb(100,50,100); -}
\ No newline at end of file +/* From 'A list apart', 'dropdowns' */ +body { + background-color: #EBF0FA; +} +#nav { + font-weight: bold; + color: #2d58b7; +} +#nav a { + text-decoration: none; +} +#nav a:hover { + text-decoration: underline; +} +.menubar { + font-size: 80%; +} +.menubar ul { + padding: 0; + margin: 0; + list-style: none; +} +.menubar li { + text-align: center; + padding: 5px; + list-style: none; + float: left; + position: relative; + width: 11em; + cursor: default; + background-color: #EBF0FA; +} +.menubar li ul /* second level lists */ { + display: none; + position: absolute; + top: 1em; + left: 0; +} +.menubar li>ul { + padding: 0; + margin: 0; + top:auto; + left:auto; + font-weight: normal; +} +.menubar li:hover ul, li.over ul { /* lists nested under hovered list items */ + display: block; +} +#content { + clear: left; + padding-top: 10px; + background-color: #ffffff; +} diff --git a/www/analyzer/menu.html.incl b/www/analyzer/menu.html.incl index 95489fdff9..2c430799a7 100644 --- a/www/analyzer/menu.html.incl +++ b/www/analyzer/menu.html.incl @@ -1,34 +1,37 @@ -<div id="menu"> - <div> - <a href="http://llvm.org/">LLVM Home</a> - <a href="http://clang.llvm.org/">Clang Home</a> - </div> - - <div class="submenu"> - <label>Quick Links</label> - <a href="/index.html">About the Analyzer</a> - <a href="/filing_bugs.html">Filing Bugs</a> - </div> - - <div class="submenu"> - <label>User Manual</label> -<!-- <a href="/design_philosphy.html">Design Philosophy</a> --> - <a href="/installation.html">Obtaining the Analyzer</a> - <a href="/scan-build.html">Running the Analyzer</tt></a> - <a href="/available_checks.html">Available Checks</a> -<!-- <a href="/false_positives.html">False Positives</a> --> - <a href="/annotations.html">Source-level Annotations</a> - </div> - - <div class="submenu"> - <label>Development</label> - <a href="/dev_cxx.html">Analysis support for C++</a> - </div> - - <div class="submenu"> - <label>Clang Mailing Lists</label> - <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">cfe-dev</a> - <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits">cfe-commits</a> - </div> - +<div id="nav"> + <ul class="menubar"> + <li> + <a href="/index.html">About</a> + <ul> + <li><a href="/index.html">About the Analyzer</a></li> + <li><a href="http://llvm.org/">LLVM Project</a></li> + <li><a href="http://clang.llvm.org/">Clang Project</a></li> + </ul> + </li> + <li> + <a href="/filing_bugs.html">Filing Bugs</a> + </li> + <li> + User Manual + <ul> + <li><a href="/installation.html">Obtaining the Analyzer</a></li> + <li><a href="/scan-build.html">Running the Analyzer</tt></a></li> + <li><a href="/available_checks.html">Available Checks</a></li> + <li><a href="/annotations.html">Source-level Annotations</a></li> + </ul> + </li> + <li> + Development + <ul> + <li><a href="/dev_cxx.html">Analysis support for C++</a></li> + </ul> + </li> + <li> + Mailing Lists + <ul> + <li><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">cfe-dev</a></li> + <li><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits">cfe-commits</a></li> + </ul> + </li> + </ul> </div> diff --git a/www/analyzer/menu.js b/www/analyzer/menu.js new file mode 100644 index 0000000000..6b393c081c --- /dev/null +++ b/www/analyzer/menu.js @@ -0,0 +1,17 @@ +startList = function() { + if (document.all&&document.getElementById) { + navRoot = document.getElementById("nav"); + for (i=0; i<navRoot.childNodes.length; i++) { + node = navRoot.childNodes[i]; + if (node.nodeName=="LI") { + node.onmouseover=function() { + this.className+=" over"; + } + node.onmouseout=function() { + this.className=this.className.replace(" over", ""); + } + } + } + } +} +window.onload=startList; |