-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (76 loc) · 2.88 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Máquina del Tiempo Relativista</title>
<!-- Incluye la librería de FontAwesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<!-- Enlace a la hoja de estilos -->
<link rel="stylesheet" href="styles.css">
<!-- Configuración inicial de MathJax -->
<script>
window.MathJax = {
tex: { inlineMath: [['\\(', '\\)'], ['$', '$']] },
svg: { scale: 1, minScale: 0.5 }
};
</script>
<!-- MathJax desde CDN -->
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js" defer></script>
</head>
<body>
<!-- Enlace a repositorio en GitHub -->
<div class="floating-github">
<a href="https://github.com/2DAWIE/RelatividadEspecial" target="_blank" aria-label="Ver el repositorio en GitHub">
<i class="fab fa-github github-icon"></i>
<span class="github-text">Ver el repositorio</span>
</a>
</div>
<!-- Contenedor de partículas -->
<div id="particles-js"></div>
<!-- Encabezado principal -->
<header>
<h1>Máquina del Tiempo 🕒</h1>
<div id="explanation">
Según la teoría de la <a href="/relatividad.html" class="btn">Relatividad Especial</a>, cuanto más rápido te muevas, más lento transcurrirá el tiempo para ti en comparación con un observador estacionario.
<br><br>
Fórmula usada:
<div style="text-align:center;">
\[
t' = \\frac{t}{\\sqrt{1 - \\frac{v^2}{c^2}}}
\]
</div>
Donde:
<ul>
<li>\(t'\): Tiempo percibido por el observador estacionario.</li>
<li>\(t\): Tiempo percibido por el viajero.</li>
<li>\(v\): Velocidad del objeto (fracción de \(c\)).</li>
<li>\(c\): Velocidad de la luz (\(299,792,458 \, \\text{m/s}\)).</li>
</ul>
</div>
</header>
<!-- Controles -->
<main>
<div>
<label for="velocity-slider">Velocidad (fracción de c):</label>
<span id="velocity-display">0.5</span>
</div>
<!-- Input para el deslizador de velocidad -->
<input type="range" id="velocity-slider" name="velocity-slider" min="0" max="1" step="0.01" value="0.5">
<div class="controls">
<label for="travel-time">Tiempo de viaje (en años):</label>
<!-- Input para el tiempo de viaje -->
<input type="number" id="travel-time" name="travel-time" value="10">
</div>
<div class="buttons">
<button id="travel">Iniciar Viaje</button>
<button id="reset" style="display: none;">Regresar al presente</button>
</div>
</main>
<!-- Particles.js desde CDN -->
<script src="https://cdn.jsdelivr.net/npm/particles.js"></script>
<!-- Archivo principal de JavaScript -->
<script src="script.js"></script>
</body>
</html>