mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 13:56:02 +01:00
Delete ND_Jailing/source/ui directory
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<script src="js/jquery-3.6.0.min.js" type="text/javascript"></script>
|
||||
<script src="js/listener.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="overlay">
|
||||
<p id="title">Jail Interface</p>
|
||||
<hr id="line">
|
||||
<div style="margin-top: 2vh; margin-left: 6.5vw;">
|
||||
<label class="text" style="margin-right: 15.7vw;" for="playerid">Player id</label>
|
||||
<select id="id" class="input" style="margin-right: 4.1vw;" name="Player" required>
|
||||
|
||||
</select>
|
||||
|
||||
<label class="text" style="margin-right: 15.7vw;" for="jailtime">Time</label>
|
||||
<input id="time" class="input" style="margin-right: 4.1vw;" type="number" placeholder="In seconds" name="jailtime" min="1" required>
|
||||
|
||||
<label class="text" style="margin-right: 15.7vw;" for="reason">Reason</label>
|
||||
<input id="reason" class="input" style="margin-right: 4.1vw;" type="text" placeholder="short reason" name="reason" required>
|
||||
</div>
|
||||
<hr id="line" style="margin-top: 5vh;">
|
||||
<p id="error"></p>
|
||||
<button class="resetButton" type="reset">Close</button>
|
||||
<button class="submitButton" type="submit" form="overlay">Jail</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
2
ND_Jailing/source/ui/js/jquery-3.6.0.min.js
vendored
2
ND_Jailing/source/ui/js/jquery-3.6.0.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,60 +0,0 @@
|
||||
$(document).ready(function() {
|
||||
function display(bool) {
|
||||
if (bool) {
|
||||
$("#overlay").fadeIn("slow");
|
||||
} else {
|
||||
$("#overlay").fadeOut("slow");
|
||||
}
|
||||
}
|
||||
display(false)
|
||||
|
||||
window.addEventListener('message', function(event) {
|
||||
var item = event.data;
|
||||
if (item.type === "ui") {
|
||||
if (item.status == true) {
|
||||
display(true)
|
||||
} else {
|
||||
display(false)
|
||||
}
|
||||
}
|
||||
|
||||
$("#error").text(item.error);
|
||||
|
||||
if (item.type === "players") {
|
||||
$("#id").append($("<option>", {
|
||||
text: item.players
|
||||
}));
|
||||
}
|
||||
|
||||
if (item.type === "clean") {
|
||||
$("#id").empty();
|
||||
$("#overlay").reset();
|
||||
}
|
||||
})
|
||||
|
||||
$("#overlay").submit(function() {
|
||||
let id = $("#id").val();
|
||||
let time = $("#time").val();
|
||||
let reason = $("#reason").val();
|
||||
$.post(`https://${GetParentResourceName()}/sumbit`, JSON.stringify({
|
||||
id: id,
|
||||
time: time,
|
||||
reason: reason
|
||||
}));
|
||||
return false
|
||||
})
|
||||
|
||||
$(".resetButton").click(function() {
|
||||
$.post(`https://${GetParentResourceName()}/closeUI`);
|
||||
$("#id").empty();
|
||||
return
|
||||
})
|
||||
|
||||
document.onkeyup = function(data) {
|
||||
if (data.which == 27) {
|
||||
$.post(`https://${GetParentResourceName()}/closeUI`);
|
||||
$("#id").empty();
|
||||
return
|
||||
}
|
||||
};
|
||||
});
|
||||
@@ -1,87 +0,0 @@
|
||||
#overlay {
|
||||
height: 50vh;
|
||||
width: 50vw;
|
||||
margin-top: 15vh;
|
||||
margin-left: 24vw;
|
||||
background-color: rgba(2, 2, 2, 0.911);
|
||||
border-radius: 3vh;
|
||||
}
|
||||
|
||||
#title {
|
||||
padding-top: 2vh;
|
||||
margin-left: 3vw;
|
||||
color: white;
|
||||
font-size: 120%;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#line {
|
||||
background: rgb(255, 255, 255);
|
||||
background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(255,255,255,1) 15%, rgba(255,255,255,1) 85%, rgba(0, 0, 0, 0) 100%);
|
||||
height: 0.1vh;
|
||||
width: 95%;
|
||||
border: none;
|
||||
border-radius: 2vh;
|
||||
}
|
||||
|
||||
.text {
|
||||
color: white;
|
||||
display: inline-block;
|
||||
margin-top: 2vh;
|
||||
margin-bottom: 1vh;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.input {
|
||||
background: white;
|
||||
color: black;
|
||||
display: inline-block;
|
||||
border: none;
|
||||
border-radius: 0.2vw;
|
||||
height: 4vh;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.submitButton {
|
||||
margin-top: 1vh;
|
||||
margin-right: 0.3vw;
|
||||
float: right;
|
||||
width: 6vw;
|
||||
background-color: rgb(17, 113, 238);
|
||||
}
|
||||
|
||||
.resetButton {
|
||||
margin-top: 1vh;
|
||||
margin-right: 8.5vw;
|
||||
float: right;
|
||||
width: 4vw;
|
||||
background-color: rgb(231, 50, 50);
|
||||
}
|
||||
|
||||
.submitButton, .resetButton {
|
||||
height: 4vh;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
border: none;
|
||||
border-radius: 1vh;
|
||||
transition: 0.3s;
|
||||
}
|
||||
.submitButton:hover, .resetButton:hover {
|
||||
transition: 0.3s;
|
||||
opacity: 0.7;
|
||||
}
|
||||
.submitButton:active, .resetButton:active {
|
||||
transition: none;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#error {
|
||||
margin-left: 6.4vw;
|
||||
color: white;
|
||||
display: inline-block;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
Reference in New Issue
Block a user