-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (40 loc) · 1.45 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
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<title>Gilfoyle Monero Alert</title>
</head>
<body>
<main>
<h1>Gilfoyle Monero Alert</h1>
<p class="text">
The site checks the course of the monero, and if the course starts to fall, then an alert with the sound
from the song "You Suffer" - Napalm Death.
</p>
<p class="text">Respect Gilfoyle</p>
<h1>Price</h1>
<p id="price" class="price"></p>
</main>
<audio src="baaah.mp3" controls id="baaah"></audio>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
function interval() {
$.ajax({
url: "https://api.coingecko.com/api/v3/simple/price?ids=monero&vs_currencies=usd",
success: function (data) {
var change = data.monero.usd;
document.getElementById("price").innerHTML = change;
if (change < 200) {
document.getElementById("baaah").play();
console.log(data);
}
}
});
}
setInterval(interval, 30000);
</script>
</body>
</html>