-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstats.html
More file actions
97 lines (94 loc) · 3.34 KB
/
stats.html
File metadata and controls
97 lines (94 loc) · 3.34 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stats for All 5 Letter Sequences</title>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<style>
body {
background-color: #0d1117; /* GitHub dark background */
color: #c9d1d9; /* GitHub primary text color */
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
font-size: 14px; /* GitHub’s base font size */
line-height: 1.5; /* GitHub’s line height for readability */
padding: 16px; /* Reduced padding to match GitHub’s tighter layout */
margin: 0;
box-sizing: border-box;
min-height: 100vh;
}
#content-container {
width: 100%;
max-width: 500px; /* GitHub’s typical content width */
margin: 0 auto; /* Centered like GitHub */
}
h1 {
color: #c9d1d9; /* Same as body text */
font-size: 24px; /* GitHub’s <h1> size */
font-weight: 600; /* Slightly bold */
line-height: 1.25;
margin-top: 0;
margin-bottom: 16px; /* GitHub’s spacing below headings */
padding-bottom: 0.3em; /* Mimics GitHub’s subtle heading underline effect */
border-bottom: 1px solid #30363d; /* GitHub’s heading underline */
}
table {
border-collapse: separate; /* GitHub uses separate borders */
border-spacing: 0; /* No gaps between cells */
margin-bottom: 16px; /* Spacing below tables */
background-color: #0d1117; /* Matches body background */
border: 1px solid #30363d; /* GitHub’s table border */
border-radius: 6px; /* Slight rounding like GitHub */
}
th, td {
padding: 6px 13px; /* GitHub’s table cell padding */
border: 1px solid #30363d; /* GitHub’s cell borders */
vertical-align: top; /* GitHub aligns content to the top */
}
th {
background-color: #21262d; /* GitHub’s header background */
color: #c9d1d9; /* Header text color */
font-weight: 600; /* Bold headers */
text-align: left; /* Left-aligned like GitHub */
}
td {
color: #c9d1d9; /* GitHub uses the same text color for table content */
}
tr:nth-child(even) {
background-color: #161b22; /* GitHub’s even row background */
}
tr:nth-child(odd) {
background-color: #0d1117; /* GitHub’s odd row background */
}
tr:hover {
background-color: #21262d; /* GitHub’s hover effect */
}
a {
color: #58a6ff; /* GitHub’s link color */
text-decoration: none; /* No underline by default */
}
a:hover {
text-decoration: underline; /* Underline on hover like GitHub */
}
</style>
</head>
<body>
<div id="content-container">Loading stats...</div>
<script>
async function fetchAndRenderData() {
const url = "https://raw.githubusercontent.com/InfiniteCraftStuff/All-5-Letter-Sequences/main/STATS.md";
try {
const response = await fetch(url);
const markdownText = await response.text();
const html = marked.parse(markdownText);
document.getElementById("content-container").innerHTML = html;
} catch (error) {
document.getElementById("content-container").innerText = "Error loading content!";
console.error(error);
}
}
fetchAndRenderData();
setInterval(fetchAndRenderData, 120_000);
</script>
</body>
</html>