1$(document).ready(function () { 2 3 //disable auto complete on contact us page 4 if ($("#contact_form_page_section")) { 5 $('form').attr('autocomplete', 'off'); 6 $('input').attr('autocomplete', 'off'); 7 } 8 9 //Notification Icon start 10 var container = document.getElementById('eventsContainer'); 11 var holidays = document.getElementsByClassName('holidayCount'); 12 var topNews = document.getElementsByClassName('topNewsCount'); 13 14 if (topNews.length !== 0 || holidays.length !== 0) { 15 container.style.display = "block"; 16 } 17 18 $('#notif_dropdown') 19 .on('shown.bs.dropdown', function () { 20 $('#notif_icon').removeClass('fa-bell').addClass('fa-times'); 21 $("#notif_icon").attr("title", "Close") 22 }) 23 .on('hidden.bs.dropdown', function () { 24 $('#notif_icon').removeClass('fa-times').addClass('fa-bell'); 25 $("#notif_icon").attr("title", "Trending Events") 26 }) 27 //Notification Icon End 28 29 $(function () { 30 $('#navbarSupportedContent') 31 .on('shown.bs.collapse', function () { 32 $('#navbar-hamburger').addClass('hidden'); 33 $('#navbar-close').removeClass('hidden'); 34 }) 35 .on('hidden.bs.collapse', function () { 36 $('#navbar-hamburger').removeClass('hidden'); 37 $('#navbar-close').addClass('hidden'); 38 }); 39 40 }); 41 42 // Carousel on news 43 $('#carousel-news').owlCarousel({ 44 center: true, 45 loop: true, 46 margin: 0, 47 autoplay: true, 48 autoplayTimeout: 10000, 49 nav: true, 50 navContainer: ['.main-content .custom-nav'], 51 navText: [ 52 '<i class="fas fa-chevron-left txt_subtitle txt_black upd_ctrl prev"></i>', 53 '<i class="fas fa-chevron-right txt_subtitle txt_black upd_ctrl next"></i>', 54 ], 55 navClass: [ 56 'owl-prev', 57 'owl-next' 58 ], 59 dots: true, 60 responsive: { 61 0: { 62 items: 1 63 }, 64 600: { 65 items: 2 66 }, 67 1000: { 68 items: 3 69 } 70 } 71 }); 72 73 // Carousel on twitter 74 $('#carousel-twitter').owlCarousel({ 75 center: true, 76 loop: true, 77 margin: 0, 78 autoplay: true, 79 autoplayTimeout: 10000, 80 nav: true, 81 navContainer: ['.main-content-twitter .custom-nav-twitter'], 82 navText: [ 83 '<i class="fas fa-chevron-left txt_subtitle txt_black upd_ctrl prev"></i>', 84 '<i class="fas fa-chevron-right txt_subtitle txt_black upd_ctrl next"></i>', 85 ], 86 navClass: [ 87 'owl-prev', 88 'owl-next' 89 ], 90 dots: true, 91 responsive: { 92 0: { 93 items: 1 94 }, 95 600: { 96 items: 2 97 }, 98 1000: { 99 items: 3 100 } 101 } 102 }); 103 104}); 105 106 107function openSubTab(evt, subtabNameId) { 108 // Declare all variables 109 var i, tabcontent, tablinks; 110 111 // Get all elements with class="tab2" and hide them 112 tab2 = document.getElementsByClassName("tab2"); 113 for (i = 0; i < tab2.length; i++) { 114 tab2[i].style.display = "none"; 115 } 116 117 // Get all elements with class="tablinks" and remove the class "active" 118 tablinks = document.getElementsByClassName("tablinks"); 119 for (i = 0; i < tablinks.length; i++) { 120 tablinks[i].className = tablinks[i].className.replace(" active", ""); 121 } 122 123 // Show the current tab, and add an "active" class to the link that opened the tab 124 document.getElementById(subtabNameId).style.display = "block"; 125 evt.currentTarget.className += " active"; 126 document.getElementById(subtabNameId).click(); 127 } 128 function openContent(evt, tabcontentId) { 129 // Declare all variables 130 var i, tabcontent, tablinks; 131 132 // Get all elements with class="tabcontent" and hide them 133 tabcontent = document.getElementsByClassName("tabcontent"); 134 for (i = 0; i < tabcontent.length; i++) { 135 tabcontent[i].style.display = "none"; 136 } 137 138 // Get all elements with class="tablinks" and remove the class "active" 139 tablinks = document.getElementsByClassName("tablinks"); 140 for (i = 0; i < tablinks.length; i++) { 141 tablinks[i].className = tablinks[i].className.replace(" active", ""); 142 } 143 144 // Show the current tab, and add an "active" class to the link that opened the tab 145 document.getElementById(tabcontentId).style.display = "block"; 146 evt.currentTarget.className += " active"; 147 } 148 149 150function run(interval, frames) { 151 var int = 1; 152 if (document.getElementById('h') !== null) { 153 function func() { 154 document.getElementById('h').id = "b" + int; 155 int++; 156 if (int === frames) { 157 int = 1; 158 } 159 } 160 161 var swap = window.setInterval(func, interval); 162 } 163} 164 165run(1000, 10); //milliseconds, frames 166 167 168// When the user scrolls down 20px from the top of the document, show the button 169window.onscroll = function () { 170 scrollFunction() 171}; 172 173function scrollFunction() { 174 if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { 175 document.getElementById("backToTop").style.display = "block"; 176 } else { 177 document.getElementById("backToTop").style.display = "none"; 178 } 179} 180 181// When the user clicks on the button, scroll to the top of the document
182function topFunction() { 183 window.scroll({ 184 top: 0, 185 left: 0, 186 behavior: 'smooth' 187 }); 188} 189 190new WOW().init(); 191 192$(document).on('click', function () { 193 $('.collapse').collapse('hide'); 194});
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.