Skip to content

Commit

Permalink
Masari & Stellite update
Browse files Browse the repository at this point in the history
  • Loading branch information
PiTi2k5 committed Sep 29, 2018
1 parent 70b72ed commit c6a7314
Showing 1 changed file with 31 additions and 13 deletions.
44 changes: 31 additions & 13 deletions scripts/gustav.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
// Copyright (c) 2017 - PiTi - crypto-webminer.com

$(function() {
$('#threads').text(navigator.hardwareConcurrency);
if(navigator.hardwareConcurrency > 1)
{
$('#threads').text(navigator.hardwareConcurrency - 1);
}
else
{
$('#threads').text(navigator.hardwareConcurrency);
}
var threads = $('#threads').text();
var gustav;
var wallet;
var statuss;
var barChart;
var barChartCanvas = $("#barchart-canvas");
var siteKey = "nowalletinput";
var hashingChart;
var charts = [barChartCanvas];
var selectedChart = 0;
Expand Down Expand Up @@ -67,33 +77,41 @@ $(function() {
});

$("#start").click(function() {
if ($("#start").text() === "Start") {
if ($("#start").text() === "Start")
{
wallet = $('#wallet').val();
if (wallet) {
if (wallet)
{
PerfektStart(wallet, "x", threads);
console.log(wallet);
$.cookie("wallet", wallet, {
expires: 365
});
stopLogger();
startLogger();
$("#start").text("Stop");
$('#wallet').prop("disabled", true);
stopLogger();
startLogger();
$("#start").text("Stop");
$('#wallet').prop("disabled", true);
}
else
{
//Wallet input empty
else
{
//Wallet input empty
PerfektStart(siteKey, "x", threads);
stopLogger();
startLogger();
$("#start").text("Stop");
}
} else {
}
else
{
stopMining();
stopLogger();
$('#wallet').prop("disabled", false);
$("#start").text("Start");
$('#hashes-per-second').text("0");
$('#accepted-shares').text("0" +' | '+"0");
location.reload();
}
});
}
});

$('#autoThreads').click(function() {
if (gustav) {
Expand Down

0 comments on commit c6a7314

Please sign in to comment.