1/** 2 * Legacy site modifications 3 * This script is loaded on legacy.fancyhands.com to make DOM modifications 4 * from the new app.fancyhands.com 5 */ 6 7(function () { 8 "use strict"; 9 10 console.log("[FancyHands] Legacy modifications script loaded..."); 11 12 ////////////////////// 13 // admin dashboard changes 14 15 // sidebar 16 const adminContainer = document.createElement("div"); 17 adminContainer.textContent = "This site will look different soon!"; 18 adminContainer.classList.add("admin-module"); 19 document.querySelector("#admin-sidebar-mods")?.replaceWith(adminContainer); 20 21 // // top of admin page 22 // const topContainer = document.createElement('div'); 23 // topContainer.textContent = 'Top of Admin Page'; 24 // topContainer.classList.add('admin-module'); 25 // document.querySelector('#top-of-admin-main')?.replaceWith(topContainer); 26 27 // // top of homepage 28 // const homepageContainer = document.createElement('div'); 29 // homepageContainer.textContent = 'Top of Home Page'; 30 // document.querySelector('#top-of-homepage')?.replaceWith(homepageContainer); 31 32 // payday 33 const paydaySpan = document.createElement("span"); 34 paydaySpan.textContent = "Oct 13th"; 35 document.querySelector("#payday-date")?.replaceWith(paydaySpan); 36 37 // end admin dashboard changes 38 ///////////////////// 39 40 ///////////////////// 41 // client dashboard changes 42 const clientContainer = document.createElement("div"); 43 clientContainer.textContent = "This site will look different soon!"; 44 clientContainer.classList.add("module"); 45 46 // if #legacy-notes exists, let's modify its content 47 document.querySelector("#legacy-notes")?.replaceWith(clientContainer); 48 49 // end dashboard changes 50 ////////////////////// 51})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.