-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
105 lines (94 loc) · 3.02 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
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="/socket.io/socket.io.js"></script>
<script>
var socket = io()
</script>
<style>
#socketStatus{
position: absolute;
top: 10px;
width: 100%;
text-align: center;
color: red;
}
#center{
width: fit-content;
margin: auto;
height: 50px;
}
#socketConfig{
margin-top: 50px;
}
.configText{
float: left;
margin-top: 5px;
}
.configSelect{
width: 300px;
float: left;
margin-left: 20px;
}
</style>
<span id="socketStatus"></span>
<center style="margin-top: 100px;">
<p>
<h1>Thanks for using <a href="https://github.com/ZeroByter" target="_blank">ZeroByter's</a> SkillZ Plugin!</h1>
<h4 style="color:rgba(0, 0, 0, 0.15);">You probably didn't have any other choice...</h4>
<br><br>
<p><b>It's a lot easier for me to write in English, so... sorry. >:)</b></p>
<p>You can throw this into Google Translate if you want...</p>
</p>
</center>
<div class="container">
<div class="row">
<div class="col-lg-8 offset-lg-2" style="text-align: center;">
<br><br><br>
<p>
<h2>Why?</h2>
<p>I got really tired of having to use SkillZ shitty plugin which crashed way too often, and when it did work, it worked horribly. So I made my own!</p>
</p>
<br><br><br>
<p>
<h2>What's different?</h2>
<ul style="text-align: left;">
<li>No crashes</li>
<li>No more annoying update spams when updating files</li>
<li>Actually supports folders (seriously it wasn't <i>that</i> hard to implement). Simply place the exe at the root of your IDE files and work as normal!</li>
</ul>
</p>
</div>
</div>
<div id="socketConfig" class="row" style="display: none;">
<div class="col-lg-8 offset-lg-2" style="text-align: center;">
<div id="center">
<h3>Config:</h3>
<p>You shouldn't really need to change this...</p>
<br>
<span class="configText">Current coding language: </span>
<select id="currentLanguage" class="custom-select configSelect">
<option value="py">Python</option>
<option value="cs">C#</option>
<option value="java">Java</option>
<option value="js">JavaScript</option>
</select>
</div>
</div>
</div>
</div>
<!--padding-->
<br><br><br><br><br><br><br><br>
<script>
if(typeof io !== "function"){
$("#socketStatus").html("Socket.io server is not running yet! You must complete the first-time setup for it to work!");
}else{ //we are connected to the socket.io server...
socket.on("GetConfig", function(data){
$("#currentLanguage").val(data.language)
})
$("#socketConfig").css("display", "block");
$("#currentLanguage").on("change", function(){
//console.log($("#currentLanguage").val())
socket.emit("SetLanguage", $("#currentLanguage").val())
})
}
</script>