From 4a2dce9c2eb99ba1811121e6e229afb68dcee5c4 Mon Sep 17 00:00:00 2001 From: vdbhb59 Date: Fri, 26 Jun 2026 18:07:31 +0530 Subject: [PATCH] synced Serverping inlineJS fix (ty ethan) (https://git.lolcat.ca/lolcat/4get/commit/f037ad1d7fb70811b9d67d221fc879ef8bfd136a) // Google & Google API, until I can get those working again. --- lib/frontend.php | 4 ++-- static/serverping.js | 12 +++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/lib/frontend.php b/lib/frontend.php index 95058aa..0025a68 100644 --- a/lib/frontend.php +++ b/lib/frontend.php @@ -638,8 +638,8 @@ class frontend{ //"yahoo" => "Yahoo!", "brave" => "Brave", "yandex" => "Yandex", - "google" => "Google", - "google_api" => "Google API", + // "google" => "Google", + // "google_api" => "Google API", "google_cse" => "Google CSE", "yahoo_japan" => "Yahoo! JAPAN", "startpage" => "Startpage", diff --git a/static/serverping.js b/static/serverping.js index 6b680d5..992e025 100644 --- a/static/serverping.js +++ b/static/serverping.js @@ -80,6 +80,15 @@ document.body.insertBefore(table, quote.nextSibling); // handle sorting clicks var tbody = table.getElementsByTagName("tbody")[0]; + +// server popup without inline javascript +tbody.addEventListener('click', function(event){ + var row = event.target.closest('.show_server'); + if(!row) return; + + show_server(row.id); +}) + var th = table.getElementsByTagName("th"); for(var i=0; i'; + html += ''; for(var i=0; i<7; i++){ @@ -406,6 +415,7 @@ function render_list(){ console.log(html); tbody.innerHTML = html; + } var popup_bg = document.getElementById("popup-bg");