Browse Source

added missing gui/init.js script

ca333-dev
pbca26 8 years ago
parent
commit
3860a36aaf
  1. 7
      gui/index.html
  2. 45
      gui/init.js
  3. 4
      gui/module-hack.js

7
gui/index.html

@ -4,12 +4,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="EasyDEX-GUI/assets/global/css/bootstrap.min.css">
<link rel="stylesheet" href="jRoll.min.css">
<script>
if (typeof module === 'object') {
window.module = module;
module = undefined;
}
</script>
<script type="text/javascript" src="module-hack.js"></script>
<script type="text/javascript" src="EasyDEX-GUI/assets/global/vendor/jquery/jquery.min.js"></script>
<script type="text/javascript" src="bluebird.min.js"></script>
<script type="text/javascript" src="loading.js"></script>

45
gui/init.js

@ -0,0 +1,45 @@
$(document).ready(function() {
$('#pulse').jRoll({
radius: 100,
animation: 'pulse'
});
var appConf = GetAppConf();
const remote = require('electron').remote;
var window = remote.getCurrentWindow();
$('#loading_status_text').text('Starting Iguana daemon...');
if (appConf && !appConf.manualIguanaStart) {
StartIguana();
}
if (appConf && !appConf.skipBasiliskNetworkCheck) {
var portcheck;
function sartcheck() {
portcheck = setInterval(function(){
Iguana_activehandle().then(function(result){
console.log(result);
if (result !== 'error') {
stopcheck();
$('#loading_status_text').text('Connecting to Basilisk Network...');
EDEX_DEXgetinfoAll();
}
})
//var check = Iguana_activehandle();
//console.log(check[0])
}, 2000);
}
function stopcheck() {
clearInterval(portcheck);
}
sartcheck();
//setTimeout(function(){ window.close(); }, 15000);
} else {
window.close();
}
});

4
gui/module-hack.js

@ -0,0 +1,4 @@
if (typeof module === 'object') {
window.module = module;
module = undefined;
}
Loading…
Cancel
Save