fix spacing

This commit is contained in:
SethBurkart123
2023-12-13 21:59:24 +11:00
parent a016916133
commit df7e52131b
+5 -5
View File
@@ -1226,8 +1226,8 @@ async function AddBetterSEQTAElements(toggle: any) {
console.error('Error fetching and processing student data:', error); console.error('Error fetching and processing student data:', error);
} }
var NewsButtonStr = '<li class="item" data-key="news" id="newsbutton" data-path="/news" data-betterseqta="true"><label><svg style="width:24px;height:24px" viewBox="0 0 24 24"><path fill="currentColor" d="M20 3H4C2.89 3 2 3.89 2 5V19C2 20.11 2.89 21 4 21H20C21.11 21 22 20.11 22 19V5C22 3.89 21.11 3 20 3M5 7H10V13H5V7M19 17H5V15H19V17M19 13H12V11H19V13M19 9H12V7H19V9Z" /></svg>News</label></li>'; const NewsButtonStr = '<li class="item" data-key="news" id="newsbutton" data-path="/news" data-betterseqta="true"><label><svg style="width:24px;height:24px" viewBox="0 0 24 24"><path fill="currentColor" d="M20 3H4C2.89 3 2 3.89 2 5V19C2 20.11 2.89 21 4 21H20C21.11 21 22 20.11 22 19V5C22 3.89 21.11 3 20 3M5 7H10V13H5V7M19 17H5V15H19V17M19 13H12V11H19V13M19 9H12V7H19V9Z" /></svg>News</label></li>';
var NewsButton = stringToHTML(NewsButtonStr); const NewsButton = stringToHTML(NewsButtonStr);
List!.appendChild(NewsButton.firstChild!); List!.appendChild(NewsButton.firstChild!);
let a = document.createElement('div'); let a = document.createElement('div');
@@ -1235,7 +1235,7 @@ async function AddBetterSEQTAElements(toggle: any) {
a.id = 'icon-cover'; a.id = 'icon-cover';
menu!.appendChild(a); menu!.appendChild(a);
var menuCover = document.querySelector('#icon-cover'); const menuCover = document.querySelector('#icon-cover');
menuCover!.addEventListener('click', function () { menuCover!.addEventListener('click', function () {
location.href = '../#?page=/home'; location.href = '../#?page=/home';
SendHomePage(); SendHomePage();
@@ -1244,7 +1244,7 @@ async function AddBetterSEQTAElements(toggle: any) {
.firstChild! as HTMLElement).classList.remove('noscroll'); .firstChild! as HTMLElement).classList.remove('noscroll');
}); });
// Creates the home container when the menu button is pressed // Creates the home container when the menu button is pressed
var homebutton = document.getElementById('homebutton'); const homebutton = document.getElementById('homebutton');
homebutton!.addEventListener('click', function () { homebutton!.addEventListener('click', function () {
if (!MenuOptionsOpen) { if (!MenuOptionsOpen) {
SendHomePage(); SendHomePage();
@@ -1252,7 +1252,7 @@ async function AddBetterSEQTAElements(toggle: any) {
}); });
// Creates the news container when the menu button is pressed // Creates the news container when the menu button is pressed
var newsbutton = document.getElementById('newsbutton'); const newsbutton = document.getElementById('newsbutton');
newsbutton!.addEventListener('click', function () { newsbutton!.addEventListener('click', function () {
if (!MenuOptionsOpen) { if (!MenuOptionsOpen) {
SendNewsPage(); SendNewsPage();