consolidate php
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user