|
|
@ -60,6 +60,43 @@ |
|
|
|
console.log(error); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
function StartKomodod() { |
|
|
|
var ajax_data = {"herd":"komodod"}; |
|
|
|
console.log(ajax_data); |
|
|
|
$.ajax({ |
|
|
|
//async: false, |
|
|
|
type: 'POST', |
|
|
|
data: JSON.stringify(ajax_data), |
|
|
|
url: 'http://127.0.0.1:17777/shepherd/herd', |
|
|
|
dataType: "xml/html/script/json", // expected format for response |
|
|
|
contentType: "application/json", // send as JSON |
|
|
|
success: function(data, textStatus, jqXHR) { |
|
|
|
var AjaxOutputData = JSON.parse(data); |
|
|
|
console.log('== ActiveHandle Data OutPut =='); |
|
|
|
console.log(AjaxOutputData); |
|
|
|
}, |
|
|
|
error: function(xhr, textStatus, error) { |
|
|
|
console.log(xhr.statusText); |
|
|
|
if ( xhr.readyState == 0 ) { |
|
|
|
} |
|
|
|
console.log(textStatus); |
|
|
|
console.log(error); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
function StartKMDNativeIGUI() { |
|
|
|
var secToLaunch = 15; |
|
|
|
$('#kmdNativeBtn').text('Starting Komodo in ' + secToLaunch + 's'); |
|
|
|
StartCorsproxy(); |
|
|
|
StartKomodod(); |
|
|
|
setInterval(function() { |
|
|
|
$('#kmdNativeBtn').text('Starting Komodo in ' + secToLaunch + 's'); |
|
|
|
secToLaunch--; |
|
|
|
}, 1000); |
|
|
|
setTimeout(function() { |
|
|
|
document.location = 'Iguana-GUI/index.html'; |
|
|
|
}, secToLaunch * 1000); |
|
|
|
} |
|
|
|
jQuery(document).ready(function() { |
|
|
|
resizeMainWindow(); |
|
|
@ -73,6 +110,7 @@ |
|
|
|
<h1 style="color: white;">Iguana Wallet<h1> |
|
|
|
<a type="button" class="btn btn-default btn-lg" href="Iguana-GUI/index.html">Open Iguana Wallet</a><br/><br/> |
|
|
|
<a type="button" class="btn btn-default btn-lg" href="#" onclick="StartCorsproxy()">Launch proxy server</a><br/><br/> |
|
|
|
<a type="button" class="btn btn-default btn-lg" href="#" onclick="StartKMDNativeIGUI()" id="kmdNativeBtn">Komodo Native</a><br/><br/> |
|
|
|
<a type="button" class="btn btn-default btn-lg" href="#" onclick="StartIguana()">Start Iguana Core</a> |
|
|
|
</div> |
|
|
|
<div class="col-xs-6 text-center" style="height: 100%; background: url(bg2.jpg) no-repeat fixed; background-color: #d8d8d8; vertical-align: middle;" id="edexGuiStart"> |
|
|
|