diff --git a/404.html b/404.html index 64c4bf9..2e4b46a 100644 --- a/404.html +++ b/404.html @@ -92,8 +92,8 @@

This site is open source

- + diff --git a/about/dell-inspiron-3535.html b/about/dell-inspiron-3535.html index f1e6a3e..2700e47 100644 --- a/about/dell-inspiron-3535.html +++ b/about/dell-inspiron-3535.html @@ -98,10 +98,9 @@

Infobox

- + diff --git a/about/dell-inspiron-5566.html b/about/dell-inspiron-5566.html index f3fa49c..a473070 100644 --- a/about/dell-inspiron-5566.html +++ b/about/dell-inspiron-5566.html @@ -73,6 +73,6 @@

Future Featured Videos (maybe)

- + diff --git a/about/dell-precision-5560.html b/about/dell-precision-5560.html index 86b402a..3812ee6 100644 --- a/about/dell-precision-5560.html +++ b/about/dell-precision-5560.html @@ -84,10 +84,9 @@

Important Specs

- + diff --git a/about/lenovo-ideapad-flex-14.html b/about/lenovo-ideapad-flex-14.html index e6e40f9..1a756dc 100644 --- a/about/lenovo-ideapad-flex-14.html +++ b/about/lenovo-ideapad-flex-14.html @@ -87,8 +87,8 @@

Future Featured Videos (maybe)

- + diff --git a/about/rutwik-g1-ultra.html b/about/rutwik-g1-ultra.html deleted file mode 100644 index bc1870d..0000000 --- a/about/rutwik-g1-ultra.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - 7Zeb - Rutwik G1 Ultra Plan - - - - - - - -
-

WARNING:

-

This page is not finished yet and is still under construction, it might take a while actually

-
- -
-

Countdown for the Rutwik G1 Ultra

- - Rutwik G1 Ultra Build Day94 Days Remain until PC Build Day

-
- -
-

Phases

-

These are all the different phases in the build plan.

-
-

Planning Phase: February - June 2025

-

The planning phase was the start of the project, when I decided the first parts of the build.

-
- -

Post-Planning: July - November 2025

-

This is the phase where I check prices and wait for Black Friday, this is the current phase of the build. Oh and saving up the money that the PC will take up.

-
- - - - - diff --git a/blog.html b/blog.html index 4a11c8c..65c9bce 100644 --- a/blog.html +++ b/blog.html @@ -79,8 +79,8 @@

Infobox

- + diff --git a/games.html b/games.html index 4625b99..43c15bf 100644 --- a/games.html +++ b/games.html @@ -76,10 +76,9 @@

Upcoming 7Zeb Events

- + diff --git a/index.html b/index.html index dc3b473..bfaa778 100644 --- a/index.html +++ b/index.html @@ -38,7 +38,7 @@

Major Announcements

Welcome to 7Zeb's Website

The official 7Zeb website

-

The site is on v789

+

The site is on v808

"The Saga Never Stops!" - said by 7Zeb (every day since June 15, 2025... probably)

@@ -108,8 +108,8 @@

This site is open source

- + diff --git a/me.html b/me.html index 617593f..e67b000 100644 --- a/me.html +++ b/me.html @@ -82,8 +82,8 @@

Retired on NMDA (Not my Device Anymore) devices:

- + diff --git a/more.html b/more.html index 0cf2444..d50bf6e 100644 --- a/more.html +++ b/more.html @@ -59,6 +59,6 @@

Upcoming 7Zeb Events

