-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoff1.html
More file actions
166 lines (140 loc) · 5.14 KB
/
Copy pathoff1.html
File metadata and controls
166 lines (140 loc) · 5.14 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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Code & Design Studio</title>
<link rel="stylesheet" href="off1.css">
<link rel="stylesheet" href="navvar.css">
</head>
<body>
<div class="navbar">
<div class="nav-container">
<a href="index.html" class="logo"><h1>Diseño y Programación SAM</h1></a>
<ul class="nav-menu">
<li class="nav-item">
<a href="index.html" class="nav-link">Inicio</a>
</li>
<li class="nav-item">
<a href="off1.html" class="nav-link"> suerte</a>
</li>
<li class="nav-item">
<a href="off2.html" class="nav-link">frase</a>
</li>
</ul>
<div class="hamburger">
<span></span>
<span></span>
<span></span>
</div>
</div>
</div>
<div class="floating-elements">
<div class="code-symbol"></></div>
<div class="code-symbol">{ }</div>
<div class="code-symbol">⚡</div>
<div class="code-symbol">🎨</div>
</div>
<div class="header-container">
<h1>"Mientras no tengas éxito, inténtalo de nuevo"</h1>
<p class="subtitle">Cada línea de código es un paso hacia la excelencia digital</p>
<div class="tech-stack">
<span class="tech-badge">HTML5</span>
<span class="tech-badge">CSS3</span>
<span class="tech-badge">JavaScript</span>
<span class="tech-badge">MYsql</span>
<span class="tech-badge">UI/UX</span>
</div>
</div>
<div class="button-container">
<button onclick="simular()" id="mainButton">
¡Pulsa y Sigue Intentando!
</button>
</div>
<div id="output"></div>
<script>
function intentar() {
return Math.floor(Math.random() * 12) + 1 > 9;
}
function simular() {
const button = document.getElementById('mainButton');
const output = document.getElementById('output');
// Disable button and show loading state
button.disabled = true;
button.classList.add('loading');
button.textContent = 'Intentando...';
let exito = false;
let intentos = 0;
let resultado = '';
// Terminal header
const terminalHeader = `<div class="terminal-header">
<div class="terminal-dots">
<div class="dot red"></div>
<div class="dot yellow"></div>
<div class="dot green"></div>
</div>
<div class="terminal-title">terminal@dev-studio</div>
</div>`;
const processMessages = [
'🔧 Compilando componentes...',
'⚙️ Optimizando assets...',
'🚀 Ejecutando tests...',
'📦 Empaquetando módulos...',
'🔍 Validando sintaxis...',
'🔍 Consultando con Dios...',
'🎨 Aplicando estilos...'
];
const processAttempt = () => {
intentos++;
const randomMessage = processMessages[Math.floor(Math.random() * processMessages.length)];
resultado += `<span class="attempt-line">Build #${intentos.toString().padStart(3, '0')}: ${randomMessage}</span>\n`;
// Add process line
if (intentos % 3 === 0) {
resultado += `<span class="process-line">→ Analizando dependencias...</span>\n`;
}
// Update output in real-time
output.innerHTML = terminalHeader + resultado.split('\n').join('<br>');
output.classList.add('show');
exito = intentar();
if (!exito && intentos < 40) {
setTimeout(processAttempt, 150);
} else {
// Final result
resultado += `\n<span class="success-line">✅ ¡Escaneo exitoso en ${intentos} intentos! 🚀</span>\n`;
resultado += `<span class="process-line">→ URL: https://Diosito </span>`;
output.innerHTML = terminalHeader + resultado.split('\n').join('<br>');
// Re-enable button
button.disabled = false;
button.classList.remove('loading');
button.textContent = '¡Pulsa y Sigue Intentando!';
}
};
// Clear previous results
output.innerHTML = '';
output.classList.remove('show');
// Start processing
setTimeout(processAttempt, 300);
}
// menu navbar
function toggleNav() {
const checked = document.getElementById('navSwitch').checked;
if (checked) {
window.location.href = "off2.html";
} else {
window.location.href = "off1.html";
}
}
const hamburger = document.querySelector('.hamburger');
const navMenu = document.querySelector('.nav-menu');
hamburger.addEventListener('click', () => {
hamburger.classList.toggle('active');
navMenu.classList.toggle('active');
});
// Cerrar menú al hacer click en un enlace (móvil)
document.querySelectorAll('.nav-link').forEach(n => n.addEventListener('click', () => {
hamburger.classList.remove('active');
navMenu.classList.remove('active');
}));
</script>
</body>
</html>