-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (66 loc) · 2.61 KB
/
Copy pathindex.html
File metadata and controls
73 lines (66 loc) · 2.61 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PORTABLE LINUX APPS</title>
<meta name="description" content="The first AUR-inspired Software Center of all AppImage packages and portable applications for GNU/Linux.">
<meta property="og:title" content="PORTABLE LINUX APPS">
<meta property="og:description" content="The first AUR-inspired Software Center of all AppImage packages and portable applications for GNU/Linux.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://portable-linux-apps.github.io/">
<meta property="og:image" content="https://portable-linux-apps.github.io/pla.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="PORTABLE LINUX APPS">
<meta name="twitter:image" content="https://portable-linux-apps.github.io/pla.jpg">
<meta name="twitter:description" content="The first AUR-inspired Software Center of all AppImage packages and portable applications for GNU/Linux.">
<link rel="canonical" href="https://portable-linux-apps.github.io/">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<style>
:root {
--color-bg: #0d1117;
--color-text: #e6edf3;
}
@media (prefers-color-scheme: light) {
:root {
--color-bg: #fff;
--color-text: #24292f;
}
}
body {
color: var(--color-text);
background: var(--color-bg);
}
</style>
</head>
<body>
<script>
(function() {
// Supported languages
// will be replaced by generator with $SUPPORTED_LANGUAGES
var supportedLanguages = $SUPPORTED_LANGUAGES;
// Check for stored preference
var lang = localStorage.getItem('preferredLang');
// If not stored, try to detect browser language
if (!lang) {
var browserLang = navigator.language || navigator.userLanguage || 'en';
lang = browserLang.split('-')[0].toLowerCase();
// Only use detected language if it's supported
if (supportedLanguages.indexOf(lang) === -1) {
lang = 'en'; // Fallback to English
}
// Store the detected language for future visits
localStorage.setItem('preferredLang', lang);
}
// Ensure it's in our supported list (defensive)
if (supportedLanguages.indexOf(lang) === -1) {
lang = 'en';
}
window.location.href = lang + '/index.html';
})();
</script>
<p>If you are not redirected automatically, <a href="en/index.html">click here</a>.</p>
</body>
</html>