Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (34 loc) · 1.47 KB
/
Copy pathindex.html
File metadata and controls
38 lines (34 loc) · 1.47 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script>
if (location.protocol === 'file:') {
document.documentElement.classList.add('is-file-origin')
}
</script>
<link rel="stylesheet" href="https://unpkg.com/github-calendar@latest/dist/github-calendar-responsive.css"/>
<link rel="stylesheet" href="style.css?v=3" />
<title>Github Profiles</title>
</head>
<body>
<div class="file-origin-banner" role="alert">
<strong>You are on a file:// page.</strong>
GitHub API calls often fail from here. Use a local server instead: open a terminal in this folder, run
<code>npx --yes serve . -l 5173</code>
or <code>python -m http.server 5173</code>, then visit
<code>http://127.0.0.1:5173</code>
(hard-refresh that tab if you already updated the project: Ctrl+Shift+R).
</div>
<form class="user-form" id="form">
<input type="text" id="search" placeholder="Search a Github User">
</form>
<main id="main"></main>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.21.0/axios.min.js" integrity="sha512-DZqqY3PiOvTP9HkjIWgjO6ouCbq+dxqWoJZ/Q+zPYNHmlnI2dQnbJ5bxAHpAMw+LXRm4D72EIRXzvcHQtE8/VQ==" crossorigin="anonymous"></script>
<script
src="https://unpkg.com/github-calendar@latest/dist/github-calendar.min.js">
</script>
<script src="script.js?v=3"></script>
</body>
</html>