-
Notifications
You must be signed in to change notification settings - Fork 1
/
div.html
75 lines (58 loc) · 2.27 KB
/
div.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
<!doctype html>
<html lang="en" translate="no">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Matrix Wall (in a div)</title>
<meta name="description"
content="A JavaScript implementation of The Matrix code wall with falling green Unicode characters on a dark background">
<link rel="icon" href="favicon.ico?" sizes="any">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9SCHN885L9"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-9SCHN885L9');
</script>
<style>
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="container my-5" style="max-width: 1000px;">
<!-- the outer element has fixed height and shows the matrix -->
<div id="matrixDiv" class="bg-dark text-light my-5"
style="height: 200px; align-items: center; justify-content: center;">
<!-- the inner element must use absolute positioning -->
<div style="position: absolute;">
<h1 class="text-light shadow-sm" style="font-size: 6em; font-weight: 400;">The Matrix Wall</h1>
</div>
</div>
</div>
<!-- set matrix wall options -->
<script type="text/javascript">
const matrixSettings = {
target: document.getElementById("matrixDiv"),
background: "#67217a",
foreground: "#9a4993",
highlight: "#ba5db2",
characterSize: 15,
speed: .5,
};
</script>
<!-- start the matrix wall -->
<script type="text/javascript" src="matrix.js?4"></script>
<footer class="container my-5" style="max-width: 1000px;">
<a href="https://github.com/swharden/MatrixWall">
https://github.com/swharden/MatrixWall
</a>
</footer>
</body>
</html>