-
Notifications
You must be signed in to change notification settings - Fork 130
/
gl.php
55 lines (51 loc) · 2.28 KB
/
gl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
require_once 'credentials.class.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Mining via Javascript and WebGL</title>
<script>
var g_user = '<?php echo $username ?>';
var g_password = '<?php echo $password ?>';
var g_url = '<?php echo $url ?>';
var g_port = '<?php echo $port ?>';
</script>
<SCRIPT src="http://code.jquery.com/jquery-1.11.0.min.js"></SCRIPT>
<SCRIPT src="sha256.js"></SCRIPT>
<SCRIPT src="util.js"></SCRIPT>
<SCRIPT src="work-manager.js"></SCRIPT>
<SCRIPT src="glminer.js"></SCRIPT>
</head>
<BODY>
<br /><b>Hamiyoca! - Hash me if you can :D</b>
<br />
<br />This is a demo page that shows how to mine bitcoins via Javascript and WebGL.
<br />If this page helps you to understand mining or saves you some time to implement
<br />one these methods by yourself please donate me some cents!
<br />
<br />1DonatemDfMvQsLweYxPyA29rdgsXsxEc7 <b>Thanks.</b>
<br />
<br />The project source is located <a href="https://github.com/derjanb/hamiyoca">here</a>.
<br />
<div id="control">
<br />Mine Method:
<input type="radio" name="method" value="js" checked="checked"> Javascript
<input type="radio" name="method" value="jsworker"> WebWorker
<input type="radio" name="method" value="webgl"> WebGL
<br />WebGL Threads: <INPUT id="threads" value="1024"/>
<br /><input type="checkbox" id="testmode"> Testmode (Nonce will be found after ~18 khashes)
<br><br><button id="start" onclick="begin_mining(); document.getElementById('start').style.display = 'none';">Start</button>
</div>
<br />
<br />pool: <?php echo $url ?>:<?php echo $port ?>
<br />Total Hashes: <INPUT id="total-hashes" />
<br />Hash/s: <INPUT id="hashes-per-second" />
<br />Target/Difficulty: <INPUT id="target" />
<br />Golden Ticket: <INPUT id="golden-ticket" />
<BR/>
<br />Info: <textarea id="info" style="width: 400px; height: 300px;"></textarea>
<BR/>
</BODY>
</html>