mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
More Deepsource shit, AAAAAAAAAAAAA
This commit is contained in:
parent
36a7f83db6
commit
4dfaa17c44
2 changed files with 4 additions and 4 deletions
|
@ -25,13 +25,13 @@ function addNotification(notificationText, notificationLevel) {
|
||||||
iconElement.classList.add('sniffle__notification-icon');
|
iconElement.classList.add('sniffle__notification-icon');
|
||||||
notification.appendChild(iconElement);
|
notification.appendChild(iconElement);
|
||||||
// Set the icon based on the notification level, not pretty but it works :3
|
// Set the icon based on the notification level, not pretty but it works :3
|
||||||
if (notificationLevel == 1) {
|
if (notificationLevel === 1) {
|
||||||
notification.classList.add('success');
|
notification.classList.add('success');
|
||||||
iconElement.innerHTML = successIcon;
|
iconElement.innerHTML = successIcon;
|
||||||
} else if (notificationLevel == 2) {
|
} else if (notificationLevel === 2) {
|
||||||
notification.classList.add('critical');
|
notification.classList.add('critical');
|
||||||
iconElement.innerHTML = criticalIcon;
|
iconElement.innerHTML = criticalIcon;
|
||||||
} else if (notificationLevel == 3) {
|
} else if (notificationLevel === 3) {
|
||||||
notification.classList.add('warning');
|
notification.classList.add('warning');
|
||||||
iconElement.innerHTML = warningIcon;
|
iconElement.innerHTML = warningIcon;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -175,7 +175,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
|
||||||
let uploadTabDrag = uploadTab.querySelector("#dragIndicator");
|
let uploadTabDrag = uploadTab.querySelector("#dragIndicator");
|
||||||
let uploadForm = uploadTab.querySelector('#uploadForm');
|
let uploadForm = uploadTab.querySelector('#uploadForm');
|
||||||
let jobList = document.querySelector(".upload-jobs");
|
// let jobList = document.querySelector(".upload-jobs");
|
||||||
|
|
||||||
let fileDrop = uploadForm.querySelector('.fileDrop-block');
|
let fileDrop = uploadForm.querySelector('.fileDrop-block');
|
||||||
let fileDropTitle = fileDrop.querySelector('.status');
|
let fileDropTitle = fileDrop.querySelector('.status');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue