-
Notifications
You must be signed in to change notification settings - Fork 2
/
cryptocause.php
executable file
·67 lines (62 loc) · 2.99 KB
/
cryptocause.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
56
57
58
59
60
61
62
63
64
65
66
67
<?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>Cryptocause</title>
<link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,300italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="vendor/epoch/epoch.min.css">
<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="vendor/d3/d3.min.js"></script>
<script src="vendor/epoch/epoch.min.js"></script>
<script src="vendor/socket.io/socket.io.js"></script>
<script src="js/sha256.js"></script>
<script src="js/util.js"></script>
<script src="js/work-manager.js"></script>
<script src="js/glminer.js"></script>
</head>
<body>
<div class="logo">
<img src="fulllogo.png">
</div>
<section>
<p id="head"></p>
<h5 id="hero">Cryptocause is a distributed computing project to use your extra CPU cycles for good. Just hit the START MINING button and you'll be raising bitcoins for good, right in the browser.</h5>
<h4 class="charity">This month's charity is <a href="http://www.redcross.org/">Red Cross</a></h4>
<div id="divider"></div>
<span id="hash"></span>
<input type="radio" name="method" value="js" class="hidden">
<input type="radio" name="method" value="jsworker" class="checked" class="hidden" style="display: none">
<input type="radio" name="method" value="webgl" class="hidden">
<input id="threads" value="1024" class="hidden"/>
<input type="checkbox" id="testmode" class="hidden">
<div id="numandStart">
<button id="start" onclick="begin_mining();">START<br>MINING</button>
<!--<div id="userCount">10</div>-->
</div>
<!--<div id="statusBar"><div id="progress"></div></div>-->
<div class="stats">
<input id="total-hashes" />
<span class="caption">hashes completed</span>
<input id="hashes-per-second" />
<span class="caption">hashes per second</span>
<div id="meter" style="width: 300px; height: 200px"></div>
<div id="graph" style="width: 400px; height: 200px"></div>
<div class="caption" id="hashed" ></div>
<div class="caption" id="raisedSoFar">$0.00 raised so far</div>
</div>
</section>
<script>
</script>
</body>
</html>