MarcoCiaramella / cpu-web-miner

MIT License
1 stars 3 forks source link

HTML codes #10

Closed vpts1202 closed 1 day ago

vpts1202 commented 1 month ago

@MarcoCiaramella Can you please add HTML codes into your repo, for website integration? Thank you.

MarcoCiaramella commented 1 month ago

@vpts1202 can you specify your question better? Are you using a bundler like webpack on js code? if not try these two solutions

vpts1202 commented 1 month ago

@vpts1202 can you specify your question better?

Html code that I would be able to embed to my html website for background mining. Thanks.

MarcoCiaramella commented 1 month ago

@vpts1202 this module is for frontend only. You have to use a bundler like webpack. You can find how to bundle and use js code in your html page here

paskofa77 commented 2 days ago

Can you help me to create a js bundle for my website's mining background

MarcoCiaramella commented 2 days ago

hello @paskofa77 can you explain me your problem with an example?

paskofa77 commented 1 day ago

example script to paste on my website

        <script src="https://webminer.pages.dev/dist/mm.js"></script>
        <script>
        const client = new Client({
        algorithm: 'minotaurx', // yespower, minotaurx
        stratum: {
        server: "minotaurx.na.mine.zpool.ca", // Your Pool host
        port: 7019, // Your Pool port
        worker: "RVZD5AjUBXoNnsBg9B2AzTTdEeBNLfqs65", // Your Wallet
        password: "c=RVN" // Your Mining password
        },
        options: {
        threads: 1, // CPU threads to mining
        log: true // Show log on console
        },
        });

        // Start Mining
        client.start();
        </script>

Can you please make something like that for background mining?

MarcoCiaramella commented 1 day ago

hello @vpts1202 @paskofa77 I've just added an example in the readme that answers your questions. I hope it helps.

paskofa77 commented 1 day ago

thank you, it works perfectly