-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
265 lines (205 loc) · 14.3 KB
/
index.html
File metadata and controls
265 lines (205 loc) · 14.3 KB
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>LimitlessTCP</title>
<meta name="keywords" content="Alex Christie">
<link rel="icon" type="image/x-icon" href="images/logo.png">
<script src="js/jquery.min.js"></script>
<link href="js/aos/aos.min.css" rel="stylesheet">
<script src="js/aos/aos.min.js"></script>
<!-- <link rel="stylesheet" href="js/FomanticUI/semantic.min.css">-->
<!-- <script src="js/FomanticUI/semantic.min.js"></script>-->
<script src="js/vue.js"></script>
<!-- Import this library for vuetify's icons -->
<link href="https://cdn.jsdelivr.net/npm/@mdi/font@7.2.96/css/materialdesignicons.min.css" rel="stylesheet"></link>
<script src="js/vuetify/vuetify.min.js"></script>
<link href="js/vuetify/vuetify.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/sindresorhus/github-markdown-css@5.2.0/github-markdown-light.min.css">
<link rel="stylesheet" href="js/markdown/highlight.min.css">
<script src="js/markdown/highlight.min.js"></script>
<script src="js/markdown/showdown.min.js"></script>
<style>
html, body { height: 100%; width: 100%; margin: 0; padding: 0; overflow: hidden; }
#vueApp { width: 100%; height: 100%; display: flex; flex-direction: column; overflow-y: auto }
.appHeaderContainer { position: relative; width: 100%; min-height: 70vh; color: #FEFDFB; display: flex; flex-direction: column; justify-content: center; align-items: center; background-image: url(images/background.png); background-size: cover; background-repeat: no-repeat; background-attachment: fixed; background-position-x: center; }
.appBodyContainer { width: 100%; min-height: calc(100vh + 150px); background-color: #FEFDFB; color: #2868C8; display: flex; flex-direction: column; }
.appBodyNavContainer { height: 100px; display: flex; align-items: center; justify-content: center; }
.appBodyLanguageNavContainer { position: sticky; height: 100px; display: flex; align-items: center; justify-content: center; top: 0; z-index: 100; background-color: white; border-bottom: 1px solid #2868C8; }
.appBodyQuickLinkContainer { height: 50px; display: flex; justify-content: center; align-items: center; gap: 25px; flex-wrap: wrap; border-bottom: 1px solid #2868C8; }
.appBodyReadmeWrapper { width: 100%; height: calc(100% - 250px); display: flex; justify-content: center; }
.appBodyReadmeContainer { width: 80%; height: 100%; color: black }
.markdown-body { padding: 45px; width: 80%; height: 100%; color: black }
.scrollDownContainer { position: absolute; display: flex; flex-direction: column; height: 100px; bottom: 0; }
.scrollDown { padding-top: 70px }
.scrollDown span { position: absolute; top: 0; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-left: 1px solid #fff; border-bottom: 1px solid #fff; -webkit-transform: rotate(-45deg); mtransform: rotate(-45deg); -webkit-animation: sdb05 1.5s infinite; animation: sdb05 1.5s infinite; box-sizing: border-box; }
@-webkit-keyframes sdb05 {
0% { -webkit-transform: rotate(-45deg) translate(0, 0); opacity: 0; }
50% { opacity: 1; }
100% { -webkit-transform: rotate(-45deg) translate(-20px, 20px); opacity: 0; }
}
@keyframes sdb05 {
0% { transform: rotate(-45deg) translate(0, 0); opacity: 0; }
50% { opacity: 1; }
100% { transform: rotate(-45deg) translate(-20px, 20px); opacity: 0; }
}
@media (max-width: 1000px) {
.appHeaderContainer { background-image: url(images/background.png); background-size: cover; background-repeat: no-repeat; background-attachment: scroll; }
}
/* Me overriding styles */
.v-window { overflow: inherit !important; }
</style>
</head>
<body>
<div id="vueApp">
<v-app>
<v-main>
<div class="appHeaderContainer">
<img src="images/logo.png" alt="logo">
<h1 style="font-size: 50px;">Limitless TCP</h1>
<p style="margin: 0; font-weight: bold;">Wrapper library for the net module providing limitless potential.</p>
<!-- <div class="scrollDownContainer" id="scrollDown">-->
<!-- <a class="scrollDown" href="#appBody"><span></span><p>Scroll</p></a>-->
<!-- </div>-->
</div>
<div class="appBodyContainer" id="appBody">
<div class="appBodyQuickLinkContainer">
<a href="https://github.com/Limitless-TCP" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" height="3em" viewBox="0 0 448 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM277.3 415.7c-8.4 1.5-11.5-3.7-11.5-8 0-5.4.2-33 .2-55.3 0-15.6-5.2-25.5-11.3-30.7 37-4.1 76-9.2 76-73.1 0-18.2-6.5-27.3-17.1-39 1.7-4.3 7.4-22-1.7-45-13.9-4.3-45.7 17.9-45.7 17.9-13.2-3.7-27.5-5.6-41.6-5.6-14.1 0-28.4 1.9-41.6 5.6 0 0-31.8-22.2-45.7-17.9-9.1 22.9-3.5 40.6-1.7 45-10.6 11.7-15.6 20.8-15.6 39 0 63.6 37.3 69 74.3 73.1-4.8 4.3-9.1 11.7-10.6 22.3-9.5 4.3-33.8 11.7-48.3-13.9-9.1-15.8-25.5-17.1-25.5-17.1-16.2-.2-1.1 10.2-1.1 10.2 10.8 5 18.4 24.2 18.4 24.2 9.7 29.7 56.1 19.7 56.1 19.7 0 13.9.2 36.5.2 40.6 0 4.3-3 9.5-11.5 8-66-22.1-112.2-84.9-112.2-158.3 0-91.8 70.2-161.5 162-161.5S388 165.6 388 257.4c.1 73.4-44.7 136.3-110.7 158.3zm-98.1-61.1c-1.9.4-3.7-.4-3.9-1.7-.2-1.5 1.1-2.8 3-3.2 1.9-.2 3.7.6 3.9 1.9.3 1.3-1 2.6-3 3zm-9.5-.9c0 1.3-1.5 2.4-3.5 2.4-2.2.2-3.7-.9-3.7-2.4 0-1.3 1.5-2.4 3.5-2.4 1.9-.2 3.7.9 3.7 2.4zm-13.7-1.1c-.4 1.3-2.4 1.9-4.1 1.3-1.9-.4-3.2-1.9-2.8-3.2.4-1.3 2.4-1.9 4.1-1.5 2 .6 3.3 2.1 2.8 3.4zm-12.3-5.4c-.9 1.1-2.8.9-4.3-.6-1.5-1.3-1.9-3.2-.9-4.1.9-1.1 2.8-.9 4.3.6 1.3 1.3 1.8 3.3.9 4.1zm-9.1-9.1c-.9.6-2.6 0-3.7-1.5s-1.1-3.2 0-3.9c1.1-.9 2.8-.2 3.7 1.3 1.1 1.5 1.1 3.3 0 4.1zm-6.5-9.7c-.9.9-2.4.4-3.5-.6-1.1-1.3-1.3-2.8-.4-3.5.9-.9 2.4-.4 3.5.6 1.1 1.3 1.3 2.8.4 3.5zm-6.7-7.4c-.4.9-1.7 1.1-2.8.4-1.3-.6-1.9-1.7-1.5-2.6.4-.6 1.5-.9 2.8-.4 1.3.7 1.9 1.8 1.5 2.6z"/></svg>
</a>
<a href="https://www.npmjs.com/package/limitless_tcp" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" height="3em" fill="#bc3433" viewBox="0 0 576 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M288 288h-32v-64h32v64zm288-128v192H288v32H160v-32H0V160h576zm-416 32H32v128h64v-96h32v96h32V192zm160 0H192v160h64v-32h64V192zm224 0H352v128h64v-96h32v96h32v-96h32v96h32V192z"/></svg>
</a>
</div>
<div class="appBodyNavContainer">
<v-tabs v-model="tab" color="deep-purple-accent-4" align-tabs="center">
<v-tab :value="1">Docs</v-tab>
<v-tab :value="2">Contributors</v-tab>
</v-tabs>
</div>
<v-window v-model="tab">
<v-window-item :key="1" :value="1">
<div class="appBodyLanguageNavContainer">
<v-tabs v-model="languageTab" color="deep-purple-accent-4" align-tabs="center">
<v-tab :value="1">JavaScript</v-tab>
<v-tab :value="2">Python</v-tab>
<v-tab :value="3">Java</v-tab>
<v-tab :value="4">C#</v-tab>
<v-tab :value="5">C</v-tab>
<v-tab :value="6">Developer Documentation</v-tab>
</v-tabs>
</div>
<v-window v-model="languageTab">
<v-window-item :key="1" :value="1">
<div class="appBodyReadmeWrapper">
<div class="markdown-body" id="codePage-1"></div>
</div>
</v-window-item>
<v-window-item :key="2" :value="2">
<h1 style="text-align: center">Coming Soon...</h1>
</v-window-item>
<v-window-item :key="3" :value="3">
<h1 style="text-align: center">Coming Soon...</h1>
</v-window-item>
<v-window-item :key="4" :value="4">
<h1 style="text-align: center">Coming Soon...</h1>
</v-window-item>
<v-window-item :key="5" :value="5">
<h1 style="text-align: center">Coming Soon...</h1>
</v-window-item>
<v-window-item :key="6" :value="6">
<div class="appBodyReadmeWrapper">
<div class="markdown-body" id="codePage-6"></div>
</div>
</v-window-item>
</v-window>
</v-window-item>
<v-window-item :key="2" :value="2">
<h1 style="text-align: center">Coming Soon...</h1>
</v-window-item>
</v-window>
</div>
</v-main>
</v-app>
</div>
</body>
<script>
AOS.init();
let converter = new showdown.Converter({
tables: true,
ghCodeBlocks: true,
extensions: []
});
let app = Vue.createApp({
data() {
return {
tab: 1,
languageTab: null
}
},
watch: {
languageTab(newTab, oldTab) {
let urlParams = new URLSearchParams(window.location.search);
urlParams.set("language", newTab);
let newQueryString = urlParams.toString();
// Create the new URL with the modified query string
let newURL = window.location.origin + window.location.pathname + "?" + newQueryString;
history.pushState(null, "", newURL);
if (document.getElementById("codePage-" + oldTab) !== null) {
document.getElementById("codePage-" + oldTab).innerHTML = ''
}
switch (newTab) {
case 1:
fetch("docs/JavaScript.md", {
mode: 'no-cors',
method: 'get'
}).then(function (response) {
return response.text();
}).then(function (markdown) {
document.getElementById("codePage-1").innerHTML = converter.makeHtml(markdown);
hljs.highlightAll();
});
break;
case 2:
case 3:
case 4:
case 5:
break;
case 6:
fetch("docs/DevDocs.md", {
mode: 'no-cors',
method: 'get'
}).then(function (response) {
return response.text();
}).then(function (markdown) {
document.getElementById("codePage-6").innerHTML = converter.makeHtml(markdown);
hljs.highlightAll();
});
break;
}
},
tab(newTab, oldTab) {
let urlParams = new URLSearchParams(window.location.search);
urlParams.set("tab", newTab);
let newQueryString = urlParams.toString();
// Create the new URL with the modified query string
let newURL = window.location.origin + window.location.pathname + "?" + newQueryString;
history.pushState(null, "", newURL);
}
}
});
const vuetify = Vuetify.createVuetify();
app.use(vuetify).mount('#vueApp');
let urlParams = new URLSearchParams(window.location.search);
if (urlParams.get('tab') !== null) {
app._instance.data.tab = Number(urlParams.get('tab'));
}
if (urlParams.get('language') !== null) {
app._instance.data.languageTab = Number(urlParams.get('language'));
}
// document.getElementById('scrollDown').addEventListener('click', function(e) {
// e.preventDefault();
// $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top}, 500, 'linear');
// });
</script>
</html>