-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
208 lines (186 loc) · 6.2 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RamOS Web | Early Access</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="taskbar.js"></script>
<link rel="icon" href="https://raw.githubusercontent.com/theshmunguss1/RamOS/main/images/favicon.ico">
<link rel="stylesheet" href="https://code.jquery.com/ui/1.13.3/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
<script src="https://code.jquery.com/ui/1.13.3/jquery-ui.js"></script>
<style>
body {
background-color: #f5f5f5;
margin: 0;
padding: 0;
font-family: 'Helvetica Neue', Arial, sans-serif;
color: #333;
}
p {
text-align: center;
font-size: 18px;
margin-top: 20px;
}
#logo {
display: block;
margin: 0 auto;
width: 50%;
max-width: 400px;
}
a {
text-align: center;
text-decoration: none;
color: #007bff;
transition: color 0.3s;
}
a:hover {
color: #0056b3;
}
.taskbar {
background-color: #f0f0f0;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
font-family: "Helvetica Neue", Arial, sans-serif;
color: #333;
text-decoration: none;
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}
.taskbar .task {
margin: 3px 10px;
padding: 8px 16px;
border-radius: 20px;
background-color: transparent;
border: 2px solid #d0d0d0;
display: flex;
align-items: center;
transition: transform 0.3s, margin 0.3s, background-color 0.3s, color 0.3s, border-color 0.3s;
transform: scale(1);
}
.taskbar .task:hover {
background-color: #d0d0d0;
color: #333;
border-color: #d0d0d0;
transition: transform 0.3s, margin-left 0.3s margin-right 0.3s margin-bottom 0.3s;
transform: scale(1.2);
margin-left: 15px;
margin-right: 15px;
margin-bottom: 30px;
}
.taskbar .task:active {
background-color: #007bff;
color: white;
border-color: #007bff;
}
.taskbar .task img {
width: 20px;
height: 20px;
margin-right: 2px;
margin-left: 2px;
}
.task {
position: relative;
display: inline-block;
}
.task:hover::after {
content: attr(name);
position: absolute;
border-radius: 5px;
top: -2.5em;
left: 50%;
transform: translateX(-50%);
background: #333;
color: #fff;
padding: 0.2em;
font-size: 0.8em;
white-space: nowrap;
}
.upload-button {
display: inline-block;
margin: 0 10px;
padding: 8px 16px;
border-radius: 20px;
background-color: transparent;
border: 2px solid #007bff;
color: #007bff;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.upload-button:hover {
background-color: #007bff;
color: white;
border-color: #007bff;
}
.upload-button:active {
background-color: #0056b3;
border-color: #0056b3;
}
/* Hide the default file input */
#background-upload {
display: none;
}
.github-button {
display: inline-block;
padding: 12px 24px;
background-color: #333;
color: #fff;
text-decoration: none;
border-radius: 4px;
font-size: 18px;
transition: background-color 0.3s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
</style>
<script>
$("#dialog").dialog();
$("#dialog").dialog("close");
function popup(){
$("#dialog").dialog().css("visibility: visible;");
}
function handleBackgroundUpload() {
const fileInput = document.getElementById('background-upload');
const file = fileInput.files[0];
const reader = new FileReader();
reader.onload = function(e) {
const backgroundImage = e.target.result;
document.body.style.backgroundImage = `url(${backgroundImage})`;
adaptTextColor();
}
reader.readAsDataURL(file);
}
function adaptTextColor() {
const body = document.body;
const computedStyle = getComputedStyle(body);
const backgroundColor = computedStyle.backgroundColor;
const rgb = backgroundColor.match(/\d+/g);
const brightness = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000;
if (brightness > 125) {
body.style.color = '#333';
} else {
body.style.color = '#f5f5f5';
}
}
</script>
</head>
<body>
<h1>Welcome to RamOS!</h1>
<p>Expect bugs and errors, and if you come across them, report them <a href="https://github.com/ramnetos/RamOS/issues">here</a>.</p>
<img src="logo.png" alt="RamWorks logo" id="logo">
<p><i>RamOS Web Early Access v1.1</i></p>
<p><i>Remember that once you open a game or proxy, nothing belongs to us! We are not responsible for content on these services.</i></p>
<div class="taskbar">
</div>
<script>
adaptTextColor();
</script>
</body>
</html>