-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (43 loc) · 1.51 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
<html>
<head>
<title>Github Calendar</title>
<style>
#date{
font-size:small;
}
body{
background-color: aliceblue;
}
</style>
</head>
<body>
<div id="github_widget" style="margin-top: 15px">
<!-- Include the library. -->
<script src="https://unpkg.com/github-calendar@latest/dist/github-calendar.min.js"></script>
<!-- Optionally, include the theme (if you don't want to struggle to write the CSS) -->
<link
rel="stylesheet"
href="https://unpkg.com/github-calendar@latest/dist/github-calendar-responsive.css"
/>
<div>
<!-- Prepare a container for your calendar. -->
<div class="calendar" style="width: 400px">
<!-- Loading stuff -->
Loading data ...
</div>
</div>
<script>
GitHubCalendar(".calendar", "arjunskumar", {
responsive: true,
tooltips: true,
global_stats: true,
}).then(function () {
// delete the space underneath the module bar which is caused by minheight
document.getElementsByClassName("calendar")[0].style.minHeight = "50px";
// hide more and less legen below the contribution graph
//document.getElementsByClassName("contrib-legend")[0].style.display = "none";
});
</script>
</div>
</body>
</html>