1jQuery(document).ready(function($) { 2 $('.slider-inner').slick({ 3 dots: true, 4 arrows: true, 5 infinite: true, 6 speed: 500, 7 fade: true, 8 cssEase: 'linear' 9 }); 10 11 $('.event-dd-images-wrapper').slick({ 12 slidesToShow: 1, 13 slidesToScroll: 1, 14 arrows: false, 15 fade: true, 16 asNavFor: '.event-dd-nav-wrapper', 17 adaptiveHeight: true 18 }); 19 $('.event-dd-nav-wrapper').slick({ 20 slidesToShow: 4, 21 slidesToScroll: 0, 22 asNavFor: '.event-dd-images-wrapper', 23 centerMode: true, 24 focusOnSelect: true 25 }); 26 27 28 29 $('.partner-display-wrap').slick({ 30 dots: true, 31 arrows: false, 32 infinite: true, 33 rows: 2, 34 slidesPerRow: 8, 35 responsive: [ 36 { 37 breakpoint: 577, 38 settings: { 39 slidesPerRow: 2, 40 } 41 } 42 ] 43 }); 44 45 $('.hero-stories-outer-wrapper').slick({ 46 dots: false, 47 arrows: false, 48 infinite: true, 49 slidesToShow: 1, 50 slidesToScroll: 1, 51 speed: 500, 52 fade: true, 53 swipe: false, 54 cssEase: 'linear' 55 }); 56 $('.hero-stories-nav div').css('cursor','pointer').click( function() { 57 $('.hero-stories-outer-wrapper').slick('slickGoTo', $(this).prevAll().length); 58 }); 59 60/* 61 $('.hero-stories-nav').slick({ 62 slidesToShow: 16, 63 slidesToScroll: 0, 64 asNavFor: '.hero-stories-outer-wrapper', 65 dots: false, 66 centerMode: false, 67 infinite: false, 68 swipe: false, 69 focusOnSelect: true 70 }); 71*/ 72 73 74 $( ".menu-toggle-mob" ).click(function() { 75 $( "body" ).toggleClass("ShowMobMenu"); 76 }); 77 78 79 if ($(window).width() < 992) { 80 81 $( ".menu-item-has-children" ).click(function() { 82 $( this ).toggleClass("show"); 83 }); 84 } 85 86 87 jQuery(function ($) { 88 function isDesktop() { return $(window).width() >= 992; } 89 90 function initMobileMenu() { 91 if ($(window).width() < 992) { 92 $('.primary-menu-container-mob') 93 .off('click.rddMobile', '.menu-item-has-children') 94 .on('click.rddMobile', '.menu-item-has-children', function (e) { 95 96 if ($(e.target).closest('a').length) return; 97 98 $(this).toggleClass('show'); 99 }); 100 } else { 101 $('.primary-menu-container-mob').off('click.rddMobile', '.menu-item-has-children'); 102 } 103 } 104 105 function initDesktopMegaMenu() { 106 if (!isDesktop()) return; 107 108 const $subContainer = $('#sub-menus'); 109 if (!$subContainer.length) return; 110 111 if ($subContainer.children('ul.sub-menu').length === 0) { 112 $(".primary-navigation > div > .menu-wrapper > li > .sub-menu") 113 .detach() 114 .appendTo($subContainer); 115 } 116 117 const $nav = $('#site-navigation'); 118 const $subZone = $('section.sub-menus'); 119 const $dropdownLis = $('#primary-menu-list > li.menu-item-has-children'); 120 const $subs = $('#sub-menus > ul.sub-menu'); 121 122 $('#primary-menu-list > li').off('.rdd'); 123 $nav.off('.rdd'); 124 $subZone.off('.rdd'); 125 126 let t = null; 127 128 function closeAll() { 129 $subs.removeClass('show'); 130 $('.sub-menus').removeClass('active'); 131 $dropdownLis.removeClass('is-open'); 132 } 133 134 function scheduleClose() { 135 clearTimeout(t); 136 t = setTimeout(closeAll, 250); 137 } 138 139 function cancelClose() { 140 clearTimeout(t); 141 } 142 143 function openByLi(li) { 144 cancelClose(); 145 146 $dropdownLis.removeClass('is-open'); 147 $(li).addClass('is-open'); 148 149 const idx = $dropdownLis.index(li); 150 151 $subs.removeClass('show').eq(idx).addClass('show'); 152 $('.sub-menus').addClass('active'); 153 } 154 155 $('#primary-menu-list > li').on('mouseenter.rdd', function () { 156 const $li = $(this); 157 158 if (!$li.hasClass('menu-item-has-children')) { 159 closeAll(); 160 return; 161 } 162 163 openByLi(this); 164 }); 165 166 $nav.on('mouseenter.rdd', cancelClose).on('mouseleave.rdd', scheduleClose); 167 $subZone.on('mouseenter.rdd', cancelClose).on('mouseleave.rdd', scheduleClose); 168 } 169 170 function initAll() { 171 initMobileMenu(); 172 initDesktopMegaMenu(); 173 } 174 175 initAll(); 176 177 let rt; 178 $(window).on('resize', function () { 179 clearTimeout(rt); 180 rt = setTimeout(initAll, 150); 181 }); 182 183 }); 184 185 186 187 $(".search-icon").click(function(){ 188 $('#site-navigation').toggleClass('search-open'); 189 }); 190 191 $(".friends-outer-wrapper").hover(function() { 192 $(this).siblings(".friends-outer-wrapper").addClass("sibling-fade"); 193 }, function() { 194 $(this).siblings(".friends-outer-wrapper").removeClass("sibling-fade"); 195 }); 196 197 $('ul.colour-scheme li').click(function() { 198 $(this).addClass('active'); 199 $('html').addClass($(this).attr('class')); 200 $(this).siblings('li').removeClass('active'); 201 }); 202 203 $('.greyscale').click(function() { 204 localStorage.setItem('greyscale', 'true'); 205 localStorage.removeItem('inv-greyscale', 'true'); 206 $('html').removeClass('inv-greyscale'); 207 $('li.full-colour').removeClass('active'); 208 }); 209 $('.inv-greyscale').click(function() { 210 localStorage.setItem('inv-greyscale', 'true'); 211 localStorage.removeItem('greyscale', 'true'); 212 $('html').removeClass('greyscale'); 213 }); 214 $('.full-colour').click(function() { 215 localStorage.removeItem('greyscale', 'true'); 216 localStorage.removeItem('inv-greyscale', 'true'); 217 $('html').removeClass('greyscale').removeClass('inv-greyscale'); 218 }); 219 220 if (localStorage.getItem('greyscale') == 'true') { 221 $("html").addClass("greyscale").addClass("active"); 222 $("li.greyscale").toggleClass("active"); 223 $('li.full-colour').toggleClass('active'); 224 } 225 if (localStorage.getItem('inv-greyscale') == 'true') { 226 $("html").addClass("inv-greyscale").addClass("active"); 227 $("li.inv-greyscale").toggleClass("active"); 228 $('li.full-colour').toggleClass('active'); 229 } 230 if (localStorage.getItem('full-colour') == 'true') { 231 $("html").removeClass("inv-greyscale").removeClass("greyscale"); 232 $("li.full-colour").toggleClass("active"); 233 } 234 235 $("ul.text-size li").click(function() { 236 $(this).addClass('active'); 237 $('html').addClass($(this).attr('class')); 238 $(this).siblings('li').removeClass('active'); 239 }); 240 241 $('.large-font').click(function() { 242 localStorage.setItem('large-font', 'true'); 243 localStorage.removeItem('xl-font', 'true'); 244 $('html').removeClass('xl-font'); 245 }); 246 $('.xl-font').click(function() { 247 localStorage.setItem('xl-font', 'true'); 248 localStorage.removeItem('large-font', 'true'); 249 $('html').removeClass('large-font'); 250 }); 251 $('.regular-font').click(function() { 252 localStorage.removeItem('large-font', 'true'); 253 localStorage.removeItem('xl-font', 'true'); 254 $('html').removeClass('large-font').removeClass('xl-font'); 255 }); 256 257 if (localStorage.getItem('large-font') == 'true') { 258 $("html").addClass("large-font"); 259 $('li.large-font').toggleClass('active'); 260 $('li.regular-font').toggleClass('active'); 261 } 262 if (localStorage.getItem('xl-font') == 'true') { 263 $("html").addClass("xl-font"); 264 $('li.xl-font').toggleClass('active'); 265 $('li.regular-font').toggleClass('active'); 266 } 267 if (localStorage.getItem('regular-font') == 'true') { 268 $("html").removeClass("xl-font").removeClass("large-font"); 269 } 270 271 //if (localStorage.getItem('visited') == 'true') { 272 // $("button.btn.btn-secondary.close_modal").text(function(index, text) { 273 // return text.replace('Continue to site', 'Close Menu'); 274 // }); 275 //} else { 276 // localStorage.setItem('visited', 'true'); 277 // $('#accessibility_menu').modal('show'); 278 //} 279 280 $(".modal-body select#country_dropdown").change(function(){ 281 var selectedCountry = $(this).val().toLowerCase();; 282 localStorage.setItem('country', selectedCountry); 283 $("#accessibility_menu .modal-body-bg").css("background", "url(https://flagcdn.com/"+selectedCountry+".svg)") 284 }); 285 286 $("select#acc-language").change(function(){ 287 var selectedLanguage = $(this).val(); 288 alert(selectedLanguage); 289 }); 290 291 $('#dd-atf h2').each(function() { 292 var text = this.innerHTML.trim(); 293 294 if (['2021', '2020'].indexOf(text.slice(-4)) > -1) { 295 296 this.innerHTML = text.slice(0, -4) 297 + '<span>' 298 + text.slice(-4) 299 + '</span>'; 300 } 301 }); 302 303 var input = $(".wpcf7-form-control"); 304 input.focusin(function() { 305 $(this).closest('div').addClass("focus"); 306 }); 307 input.focusout(function() { 308 $(this).closest('div').removeClass("focus"); 309 }); 310 311 $('.wpcf7-form-control').blur(function(){ 312 if(!$(this).val()){ 313 $(this).closest('div').removeClass("active"); 314 } else{ 315 $(this).closest('div').addClass("active"); 316 } 317 }); 318 319 $("option#wpc-option-post_meta-friend_country-0").text(function () { 320 return $(this).text().replace("- Select Country -", "All Countries"); 321 }); 322 323 $("option#wpc-option-post_meta-friend_type-0").text(function () { 324 return $(this).text().replace("- Select Type -", "All Organisation Types"); 325 }); 326 327}); 328 329document.addEventListener("DOMContentLoaded", function () { 330 const toggles = document.querySelectorAll(".steering-committee-card__toggle"); 331
332 toggles.forEach((button) => { 333 button.addEventListener("click", function () { 334 const container = this.closest(".show-more-container"); 335 if (!container) return; 336 337 const expanded = container.classList.toggle("is-expanded"); 338 339 if (expanded) { 340 this.innerHTML = 'Show less <span class="plus-sign" style="color:#712886">-</span>'; 341 } else { 342 this.innerHTML = 'Show more <span class="plus-sign" style="color:#712886">+</span>'; 343 } 344 }); 345 }); 346}); 347 348 349 350/* 351 352if ($("body").hasClass("home")) { 353 CountDownTimer('02/28/2023 10:1 AM', 'countdown'); 354} 355CountDownTimer('02/28/2023 10:1 AM', 'countdown-footer'); 356 357function CountDownTimer(dt, id) 358{ 359 var end = new Date(dt); 360 361 var _second = 1000; 362 var _minute = _second * 60; 363 var _hour = _minute * 60; 364 var _day = _hour * 24; 365 var timer; 366 367 function showRemaining() { 368 var now = new Date(); 369 var distance = end + now; 370 371 if (distance < 0) { 372 373 clearInterval(timer); 374 document.getElementById(id).innerHTML = '-'; 375 376 return; 377 } 378 var days = Math.floor(distance / _day); 379 //var hours = Math.floor((distance % _day) / _hour); 380 //var minutes = Math.floor((distance % _hour) / _minute); 381 //var seconds = Math.floor((distance % _minute) / _second); 382 383// $('#'+id).html(days); 384 385 386 387 document.getElementById(id).innerHTML = days; 388 //document.getElementById(id).innerHTML += hours + 'hrs '; 389 //document.getElementById(id).innerHTML += minutes + 'mins '; 390 //document.getElementById(id).innerHTML += seconds + 'secs'; 391 } 392 393 timer = setInterval(showRemaining, 1000); 394} 395 396*/
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.