-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.html
47 lines (44 loc) · 1.54 KB
/
profile.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GitHub Profile Widget</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1059149013243103"
crossorigin="anonymous"></script>
</head>
<body>
<div id="profile-widget" style="display:none">
<div class="profile">
<div class="fade-effect">
<img id="avatar" src="" alt="GitHub Avatar">
</div>
<div class="names">
<h2 id="name"></h2>
</div>
</div>
<hr>
<div class="details">
<p id="username"></p>
<p id="followers"></p>
<p id="repos"></p>
<p id="contributions-count"></p>
<p id="account-age"></p>
<hr>
<a id="profile-link" href="" target="_blank">View Profile on GitHub <i class="fa-brands fa-github"></i></a>
</div>
</div>
<script src="script.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
const urlParams = new URLSearchParams(window.location.search);
const username = urlParams.get('username');
if (username) {
fetchGitHubData(username);
}
});
</script>
</body>
</html>