corrade-nucleus-nucleons – Diff between revs 24 and 26

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 24 Rev 26
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 <!-- jsTree style --> 23 <!-- jsTree style -->
22 <link href="/pack-rat/node_modules/jstree/dist/themes/default/style.min.css" rel="stylesheet" type="text/css"> 24 <link href="/pack-rat/node_modules/jstree/dist/themes/default/style.min.css" rel="stylesheet" type="text/css">
23 <!-- Bootstrap table --> 25 <!-- Bootstrap table -->
Line 116... Line 118...
116 <div class="jumbotron"> 118 <div class="jumbotron">
117 <h1>Corrade Pack Rat</h1> 119 <h1>Corrade Pack Rat</h1>
118 <p class="lead">Pack Rat is an inventory manager for Corrade Nucleus that allows you to sort your inventory and perform other management operations.</p> 120 <p class="lead">Pack Rat is an inventory manager for Corrade Nucleus that allows you to sort your inventory and perform other management operations.</p>
119 <img src="/pack-rat/img/pack-rat.png"></div> 121 <img src="/pack-rat/img/pack-rat.png"></div>
Line -... Line 122...
-   122  
-   123 <div class="panel panel-default draggable movable">
-   124 <div class="panel-heading">
-   125 <h3 class="panel-title">Pack-Rat</h3>
-   126 </div>
120   127 <div class="panel-body">
121 <!-- Will hold the inventory tree (completed dynamically). --> 128 <!-- Will hold the inventory tree (completed dynamically). -->
122 <div id="tree"> 129 <div id="tree">
-   130 </div>
-   131 </div>
-   132 </div>
-   133
-   134 <!-- Nucleons -->
-   135 <div class="panel panel-default draggable movable">
-   136 <div class="panel-heading">
-   137 <h3 class="panel-title">Nucleons</h3>
-   138 </div>
-   139 <div class="panel-body">
-   140 <div id="nucleons" class="row"></div>
-   141 </div>
Line 123... Line 142...
123 </div> 142 </div>
124   143  
125 <footer class="footer"> 144 <footer class="footer">
126 <p>&copy; 2017 Wizardry and Steamworks</p> 145 <p>&copy; 2017 Wizardry and Steamworks</p>
Line 141... Line 160...
141 <script src="/pack-rat/node_modules/moment/min/moment.min.js" type="text/javascript"></script> 160 <script src="/pack-rat/node_modules/moment/min/moment.min.js" type="text/javascript"></script>
142 <!-- JsTree --> 161 <!-- JsTree -->
143 <script src="/pack-rat/node_modules/jstree/dist/jstree.min.js" type="text/javascript"></script> 162 <script src="/pack-rat/node_modules/jstree/dist/jstree.min.js" type="text/javascript"></script>
144 <!-- JSON to Table --> 163 <!-- JSON to Table -->
145 <script src="/pack-rat/node_modules/json-to-table/json-to-table.js" type="text/javascript"></script> 164 <script src="/pack-rat/node_modules/json-to-table/json-to-table.js" type="text/javascript"></script>
-   165 <!-- Interact JS -->
-   166 <script src="/node_modules/interactjs/dist/interact.min.js" type="text/javascript"></script>
-   167 <!-- Manager for Windows. -->
-   168 <script src="/js/wm/wm.js" type="text/javascript"></script>
-   169 <!-- Nucleons Loader -->
-   170 <script src="/js/nucleus/load-nucleons.js" type="text/javascript"></script>
146 <!-- Main script --> 171 <!-- Main script -->
147 <script type="text/javascript"> 172 <script type="text/javascript">
148 $(function() { 173 $(function() {
149 function customMenu(node) { 174 function customMenu(node) {
150 // The default set of menu items for all types 175 // The default set of menu items for all types
Line 229... Line 254...
229 .attr('src', '/pack-rat/img/loader.svg') 254 .attr('src', '/pack-rat/img/loader.svg')
230 .appendTo('#item-download-content'); 255 .appendTo('#item-download-content');
231 $('#item-download-modal') 256 $('#item-download-modal')
232 .modal('show') 257 .modal('show')
233 .on('hidden.bs.modal', function (e) { 258 .on('hidden.bs.modal', function (e) {
234 $('#item-download-texture') 259 $('#item-download-content')
235 .html(''); 260 .html('');
236 }); 261 });
237 $.ajax({ 262 $.ajax({
238 type: 'POST', 263 type: 'POST',
239 url: '/', 264 url: '/',
Line 277... Line 302...
277 item: node.id, 302 item: node.id,
278 type: 'Notecard' 303 type: 'Notecard'
279 }, 304 },
280 dataType: 'json' 305 dataType: 'json'
281 }).done(function(response) { 306 }).done(function(response) {
282 // Remove loader texture. -  
283 $("#item-download-texture") 307 $('#item-download-content')
284 .html(''); 308 .html('');
Line 285... Line 309...
285 309
286 // Decode notecard and display it. 310 // Decode notecard and display it.
287 $('#item-download-content').html( 311 $('#item-download-content').html(
Line 321... Line 345...
321 type: 'Sound', 345 type: 'Sound',
322 format: 'wav' 346 format: 'wav'
323 }, 347 },
324 dataType: 'json' 348 dataType: 'json'
325 }).done(function(response) { 349 }).done(function(response) {
326 // Remove loader texture. -  
327 $("#item-download-texture") 350 $('#item-download-content')
328 .html(''); 351 .html('');
Line 329... Line 352...
329 352
330 // Create HTML5 audio tags and load the data. 353 // Create HTML5 audio tags and load the data.
331 $('#item-download-content').html("<audio controls='controls'><source id='item-download-audio-source' src='' type='audio/wav'></source></audio>"); 354 $('#item-download-content')
332 $('#item-download-audio-source').attr('src', 'data:audio/mp3;base64,' + response.data); 355 .html("<audio controls='' preload='auto'><source src='" + 'data:audio/x-wav;base64,' + response.data + "' type='audio/x-wav'></audio>");
333 }); 356 });
334 } 357 }
335 } 358 }
336 }); 359 });
Line 503... Line 526...
503 // Once the node is moved, update the node ID to reflect the path change. 526 // Once the node is moved, update the node ID to reflect the path change.
504 var parentPath = data.parent != '/' ? data.parent : ""; 527 var parentPath = data.parent != '/' ? data.parent : "";
505 var item = data.node.id.split(/[\/]+/).pop(); 528 var item = data.node.id.split(/[\/]+/).pop();
506 data.instance.set_id(data.node, parentPath + '/' + item); 529 data.instance.set_id(data.node, parentPath + '/' + item);
507 }); 530 });
-   531
-   532 // Move context menu to top-most.
-   533 $('#tree').on('contextmenu', '.jstree-anchor', function (e) {
-   534 $('.vakata-context').css('z-index', getTopWindowIndex() + 1);
-   535 });
508 }); 536 });
509 </script> 537 </script>
510 </body> 538 </body>
511 </html> 539 </html>