Browse Source

UI update

master
Satinder Grewal 8 years ago
parent
commit
ce4f50cd7b
  1. 9
      assets/css/dashboard.css
  2. 2
      assets/css/site.min.css
  3. BIN
      assets/images/supernet-iguana-logo-white.png
  4. 130
      assets/scripts/login.js
  5. 2
      index.html

9
assets/css/dashboard.css

@ -0,0 +1,9 @@
.wallet-widget-header {
background: rgb(135,224,253); /* Old browsers */
background: -moz-radial-gradient(top, ellipse cover, rgba(243, 243, 243, 0.86) 0%,rgba(236, 236, 236, 0.49) 40%,rgb(232, 232, 232) 100%); /* FF3.6-15 */
background: -webkit-radial-gradient(top, ellipse cover, rgba(243, 243, 243, 0.86) 0%,rgba(236, 236, 236, 0.49) 40%,rgb(232, 232, 232) 100%); /* Chrome10-25,Safari5.1-6 */
background: radial-gradient(ellipse at top, rgba(243, 243, 243, 0.86) 0%,rgba(236, 236, 236, 0.49) 40%,rgb(232, 232, 232) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#87e0fd', endColorstr='#05abe0',GradientType=1 );
-webkit-box-shadow:0 -4px 27px 0px rgba(0,0,0,0.09);
box-shadow: 0 -4px 27px 0px rgba(0,0,0,0.09);
}

2
assets/css/site.min.css

File diff suppressed because one or more lines are too long

BIN
assets/images/supernet-iguana-logo-white.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

130
assets/scripts/login.js

@ -499,92 +499,54 @@ var Login = function() {
}; };
var handleCoinsRunningCheck = function() { var handleCoinsRunningCheck = function() {
var AddBTCDBasiliskData = {
"poll": 100, $.each([ 'BTC', 'BTCD' ], function( index, value ) {
"active": 1, var AddCoinBasiliskData = {
"newcoin": "BTCD", "poll": 100,
"startpend": 1, "active": 1,
"endpend": 1, "newcoin": value,
"services": 128, "startpend": 1,
"maxpeers": 16, "endpend": 1,
"RELAY": 0, "services": 128,
"VALIDATE": 0, "maxpeers": 16,
"portp2p": 14631 "RELAY": 0,
} "VALIDATE": 0,
//Start BitcoinDark in Basilisk mode "portp2p": 14631
$.ajax({
type: 'GET',
data: AddBTCDBasiliskData,
url: 'http://127.0.0.1:7778/api/iguana/addcoin',
dataType: 'text',
success: function(data, textStatus, jqXHR) {
var BTCDBasiliskDataOutput = JSON.parse(data);
//console.log('== Data OutPut ==');
//console.log(BTCDBasiliskDataOutput);
if (BTCDBasiliskDataOutput.result === 'coin added') {
console.log('coin added');
toastr.success("BitcoinDark started in Basilisk Mode", "Coin Notification");
} else if (BTCDBasiliskDataOutput.result === 'coin already there') {
console.log('coin already there');
toastr.info("Looks like BitcoinDark already running.", "Coin Notification");
} else if (BTCDBasiliskDataOutput.result === null) {
console.log('coin already there');
toastr.info("Looks like BitcoinDark already running.", "Coin Notification");
}
},
error: function(xhr, textStatus, error) {
console.log('failed starting BitcoinDark.');
console.log(xhr.statusText);
console.log(textStatus);
console.log(error);
//swal("Oops...", "Something went wrong!", "error");
toastr.warning("Opps... Something went wrong!", "Coin Notification")
} }
}); //Start BitcoinDark in Basilisk mode
$.ajax({
var AddBTCBasiliskData = { type: 'GET',
"poll": 100, data: AddCoinBasiliskData,
"active": 1, url: 'http://127.0.0.1:7778/api/iguana/addcoin',
"newcoin": "BTC", dataType: 'text',
"startpend": 1, success: function(data, textStatus, jqXHR) {
"endpend": 1, var CoinBasiliskDataOutput = JSON.parse(data);
"services": 128, //console.log('== Data OutPut ==');
"maxpeers": 16, //console.log(CoinBasiliskDataOutput);
"RELAY": 0,
"VALIDATE": 0, if (CoinBasiliskDataOutput.result === 'coin added') {
"portp2p": 14631 console.log('coin added');
} toastr.success(value + " started in Basilisk Mode", "Coin Notification");
//Start Bitcoin in Basilisk mode } else if (CoinBasiliskDataOutput.result === 'coin already there') {
$.ajax({ console.log('coin already there');
type: 'GET', toastr.info("Looks like" + value + "already running.", "Coin Notification");
data: AddBTCBasiliskData, } else if (CoinBasiliskDataOutput.result === null) {
url: 'http://127.0.0.1:7778/api/iguana/addcoin', console.log('coin already there');
dataType: 'text', toastr.info("Looks like" + value + "already running.", "Coin Notification");
success: function(data, textStatus, jqXHR) { }
var BTCBasiliskDataOutput = JSON.parse(data); },
//console.log('== Data OutPut =='); error: function(xhr, textStatus, error) {
//console.log(BTCBasiliskDataOutput); console.log('failed starting BitcoinDark.');
console.log(xhr.statusText);
if (BTCBasiliskDataOutput.result === 'coin added') { console.log(textStatus);
console.log('coin added'); console.log(error);
toastr.success("Bitcoin started in Basilisk Mode", "Coin Notification"); //swal("Oops...", "Something went wrong!", "error");
} else if (BTCBasiliskDataOutput.result === 'coin already there') { if (xhr.readyState == '0' ) {
console.log('coin already there'); toastr.error("Unable to connect to Iguana", "Account Notification")
toastr.info("Looks like Bitcoin already running.", "Coin Notification"); }
} else if (BTCBasiliskDataOutput.result === null) {
console.log('coin already there');
toastr.info("Looks like Bitcoin already running.", "Coin Notification");
} }
}, });
error: function(xhr, textStatus, error) { //return false;
console.log('failed starting Bitcoin.');
console.log(xhr.statusText);
console.log(textStatus);
console.log(error);
//swal("Oops...", "Something went wrong!", "error");
toastr.warning("Opps... Something went wrong!", "Coin Notification")
}
}); });
} }

2
index.html

@ -582,7 +582,7 @@
})(document, window, jQuery); })(document, window, jQuery);
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
$('#password').val(''); $('#wallet-login').hide(); $('#wallet-core').fadeIn(); $('body').removeClass( "page-login layout-full page-dark" ).addClass( "" ); $('link[id=loginStyle]')[0].disabled=true; //$('#password').val(''); $('#wallet-login').hide(); $('#wallet-core').fadeIn(); $('body').removeClass( "page-login layout-full page-dark" ).addClass( "" ); $('link[id=loginStyle]')[0].disabled=true;
</script> </script>
</body> </body>
</html> </html>
Loading…
Cancel
Save