forked from pivoshenko/catppuccin-startpage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (82 loc) · 3.63 KB
/
index.html
File metadata and controls
100 lines (82 loc) · 3.63 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
98
99
100
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="author" content="Volodymyr Pivoshenko (https://github.com/pivoshenko)" />
<!-- CSS files will be loaded by JavaScript based on configuration -->
<link href="https://cdn.jsdelivr.net/gh/monzanifabio/cryptofont/cryptofont.css" rel="stylesheet" />
<link href="src/css/style.css" rel="stylesheet" type="text/css" />
<link href="src/css/tabler-icons.min.css" rel="stylesheet" />
<link rel="icon" type="image/png" href="src/img/favicon.png" />
<title>homepage</title>
</head>
<body>
<tabs-list></tabs-list>
<script type="text/javascript" src="src/common/palette.js"></script>
<script type="text/javascript" src="src/common/utils.js"></script>
<script type="text/javascript" src="src/common/storage.js"></script>
<script type="text/javascript" src="src/common/actions.js"></script>
<script type="text/javascript" src="src/common/config.js"></script>
<script type="text/javascript" src="src/common/strftime.js"></script>
<script type="text/javascript" src="src/common/theme.js"></script>
<script type="text/javascript" src="src/common/component.js"></script>
<script type="text/javascript" src="./userconfig.js"></script>
<!-- Font loading script -->
<script type="text/javascript">
// Load fonts and CSS based on configuration
function loadFonts() {
const head = document.getElementsByTagName('head')[0];
if (CONFIG.localFonts) {
// Load local awoo CSS (without Google Fonts import)
const awooLink = document.createElement('link');
awooLink.rel = 'stylesheet';
awooLink.type = 'text/css';
awooLink.href = 'src/css/awoo-local.min.css';
head.appendChild(awooLink);
// Load local fonts
const localFontLinks = [
'src/fonts/roboto-local.css',
'src/fonts/nunito-local.css',
'src/fonts/raleway-local.css',
'src/fonts/material-icons-local.css'
];
localFontLinks.forEach(href => {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = href;
head.appendChild(link);
});
} else {
// Load standard awoo CSS (with Google Fonts import)
const awooLink = document.createElement('link');
awooLink.rel = 'stylesheet';
awooLink.type = 'text/css';
awooLink.href = 'src/css/awoo.min.css';
head.appendChild(awooLink);
// Load Google Fonts
const googleFontLinks = [
'https://fonts.googleapis.com/css?family=Nunito:200|Roboto:100,400,700|Raleway:600',
'https://fonts.googleapis.com/icon?family=Material+Icons'
];
googleFontLinks.forEach(href => {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = href;
head.appendChild(link);
});
}
}
// Load fonts after CONFIG is available
loadFonts();
</script>
<script type="text/javascript" src="src/components/tabs/tabs.component.js"></script>
<script type="text/javascript" src="src/components/weather/weather.api.js"></script>
<script type="text/javascript" src="src/components/weather/weather.component.js"></script>
<script type="text/javascript" src="src/components/clock/clock.component.js"></script>
<script type="text/javascript" src="src/components/statusbar/statusbar.component.js"></script>
<script type="text/javascript" src="src/components/search/search.component.js"></script>
<script type="text/javascript" src="src/common/module.js"></script>
</body>
</html>