- + diff --git a/newui.js b/newui.js new file mode 100644 index 0000000..ccf49fc --- /dev/null +++ b/newui.js @@ -0,0 +1,46 @@ +//NewUI 5 JavaScript file +//This is REQUIRED for NewUI 5 to work proporly + +// DARK MODE TOGGLE +document.addEventListener('DOMContentLoaded', () => { + const modeToggle = document.querySelector('.mode-toggle'); + const body = document.body; + const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches; + function setMode(isDark) { + if(isDark) { + body.classList.add('dark-mode'); + modeToggle.textContent = 'Light Mode'; + } else { + body.classList.remove('dark-mode'); + modeToggle.textContent = 'Dark Mode'; + } + localStorage.setItem('theme', isDark ? 'dark' : 'light'); + } + const savedMode = localStorage.getItem('theme'); + setMode(savedMode === 'dark' || (!savedMode && prefersDark)); + modeToggle.addEventListener('click', () => { + setMode(!body.classList.contains('dark-mode')); + }); + + // Text carousel (HTML-editable) + const carousel = document.querySelector('.text-carousel'); + const contentElem = carousel.querySelector('.carousel-content'); + const items = Array.from(contentElem.querySelectorAll('span')); + const prevBtn = carousel.querySelector('.carousel-button.prev'); + const nextBtn = carousel.querySelector('.carousel-button.next'); + let index = 0; + function showCarousel(i) { + items.forEach((item, idx) => { + item.style.display = idx === i ? 'inline' : 'none'; + }); + } + showCarousel(index); + prevBtn.addEventListener('click', () => { + index = (index - 1 + items.length) % items.length; + showCarousel(index); + }); + nextBtn.addEventListener('click', () => { + index = (index + 1) % items.length; + showCarousel(index); + }); +}); diff --git a/required.js b/required.js deleted file mode 100644 index 4421bd7..0000000 --- a/required.js +++ /dev/null @@ -1,125 +0,0 @@ -//NewUI 4 JavaScript file -//This is REQUIRED for NewUI 4 to work proporly - - -// DARK MODE TOGGLE -document.addEventListener('DOMContentLoaded', () => { - const modeToggle = document.querySelector('.mode-toggle'); - const body = document.body; - const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches; - function setMode(isDark) { - if(isDark) { - body.classList.add('dark-mode'); - modeToggle.textContent = 'Light Mode'; - } else { - body.classList.remove('dark-mode'); - modeToggle.textContent = 'Dark Mode'; - } - localStorage.setItem('theme', isDark ? 'dark' : 'light'); - } - const savedMode = localStorage.getItem('theme'); - setMode(savedMode === 'dark' || (!savedMode && prefersDark)); - modeToggle.addEventListener('click', () => { - setMode(!body.classList.contains('dark-mode')); - }); - - // Text carousel (HTML-editable) - const carousel = document.querySelector('.text-carousel'); - const contentElem = carousel.querySelector('.carousel-content'); - const items = Array.from(contentElem.querySelectorAll('span')); - const prevBtn = carousel.querySelector('.carousel-button.prev'); - const nextBtn = carousel.querySelector('.carousel-button.next'); - let index = 0; - function showCarousel(i) { - items.forEach((item, idx) => { - item.style.display = idx === i ? 'inline' : 'none'; - }); - } - showCarousel(index); - prevBtn.addEventListener('click', () => { - index = (index - 1 + items.length) % items.length; - showCarousel(index); - }); - nextBtn.addEventListener('click', () => { - index = (index + 1) % items.length; - showCarousel(index); - }); -}); - -//non NewUI JS Calls - -//2-1 widget calls and function -async function checkYouTubeUploadToday() { - const apiKey = "AIzaSyBe67a0-qIYhodHBj7FfSF2K6PrHOW0MEQ"; - const channelId = "UCM4Zvt9DVqzAHJOJoCgcF_g"; - const today = new Date().toISOString().split("T")[0]; - - const url = `https://www.googleapis.com/youtube/v3/search?key=${apiKey}&channelId=${channelId}&part=snippet&order=date&maxResults=5`; - - try { - const response = await fetch(url); - const data = await response.json(); - - for (const item of data.items) { - const publishedDate = item.snippet.publishedAt.split("T")[0]; - if (publishedDate === today) { - return { - uploaded: true, - title: item.snippet.title, - time: item.snippet.publishedAt, - }; - } - } - } catch (error) { - console.error("YouTube API error:", error); - } - - return { uploaded: false }; -} - -async function updateStatusWidget() { - const result = await checkYouTubeUploadToday(); - const statusText = document.getElementById("statusText"); - - if (result.uploaded) { - statusText.textContent = "✅ Productive Day"; - statusText.style.color = "lime"; - statusText.title = `Uploaded: ${result.title} at ${new Date(result.time).toLocaleTimeString()}`; - } else { - statusText.textContent = "😴 Free Day"; - statusText.style.color = "gray"; - statusText.title = "No upload detected today"; - } -} - -document.addEventListener("DOMContentLoaded", updateStatusWidget); - -//the refresh times -const refreshTimes = [ - "00:00", "15:00", "16:00", "16:30", "17:00", "18:00", "23:00" -]; - -function scheduleRefreshes() { - const now = new Date(); - const localOffset = now.getTimezoneOffset() * 60000; - const utc6Offset = -6 * 60 * 60000; - - refreshTimes.forEach(time => { - const [hour, minute] = time.split(":").map(Number); - const target = new Date(now); - target.setUTCHours(hour + 6, minute, 0, 0); // Convert UTC-6 to local time - - const delay = target.getTime() - now.getTime(); - if (delay > 0) { - setTimeout(() => { - console.log(`⏱ Refreshing at ${time} UTC-6`); - updateStatusWidget(); - }, delay); - } - }); -} - -document.addEventListener("DOMContentLoaded", () => { - updateStatusWidget(); // Initial check - scheduleRefreshes(); // Schedule future checks -}); diff --git a/template.html b/template.html index dd08e4a..79899c0 100644 --- a/template.html +++ b/template.html @@ -52,8 +52,8 @@

Enter text here

- + diff --git a/tos.html b/tos.html index 798b204..0dd5b79 100644 --- a/tos.html +++ b/tos.html @@ -52,8 +52,8 @@

Infobox

- + diff --git a/updates.html b/updates.html index 94a528b..a5af1a0 100644 --- a/updates.html +++ b/updates.html @@ -362,8 +362,8 @@

August 19, 2024 - 8:31 PM CT

- + diff --git a/windows/10/upgradesaga.html b/windows/10/upgradesaga.html index 1020742..1927497 100644 --- a/windows/10/upgradesaga.html +++ b/windows/10/upgradesaga.html @@ -111,10 +111,9 @@

Upcoming 7Zeb Events

- + diff --git a/windows/8/upgradesaga.html b/windows/8/upgradesaga.html index ff05494..783d61c 100644 --- a/windows/8/upgradesaga.html +++ b/windows/8/upgradesaga.html @@ -88,8 +88,8 @@

Attempt 5

- +