-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path404.html
127 lines (121 loc) · 4.15 KB
/
404.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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="images/perfil_red.jpg">
<link href="css/style.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Space+Mono" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Kaushan+Script" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>L. - IT Services</title>
<meta name="viewport" content="width=device-width,height=device-height, initial-scale=1">
<meta name="description" content="Luis Alfie Website">
<meta name="keywords" content="IT Audit, Cybersecurity, IT Risks, Development">
<meta name="author" content="L.">
<script>
const changeLang = (languageCode) => {document.documentElement.setAttribute("lang", languageCode);};
</script>
</head>
<body>
<script>
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
const typingLetters = async(id, msj) => {
const deltaMs=300;
const msjLen=msj.length;
const el=document.getElementById(id);
for(let i=0;i<msjLen;i++){
let delay = Math.random() * deltaMs + 10;
let text=el.textContent;
el.innerHTML = text + msj[i];
await sleep(delay);
if(i===19){
el.innerHTML = text + '\b';
await sleep(Math.random() * deltaMs + 10);
}
}
}
</script>
<header> </header>
<video id="videoBackground" class="video-overlay" loop muted>
</video>
<div id="loading">
<div id="loading-image" class="spinner-border text-primary" style="width: 4rem; height: 4rem;" role="status"></div>
<div style="width: 1px; height: 1px; visibility: hidden; overflow: hidden"></div>
</div>
<div id="Page1">
<div class="container-fluid px-0 container-Page1">
<div class="controllerPage1">
<div class=marg>
<div class="text-center">
<img class="profile-thumb" src="images/perfil.jpg" />
</div>
<div class="text-center nombre">
<span id="fileNotFound" class="textNombre"></span>
</div>
<div class="text-center">
<button onclick="location.href='index.html'" type="button" class="en text-center btn wf">
<span lang="en" class="textVersion textBtnBack404500">[↩]</span>
</button>
</div>
</div>
</div>
</div>
</div>
<script>
window.onload = function() {
var interval = setInterval(bufferBgVideo, 500);
const vi = document.getElementById("videoBackground");
let cont=0;
function bufferBgVideo(){
vi.play();
if(vi.buffered.end(0)>=3.0 || cont>=5){
clearInterval(interval);
vi.play();
setTimeout(()=>{
document.getElementById("loading").style.visibility = "hidden";
typingLetters('fileNotFound','- 400: ¡File Not Foiund! -');
},500);
}
}
};
</script>
<script>
window.addEventListener('focus', function() {
var linkElementLnk = document.getElementById("videoBackground");
linkElementLnk.play();
});
window.addEventListener('blur', function() {
var linkElementLnk = document.getElementById("videoBackground");
linkElementLnk.play();
});
</script>
<script>
let details = navigator.userAgent;
let regexp = /android|Android|iphone|Iphone|kindle|Kindle|ipad/i;
let isMobileDevice = regexp.test(details);
const v = document.querySelector("#videoBackground");
if(isMobileDevice==false){
const el = document.querySelector("#Page1");
const windowWidth = window.innerWidth / 5;
const windowHeight = window.innerHeight / 5 ;
v.setAttribute("src", "videos/MatrixCode.mp4");
v.setAttribute("width", "120%");
v.setAttribute("height", "120%");
el.addEventListener("mousemove", (e) => {
const mouseX = e.clientX / windowWidth;
const mouseY = e.clientY / windowHeight;
v.style.transform = `translate3d(-${mouseX}%, -${mouseY}%, 0)`;
});
}else{
v.setAttribute("src", "videos/MatrixCode-Android.mp4");
v.setAttribute("width", "100%");
v.setAttribute("height", "100%");
}
v.load();
</script>
</body>
</html>