1// 2022-10-07 2 3// Adds Font Awesome Bullets to quicklinks 4function districtComplianceIcons() { 5 try { 6 $('.districtCompliance > ul').addClass('fa-ul'); 7 $('.districtCompliance > ul > li').append('<span class="fa-li"><i class="fa-regular fa-arrow-up-right-from-square"></i></span>' 8 ); 9 } 10 catch (error) { 11 console.log('District Compliance font awesome icons did not work'); 12 } 13} 14 15$(document).ready(districtComplianceIcons); 16 17// Adds Font Awesome Bullets to quicklinks 18function FontAwesomeQuicklinksBullets() { 19 try { 20 $('.quicklinks > ul').addClass('fa-ul'); 21 $('.quicklinks > ul > li').prepend('<span class="fa-li"><i class="fa-regular fa-arrow-up-right-from-square"></i></span>' 22 ); 23 } 24 catch (error) { 25 console.log('Quicklinks font awesome bullets did not work'); 26 } 27} 28 29$(document).ready(sitewideincludes); 30 31// Loads quicklinks from the quicklinks page into .quicklinks 32function sitewideincludes() { 33 try { 34 $('.quicklinks').load('Quicklinks/index.html #container ul', function () { 35 FontAwesomeQuicklinksBullets(); 36 }); 37 } 38 catch (ex) { 39 console.log('Quicklinks missing.'); 40 } 41} 42 43// Removes empty anchors from the footer 44$(function () { 45 try { 46 let footerEmptyLinks = $("footer a[href=''], footer a[href='tel:'], footer a[href='tel:1']"); 47 let socialBarEmptyLinks = $(".social-buttons a[href='']"); 48 $(footerEmptyLinks).remove(); 49 $(socialBarEmptyLinks).remove(); 50 51 if (elementEmptyCheck($('.social-bar .social-buttons > a'))) { 52 $('.social-bar').remove(); 53 } 54 55 let footerFaxNumber = $('.footer .footer-fax'); 56 57 $(footerFaxNumber).each(function () { 58 if ($(this).text().trim() === '' || $(this).text().trim().toLowerCase() === '(fax)') { 59 $(this).remove(); 60 } 61 }); 62 63 // Adds empty-element class to the footer tagline if it is empty 64 elementEmptyCheck('.tagline'); 65 66 $('#footer .footer-social-icons a').each(function () { 67 const footerSocialHref = $(this).attr('href').trim(); 68 if (footerSocialHref === '') { 69 $(this).hide(); 70 } 71 }); 72 73 if($('#footer .footer-social-icons a').length <= 0) { 74 $('#footer .footer-stay-connected').hide(); 75 } 76 } 77 78 catch (error) { 79 console.log(error); 80 } 81 82});
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.