I'd like to implement mining on my website using javascript. Can anyone point me directions?
You are going to really upset your visitors if you do this. Whether its intentional or not. I remember piratebay decided to get rid of ads and instead they added mining to their website. I think they were mining XMR because BTC or ETH you cannot mine with a CPU.
Anyways they got tons of negative results and they decided to abandon the idea. I think the reason why this doesn't work is because if you got an i5 cpu then you wouldn't mind hashing on one core. However most people these days are using laptops to browse the web and those are never ideal for mining. So even if mining with 1 core the CPU fan speed speeds up, laptop gets hot, people are pissed and leave the website. I would advise against this.
I know right, but I was thinking about setting it up for using less resources. Isn't there a way out?