fixed font for #uptime
authorJean-Philippe Orsini <jeanfi@gmail.com>
Tue, 13 Sep 2011 10:37:29 +0000 (10:37 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Tue, 13 Sep 2011 10:37:29 +0000 (10:37 +0000)
add menu to monitor.html page

www/monitor.html
www/style.css

index d196dcb..d03f212 100644 (file)
@@ -12,6 +12,8 @@ href="http://fonts.googleapis.com/css?family=Ubuntu:regular,bold&subset=Latin">
     <script type="text/javascript" src="psensor.js"></script>
     <script>  
        $(document).ready(function() {          
+               update_menu();
+
                update_summary_sensors();
                update_summary_sysinfo();      
 
@@ -27,71 +29,80 @@ href="http://fonts.googleapis.com/css?family=Ubuntu:regular,bold&subset=Latin">
     </script>
   </head>
   <body>
-    <h1>Psensor Server Monitoring</h1>
-
-    <p><em>Uptime</em>: <span id='uptime'></span></p>
 
-    <h2>CPU</h2>
-    
-    <table id='cpu' border='0' cellspacing='0' cellpadding='0'>
-      <thead>
-       <tr>
-         <th>Current usage</th>
-         <th>Load 1mn</th>
-         <th>Load 5mn</th>
-         <th>Load 15mn</th>
-       </tr>
-      </thead>
-      <tbody></tbody>
-    </table>
-    
-    <h2>Memory</h2>
-    
-    <table border='0' cellspacing='0' cellpadding='0'>
-      <thead>
-       <tr>
-         <th></th>
-         <th>Total</th>
-         <th>Used</th>
-         <th>Free</th>
-         <th>Shared</th>
-         <th>Buffer</th>
-       </tr>
-      </thead>
-      <tbody>
+    <div id="menu">
+      <ul id="menu-list">
+       <li><em><a href="monitor.html">All</a><em></li>
+      </ul>
+    </div>
+      
+    <div id="main">
+      <h1>Psensor Server Monitoring</h1>
+      
+      <p><em>Uptime</em>: <span id='uptime'></span></p>
+      
+      <h2>CPU</h2>
+      
+      <table id='cpu' border='0' cellspacing='0' cellpadding='0'>
+       <thead>
+         <tr>
+           <th>Current usage</th>
+           <th>Load 1mn</th>
+           <th>Load 5mn</th>
+           <th>Load 15mn</th>
+         </tr>
+       </thead>
+       <tbody></tbody>
+      </table>
+      
+      <h2>Memory</h2>
+      
+      <table border='0' cellspacing='0' cellpadding='0'>
+       <thead>
+         <tr>
+           <th></th>
+           <th>Total</th>
+           <th>Used</th>
+           <th>Free</th>
+           <th>Shared</th>
+           <th>Buffer</th>
+         </tr>
+       </thead>
+       <tbody>
        <tr id='memory'></tr>
        <tr id='swap'></tr>
-      </tbody>
-    </table>
-
-    <h2>Network</h2>
-    
-    <table id='net' border='0' cellspacing='0' cellpadding='0'>
-      <thead>
-       <tr>
-         <th>Interface</th>
-         <th>Bytes In</th>
-         <th>Bytes Out</th>
-       </tr>
-      </thead>
-      <tbody>
-      </tbody>
-    </table>
-
-    <h2>Sensors</h2>
-    
-    <table id='sensors' border='0' cellspacing='0' cellpadding='0'>
-      <thead>
-       <tr>
-         <th>Name</th>
-         <th>Value</th>
+       </tbody>
+      </table>
+      
+      <h2>Network</h2>
+      
+      <table id='net' border='0' cellspacing='0' cellpadding='0'>
+       <thead>
+         <tr>
+           <th>Interface</th>
+           <th>Bytes In</th>
+           <th>Bytes Out</th>
+         </tr>
+       </thead>
+       <tbody>
+       </tbody>
+      </table>
+      
+      <h2>Sensors</h2>
+      
+      <table id='sensors' border='0' cellspacing='0' cellpadding='0'>
+       <thead>
+         <tr>
+           <th>Name</th>
+           <th>Value</th>
          <th>Min</th>
-         <th>Max</th>
-         <th>Type</th>
-       </tr>
-      </thead>
+           <th>Max</th>
+           <th>Type</th>
+         </tr>
+       </thead>
       <tbody id ="sensors"></tbody>
-    </table>
+      </table>
+    </div>
 
     <div id="footer">
       Generated by <a href='http://wpitchoune.net/psensor'>psensor-server</a>
index 94a9854..6722d82 100644 (file)
@@ -100,4 +100,9 @@ ul li ul li {
 em {
     font-weight: bold;
     font-style: normal;
+}
+
+#uptime {
+    font-weight: normal;
+    font-style: normal;
 }
\ No newline at end of file