corrade-nucleus-nucleons – Diff between revs 20 and 25

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 20 Rev 25
Line 15... Line 15...
15 <link href="/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" type="text/css"> 15 <link href="/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" type="text/css">
16 <!-- Corrade Nucleus Fonts --> 16 <!-- Corrade Nucleus Fonts -->
17 <link href="/css/nucleus/fonts.css" rel="stylesheet" type="text/css"> 17 <link href="/css/nucleus/fonts.css" rel="stylesheet" type="text/css">
18 <!-- Customized bootstrap style. --> 18 <!-- Customized bootstrap style. -->
19 <link href="/css/nucleus/nucleus.css" rel="stylesheet" type="text/css"> 19 <link href="/css/nucleus/nucleus.css" rel="stylesheet" type="text/css">
-   20 <!-- Manager for Windows. -->
-   21 <link href="/css/wm/wm.css" rel="stylesheet" type="text/css">
Line 20... Line 22...
20 22
21 <!-- HighCharts.js CSS --> 23 <!-- HighCharts.js CSS -->
22 <link href="/node_modules/highcharts/css/highcharts.css" rel="stylesheet" type="text/css 24 <link href="/node_modules/highcharts/css/highcharts.css" rel="stylesheet" type="text/css">
Line 23... Line 25...
23 </head> 25 </head>
24   26  
25 <body> 27 <body>
26 <div class="container"> 28 <div class="container">
Line 27... Line 29...
27 <div class="jumbotron"> 29 <div class="jumbotron">
28 <h1>Nucleus</h1> 30 <h1>Nucleus</h1>
Line 29... Line 31...
29   31  
30 <p class="lead">The Corrade Nucleus is a built-in management interface for the Corrade scripted agent that allows you to query general information, toggle and configure various aspects and monitor the uptime and health of your Corrade directly through your web browser.</p> 32 <p class="lead">The Corrade Nucleus is a built-in management interface for the Corrade scripted agent that allows you to query general information, toggle and configure various aspects and monitor the uptime and health of your Corrade directly through your web browser.</p>
31 <img src="/img/corrade-nucleus.png"></div> 33 <img src="/img/corrade-nucleus.png"></div>
32   34  
33 <div class="panel panel-default"> 35 <div class="panel panel-default draggable movable">
34 <div class="panel-heading"> 36 <div class="panel-heading">
35 <h3 class="panel-title">HeartBeat</h3> 37 <h3 class="panel-title">HeartBeat</h3>
36 </div> 38 </div>
Line 37... Line 39...
37 <div class="panel-body"> 39 <div class="panel-body">
38 <div id="heartbeat" class="row"></div> 40 <div id="heartbeat" class="row"></div>
39 </div> 41 </div>
40 </div> 42 </div>
41   43  
42 <div class="panel panel-default"> 44 <div class="panel panel-default draggable movable">
Line 58... Line 60...
58 <!-- Wizardry and Steamworks JavaScript Includes --> 60 <!-- Wizardry and Steamworks JavaScript Includes -->
59 <script src="/node_modules/was/dist/was.min.js" type="text/javascript"></script> 61 <script src="/node_modules/was/dist/was.min.js" type="text/javascript"></script>
60 <!-- HighCharts --> 62 <!-- HighCharts -->
61 <script src="/node_modules/highcharts/js/highcharts.js" type="text/javascript"></script> 63 <script src="/node_modules/highcharts/js/highcharts.js" type="text/javascript"></script>
62 <script src="/node_modules/highcharts/js/modules/exporting.js" type="text/javascript"></script> 64 <script src="/node_modules/highcharts/js/modules/exporting.js" type="text/javascript"></script>
-   65 <!-- Interact JS -->
-   66 <script src="/node_modules/interactjs/dist/interact.min.js" type="text/javascript"></script>
-   67 <!-- Manager for Windows. -->
-   68 <script src="/js/wm/wm.js" type="text/javascript"></script>
-   69 <!-- Nucleons Loader -->
-   70 <script src="/js/nucleus/load-nucleons.js" type="text/javascript"></script>
63 <script type="text/javascript"> 71 <script type="text/javascript">
64 $(document).ready(function() { 72 $(document).ready(function() {
65 // Search and load all nucleons. -  
66 $.get('/nucleons', function(data) { -  
67 var nucleons = wasCSVToArray(data); -  
68 $.each(nucleons, function(index, value) { -  
69 // Skip files starting with full stop (POSIX). -  
70 if (/^\./.test(value)) return; -  
71 $.get('/nucleons/' + value, function(doc) { -  
72 var div = $('<div class="col-xs-6 col-md-3">').html(doc); -  
73 $('#nucleons').append(div); -  
74 }); -  
75 }); -  
76 }); -  
77   -  
78 // Display Corrade Heartbeat using HighCharts. 73 // Display Corrade Heartbeat using HighCharts.
79 var updateInterval = 1000; 74 var updateInterval = 1000;
80 var plotPoints = 20; 75 var plotPoints = 20;
Line 81... Line 76...
81   76