-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
131 lines (126 loc) · 4.46 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon"
href="https://res.cloudinary.com/dbriqxpaa/image/upload/v1680096853/Logo/logo-xl-ico_qzbf7d.ico" />
<title>data.aykhan.net</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
font-weight: 400;
transition: background-color 0.3s, color 0.3s;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 8px 13px;
border: 1px solid #ccc;
}
th {
background-color: #f2f2f2;
}
td.icon-col {
width: 44px;
text-align: center;
}
a {
text-decoration: none;
color: #007BFF;
}
a:hover {
text-decoration: underline;
}
.go-back {
margin-bottom: 22px;
margin-left: 11px;
display: inline-block;
}
h1 {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 1.65em;
margin: 0;
padding: 11px;
}
/* Dark mode styles */
body.dark-mode {
background-color: #333;
color: #f1f1f1;
}
body.dark-mode th {
background-color: #555;
}
body.dark-mode a {
color: #1e90ff;
}
/* Dark mode button styles */
.dark-mode-toggle {
position: fixed;
bottom: 22px;
right: 22px;
background-color: #007BFF;
color: #fff;
border: none;
padding: 11px 22px;
cursor: pointer;
border-radius: 5.5px;
z-index: 1000;
}
.dark-mode-toggle:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<h1>data.aykhan.net</h1>
<table>
<thead>
<tr>
<th class="icon-col">Icon</th>
<th>Name</th>
<th>Size</th>
<th>Last Modified</th>
</tr>
</thead>
<tbody>
<tr><td class="icon-col">📁</td><td><a href="data/index.html">data/</a></td><td>-</td><td>2025-02-08 20:39</td></tr>
<tr><td class="icon-col">📄</td><td><a href="LICENSE">LICENSE</a></td><td>1.0 KB</td><td>2025-02-08 20:39</td></tr>
<tr><td class="icon-col">📄</td><td><a href="generate_index.py">generate_index.py</a></td><td>8.4 KB</td><td>2025-02-08 20:39</td></tr>
<tr><td class="icon-col">📄</td><td><a href="404.md">404.md</a></td><td>126.0 B</td><td>2025-02-08 20:39</td></tr>
<tr><td class="icon-col">📄</td><td><a href="CNAME">CNAME</a></td><td>16.0 B</td><td>2025-02-08 20:39</td></tr>
<tr><td class="icon-col">📄</td><td><a href="README.md">README.md</a></td><td>1.6 KB</td><td>2025-02-08 20:39</td></tr>
<tr><td class="icon-col">📄</td><td><a href="404.html">404.html</a></td><td>472.0 B</td><td>2025-02-08 20:39</td></tr>
</tbody>
</table>
<!-- Auto-generated by Python script -->
<button class="dark-mode-toggle" onclick="toggleDarkMode()">🌙 Dark Mode</button>
<script>
function toggleDarkMode() {
const body = document.body;
const button = document.querySelector('.dark-mode-toggle');
body.classList.toggle('dark-mode');
const isDarkMode = body.classList.contains('dark-mode');
localStorage.setItem('darkMode', isDarkMode);
// Update button text based on current mode
button.textContent = isDarkMode ? '🌞 Light Mode' : '🌙 Dark Mode';
}
// Load dark mode setting from localStorage
document.addEventListener('DOMContentLoaded', () => {
const isDarkMode = localStorage.getItem('darkMode') === 'true';
const button = document.querySelector('.dark-mode-toggle');
if (isDarkMode) {
document.body.classList.add('dark-mode');
button.textContent = '🌞 Light Mode';
} else {
button.textContent = '🌙 Dark Mode';
}
});
</script>
</body>
</html>