-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
111 lines (100 loc) · 3.4 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html>
<head>
<title>My GitHub Projects</title>
<link rel="stylesheet" href="style.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/showdown.min.js"></script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
/>
</head>
<body>
<div class="header">
<div class="update-username">
<div class="username-input-container">
<input
type="text"
id="username-input"
placeholder="Enter your GitHub username"
onkeydown="handleKeyDown(event)"
list="options"
/>
<datalist id="options"></datalist>
<button onclick="updateUsername()">Update</button>
</div>
</div>
</div>
<div class="container-wrapper">
<div class="container">
<div class="sidebar">
<div class="about" onclick="openOverlay('project')">
<div class="menu">
<ul>
<li><a class="button" id="home">Home</a></li>
<li><a class="button" href="settings.html">Settings</a></li>
<li><a class="button" href="mailto:[email protected]">Contact</a></li>
</ul>
</div>
<img
class="profile-img"
id="profile-picture"
src=""
alt="Profile Picture"
/>
<h2>About Me</h2>
<p id="about-description"></p>
<!-- Display the text when no user is displayed -->
<p id="enter-username-text"></p>
<!-- Display status of GitHub API -->
<div id="github-api-status">Checking GitHub API status...</div>
</div>
<div class="links" onclick="openOverlay('links')">
<br />
<div id="username"></div>
</div>
<br /><br />
</div>
<div class="projectWrapper">
<div class="search">
<input
type="text"
id="search-input"
placeholder="Search projects..."
oninput="filterProjects()"
/>
</div>
<div class="projects">
<!-- Project data is dynamically inserted here -->
</div>
</div>
</div>
</div>
<div class="overlay" id="overlay">
<div class="overlay-content" id="overlay-content">
<h2 id="overlay-title"></h2>
<div id="overlay-readme"></div>
</div>
</div>
<script type="text/javascript" src="js/predict.js"></script>
<script type="text/javascript" src="js/settings.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script>
if (isUnsplashEnabled()) {
fetch('https://source.unsplash.com/1600x900/?nature')
.then(response => {
document.body.style.backgroundImage = `url(${response.url})`;
})
.catch(error => console.error('Fehler beim Laden des Hintergrundbilds:', error));
}
window.addEventListener('resize', () => {
const windowHeight = window.innerHeight;
const formHeight = document.getElementById('form').offsetHeight;
const padding = (windowHeight - formHeight) / 2;
document.body.style.paddingTop = padding + 'px';
});
window.dispatchEvent(new Event('resize'));
</script>
</body>
</html>