-
Notifications
You must be signed in to change notification settings - Fork 1
/
random.html
86 lines (68 loc) · 1.61 KB
/
random.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
<!DOCTYPE HTML>
<html lang=en>
<head>
<meta charset=UTF-8>
<meta name=viewport content="width=device-width, initial-scale=1">
<title>matrix</title>
<style>
html {
font-size: 62.5%; /* blarrgh */
}
body {
background-color: white;
color: white;
font-family: 'Maison Neue Mono', sans-serif;
margin: 0;
}
main div {
padding: 1.6rem;
}
h1 {
margin: 0;
}
main > div > header p {
display: inline-block;
flex: 1;
margin: 0;
}
main > div > header a {
border-bottom: 2px solid transparent;
color: inherit;
display: inline-block;
font-size: 2.2rem;
margin-left: 2rem;
text-decoration: none;
}
main > div > header a:hover {
border-bottom: .2rem solid;
}
</style>
</head>
<body class="single">
<main role=main id=main class=main>
<div class="bg">
<header>
<h1></h1>
</header>
<div id="cssconf"></div>
<div id="jsconf"></div>
<footer></footer>
</div>
</main>
<script id="dtmtrx" src="scripts/scripts.js"></script>
<script src="scripts/brandish.js"></script>
<script>
var canvas = document.createElement("canvas");
canvas.id = "CANVAS";
document.body.appendChild(canvas);
DTS.OPTIONS.rgb = [
(Math.floor(Math.random() * (256))),
(Math.floor(Math.random() * (256))),
(Math.floor(Math.random() * (256)))
];
DTS.generate();
document.querySelector('#DTMTRX').innerHTML += "#MATRIX::after {background-image: linear-gradient(" + DTS.rgb(DTS.OPTIONS.rgb) + ", transparent);}";
document.title = DTS.OPTIONS.rgb;
</script>
</body>
</html>