-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
227 lines (209 loc) · 8.42 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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Rotur: A Web Standard for Communication.</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta content="A websocket based networking and account system" property="og:description" />
<meta content="https://rotur.dev" property="og:url" />
<meta content="https://avatars.githubusercontent.com/u/174211781?s=256&v=4" property="og:image" />
<meta content="#3f2f3c" name="theme-color" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>
<link rel="stylesheet" href="./styles.css">
</head>
<div id="navbar-placeholder"></div>
<div class="hero">
<div class="headings">
<h1>Rotur</h1>
<p>A networking standard<br>over websockets</p><br>
</div>
<img src="./Rotur Logo.png" id="tilt" alt="Rotur Logo" draggable="false">
</div>
<div class="about">
<h1>About</h1>
<p>Rotur is a cloudlink based, networking packet standard and accounts
system packaged into an easy to use extension. Made to make turbowarp
operating systems more interconnected and easier to develop.
</p>
<div class="devs">
<p>Developed by:</p>
<a href="https://github.com/mistium">
<img src="https://avatars.rotur.dev/mist" width="140px" draggable="false">
<p>Mistium</p>
</a>
<a href="https://github.com/ThePandaDever">
<img src="https://avatars.rotur.dev/pnada" width="140px" draggable="false">
<p>Flufi</p>
</a>
<a href="https://github.com/b1j2754">
<img src="https://avatars.rotur.dev/b1j2754" width="140px" draggable="false">
<p>Layz</p>
</a>
</div>
</div>
<div style="display: flex; justify-content: center; align-items: center; flex-direction: column;">
<h1>Contributors</h1>
<div class="devs-small" style="display: flex; gap: 20px;">
<a href="https://github.com/MikeDev101">
<img src="https://avatars.githubusercontent.com/u/12957745?v=4" width="100px" draggable="false" style="border-radius: 50%;">
</a>
<a href="https://github.com/MiloDev123">
<img src="https://avatars.rotur.dev/milodev123" width="100px" draggable="false" style="border-radius: 50%;">
</a>
<a href="https://github.com/wolfieboy09">
<img src="https://avatars.rotur.dev/wolfieboy09" width="100px" draggable="false" style="border-radius: 50%;">
</a>
<a href="https://github.com/allucat1000">
<img src="https://avatars.rotur.dev/allucat1000" width="100px" draggable="false" style="border-radius: 50%;">
</a>
<a href="https://github.com/IzKuipers">
<img src="https://avatars.rotur.dev/izkuipers" width="100px" draggable="false" style="border-radius: 50%;">
</a>
<a href="https://github.com/JustN00ne">
<img src="https://avatars.rotur.dev/justnoone" width="100px" draggable="false" style="border-radius: 50%;">
</a>
</div>
</div>
<div class="cards">
<h1>Features</h1>
<div class="card" id="friends">
<i class="fa-solid fa-user-group"></i>
<h1>Friends</h1>
<p>Rotur has a friends system out of the box, just authenticate into an
account and you can add or remove friends,
and send requests</p>
</div>
<div class="card" id="networking">
<i class="fa-solid fa-wifi"></i>
<h1>Networking</h1>
<p>Rotur uses a modified version of cloudlink to send and recieve packets
with much more user data that can be
useful to the reciever.</p>
</div>
<div class="card" id="oneacc">
<i class="fa-solid fa-ring"></i>
<h1>One Account To Rule Them All</h1>
<p>Rotur uses a single account system, so you can use the same account on
any game or operating system that uses
Rotur, allowing for incredible interconnectivity</p>
</div>
<div class="card" id="rmail">
<i class="fa-solid fa-envelope"></i>
<h1>Rmail</h1>
<p>Included with rotur and any account is a fully functioning emails
system that works cross platform. Allowing you
to get to working on the important stuff faster!</p>
</div>
<div class="card" id="credits">
<i class="fa-solid fa-credit-card"></i>
<h1>Rotur Credits</h1>
<p>Handle user currency simply and easily, allowing transfers and an
overarching rotur economy. Each user that logs
in gets 1 credit per day.</p>
</div>
<div class="card" id="storage">
<i class="fa-solid fa-database"></i>
<h1>Cloud Keys</h1>
<p>Store and access key value pairs on the cloud in a user account.
Allowing for cloud storage of files, game data,
saves, and more!</p>
</div>
<div class="card" id="items">
<i class="fa-solid fa-shop"></i>
<h1>Rotur Items</h1>
<p>An online marketplace for items and data using rotur credits!</p>
</div>
<div class="card" id="badges">
<i class="fa-solid fa-certificate"></i>
<h1>Rotur Badges</h1>
<p>Collect and show badges on your profile!</p>
</div>
<div class="card" id="calling">
<i class="fa-solid fa-phone"></i>
<h1>Voice Calling</h1>
<p>(Coming Soon) In collaboration with CL5 and Mikedev, voice calling will
be implemented into rotur allowing for
seamless and integrated calling between systems on rotur</p>
</div>
<div class="card" id="syncvars">
<i class="fa-solid fa-rotate"></i>
<h1>Synced Vars</h1>
<p>(Coming Soon) Sync variables peer to peer on rotur. Cloud variables but
faster, better and more advanced</p>
</div>
</div>
<button id="get_button" onclick="downloadExtension()"><p>Get The Extension</p></button>
<script src="./nav.js"></script>
<script>
function downloadExtension() {
const link = document.createElement('a');
link.href = 'https://raw.githubusercontent.com/RoturTW/main/refs/heads/main/Implementations/SCRATCH/roturV5.js';
link.download = 'roturV5.js';
link.style.display = 'none';
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
</script>
<script src="https://kit.fontawesome.com/16f6b70bf6.js" crossorigin="anonymous"></script>
<script src="./connectToRotur.js"></script>
<script>
let el = document.getElementById('tilt');
const height = el.clientHeight;
const width = el.clientWidth;
// Add will-change to optimize rendering
el.style.willChange = 'transform';
el.addEventListener('mousemove', handleMove);
function handleMove(e) {
const rect = el.getBoundingClientRect();
const xVal = e.clientX - rect.left; // Mouse position relative to element
const yVal = e.clientY - rect.top; // Mouse position relative to element
const yRotation = 20 * ((xVal - width / 2) / width);
const xRotation = -20 * ((yVal - height / 2) / height);
const string = `perspective(500px) scale(1.1) rotateX(${xRotation}deg) rotateY(${yRotation}deg)`;
// Use requestAnimationFrame for smoother animations
requestAnimationFrame(() => {
el.style.transform = string;
});
}
el.addEventListener('mouseout', function () {
requestAnimationFrame(() => {
el.style.transform = 'perspective(500px) scale(1) rotateX(0) rotateY(0)';
});
});
el.addEventListener('mousedown', function () {
requestAnimationFrame(() => {
el.style.transform = 'perspective(500px) scale(0.9) rotateX(0) rotateY(0)';
});
});
el.addEventListener('mouseup', function () {
requestAnimationFrame(() => {
el.style.transform = 'perspective(500px) scale(1.1) rotateX(0) rotateY(0)';
});
});
let accounts = "sys-rotur";
let server = "wss://rotur.mistium.com";
function getCookie(name) {
const value = "; " + document.cookie;
const parts = value.split("; " + name + "=");
if (parts.length === 2) return parts.pop().split(";").shift();
}
let username = getCookie("username");
let password = getCookie("password");
if (username && password) {
(function waitForElements() {
const txt = document.getElementById("roturTXT");
const img = document.getElementById("roturIMG");
if (txt && img) {
txt.innerText = username;
img.src = `https://avatars.rotur.dev/${username}`;
} else {
setTimeout(waitForElements, 100);
}
})();
}
</script>
</html>