[cfe-commits] r95610 - in /cfe/trunk/www/analyzer: annotations.html index.html menu.css menu.html.incl menu.js

Ted Kremenek kremenek at apple.com
Mon Feb 8 15:50:54 PST 2010


Author: kremenek
Date: Mon Feb  8 17:50:54 2010
New Revision: 95610

URL: http://llvm.org/viewvc/llvm-project?rev=95610&view=rev
Log:
Switch to drop-down menu style.

Added:
    cfe/trunk/www/analyzer/menu.js
Modified:
    cfe/trunk/www/analyzer/annotations.html
    cfe/trunk/www/analyzer/index.html
    cfe/trunk/www/analyzer/menu.css
    cfe/trunk/www/analyzer/menu.html.incl

Modified: cfe/trunk/www/analyzer/annotations.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/annotations.html?rev=95610&r1=95609&r2=95610&view=diff

==============================================================================
--- cfe/trunk/www/analyzer/annotations.html (original)
+++ cfe/trunk/www/analyzer/annotations.html Mon Feb  8 17:50:54 2010
@@ -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>
 

Modified: cfe/trunk/www/analyzer/index.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/index.html?rev=95610&r1=95609&r2=95610&view=diff

==============================================================================
--- cfe/trunk/www/analyzer/index.html (original)
+++ cfe/trunk/www/analyzer/index.html Mon Feb  8 17:50:54 2010
@@ -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 @@
 
 <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 @@
   #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 @@
 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

Modified: cfe/trunk/www/analyzer/menu.css
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/menu.css?rev=95610&r1=95609&r2=95610&view=diff

==============================================================================
--- cfe/trunk/www/analyzer/menu.css (original)
+++ cfe/trunk/www/analyzer/menu.css Mon Feb  8 17:50:54 2010
@@ -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;
+}

Modified: cfe/trunk/www/analyzer/menu.html.incl
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/menu.html.incl?rev=95610&r1=95609&r2=95610&view=diff

==============================================================================
--- cfe/trunk/www/analyzer/menu.html.incl (original)
+++ cfe/trunk/www/analyzer/menu.html.incl Mon Feb  8 17:50:54 2010
@@ -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>

Added: cfe/trunk/www/analyzer/menu.js
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/menu.js?rev=95610&view=auto

==============================================================================
--- cfe/trunk/www/analyzer/menu.js (added)
+++ cfe/trunk/www/analyzer/menu.js Mon Feb  8 17:50:54 2010
@@ -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;





More information about the cfe-commits mailing list