*** ./xymonbodyfooter.html.orig 2025-04-17 05:53:20.883026500 -0600
--- ./xymonbodyfooter.html 2025-04-17 08:32:55.236527226 -0600
***************
*** 167,174 ****
}
// Initialize the search functionality when the DOM is loaded
document.addEventListener('DOMContentLoaded', function() {
! if (window.location.pathname.match(/^\/xymon\//)) {
createSearchElements();
const searchBox = document.getElementById('search-box');
--- 167,177 ----
}
// Initialize the search functionality when the DOM is loaded
+ // Don't add search function to nongreen pages
document.addEventListener('DOMContentLoaded', function() {
! const nonGreen = /^\/xymon\/(nongreen|red|critical).html/;
! const htmlPath = window.location.pathname;
! if (htmlPath.match(/^\/xymon\//) && !htmlPath.match(nonGreen)) {
createSearchElements();
const searchBox = document.getElementById('search-box');