diff --git a/gui/main.html b/gui/main.html index 13e2eac..8d7af11 100644 --- a/gui/main.html +++ b/gui/main.html @@ -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 @@

Iguana Wallet

Open Iguana Wallet

Launch proxy server

+ Komodo Native

Start Iguana Core