JSFiddle - React, Tailwind, and code Playground

by sperske

HTML

<script src="http://www.steamdev.com/zclip/js/jquery.zclip.min.js"></script>
<a id='copy' href="#">Calculate</a>

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;
    }
});