mirror of https://github.com/lukechilds/Agama.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
4.9 KiB
122 lines
4.9 KiB
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
<link rel="stylesheet" href="EasyDEX-GUI/assets/global/css/bootstrap.min.css">
|
|
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
|
|
<script type="text/javascript" src="EasyDEX-GUI/assets/global/vendor/jquery/jquery.min.js"></script>
|
|
<script>if (window.module) module = window.module;</script>
|
|
<script type="text/javascript">
|
|
function resizeMainWindow() {
|
|
/* set default map height */
|
|
var mapH = $(window).height();
|
|
|
|
$(".page-main").outerHeight(mapH);
|
|
}
|
|
function StartIguana() {
|
|
var ajax_data = {"herd":"iguana"};
|
|
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 StartCorsproxy() {
|
|
var ajax_data = {"herd":"corsproxy"};
|
|
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 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 = 60;
|
|
$('#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();
|
|
window.onresize = function(event) { resizeMainWindow(); };
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div class="page-main">
|
|
<div class="col-xs-6 text-center" style="height: 100%; background: url(bg.jpg) no-repeat fixed; background-color: #c7c7c7; vertical-align: middle;" id="iguanaGuiStart">
|
|
<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">
|
|
<h1 style="color: white;">EasyDEX</h1>
|
|
<a type="button" class="btn btn-default btn-lg" href="EasyDEX-GUI/index.html">Open EasyDEX</a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|