ensure table is always correctly displayed
authorJean Philip Orsini <orsinije@fr.ibm.com>
Tue, 19 Jan 2016 15:43:54 +0000 (16:43 +0100)
committerJean Philip Orsini <orsinije@fr.ibm.com>
Tue, 19 Jan 2016 15:43:54 +0000 (16:43 +0100)
html/last_songs.html
html/style.css

index 7e94c7c..25ccf28 100644 (file)
@@ -17,6 +17,7 @@
         </script>
 
         <script>$(document).ready(function() {
+                $('#history').DataTable();
                 $.getJSON("http://radio.wpitchoune.net/cgi-bin/icecast_last_songs.cgi",
                           function(data) {
                         $.each(data, function(i, value) {
@@ -25,7 +26,6 @@
                                                      + "<td>" + value.listeners + "</td>"
                                                      + "</tr>");
                         });
-
                         $('#history').DataTable();
                 });
 
@@ -56,7 +56,9 @@
         </section>
 
         <footer>
-                <p>(c) Proxy Radio</p>
+                <ul>
+                        <li><a href="mailto:proxyradio@wpitchoune.net">Contact</a></li>
+                </ul>
         </footer>
 </body>
 
index 03c4778..e393467 100644 (file)
@@ -47,10 +47,13 @@ nav a, footer a {
 }
 
 nav li.selected {
+        font-weight: bold;
+        color: #eee;
+}
+
+nav li.selected, nav a:hover {
+        padding-bottom: 1em;
         border-bottom-color: #eee;
         border-bottom-style: solid;
         border-bottom-width: medium;
-        padding-bottom: 1em;
-        font-weight: bold;
-        color: #eee;
 }