-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (56 loc) · 2.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FreeScreenshareAPI</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<script>
async function fetchCommits(repoName, limit = 5) {
try {
const response = await fetch(`https://api.github.com/repos/${repoName}/commits?per_page=${limit}`);
const commits = await response.json();
return commits;
} catch (error) {
console.error('Error fetching commits:', error);
return [];
}
}
async function displayCommits(repoName, containerId) {
const commits = await fetchCommits(repoName);
const container = document.getElementById(containerId);
commits.forEach(commit => {
const commitLink = document.createElement('a');
commitLink.href = commit.html_url;
commitLink.textContent = commit.commit.message;
const listItem = document.createElement('li');
listItem.appendChild(commitLink);
container.appendChild(listItem);
});
}
window.onload = function () {
displayCommits('nmsderp/FreeScreenShareAPI', 'firstRepoCommits');
displayCommits('thepython555/Infinity-Server', 'secondRepoCommits');
};
</script>
</head>
<body>
<h1>FreeScreenshareAPI</h1>
<h2>FreeScreenshareAPI is an open source completely free screenshare API that can easily be used in your websites via an iframe!</h2>
<p>Cool Stuff About This:</p>
<ul>
<li>Private codes that can be used via a search parameter</li>
<li>Servers are completely free</li>
<li>No API keys required!</li>
<li>Full Source Code available <a href="https://github.com/nmsderp/FreeScreenShareAPI">here.</a></li>
</ul>
<h2>Let's Get Started!</h2>
<p>Click <a href="https://freescreenshareapi.vercel.app/tutorial">here</a> to read the tutorial on how to use it.</p>
<h2>Thanks to @dumorando on GitHub our screensharing choppiness has improved</h2>
<p>We now use <a href="https://github.com/thepython555/Infinity-Server">Infinity Server's</a> servers to host this.</p>
<h2>Latest Commits for FreeScreenShareAPI</h2>
<ul id="firstRepoCommits"></ul>
<h2>Latest Commits for Infinity Server</h2>
<ul id="secondRepoCommits"></ul>
</body>
</html>