This repository has been archived by the owner on Jan 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
82 lines (63 loc) · 2.63 KB
/
script.js
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
document.addEventListener("DOMContentLoaded", function() {
var buttons = document.querySelectorAll(".hoverButton");
var sound = document.getElementById("hoverSound");
buttons.forEach(function(button) {
button.addEventListener("mouseenter", function() {
sound.currentTime = 0; // Reset playback position
sound.play();
});
});
});
function fetchData(url) {
fetch(url)
.then(response => response.json())
.then(data => {
document.getElementById('result').innerText = JSON.stringify(data, null, 2);
})
.catch(error => console.error('Error:', error));
}
document.getElementById('godot').addEventListener('click', function() {
fetchData('http://localhost:13597/run/Godot Engine');
});
document.getElementById('blender').addEventListener('click', function() {
fetchData('http://localhost:13597/run/Blender');
});
document.getElementById('defold').addEventListener('click', function() {
fetchData('http://localhost:13597/run/Defold');
});
document.getElementById('flax').addEventListener('click', function() {
fetchData('http://localhost:13597/run/Flax');
});
document.getElementById('ctjs').addEventListener('click', function() {
fetchData('http://localhost:13597/run/ctjs');
});
document.getElementById('turbowarp').addEventListener('click', function() {
fetchData('http://localhost:13597/run/TurboWarp');
});
document.getElementById('unigine').addEventListener('click', function() {
fetchData('http://localhost:13597/run/Unigine SDK browser 2');
});
document.getElementById('unity').addEventListener('click', function() {
fetchData('http://localhost:13597/run/Unity Hub');
});
document.getElementById('unreal').addEventListener('click', function() {
fetchData('http://localhost:13597/run/Unreal Engine');
});
document.getElementById('upbge').addEventListener('click', function() {
fetchData('http://localhost:13597/run/UPBGE');
});
document.getElementById('itch').addEventListener('click', function() {
fetchData('http://localhost:13597/run/itch');
});
document.getElementById('steam').addEventListener('click', function() {
fetchData('http://localhost:13597/run/Steam');
});
document.getElementById('epic').addEventListener('click', function() {
fetchData('http://localhost:13597/run/Epic');
});
document.getElementById('gog').addEventListener('click', function() {
fetchData('http://localhost:13597/run/GOG');
});
document.getElementById('heroic').addEventListener('click', function() {
fetchData('http://localhost:13597/run/Heroic');
});