consolidate php

This commit is contained in:
2025-12-09 00:20:32 +00:00
parent a7b6c529a9
commit eba6536050
44 changed files with 3458 additions and 4911 deletions

View File

@@ -195,7 +195,7 @@
const PIXELS_PER_SECOND_SPEED = 150; // Adjust this value to control scroll speed. Higher is faster.
let lastTickerUpdateTime = Date.now();
let lastNewsData = null;
let currentNewsUrl = 'https://wx.stoat.org/lsr.php?news3=potato';
let currentNewsUrl = 'https://wx.stoat.org/main.php?service=lsr&news3=potato';
let nextTickerHtml = null;
let animationId = null;
@@ -229,7 +229,7 @@
}
}
function fetchAndDisplayNews(url = 'https://wx.stoat.org/lsr.php?news3=potato') {
function fetchAndDisplayNews(url = 'https://wx.stoat.org/main.php?service=lsr&news3=potato') {
// Update the current URL if provided
if (url) {
currentNewsUrl = url;
@@ -369,7 +369,7 @@
const keyTerms = document.getElementById("keyTerms").value;
const terms = keyTerms.split(',');
let arrayterms = terms.map(term => `key[]=${encodeURIComponent(term)}`).join('&');
url = `lsr.php?newsarchive=true&start=${start}&end=${end}&${arrayterms}`;
url = `main.php?service=lsr&newsarchive=true&start=${start}&end=${end}&${arrayterms}`;
// Clear the cache to force an update
lastNewsData = null;
fetchAndDisplayNews(url);