ensure table is always correctly displayed
[radio.git] / html / last_songs.html
index dcacb71..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();
                 });
 
 </head>
 
 <body>
-        <section>
-                <h1>Last played songs</h1>
+        <nav>
+                <ul>
+                        <li><a href="index.html">Proxy Radio</a></li>
+                        <li class="selected">Played songs</li>
+                        <li><a href="songs.html">All songs</a></li>
+                </ul>
+        </nav>
 
+        <section>
                 <table id="history">
                         <thead>
                                 <tr>
@@ -50,7 +56,9 @@
         </section>
 
         <footer>
-                <p>(c) Proxy Radio</p>
+                <ul>
+                        <li><a href="mailto:proxyradio@wpitchoune.net">Contact</a></li>
+                </ul>
         </footer>
 </body>