-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
118 lines (106 loc) · 3.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Linux One Clic</title>
<link href="https://fonts.googleapis.com/css2?family=Comfortaa:[email protected]&display=swap" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="web/favicon.ico">
<style>
body {
margin: 0;
padding: 0;
font-family: 'Comfortaa', sans-serif;
color: white;
overflow-x: hidden;
}
video#bg-video {
position: fixed;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
object-fit: cover;
transform: translate(-50%, -50%);
z-index: -1;
}
a {
color: lightblue;
}
blockquote {
margin: 20px 0;
padding: 10px 20px;
background-color: rgba(0, 0, 0, 0.7);
border-left: 5px solid #ccc;
color: white;
}
code {
font-family: monospace;
padding: 2px 4px;
border-radius: 4px;
background-color: rgba(0, 0, 0, 0.7);
border-left: 5px solid #ccc;
color: white;
}
.content {
background-color: rgba(0, 0, 0, 0.7);
padding: 20px;
border-radius: 10px;
max-width: 800px;
margin: 50px auto;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
position: relative;
z-index: 1;
backdrop-filter: blur(10px);
}
h1, p {
color: white;
}
#disqus_thread {
margin-top: 20px;
}
</style>
</head>
<body>
<video autoplay muted loop id="bg-video" preload="auto">
<source src="https://github.com/user-attachments/assets/39cbf647-28cd-4604-a717-ada1439d274b" type="video/mp4">
Tu navegador no soporta el elemento de video.
</video>
<div class="content" id="content">
</div>
<script>
document.addEventListener("DOMContentLoaded", async function() {
const userLang = navigator.language || navigator.userLanguage;
let htmlFile = 'web/ingles.html';
if (userLang.startsWith('es')) {
htmlFile = 'web/es.html';
} else if (userLang.startsWith('pt')) {
htmlFile = 'web/pt.html';
}
try {
const response = await fetch(htmlFile);
if (!response.ok) throw new Error(`Error fetching ${htmlFile}: ${response.statusText}`);
const htmlContent = await response.text();
document.getElementById('content').innerHTML = htmlContent;
const disqusDiv = document.createElement('div');
disqusDiv.id = 'disqus_thread';
document.getElementById('content').appendChild(disqusDiv);
var disqus_config = function () {
this.page.url = window.location.href;
this.page.identifier = document.title;
};
(function() {
var d = document, s = d.createElement('script');
s.src = 'https://linuxoneclic.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
} catch (error) {
console.error(error);
document.getElementById('content').innerHTML = `<p>Error loading content: ${error.message}</p>`;
}
});
</script>
<noscript> JavaScript OFF.</noscript>
</body>
</html>