-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
76 lines (66 loc) · 2.73 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="global.css">
<script type="text/javascript">
async function getStarsCount(repo) {
const response = await fetch(`https://api.github.com/repos/${repo}/stargazers`);
const data = await response.json();
return data.length;
}
window.onload = (event) => {
getStarsCount('Windivs-Devs/windivs').then(count => {
console.log(count)
document.getElementById('mainStars').innerText = count + " "
});
getStarsCount('Windivs-Devs/windivsw').then(count => {
console.log(count)
document.getElementById('websiteStars').innerText = count + " "
})
}
</script>
</head>
<body>
<div id="topdiv">
<header>
<nav>
<a href="#gallery">Gallery</a>
<a href="https://github.com/Windivs-Devs/windivs/releases/tag/6.01.6568.1.7dev" id="download">Download</a>
<a href="https://github.com/Windivs-Devs" id="github_container"><i class="fa fa-github"></i></a>
</nav>
</header>
<h1><span id="title"><span id="windivs">Windivs</span> OS</span></h1>
<h2>Your <span class="highlight">free and open-source, ReactOS-based</span> operating system.</h2>
<div class="grid" id="gallery">
<div class="gridElement">
<a target="_blank" href="diskcleanup.png">
<img src="diskcleanup.png" alt="Disk Cleanup">
</a>
<p>Disk Cleanup: Efficiently clean up unnecessary files and optimize your system's performance.</p>
</div>
<div class="gridElement">
<a target="_blank" href="notepad.png">
<img src="notepad.png" alt="Notepad">
</a>
<p>Notepad: Enjoy a simple and versatile text editor for all your note-taking needs.</p>
</div>
<div class="gridElement" id="windivscard">
<img src="windivs.png" alt="WinDivs">
<p>Discover an innovative and fast OS right now!</p>
</div>
</div>
<div id="githubWidget">
<div id="stats">
<a class="ghLink" href="https://github.com/windivs-devs/windivs">windivs-devs/windivs: <span
id="mainStars">Pending... </span><i style="color:#DAAA3F; font-size: 18px" class="fa fa-star stars"></i></a>
<a class="ghLink" href="https://github.com/Windivs-Devs/windivsw/">windivs-devs/windivsw: <span
id="websiteStars">Pending... </span><i style="color:#DAAA3F; font-size: 18px" class="fa fa-star stars"></i>
</a>
</div>
<i class="fa fa-github" id="widgetOpener"></i>
</div>
</body>
</html>