forked from tevador/tevador.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (100 loc) · 3.12 KB
/
Copy pathindex.html
File metadata and controls
100 lines (100 loc) · 3.12 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<html>
<head>
<title>RandomX web-mining demo</title>
<script
src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8="
crossorigin="anonymous">
</script>
<script
src="main.js">
</script>
<style>
body {
font-family: Arial;
}
.control {
text-align: center;
vertical-align: middle;
color: white;
margin: auto;
background-color: #2b2b2b;
width: 512px;
padding: 50px;
}
.howto {
text-align: left;
vertical-align: middle;
color: black;
margin: auto;
background-color: white;
width: 512px;
padding: 10px 49px;
border: 1px solid black;
}
.small {
font-size: small;
}
.large {
font-size: 500%;
}
.error {
color: red;
padding: 15px;
}
.button {
font-size: 40px;
height: 50px;
width: 225px;
}
li {
margin: 10px;
}
ol {
padding: 10px;
margin: 10px;
}
input[type="number"] {
direction: rtl;
width: 40px;
padding-right: 2px;
}
</style>
</head>
<body>
<div class="control">
<h2>RANDOMX WEB-MINING DEMO</h2>
<div class="large">
<span id="hr">0.0</span> H/s
</div>
<div>
Total hashes: <span id="hashes">0</span>
</div>
<div style="padding-top: 50px; padding-bottom: 10px;">
<label for="threads">Threads:</label>
<input type="number" id="threads" name="threads" min="1" max="1" value="1" disabled="true" />
</div>
<div>
<input type="button" class="button" id="button" value="Start" disabled="true" />
</div>
<div class="small error" id="error"> </div>
</div>
<div class="howto">
<div><b>How to use:</b></div>
<ol>
<li>
Download: <a href="https://github.com/tevador/randomx-service/releases">RandomX Service</a> (or <a href="https://github.com/tevador/randomx-service#building">build</a> it from source)</a>
</li>
<li>
Run: <tt>randomx-service -origin <span id="origin"></span></tt>
</li>
<li>
Reload this page in Google Chrome or Microsoft Edge
</li>
<li>
Select the number of threads and click the Start button
</li>
</ol>
</div>
</body>
</html>