1$(document).ready(() => { 2 function isStylesheetLoaded(stylesheetName) { 3 // Iterate through all stylesheets in the document 4 for (let i = 0; i < document.styleSheets.length; i++) { 5 // Check if the stylesheet href contains the given stylesheet name 6 if (document.styleSheets[i].href && document.styleSheets[i].href.includes(stylesheetName)) { 7 return document.styleSheets[i].href.split('/')[document.styleSheets[i].href.split('/').length - 1].split('-')[0]; 8 } 9 } 10 11 return false; 12 } 13 14 if (isStylesheetLoaded('specialStyles.css')) { 15 $('[class*="-templateStyle"]').addClass('d-none').removeClass('d-block') 16 //console.log("test"); 17 //console.log(isStylesheetLoaded('specialStyles.css')); 18 $(`.${isStylesheetLoaded('specialStyles.css')}-templateStyle`).addClass('d-block').removeClass('d-none') 19 if (isStylesheetLoaded('specialStyles.css') !== 'christmas') { 20 $('.normal-templateStyle:not(.message-text').addClass('d-block').removeClass('d-none') 21 } 22 } else { 23 $('.normal-templateStyle').addClass('d-block').removeClass('d-none') 24 } 25})
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.