corrade-http-templates – Diff between revs 2 and 6

Subversion Repositories:
Rev:
Only display areas with differencesIgnore whitespace
Rev 2 Rev 6
1 <!doctype html> 1 <!doctype html>
2   2  
3 <html lang="en"> 3 <html lang="en">
4 <head> 4 <head>
5 <meta charset="utf-8"> 5 <meta charset="utf-8">
6   6  
7 <title>Summary of Top Scripts on a Region</title> 7 <title>Summary of Top Scripts on a Region</title>
8 8
9 <meta name="description" content="Top Scripts on a Region using Corrade"> 9 <meta name="description" content="Top Scripts on a Region using Corrade">
10 <meta name="author" content="Wizardry and Steamworks"> 10 <meta name="author" content="Wizardry and Steamworks">
11 11
12 <link rel="stylesheet" href="css/jquery.dataTables.css?v=1.1"> 12 <link rel="stylesheet" href="css/jquery.dataTables.css?v=1.1">
13 <link rel="stylesheet" href="css/fonts.css?v=1.1"> -  
14 <link rel="stylesheet" href="css/style.css?v=1.1"> -  
15 13
16 <script type="text/javascript" src="js/jquery.js"></script> 14 <script type="text/javascript" src="js/jquery.js"></script>
17 <script type="text/javascript" src="js/jquery.dataTables.js"></script> 15 <script type="text/javascript" src="js/jquery.dataTables.js"></script>
18 <script type="text/javascript"> 16 <script type="text/javascript">
19 $(document).ready(function () { 17 $(document).ready(function () {
20 $.fn.dataTable.ext.errMode = 'throw'; 18 $.fn.dataTable.ext.errMode = 'throw';
-   19 function retrieveData() {
-   20 table.ajax.reload(null, false);
-   21 }
21 var table = $('#topScripts').DataTable({ 22 var table = $('#topScripts').DataTable(
-   23 {
-   24 ajax: {
22 ajax: "topScripts.php?t=" + Math.random(), 25 url: 'topScripts.php?t=' + Math.random(),
-   26 dataSrc: function(src) {
-   27 setTimeout(retrieveData, 1000);
-   28 return src.data;
23 order: [[ 0, "desc" ]] 29 }
24 }); 30 },
25 setInterval(function () { 31 order: [
-   32 [
26 table.ajax.reload(null, false); 33 0,
27 table.order([ 0, 'desc' ]).draw(); 34 'desc'
-   35 ]
-   36 ]
-   37 }
28 }, 300000); 38 );
-   39 setTimeout(retrieveData, 1000);
-   40 }
29 }); 41 );
30 </script> 42 </script>
31 </head> 43 </head>
32   44  
33 <body> 45 <body>
34 <table id="topScripts" class="display" cellspacing="0" width="100%"> 46 <table id="topScripts" class="display" cellspacing="0" width="100%">
35 <thead> 47 <thead>
36 <tr> 48 <tr>
37 <th>Score</th> 49 <th>Score</th>
38 <th>Task Name</th> 50 <th>Task Name</th>
39 <th>UUID</th> 51 <th>UUID</th>
40 <th>Owner</th> 52 <th>Owner</th>
41 <th>Position</th> 53 <th>Position</th>
42 </tr> 54 </tr>
43 </thead> 55 </thead>
44   56  
45 <tfoot> 57 <tfoot>
46 <tr> 58 <tr>
47 <th>Score</th> 59 <th>Score</th>
48 <th>Task Name</th> 60 <th>Task Name</th>
49 <th>UUID</th> 61 <th>UUID</th>
50 <th>Owner</th> 62 <th>Owner</th>
51 <th>Position</th> 63 <th>Position</th>
52 </tr> 64 </tr>
53 </tfoot> 65 </tfoot>
54 </table> 66 </table>
55 </body> 67 </body>
56 </html> 68 </html>
57   69  
58
Generated by GNU Enscript 1.6.5.90.
70
Generated by GNU Enscript 1.6.5.90.
59   71  
60   72  
61   73