mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-01-06 20:37:54 -05:00
Sonar Cleanup - Phase 1
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
|
||||
@ -33,9 +33,9 @@
|
||||
The Artificer API Tools
|
||||
</div>
|
||||
<div id="header-right">
|
||||
<a href="https://discord.com/api/oauth2/authorize?client_id=789045930011656223&permissions=2048&scope=bot" target="_blank">Invite Me!</a>
|
||||
<a href="https://discord.com/api/oauth2/authorize?client_id=789045930011656223&permissions=2048&scope=bot" target="_blank" rel="noopener">Invite Me!</a>
|
||||
<span>|</span>
|
||||
<a href="https://discord.burne99.com/TheArtificer/" target="_blank">About</a>
|
||||
<a href="https://discord.burne99.com/TheArtificer/" target="_blank" rel="noopener">About</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="page-contents">
|
||||
@ -44,11 +44,11 @@
|
||||
</div>
|
||||
<div id="api-tools">
|
||||
<div class="slug">
|
||||
<p>This website will help you manage your API Key (or create one if you do not already have one). To get started, select an option from the dropdown below and enter the requested information. For more information, check out the <a href="https://github.com/Burn-E99/TheArtificer" target="_blank">GitHub Repository</a>.</p>
|
||||
<p>This website will help you manage your API Key (or create one if you do not already have one). To get started, select an option from the dropdown below and enter the requested information. For more information, check out the <a href="https://github.com/Burn-E99/TheArtificer" target="_blank" rel="noopener">GitHub Repository</a>.</p>
|
||||
|
||||
<hr/>
|
||||
|
||||
<p id="nojs">Javascript is required for this website to function. If you do not want to enable Javascript, you may access all of these endpoints from a third party tool (such as <a href="https://www.postman.com/" target="_blank">Postman</a>). Endpoints are fully documented on the <a href="https://github.com/Burn-E99/TheArtificer" target="_blank">GitHub Repository</a>.</p>
|
||||
<p id="nojs">Javascript is required for this website to function. If you do not want to enable Javascript, you may access all of these endpoints from a third party tool (such as <a href="https://www.postman.com/" target="_blank" rel="noopener">Postman</a>). Endpoints are fully documented on the <a href="https://github.com/Burn-E99/TheArtificer" target="_blank" rel="noopener">GitHub Repository</a>.</p>
|
||||
|
||||
<div id="js" class="hidden">
|
||||
<div class="field-group">
|
||||
@ -119,7 +119,7 @@
|
||||
</div>
|
||||
<div id="footer">
|
||||
<div id="footer-left">
|
||||
Built by <a href="https://github.com/Burn-E99/" target="_blank">Ean Milligan</a>
|
||||
Built by <a href="https://github.com/Burn-E99/" target="_blank" rel="noopener">Ean Milligan</a>
|
||||
</div>
|
||||
<div id="footer-right">
|
||||
Version 2.0.0
|
||||
|
||||
@ -11,7 +11,7 @@ var deleteField = document.getElementById("delete-field");
|
||||
var submitField = document.getElementById("submit-field");
|
||||
|
||||
var endpoint = "none";
|
||||
var status = "activate";
|
||||
var apiStatus = "activate";
|
||||
|
||||
// Checks if all fields needed for the selected endpoint are valid
|
||||
function validateFields() {
|
||||
@ -111,7 +111,7 @@ function showFields() {
|
||||
|
||||
// Sets the status for channel activation/deactivation
|
||||
function setStatus() {
|
||||
status = this.value;
|
||||
apiStatus = this.value;
|
||||
}
|
||||
|
||||
// Sends the request
|
||||
@ -141,7 +141,7 @@ function sendPayload() {
|
||||
break;
|
||||
case "activate":
|
||||
method = "PUT";
|
||||
path += "channel/" + status + "?user=" + userField.value + "&channel=" + channelField.value;
|
||||
path += "channel/" + apiStatus + "?user=" + userField.value + "&channel=" + channelField.value;
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user