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

@@ -140,7 +140,7 @@
function resetmap() {
$.get({
url: 'ver.php?reset=potato',
url: 'main.php?service=ver&reset=potato',
success: function () {
geoJSONcounties.setStyle({ fillColor: 'red' }); // Reset visually immediately
loadlsr(); // Reload data from server
@@ -211,7 +211,7 @@
// Optional: Add logic to cap the max value if needed (e.g., if (newLsr > 2) newLsr = 2;)
$.get({
url: `ver.php?lsrs=potato&zone=${zone}&lsr=${newLsr}&dir=1`, // dir=1 seems specific to 'up'
url: `main.php?service=ver&lsrs=potato&zone=${zone}&lsr=${newLsr}&dir=1`, // dir=1 seems specific to 'up'
success: function () {
layer.setStyle({ fillColor: vercolor(newLsr) });
// No need to call loadlsr() here, the server state is updated,
@@ -232,7 +232,7 @@
var newLsr = 0; // Reset to red
$.get({
url: `ver.php?lsrs=potato&zone=${zone}&lsr=${newLsr}`, // No dir needed? Or specific dir for reset?
url: `main.php?service=ver&lsrs=potato&zone=${zone}&lsr=${newLsr}`, // No dir needed? Or specific dir for reset?
success: function () {
layer.setStyle({ fillColor: vercolor(newLsr) });
// No need to call loadlsr() here
@@ -254,7 +254,7 @@
update_position_timeout = null; // Best practice to nullify after clearing
}
$.getJSON('https://wx.stoat.org/ver.php?lsrslist=potato')
$.getJSON('https://wx.stoat.org/main.php?service=ver&lsrslist=potato')
.done(function (data) {
if (data && data.length > 0) {
var zoneData = {};
@@ -293,7 +293,7 @@
// var countiesjson = 'rlxtest.json'; // Local testing
var countiesjson = 'https://wx.stoat.org/ver.php'; // Production endpoint
var countiesjson = 'https://wx.stoat.org/main.php?service=ver'; // Production endpoint
function initial_county_load() {
geoJSONcounties.clearLayers();