-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
177 lines (163 loc) · 4.69 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
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
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE html>
<html>
<head>
<title>RedFish OS</title>
<meta name="author"
content="Roberto A. Foglietta <[email protected]>">
<script type="text/javascript">
var trials = 3;
function change()
{
if ( trials ) trials = trials - 1;
var r = Math.floor(Math.random() * 6);
if ( trials || r % 6 ) {
if ( document.getElementById("button").value != "Unpress me" ) {
r = 101 + Math.floor(Math.random() * 15);
document.getElementById("button").value="Unpress me";
document.body.style.background="black url(tiles/"+ r +".png) repeat";
} else {
document.getElementById("button").value=" Press me ";
document.body.style.background="black";
}
return;
}
const text = `== COPYRIGHT NOTICE ==
(C) 2023, all rights reserved, Roberto A Foglietta <[email protected]>
The background tiles and the RedFish logo are protected under the copyright and
trademark laws, and all rights are reserved. Therefore, these original artworks
cannot be distributed without a written permission from the author.`;
var tx = document.getElementById("textarea");
tx.value = text;
var h = tx.scrollHeight
tx.setAttribute("style", "height:"+ h +"px;overflow-y:hidden;");
tx.style.height = 0;
tx.style.height = (tx.scrollHeight-16) + "px";
tx.style.visibility = "visible";
document.body.style.background="black"
const names = [ "lineone", "testpage", "button", "linetwo" ];
names.forEach(function (name, index) {
tx = document.getElementById(name);
if(tx) {
tx.style.transition = "none";
tx.style.visibility = "hidden";
tx.value = "";
tx.style.width = "0px";
tx.style.height = "0px";
}
});
}
</script>
<style>
.text {
padding: 0px 0px 0px 0px;
display: inline-block;
vertical-align: top;
position: relative;
text-align: center;
}
.text::before {
transform: translateX(-50%);
border-radius: 100%;
position: absolute;
background: red;
right: 12.25%;
height: 12px;
width: 10px;
content: '';
top: 35%;
}
.text:hover::before {
background: black url('hal-9000-eye.png') 50% 0 / contain no-repeat;
right: 4.25%;
height: 24px;
width: 24px;
top: 17.5%;
}
.button {
color: black;
border-radius: 8px;
text-align: center;
position: relative;
background: darkgrey;
vertical-align: middle;
border: 3px solid silver;
transition-duration: 0.4s;
box-shadow: 0px 1px 4px red;
padding: 5px 10px 5px 10px;
width: 120px;
height: 30px;
z-index: 1;
}
.copyright {
color: dimgrey;
font-size: 10px;
font-family: "ubuntu";
text-decoration: none;
text-shadow: #404040 1px 1px 1px;
}
.button:hover {
color: whitesmoke;
background: forestgreen;
box-shadow: 0px 2px 4px forestgreen;
}
.unselectable {
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
user-select: none;
}
.body {
width: 66%;
align: center;
background: black;
padding: 0 0 0 16%;
-ms-transform: scale(1.5);
-moz-transform: scale(1.5); /* Firefox */
-moz-transform-origin: 60% 0;
zoom: 150%;
}
.textarea {
font-family: "monospace";
justify-content: center;
border: black 1px solid;
text-align: center;
visibility: hidden;
background: black;
color: lightgray;
font-size: 8px;
padding: 10px;
resize: none;
width: 390px;
height: 0px;
}
.textarea:hover {
border: grey 1px solid;
}
</style>
</head>
<body class="body unselectable"><div align="center" id="for-firefox">
<font color="white" style="font-family:ubuntu;">
<p><br/></p>
<h1>
<div class="text">RedFish OS</div>
<br/>
<font color="silver">Recovery Image</font>
</h1>
</font>
<font color="grey" style="font-family:ubuntu;">
<p style="font-size:1;" id="lineone"><br/></p>
<h3 id="testpage">HTML Test Page</h3>
<textarea class="textarea unselectable" id="textarea"
onselectstart="return false;" onmousedown="return false;"
readonly></textarea>
<p style="font-size:1;"><br/></p>
</font>
<input class="button" type="button" onclick="change();"
value=" Press me " id="button" />
<p style="font-size:16px;" id="linetwo"><br/></p>
<font class="copyright">© <a class="copyright"
href="COPYRIGHT">2023, Roberto A. Foglietta</a></font>
<p style="font-size:16px;"><br/></p>
</div></body>
</html>