JSFiddle - React, Tailwind, and code Playground
by sperske
HTML
<script src="http://www.steamdev.com/zclip/js/jquery.zclip.min.js"></script>
<button id='copy'>Calculate</button>
<br/>
<textarea placeholder="Paste Clipboard into this box to see this work"></textarea>
CSS
textarea {
width: 98%;
height: 100px;
}
JavaScript
$('#copy').zclip({
path: 'http://www.steamdev.com/zclip/js/ZeroClipboard.swf',
copy: function () {
input = prompt("Enter your max KH/s.", "");
if (input == null || input == "") {
return;
}
share = 0.00000116414;
total = input * share;
return input + " * " + share + " = " + total;
}
});