1// source --> https://sport-speaker.com/wp-content/plugins/cookie-law-info/legacy/public/js/cookie-law-info-public.js?ver=3.2.8 2CLI_ACCEPT_COOKIE_NAME = (typeof CLI_ACCEPT_COOKIE_NAME !== 'undefined' ? CLI_ACCEPT_COOKIE_NAME : 'viewed_cookie_policy'); 3CLI_PREFERENCE_COOKIE = (typeof CLI_PREFERENCE_COOKIE !== 'undefined' ? CLI_PREFERENCE_COOKIE : 'CookieLawInfoConsent'); 4CLI_ACCEPT_COOKIE_EXPIRE = (typeof CLI_ACCEPT_COOKIE_EXPIRE !== 'undefined' ? CLI_ACCEPT_COOKIE_EXPIRE : 365); 5CLI_COOKIEBAR_AS_POPUP = (typeof CLI_COOKIEBAR_AS_POPUP !== 'undefined' ? CLI_COOKIEBAR_AS_POPUP : false); 6var CLI_Cookie = { 7 set: function (name, value, days) { 8 var secure = ""; 9 if (true === Boolean(Cli_Data.secure_cookies)) { 10 secure = ";secure"; 11 } 12 if (days) { 13 var date = new Date(); 14 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 15 var expires = "; expires=" + date.toGMTString(); 16 } else { 17 var expires = ""; 18 } 19 document.cookie = name + "=" + value + secure + expires + "; path=/"; 20 if (days < 1) { 21 host_name = window.location.hostname; 22 document.cookie = name + "=" + value + expires + "; path=/; domain=." + host_name + ";"; 23 if (host_name.indexOf("www") != 1) { 24 var host_name_withoutwww = host_name.replace('www', ''); 25 document.cookie = name + "=" + value + secure + expires + "; path=/; domain=" + host_name_withoutwww + ";"; 26 } 27 host_name = host_name.substring(host_name.lastIndexOf(".", host_name.lastIndexOf(".") - 1)); 28 document.cookie = name + "=" + value + secure + expires + "; path=/; domain=" + host_name + ";"; 29 } 30 }, 31 read: function (name) { 32 var nameEQ = name + "="; 33 var ca = document.cookie.split(';'); 34 for (var i = 0; i < ca.length; i++) { 35 var c = ca[i]; 36 while (c.charAt(0) == ' ') { 37 c = c.substring(1, c.length); 38 } 39 if (c.indexOf(nameEQ) === 0) { 40 return c.substring(nameEQ.length, c.length); 41 } 42 } 43 return null; 44 }, 45 erase: function (name) { 46 this.set(name, "", -10); 47 }, 48 exists: function (name) { 49 return (this.read(name) !== null); 50 }, 51 getallcookies: function () { 52 var pairs = document.cookie.split(";"); 53 var cookieslist = {}; 54 for (var i = 0; i < pairs.length; i++) { 55 var pair = pairs[i].split("="); 56 cookieslist[(pair[0] + '').trim()] = unescape(pair[1]); 57 } 58 return cookieslist; 59 } 60} 61var CLI = 62{ 63 bar_config: {}, 64 showagain_config: {}, 65 allowedCategories: [], 66 js_blocking_enabled: false, 67 set: function (args) { 68 if (typeof JSON.parse !== "function") { 69 console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it"); 70 return; 71 } 72 if (typeof args.settings !== 'object') { 73 this.settings = JSON.parse(args.settings); 74 } else { 75 this.settings = args.settings; 76 } 77 this.js_blocking_enabled = Boolean(Cli_Data.js_blocking); 78 this.settings = args.settings; 79 this.bar_elm = jQuery(this.settings.notify_div_id); 80 this.showagain_elm = jQuery(this.settings.showagain_div_id); 81 this.settingsModal = jQuery('#cliSettingsPopup'); 82 83 /* buttons */ 84 this.main_button = jQuery('.cli-plugin-main-button'); 85 this.main_link = jQuery('.cli-plugin-main-link'); 86 this.reject_link = jQuery('.cookie_action_close_header_reject'); 87 this.delete_link = jQuery(".cookielawinfo-cookie-delete"); 88 this.settings_button = jQuery('.cli_settings_button'); 89 this.accept_all_button = jQuery('.wt-cli-accept-all-btn'); 90 if (this.settings.cookie_bar_as == 'popup') { 91 CLI_COOKIEBAR_AS_POPUP = true; 92 } 93 this.mayBeSetPreferenceCookie(); 94 this.addStyleAttribute(); 95 this.configBar(); 96 this.toggleBar(); 97 this.attachDelete(); 98 this.attachEvents(); 99 this.configButtons(); 100 this.reviewConsent(); 101 var cli_hidebar_on_readmore = this.hideBarInReadMoreLink(); 102 if (Boolean(this.settings.scroll_close) === true && cli_hidebar_on_readmore === false) { 103 window.addEventListener("scroll", CLI.closeOnScroll, false); 104 } 105 106 }, 107 hideBarInReadMoreLink: function () { 108 if (Boolean(CLI.settings.button_2_hidebar) === true && this.main_link.length > 0 && this.main_link.hasClass('cli-minimize-bar')) { 109 this.hideHeader(); 110 cliBlocker.cookieBar(false); 111 this.showagain_elm.slideDown(this.settings.animate_speed_show); 112 return true; 113 } 114 return false;
115 }, 116 attachEvents: function () { 117 jQuery(document).on( 118 'click', 119 '.wt-cli-privacy-btn', 120 function (e) { 121 e.preventDefault(); 122 CLI.accept_close(); 123 CLI.settingsPopUpClose(); 124 } 125 ); 126 127 jQuery('.wt-cli-accept-btn').on( 128 "click", 129 function (e) { 130 e.preventDefault(); 131 CLI.acceptRejectCookies(jQuery(this)); 132 }); 133 jQuery('.wt-cli-accept-all-btn').on( 134 "click", 135 function (e) { 136 e.preventDefault(); 137 CLI.acceptRejectCookies(jQuery(this), 'accept'); 138 }); 139 jQuery('.wt-cli-reject-btn').on( 140 "click", 141 function (e) { 142 e.preventDefault(); 143 CLI.acceptRejectCookies(jQuery(this), 'reject'); 144 }); 145 this.settingsPopUp(); 146 this.settingsTabbedAccordion(); 147 this.toggleUserPreferenceCheckBox(); 148 this.hideCookieBarOnClose(); 149 this.cookieLawInfoRunCallBacks(); 150 151 }, 152 acceptRejectCookies(element, action = 'custom') { 153 var open_link = element[0].hasAttribute("href") && element.attr("href") != '#' ? true : false; 154 var new_window = false; 155 if (action == 'accept') { 156 this.enableAllCookies(); 157 this.accept_close(); 158 new_window = CLI.settings.button_7_new_win ? true : false; 159 160 } else if (action == 'reject') { 161 this.disableAllCookies(); 162 this.reject_close(); 163 new_window = Boolean(this.settings.button_3_new_win) ? true : false; 164 } else { 165 this.accept_close(); 166 new_window = Boolean(this.settings.button_1_new_win) ? true : false; 167 } 168 if (open_link) { 169 if (new_window) { 170 window.open(element.attr("href"), '_blank'); 171 } else { 172 window.location.href = element.attr("href"); 173 } 174 } 175 }, 176 toggleUserPreferenceCheckBox: function () { 177 178 jQuery('.cli-user-preference-checkbox').each( 179 function () { 180 181 categoryCookie = 'cookielawinfo-' + jQuery(this).attr('data-id'); 182 categoryCookieValue = CLI_Cookie.read(categoryCookie); 183 if (categoryCookieValue == null) { 184 if (jQuery(this).is(':checked')) { 185 CLI_Cookie.set(categoryCookie, 'yes', CLI_ACCEPT_COOKIE_EXPIRE); 186 } else { 187 CLI_Cookie.set(categoryCookie, 'no', CLI_ACCEPT_COOKIE_EXPIRE); 188 } 189 } else { 190 if (categoryCookieValue == "yes") { 191 jQuery(this).prop("checked", true); 192 } else { 193 jQuery(this).prop("checked", false); 194 } 195 196 } 197 198 } 199 ); 200 jQuery('.cli-user-preference-checkbox').on( 201 "click", 202 function (e) { 203 var dataID = jQuery(this).attr('data-id'); 204 var currentToggleElm = jQuery('.cli-user-preference-checkbox[data-id=' + dataID + ']'); 205 if (jQuery(this).is(':checked')) { 206 CLI_Cookie.set('cookielawinfo-' + dataID, 'yes', CLI_ACCEPT_COOKIE_EXPIRE); 207 currentToggleElm.prop('checked', true); 208 } else { 209 CLI_Cookie.set('cookielawinfo-' + dataID, 'no', CLI_ACCEPT_COOKIE_EXPIRE); 210 currentToggleElm.prop('checked', false); 211 } 212 CLI.checkCategories(); 213 CLI.generateConsent(); 214 } 215 ); 216 217 }, 218 settingsPopUp: function () { 219 jQuery(document).on( 220 'click', 221 '.cli_settings_button', 222 function (e) { 223 e.preventDefault(); 224 CLI.settingsModal.addClass("cli-show").css({ 'opacity': 0 }).animate({ 'opacity': 1 }); 225 CLI.settingsModal.removeClass('cli-blowup cli-out').addClass("cli-blowup"); 226 jQuery('body').addClass("cli-modal-open"); 227 jQuery(".cli-settings-overlay").addClass("cli-show"); 228 jQuery("#cookie-law-info-bar").css({ 'opacity': .1 }); 229 if (!jQuery('.cli-settings-mobile').is(':visible')) { 230 CLI.settingsModal.find('.cli-nav-link:eq(0)').trigger("click"); 231 } 232 } 233 ); 234 jQuery('#cliModalClose').on( 235 "click", 236 function (e) { 237 CLI.settingsPopUpClose(); 238 } 239 ); 240 CLI.settingsModal.on( 241 "click", 242 function (e) { 243 if (!(document.getElementsByClassName('cli-modal-dialog')[0].contains(e.target))) { 244 CLI.settingsPopUpClose(); 245 } 246 } 247 ); 248 jQuery('.cli_enable_all_btn').on( 249 "click", 250 function (e) { 251 var cli_toggle_btn = jQuery(this); 252 var enable_text = cli_toggle_btn.attr('data-enable-text'); 253 var disable_text = cli_toggle_btn.attr('data-disable-text'); 254 if (cli_toggle_btn.hasClass('cli-enabled')) { 255 CLI.disableAllCookies(); 256 cli_toggle_btn.html(enable_text); 257 } else { 258 CLI.enableAllCookies(); 259 cli_toggle_btn.html(disable_text); 260 261 } 262 jQuery(this).toggleClass('cli-enabled'); 263 } 264 ); 265 266 this.privacyReadmore(); 267 }, 268 settingsTabbedAccordion: function () { 269 jQuery(".cli-tab-header").on( 270 "click", 271 function (e) { 272 if (!(jQuery(e.target).hasClass('cli-slider') || jQuery(e.target).hasClass('cli-user-preference-checkbox'))) { 273 if (jQuery(this).hasClass("cli-tab-active")) { 274 jQuery(this).removeClass("cli-tab-active"); 275 jQuery(this) 276 .siblings(".cli-tab-content") 277 .slideUp(200); 278 279 } else { 280 jQuery(".cli-tab-header").removeClass("cli-tab-active"); 281 jQuery(this).addClass("cli-tab-active"); 282 jQuery(".cli-tab-content").slideUp(200); 283 jQuery(this) 284 .siblings(".cli-tab-content") 285 .slideDown(200); 286 } 287 } 288 } 289 ); 290 }, 291 settingsPopUpClose: function () { 292 this.settingsModal.removeClass('cli-show'); 293 this.settingsModal.addClass('cli-out'); 294 jQuery('body').removeClass("cli-modal-open"); 295 jQuery(".cli-settings-overlay").removeClass("cli-show"); 296 jQuery("#cookie-law-info-bar").css({ 'opacity': 1 }); 297 }, 298 privacyReadmore: function () { 299 var el = jQuery('.cli-privacy-content .cli-privacy-content-text'); 300 if (el.length > 0) { 301 var clone = el.clone(), 302 originalHtml = clone.html(), 303 originalHeight = el.outerHeight(), 304 Trunc = { 305 addReadmore: function (textBlock) { 306 if (textBlock.html().length > 250) { 307 jQuery('.cli-privacy-readmore').show(); 308 } else { 309 jQuery('.cli-privacy-readmore').hide(); 310 } 311 }, 312 truncateText: function (textBlock) { 313 var strippedText = jQuery('<div />').html(textBlock.html()); 314 strippedText.find('table').remove(); 315 textBlock.html(strippedText.html()); 316 currentText = textBlock.text(); 317 if (currentText.trim().length > 250) { 318 var newStr = currentText.substring(0, 250); 319 textBlock.empty().html(newStr).append('...'); 320 } 321 }, 322 replaceText: function (textBlock, original) { 323 return textBlock.html(original); 324 } 325 326 }; 327 Trunc.addReadmore(el); 328 Trunc.truncateText(el); 329 jQuery('a.cli-privacy-readmore').on( 330 "click", 331 function (e) { 332 e.preventDefault(); 333 if (jQuery('.cli-privacy-overview').hasClass('cli-collapsed')) { 334 Trunc.truncateText(el); 335 jQuery('.cli-privacy-overview').removeClass('cli-collapsed'); 336 el.css('height', '100%'); 337 } else { 338 jQuery('.cli-privacy-overview').addClass('cli-collapsed'); 339 Trunc.replaceText(el, originalHtml); 340 } 341 342 } 343 ); 344 } 345 346 }, 347 attachDelete: function () { 348 this.delete_link.on( 349 "click", 350 function (e) { 351 CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME); 352 for (var k in Cli_Data.nn_cookie_ids) { 353 CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]); 354 } 355 CLI.generateConsent(); 356 return false;
357 } 358 ); 359 360 }, 361 configButtons: function () { 362 /*[cookie_button] */ 363 this.main_button.css('color', this.settings.button_1_link_colour); 364 if (Boolean(this.settings.button_1_as_button)) { 365 this.main_button.css('background-color', this.settings.button_1_button_colour); 366 367 this.main_button.on( 368 'mouseenter', 369 function () { 370 jQuery(this).css('background-color', CLI.settings.button_1_button_hover); 371 } 372 ) 373 .on( 374 'mouseleave', 375 function () { 376 jQuery(this).css('background-color', CLI.settings.button_1_button_colour); 377 } 378 ); 379 } 380 381 /* [cookie_link] */ 382 this.main_link.css('color', this.settings.button_2_link_colour); 383 if (Boolean(this.settings.button_2_as_button)) { 384 this.main_link.css('background-color', this.settings.button_2_button_colour); 385 386 this.main_link.on( 387 'mouseenter', 388 function () { 389 jQuery(this).css('background-color', CLI.settings.button_2_button_hover); 390 } 391 ) 392 .on( 393 'mouseleave', 394 function () { 395 jQuery(this).css('background-color', CLI.settings.button_2_button_colour); 396 } 397 ); 398 399 } 400 /* [cookie_reject] */ 401 this.reject_link.css('color', this.settings.button_3_link_colour); 402 if (Boolean(this.settings.button_3_as_button)) { 403 404 this.reject_link.css('background-color', this.settings.button_3_button_colour); 405 this.reject_link.on( 406 'mouseenter', 407 function () { 408 jQuery(this).css('background-color', CLI.settings.button_3_button_hover); 409 } 410 ) 411 .on( 412 'mouseleave', 413 function () { 414 jQuery(this).css('background-color', CLI.settings.button_3_button_colour); 415 } 416 ); 417 } 418 /* [cookie_settings] */ 419 this.settings_button.css('color', this.settings.button_4_link_colour); 420 if (Boolean(this.settings.button_4_as_button)) { 421 this.settings_button.css('background-color', this.settings.button_4_button_colour); 422 this.settings_button.on( 423 'mouseenter', 424 function () { 425 jQuery(this).css('background-color', CLI.settings.button_4_button_hover); 426 } 427 ) 428 .on( 429 'mouseleave', 430 function () { 431 jQuery(this).css('background-color', CLI.settings.button_4_button_colour); 432 } 433 ); 434 } 435 /* [cookie_accept_all] */ 436 this.accept_all_button.css('color', this.settings.button_7_link_colour); 437 if (this.settings.button_7_as_button) { 438 this.accept_all_button.css('background-color', this.settings.button_7_button_colour); 439 this.accept_all_button.on( 440 'mouseenter', 441 function () { 442 jQuery(this).css('background-color', CLI.settings.button_7_button_hover); 443 } 444 ) 445 .on( 446 'mouseleave', 447 function () { 448 jQuery(this).css('background-color', CLI.settings.button_7_button_colour); 449 } 450 ); 451 } 452 }, 453 toggleBar: function () { 454 if (CLI_COOKIEBAR_AS_POPUP) { 455 this.barAsPopUp(1); 456 } 457 if (CLI.settings.cookie_bar_as == 'widget') { 458 this.barAsWidget(1); 459 } 460 if (!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)) { 461 this.displayHeader(); 462 } else { 463 this.hideHeader(); 464 } 465 if (Boolean(this.settings.show_once_yn)) { 466 setTimeout( 467 function () { 468 CLI.close_header(); 469 }, 470 CLI.settings.show_once 471 ); 472 } 473 if (CLI.js_blocking_enabled === false) { 474 if (Boolean(Cli_Data.ccpaEnabled) === true) { 475 if (Cli_Data.ccpaType === 'ccpa' && Boolean(Cli_Data.ccpaBarEnabled) === false) { 476 cliBlocker.cookieBar(false); 477 } 478 } else { 479 jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove(); 480 } 481 } 482 483 this.showagain_elm.on( 484 "click", 485 function (e) { 486 e.preventDefault(); 487 CLI.showagain_elm.slideUp( 488 CLI.settings.animate_speed_hide, 489 function () { 490 CLI.bar_elm.slideDown(CLI.settings.animate_speed_show); 491 if (CLI_COOKIEBAR_AS_POPUP) { 492 CLI.showPopupOverlay(); 493 } 494 } 495 ); 496 } 497 ); 498 }, 499 configShowAgain: function () { 500 this.showagain_config = { 501 'background-color': this.settings.background, 502 'color': this.l1hs(this.settings.text), 503 'position': 'fixed', 504 'font-family': this.settings.font_family 505 }; 506 if (Boolean(this.settings.border_on)) { 507 var border_to_hide = 'border-' + this.settings.notify_position_vertical; 508 this.showagain_config['border'] = '1px solid ' + this.l1hs(this.settings.border); 509 this.showagain_config[border_to_hide] = 'none'; 510 } 511 var cli_win = jQuery(window); 512 var cli_winw = cli_win.width(); 513 var showagain_x_pos = this.settings.showagain_x_position; 514 if (cli_winw < 300) { 515 showagain_x_pos = 10; 516 this.showagain_config.width = cli_winw - 20; 517 } else { 518 this.showagain_config.width = 'auto'; 519 } 520 var cli_defw = cli_winw > 400 ? 500 : cli_winw - 20; 521 if (CLI_COOKIEBAR_AS_POPUP) { /* cookie bar as popup */ 522 var sa_pos = this.settings.popup_showagain_position; 523 var sa_pos_arr = sa_pos.split('-'); 524 if (sa_pos_arr[1] == 'left') { 525 this.showagain_config.left = showagain_x_pos; 526 } else if (sa_pos_arr[1] == 'right') { 527 this.showagain_config.right = showagain_x_pos; 528 } 529 if (sa_pos_arr[0] == 'top') { 530 this.showagain_config.top = 0; 531 532 } else if (sa_pos_arr[0] == 'bottom') { 533 this.showagain_config.bottom = 0; 534 } 535 this.bar_config['position'] = 'fixed'; 536 537 } else if (this.settings.cookie_bar_as == 'widget') { 538 this.showagain_config.bottom = 0; 539 if (this.settings.widget_position == 'left') { 540 this.showagain_config.left = showagain_x_pos; 541 } else if (this.settings.widget_position == 'right') { 542 this.showagain_config.right = showagain_x_pos; 543 } 544 } else { 545 if (this.settings.notify_position_vertical == "top") { 546 this.showagain_config.top = '0'; 547 } else if (this.settings.notify_position_vertical == "bottom") { 548 this.bar_config['position'] = 'fixed'; 549 this.bar_config['bottom'] = '0'; 550 this.showagain_config.bottom = '0'; 551 } 552 if (this.settings.notify_position_horizontal == "left") { 553 this.showagain_config.left = showagain_x_pos; 554 } else if (this.settings.notify_position_horizontal == "right") { 555 this.showagain_config.right = showagain_x_pos; 556 } 557 } 558 this.showagain_elm.css(this.showagain_config); 559 }, 560 configBar: function () { 561 this.bar_config = { 562 'background-color': this.settings.background, 563 'color': this.settings.text, 564 'font-family': this.settings.font_family 565 }; 566 if (this.settings.notify_position_vertical == "top") { 567 this.bar_config['top'] = '0'; 568 if (Boolean(this.settings.header_fix) === true) { 569 this.bar_config['position'] = 'fixed'; 570 } 571 } else { 572 this.bar_config['bottom'] = '0'; 573 } 574 this.configShowAgain(); 575 this.bar_elm.css(this.bar_config).hide(); 576 }, 577 l1hs: function (str) { 578 if (str.charAt(0) == "#") { 579 str = str.substring(1, str.length); 580 } else { 581 return "#" + str; 582 } 583 return this.l1hs(str); 584 }, 585 close_header: function () { 586 CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'yes', CLI_ACCEPT_COOKIE_EXPIRE); 587 this.hideHeader(); 588 }, 589 accept_close: function () { 590 this.hidePopupOverlay(); 591 this.generateConsent(); 592 this.cookieLawInfoRunCallBacks(); 593 594 CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'yes', CLI_ACCEPT_COOKIE_EXPIRE); 595 if (Boolean(this.settings.notify_animate_hide)) { 596 if (CLI.js_blocking_enabled === true) { 597 this.bar_elm.slideUp(this.settings.animate_speed_hide, cliBlocker.runScripts); 598 } else { 599 this.bar_elm.slideUp(this.settings.animate_speed_hide); 600 } 601 602 } else { 603 if (CLI.js_blocking_enabled === true) { 604 this.bar_elm.hide(0, cliBlocker.runScripts); 605 606 } else { 607 this.bar_elm.hide(); 608 } 609 } 610 if (Boolean(this.settings.showagain_tab)) { 611 this.showagain_elm.slideDown(this.settings.animate_speed_show); 612 } 613 if (Boolean(this.settings.accept_close_reload) === true) { 614 this.reload_current_page(); 615 } 616 return false;
617 }, 618 reject_close: function () { 619 this.hidePopupOverlay(); 620 this.generateConsent(); 621 this.cookieLawInfoRunCallBacks(); 622 for (var k in Cli_Data.nn_cookie_ids) { 623 CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]); 624 } 625 CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'no', CLI_ACCEPT_COOKIE_EXPIRE); 626 627 if (Boolean(this.settings.notify_animate_hide)) { 628 if (CLI.js_blocking_enabled === true) { 629 630 this.bar_elm.slideUp(this.settings.animate_speed_hide, cliBlocker.runScripts); 631 632 } else { 633 634 this.bar_elm.slideUp(this.settings.animate_speed_hide); 635 } 636 637 } else { 638 if (CLI.js_blocking_enabled === true) { 639 640 this.bar_elm.hide(cliBlocker.runScripts); 641 642 } else { 643 644 this.bar_elm.hide(); 645 646 } 647 648 } 649 if (Boolean(this.settings.showagain_tab)) { 650 this.showagain_elm.slideDown(this.settings.animate_speed_show); 651 } 652 if (Boolean(this.settings.reject_close_reload) === true) { 653 this.reload_current_page(); 654 } 655 return false; 656 }, 657 reload_current_page: function () { 658 659 window.location.reload(true); 660 }, 661 closeOnScroll: function () { 662 if (window.pageYOffset > 100 && !CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)) { 663 CLI.accept_close(); 664 if (Boolean(CLI.settings.scroll_close_reload) === true) { 665 window.location.reload(); 666 } 667 window.removeEventListener("scroll", CLI.closeOnScroll, false); 668 } 669 }, 670 displayHeader: function () { 671 if (Boolean(this.settings.notify_animate_show)) { 672 this.bar_elm.slideDown(this.settings.animate_speed_show); 673 } else { 674 this.bar_elm.show(); 675 } 676 this.showagain_elm.hide(); 677 if (CLI_COOKIEBAR_AS_POPUP) { 678 this.showPopupOverlay(); 679 } 680 }, 681 hideHeader: function () { 682 if (Boolean(this.settings.showagain_tab)) { 683 if (Boolean(this.settings.notify_animate_show)) { 684 this.showagain_elm.slideDown(this.settings.animate_speed_show); 685 } else { 686 this.showagain_elm.show(); 687 } 688 } else { 689 this.showagain_elm.hide(); 690 } 691 this.bar_elm.slideUp(this.settings.animate_speed_show); 692 this.hidePopupOverlay(); 693 }, 694 hidePopupOverlay: function () { 695 jQuery('body').removeClass("cli-barmodal-open"); 696 jQuery(".cli-popupbar-overlay").removeClass("cli-show"); 697 }, 698 showPopupOverlay: function () { 699 if (this.bar_elm.length) { 700 if (Boolean(this.settings.popup_overlay)) { 701 jQuery('body').addClass("cli-barmodal-open"); 702 jQuery(".cli-popupbar-overlay").addClass("cli-show"); 703 } 704 } 705 706 }, 707 barAsWidget: function (a) { 708 var cli_elm = this.bar_elm; 709 cli_elm.attr('data-cli-type', 'widget'); 710 var cli_win = jQuery(window); 711 var cli_winh = cli_win.height() - 40; 712 var cli_winw = cli_win.width(); 713 var cli_defw = cli_winw > 400 ? 300 : cli_winw - 30; 714 cli_elm.css( 715 { 716 'width': cli_defw, 'height': 'auto', 'max-height': cli_winh, 'overflow': 'auto', 'position': 'fixed', 'box-sizing': 'border-box' 717 } 718 ); 719 if (this.checkifStyleAttributeExist() === false) { 720 cli_elm.css({ 'padding': '25px 15px' }); 721 } 722 if (this.settings.widget_position == 'left') { 723 cli_elm.css( 724 { 725 'left': '15px', 'right': 'auto', 'bottom': '15px', 'top': 'auto' 726 } 727 ); 728 } else { 729 cli_elm.css( 730 { 731 'left': 'auto', 'right': '15px', 'bottom': '15px', 'top': 'auto' 732 } 733 ); 734 } 735 if (a) { 736 this.setResize(); 737 } 738 }, 739 barAsPopUp: function (a) { 740 if (typeof cookie_law_info_bar_as_popup === 'function') { 741 return false; 742 } 743 var cli_elm = this.bar_elm; 744 cli_elm.attr('data-cli-type', 'popup'); 745 var cli_win = jQuery(window); 746 var cli_winh = cli_win.height() - 40; 747 var cli_winw = cli_win.width(); 748 var cli_defw = cli_winw > 700 ? 500 : cli_winw - 20; 749 750 cli_elm.css( 751 { 752 'width': cli_defw, 'height': 'auto', 'max-height': cli_winh, 'bottom': '', 'top': '50%', 'left': '50%', 'margin-left': (cli_defw / 2) * -1, 'margin-top': '-100px', 'overflow': 'auto' 753 } 754 ).addClass('cli-bar-popup cli-modal-content'); 755 if (this.checkifStyleAttributeExist() === false) { 756 cli_elm.css({ 'padding': '25px 15px' }); 757 } 758 cli_h = cli_elm.height(); 759 li_h = cli_h < 200 ? 200 : cli_h; 760 cli_elm.css({ 'top': '50%', 'margin-top': ((cli_h / 2) + 30) * -1 }); 761 setTimeout( 762 function () { 763 cli_elm.css( 764 { 765 'bottom': '' 766 } 767 ); 768 }, 769 100 770 ); 771 if (a) { 772 this.setResize(); 773 } 774 }, 775 setResize: function () { 776 var resizeTmr = null; 777 jQuery(window).resize( 778 function () { 779 clearTimeout(resizeTmr); 780 resizeTmr = setTimeout( 781 function () { 782 if (CLI_COOKIEBAR_AS_POPUP) { 783 CLI.barAsPopUp(); 784 } 785 if (CLI.settings.cookie_bar_as == 'widget') { 786 CLI.barAsWidget(); 787 } 788 CLI.configShowAgain(); 789 }, 790 500 791 ); 792 } 793 ); 794 }, 795 enableAllCookies: function () { 796 797 jQuery('.cli-user-preference-checkbox').each( 798 function () { 799 var cli_chkbox_elm = jQuery(this); 800 var cli_chkbox_data_id = cli_chkbox_elm.attr('data-id'); 801 if (cli_chkbox_data_id != 'checkbox-necessary') { 802 cli_chkbox_elm.prop('checked', true); 803 CLI_Cookie.set('cookielawinfo-' + cli_chkbox_data_id, 'yes', CLI_ACCEPT_COOKIE_EXPIRE); 804 } 805 } 806 ); 807 }, 808 disableAllCookies: function () { 809 jQuery('.cli-user-preference-checkbox').each( 810 function () { 811 812 var cli_chkbox_elm = jQuery(this); 813 var cli_chkbox_data_id = cli_chkbox_elm.attr('data-id'); 814 cliCategorySlug = cli_chkbox_data_id.replace('checkbox-', ''); 815 if (Cli_Data.strictlyEnabled.indexOf(cliCategorySlug) === -1) { 816 cli_chkbox_elm.prop('checked', false); 817 CLI_Cookie.set('cookielawinfo-' + cli_chkbox_data_id, 'no', CLI_ACCEPT_COOKIE_EXPIRE); 818 } 819 } 820 ); 821 }, 822 hideCookieBarOnClose: function () { 823 jQuery(document).on( 824 'click',
825 '.cli_cookie_close_button', 826 function (e) { 827 e.preventDefault(); 828 var elm = jQuery(this); 829 if (Cli_Data.ccpaType === 'ccpa') { 830 CLI.enableAllCookies(); 831 } 832 CLI.accept_close(); 833 } 834 ); 835 }, 836 checkCategories: function () { 837 var cliAllowedCategories = []; 838 var cli_categories = {}; 839 jQuery('.cli-user-preference-checkbox').each( 840 function () { 841 var status = false; 842 cli_chkbox_elm = jQuery(this); 843 cli_chkbox_data_id = cli_chkbox_elm.attr('data-id'); 844 cli_chkbox_data_id = cli_chkbox_data_id.replace('checkbox-', ''); 845 cli_chkbox_data_id_trimmed = cli_chkbox_data_id.replace('-', '_') 846 if (jQuery(cli_chkbox_elm).is(':checked')) { 847 status = true; 848 cliAllowedCategories.push(cli_chkbox_data_id); 849 } 850 851 cli_categories[cli_chkbox_data_id_trimmed] = status; 852 } 853 ); 854 CLI.allowedCategories = cliAllowedCategories; 855 }, 856 cookieLawInfoRunCallBacks: function () { 857 this.checkCategories(); 858 if (CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == 'yes') { 859 if ("function" == typeof CookieLawInfo_Accept_Callback) { 860 CookieLawInfo_Accept_Callback(); 861 } 862 } 863 }, 864 generateConsent: function () { 865 var preferenceCookie = CLI_Cookie.read(CLI_PREFERENCE_COOKIE); 866 cliConsent = {}; 867 if (preferenceCookie !== null) { 868 cliConsent = window.atob(preferenceCookie); 869 cliConsent = JSON.parse(cliConsent); 870 } 871 cliConsent.ver = Cli_Data.consentVersion; 872 categories = []; 873 jQuery('.cli-user-preference-checkbox').each( 874 function () { 875 categoryVal = ''; 876 cli_chkbox_data_id = jQuery(this).attr('data-id'); 877 cli_chkbox_data_id = cli_chkbox_data_id.replace('checkbox-', ''); 878 if (jQuery(this).is(':checked')) { 879 categoryVal = true; 880 } else { 881 categoryVal = false;
882 } 883 cliConsent[cli_chkbox_data_id] = categoryVal; 884 } 885 ); 886 cliConsent = JSON.stringify(cliConsent); 887 cliConsent = window.btoa(cliConsent); 888 CLI_Cookie.set(CLI_PREFERENCE_COOKIE, cliConsent, CLI_ACCEPT_COOKIE_EXPIRE); 889 }, 890 addStyleAttribute: function () { 891 var bar = this.bar_elm; 892 var styleClass = ''; 893 if (jQuery(bar).find('.cli-bar-container').length > 0) { 894 styleClass = jQuery('.cli-bar-container').attr('class'); 895 styleClass = styleClass.replace('cli-bar-container', ''); 896 styleClass = styleClass.trim(); 897 jQuery(bar).attr('data-cli-style', styleClass); 898 } 899 }, 900 getParameterByName: function (name, url) { 901 if (!url) { 902 url = window.location.href; 903 } 904 name = name.replace(/[\[\]]/g, '\\$&'); 905 var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), 906 results = regex.exec(url); 907 if (!results) { 908 return null; 909 } 910 if (!results[2]) { 911 return ''; 912 } 913 return decodeURIComponent(results[2].replace(/\+/g, ' ')); 914 }, 915 CookieLawInfo_Callback: function (enableBar, enableBlocking) { 916 enableBar = typeof enableBar !== 'undefined' ? enableBar : true; 917 enableBlocking = typeof enableBlocking !== 'undefined' ? enableBlocking : true; 918 if (CLI.js_blocking_enabled === true && Boolean(Cli_Data.custom_integration) === true) { 919 cliBlocker.cookieBar(enableBar); 920 cliBlocker.runScripts(enableBlocking); 921 } 922 }, 923 checkifStyleAttributeExist: function () { 924 var exist = false; 925 var attr = this.bar_elm.attr('data-cli-style'); 926 if (typeof attr !== typeof undefined && attr !== false) { 927 exist = true; 928 } 929 return exist; 930 }, 931 reviewConsent: function () { 932 jQuery(document).on( 933 'click', 934 '.cli_manage_current_consent,.wt-cli-manage-consent-link', 935 function () { 936 CLI.displayHeader(); 937 } 938 ); 939 }, 940 mayBeSetPreferenceCookie: function () { 941 if (CLI.getParameterByName('cli_bypass') === "1") { 942 CLI.generateConsent(); 943 } 944 } 945} 946var cliBlocker = 947{ 948 blockingStatus: true, 949 scriptsLoaded: false, 950 ccpaEnabled: false, 951 ccpaRegionBased: false, 952 ccpaApplicable: false, 953 ccpaBarEnabled: false, 954 cliShowBar: true, 955 isBypassEnabled: CLI.getParameterByName('cli_bypass'), 956 checkPluginStatus: function (callbackA, callbackB) { 957 this.ccpaEnabled = Boolean(Cli_Data.ccpaEnabled); 958 this.ccpaRegionBased = Boolean(Cli_Data.ccpaRegionBased); 959 this.ccpaBarEnabled = Boolean(Cli_Data.ccpaBarEnabled); 960 961 if (Boolean(Cli_Data.custom_integration) === true) { 962 callbackA(false); 963 } else { 964 if (this.ccpaEnabled === true) { 965 this.ccpaApplicable = true; 966 if (Cli_Data.ccpaType === 'ccpa') { 967 if (this.ccpaBarEnabled !== true) { 968 this.cliShowBar = false; 969 this.blockingStatus = false; 970 } 971 } 972 } else { 973 jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove(); 974 } 975 if (cliBlocker.isBypassEnabled === "1") { 976 cliBlocker.blockingStatus = false; 977 } 978 callbackA(this.cliShowBar); 979 callbackB(this.blockingStatus); 980 } 981 982 }, 983 cookieBar: function (showbar) { 984 showbar = typeof showbar !== 'undefined' ? showbar : true; 985 cliBlocker.cliShowBar = showbar; 986 if (cliBlocker.cliShowBar === false) { 987 CLI.bar_elm.hide(); 988 CLI.showagain_elm.hide(); 989 CLI.settingsModal.removeClass('cli-blowup cli-out'); 990 CLI.hidePopupOverlay(); 991 jQuery(".cli-settings-overlay").removeClass("cli-show"); 992 } else { 993 if (!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)) { 994 CLI.displayHeader(); 995 } else { 996 CLI.hideHeader(); 997 } 998 } 999 }, 1000 removeCookieByCategory: function () { 1001 1002 if (cliBlocker.blockingStatus === true) { 1003 if (CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) !== null) { 1004 var non_necessary_cookies = Cli_Data.non_necessary_cookies; 1005 for (var key in non_necessary_cookies) { 1006 currentCategory = key; 1007 if (CLI.allowedCategories.indexOf(currentCategory) === -1) {
1008 var nonNecessaryCookies = non_necessary_cookies[currentCategory]; 1009 for (var i = 0; i < nonNecessaryCookies.length; i++) { 1010 if (CLI_Cookie.read(nonNecessaryCookies[i]) !== null) { 1011 CLI_Cookie.erase(nonNecessaryCookies[i]); 1012 } 1013 1014 } 1015 } 1016 } 1017 } 1018 } 1019 }, 1020 runScripts: function (blocking) { 1021 blocking = typeof blocking !== 'undefined' ? blocking : true; 1022 cliBlocker.blockingStatus = blocking; 1023 srcReplaceableElms = ['iframe', 'IFRAME', 'EMBED', 'embed', 'OBJECT', 'object', 'IMG', 'img']; 1024 var genericFuncs = 1025 { 1026 1027 renderByElement: function (callback) { 1028 cliScriptFuncs.renderScripts(); 1029 callback(); 1030 cliBlocker.scriptsLoaded = true; 1031 }, 1032 1033 }; 1034 var cliScriptFuncs = 1035 { 1036 // trigger DOMContentLoaded 1037 scriptsDone: function () { 1038 if (typeof Cli_Data.triggerDomRefresh !== 'undefined') { 1039 if (Boolean(Cli_Data.triggerDomRefresh) === true) { 1040 var DOMContentLoadedEvent = document.createEvent('Event') 1041 DOMContentLoadedEvent.initEvent('DOMContentLoaded', true, true) 1042 window.document.dispatchEvent(DOMContentLoadedEvent); 1043 } 1044 } 1045 }, 1046 seq: function (arr, callback, index) { 1047 // first call, without an index 1048 if (typeof index === 'undefined') { 1049 index = 0 1050 } 1051 1052 arr[index]( 1053 function () { 1054 index++ 1055 if (index === arr.length) { 1056 callback() 1057 } else { 1058 cliScriptFuncs.seq(arr, callback, index) 1059 } 1060 } 1061 ) 1062 }, 1063 /* script runner */ 1064 insertScript: function ($script, callback) { 1065 var s = ''; 1066 var scriptType = $script.getAttribute('data-cli-script-type'); 1067 var elementPosition = $script.getAttribute('data-cli-element-position'); 1068 var isBlock = $script.getAttribute('data-cli-block'); 1069 var s = document.createElement('script'); 1070 var ccpaOptedOut = cliBlocker.ccpaOptedOut(); 1071 s.type = 'text/plain'; 1072 if ($script.async) { 1073 s.async = $script.async; 1074 } 1075 if ($script.defer) { 1076 s.defer = $script.defer; 1077 } 1078 if ($script.src) { 1079 s.onload = callback 1080 s.onerror = callback 1081 s.src = $script.src 1082 } else { 1083 s.textContent = $script.innerText 1084 } 1085 var attrs = jQuery($script).prop("attributes"); 1086 for (var ii = 0; ii < attrs.length; ++ii) { 1087 if (attrs[ii].nodeName !== 'id') { 1088 s.setAttribute(attrs[ii].nodeName, attrs[ii].value); 1089 } 1090 } 1091 if (cliBlocker.blockingStatus === true) { 1092 1093 if ((CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == 'yes' && CLI.allowedCategories.indexOf(scriptType) !== -1)) { 1094 s.setAttribute('data-cli-consent', 'accepted'); 1095 s.type = 'text/javascript'; 1096 } 1097 if (cliBlocker.ccpaApplicable === true) { 1098 if (ccpaOptedOut === true || CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == null) { 1099 s.type = 'text/plain'; 1100 } 1101 } 1102 } else { 1103 s.type = 'text/javascript'; 1104 } 1105 1106 if ($script.type != s.type) { 1107 if (elementPosition === 'head') { 1108 document.head.appendChild(s); 1109 } else { 1110 document.body.appendChild(s); 1111 } 1112 if (!$script.src) { 1113 callback() 1114 } 1115 $script.parentNode.removeChild($script); 1116 1117 } else { 1118 1119 callback(); 1120 } 1121 }, 1122 renderScripts: function () { 1123 var $scripts = document.querySelectorAll('script[data-cli-class="cli-blocker-script"]'); 1124 if ($scripts.length > 0) { 1125 var runList = [] 1126 var typeAttr 1127 Array.prototype.forEach.call( 1128 $scripts, 1129 function ($script) { 1130 // only run script tags without the type attribute 1131 // or with a javascript mime attribute value 1132 typeAttr = $script.getAttribute('type') 1133 runList.push( 1134 function (callback) { 1135 cliScriptFuncs.insertScript($script, callback) 1136 } 1137 ) 1138 } 1139 ) 1140 cliScriptFuncs.seq(runList, cliScriptFuncs.scriptsDone); 1141 } 1142 } 1143 }; 1144 genericFuncs.renderByElement(cliBlocker.removeCookieByCategory); 1145 }, 1146 ccpaOptedOut: function () { 1147 var ccpaOptedOut = false; 1148 var preferenceCookie = CLI_Cookie.read(CLI_PREFERENCE_COOKIE); 1149 if (preferenceCookie !== null) { 1150 cliConsent = window.atob(preferenceCookie); 1151 cliConsent = JSON.parse(cliConsent); 1152 if (typeof cliConsent.ccpaOptout !== 'undefined') { 1153 ccpaOptedOut = cliConsent.ccpaOptout; 1154 } 1155 } 1156 return ccpaOptedOut; 1157 } 1158} 1159jQuery(document).ready( 1160 function () { 1161 if (typeof cli_cookiebar_settings != 'undefined') { 1162 CLI.set( 1163 { 1164 settings: cli_cookiebar_settings 1165 } 1166 ); 1167 if (CLI.js_blocking_enabled === true) { 1168 cliBlocker.checkPluginStatus(cliBlocker.cookieBar, cliBlocker.runScripts); 1169 } 1170 } 1171 } 1172); 1173// source --> https://sport-speaker.com/wp-content/plugins/teampress/js/teampress.js?ver=1.0 1174;(function($){ 1175 function extp_masonry(){ 1176 if (typeof imagesLoaded === "function"){ 1177 var $container = $('.extp-masonry:not(.column-1) .ctgrid'); 1178 $container.imagesLoaded( function() { 1179 $container.masonry({ 1180 itemSelector: '.item-grid', 1181 horizontalOrder: true 1182 }); 1183 }); 1184 } 1185 } 1186 $(window).load(function() { 1187 extp_masonry(); 1188 }); 1189 $(document).ready(function() { 1190 function extp_lightbox(){ 1191 $('.exlightbox').each(function(){ 1192 var $class = $(this).data('class'); 1193 var lightbox = GLightbox(); 1194 /*var isMobile = navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i);*/ 1195 var lightboxDescription = GLightbox({ 1196 selector: $class, 1197 moreLength:0, 1198 touchNavigation: true, 1199 lightboxHtml : '<div id="glightbox-body" class="exteam-lb glightbox-container">\ 1200 <div class="gloader visible"></div>\ 1201 <div class="goverlay"></div>\ 1202 <div class="gcontainer">\ 1203 <div id="glightbox-slider" class="gslider"></div>\ 1204 <a class="gnext"></a>\ 1205 <a class="gprev"></a>\ 1206 <a class="gclose"></a>\ 1207 </div>\
1208 </div>', 1209 onOpen: function(slide, data) { 1210 $('.exteam-lb .ginner-container .gslide-description').each(function(){ 1211 var $this = $(this); 1212 /*if(isMobile){ 1213 $this.css('overflow','scroll'); 1214 }else{*/ 1215 $this.closest(".gslide ").addClass('ehd-scroll'); 1216 $this.niceScroll({cursorcolor:"rgb(66, 66, 66)",horizrailenabled:false}); 1217 setTimeout(function(){ 1218 $this.getNiceScroll().resize(); 1219 $this.closest(".gslide ").removeClass('ehd-scroll'); 1220 }, 800); 1221 /*}*/ 1222 }); 1223 }, 1224 }); 1225 }); 1226 }; 1227 extp_lightbox(); 1228 // End lightbox js 1229 1230 //Start ex-hidden(modal) 1231 $('.fct-modal .ctgrid, .fct-modal .ctlist').on("click",".item-grid", function(event){ 1232 $id_act = $(this).data('id'); 1233 $id_parent = $(this).closest(".ex-tplist ").attr('id'); 1234 event.preventDefault(); 1235 $('.item-modl').removeClass('md-active').hide(); 1236 $('#'+$id_act).addClass('md-active').show(); 1237 $('.exp-modal-info').getNiceScroll().resize(); 1238 $("#"+$id_parent+" .ex-hidden").addClass('ex-hidden-active'); 1239 $("#"+$id_parent+" .ex-overlay").addClass('ex-overlay-active'); 1240 setTimeout(function(){ 1241 $('html').addClass('extp-hidden-scroll'); 1242 }, 400); 1243 }); 1244 function extp_modal_info(){ 1245 $('.exp-modal-info').each(function(){ 1246 var $this = $(this); 1247 $this.niceScroll({ 1248 cursorcolor:"rgba(66, 66, 66, .8)", 1249 autohidemode:'false', 1250 background:"rgba(0, 0, 0,.15)", 1251 cursorwidth: "6px", 1252 }); 1253 setTimeout(function(){ 1254 $this.getNiceScroll().resize(); 1255 }, 800); 1256 }); 1257 }; 1258 $('.fct-modal .extp-mdbutton').on("click",".extp-mdleft", function(event){ 1259 var $crr = $('.item-modl.md-active'); 1260 var $prev = $('.item-modl.md-active').prev(); 1261 if(!$prev.length){ return;} 1262 $crr.fadeOut(300); 1263 $prev.addClass('md-active').fadeIn(300); 1264 setTimeout(function(){ 1265 $('.exp-modal-info').getNiceScroll().resize(); 1266 }, 400); 1267 $crr.removeClass('md-active'); 1268 }); 1269 $('.fct-modal .extp-mdbutton').on("click",".extp-mdright", function(event){ 1270 var $crr = $('.item-modl.md-active'); 1271 var $nex = $('.item-modl.md-active').next(); 1272 if(!$nex.length){ return;} 1273 $crr.fadeOut(300); 1274 $nex.addClass('md-active').fadeIn(300) 1275 setTimeout(function(){ 1276 $('.exp-modal-info').getNiceScroll().resize(); 1277 }, 400); 1278 $crr.removeClass('md-active'); 1279 }); 1280 $('.fct-modal .extp-mdbutton ').on("click",".extp-mdclose", function(event){ 1281 $id_parent = $(this).closest(".ex-tplist ").attr('id'); 1282 $("#"+$id_parent+" .ex-overlay").removeClass('ex-overlay-active'); 1283 $("#"+$id_parent+" .ex-hidden").removeClass('ex-hidden-active'); 1284 setTimeout(function(){ 1285 $('html').removeClass('extp-hidden-scroll'); 1286 }, 400); 1287 }); 1288 function extp_modal_overlay(){ 1289 $('.fct-modal .ex-overlay').on("click", function(event){ 1290 $(this).removeClass('ex-overlay-active'); 1291 $id_parent = $(this).closest(".ex-tplist ").attr('id'); 1292 $("#"+$id_parent+" .ex-hidden").removeClass('ex-hidden-active'); 1293 setTimeout(function(){ 1294 $('html').removeClass('extp-hidden-scroll'); 1295 }, 400); 1296 }); 1297 }; 1298 extp_modal_info(); 1299 extp_modal_overlay(); 1300 //End ex-hidden(modal) 1301 1302 //Start collaps(expand) 1303 $('.ex-tplist.fct-collapse .ctgrid').on("click",".exp-arrow", function(event){ 1304 event.preventDefault(); 1305 $parent = $(this).closest(".item-grid"); 1306 if ($parent.hasClass('active-collaps')) { 1307 $parent.removeClass('active-collaps'); 1308 }else{ 1309 $('.fct-collapse .item-grid').removeClass('active-collaps'); 1310 $parent.addClass('active-collaps'); 1311 } 1312 $('html').addClass('ehd-scroll'); 1313 $('.fct-collapse .item-grid .exp-expand-des').niceScroll({ 1314 cursorcolor:"rgba(66, 66, 66, .8)", 1315 //background: "rgba(0, 0, 0,.15)", 1316 cursorwidth: "6px", 1317 horizrailenabled:false, 1318 autohidemode:false, 1319 //railpadding: {top: '25px', right: 0, left: 0, bottom: '25px'} 1320 }); 1321 setTimeout(function(){ 1322 $('.fct-collapse .item-grid .exp-expand-des').getNiceScroll().resize(); 1323 $('html').removeClass('ehd-scroll'); 1324 }, 500); 1325 }); 1326 $('.ex-tplist.fct-collapse .ctgrid').on("click",".exp-expand-close",function(event){ 1327 event.preventDefault(); 1328 $parent = $(this).closest(".active-collaps"); 1329 $parent.removeClass('active-collaps'); 1330 setTimeout(function(){ 1331 $('.fct-collapse .item-grid .exp-expand-des').getNiceScroll().resize(); 1332 $('html').removeClass('ehd-scroll'); 1333 }, 300); 1334 }); 1335 $('.ex-tplist.fct-collapse .ctgrid').on("click",".exp-expand-next", function(event){ 1336 event.preventDefault(); 1337 $parent = $(this).closest(".active-collaps"); 1338 $parent.removeClass('active-collaps'); 1339 if ($parent.next().length > 0) { 1340 $next = $parent.next().addClass('active-collaps'); 1341 } 1342 setTimeout(function(){ 1343 $('.fct-collapse .item-grid .exp-expand-des').getNiceScroll().resize(); 1344 $('html').removeClass('ehd-scroll'); 1345 }, 300); 1346 // scrolltop 1347 setTimeout(function(){ 1348 var windowHeight = $(window).height(); 1349 var $ct_at = $('.fct-collapse .active-collaps figure'); 1350 $('html,body').animate({ 1351 scrollTop: ($ct_at.offset().top + $ct_at.height() - 100)}, 1352 'slow'); 1353 }, 500); 1354 1355 }); 1356 $('.ex-tplist.fct-collapse .ctgrid').on("click",".exp-expand-pre", function(event){ 1357 event.preventDefault(); 1358 $parent = $(this).closest(".active-collaps"); 1359 $parent.removeClass('active-collaps'); 1360 if ($parent.prev().length > 0) { 1361 $prev = $parent.prev().addClass('active-collaps'); 1362 } 1363 setTimeout(function(){ 1364 $('.fct-collapse .item-grid .exp-expand-des').getNiceScroll().resize(); 1365 $('html').removeClass('ehd-scroll'); 1366 }, 300); 1367 // scrolltop 1368 setTimeout(function(){ 1369 var windowHeight = $(window).height(); 1370 var $ct_at = $('.fct-collapse .active-collaps figure'); 1371 $('html,body').animate({ 1372 scrollTop: ($ct_at.offset().top + $ct_at.height() - 100)}, 1373 'slow'); 1374 }, 500); 1375 }); 1376 //End collaps 1377 1378 1379 // Carousel 1380 function extp_carousel(id_clas,infinite,start_on,rtl_mode,slidesshow,auto_play,auto_speed,$slidestoscroll){ 1381 jQuery(id_clas).EX_ex_s_lick({ 1382 infinite: infinite, 1383 initialSlide:start_on, 1384 rtl: rtl_mode =='yes' ? true : false, 1385 prevArrow:'<button type="button" class="ex_s_lick-prev"><i class="fa fa-angle-left"></i></button>', 1386 nextArrow:'<button type="button" class="ex_s_lick-next"><i class="fa fa-angle-right"></i></button>', 1387 slidesToShow: slidesshow, 1388 slidesToScroll: $slidestoscroll!='' ? $slidestoscroll : slidesshow, 1389 dots: false, 1390 autoplay: auto_play==1 ? true : false,
1391 autoplaySpeed: auto_speed!='' ? auto_speed : 3000, 1392 arrows: true, 1393 centerMode: false, 1394 focusOnSelect: true, 1395 adaptiveHeight: true, 1396 pauseOnFocus: false, 1397 responsive: [ 1398 { 1399 breakpoint: 1024, 1400 settings: { 1401 slidesToShow: slidesshow, 1402 slidesToScroll: $slidestoscroll!='' ? $slidestoscroll : slidesshow, 1403 } 1404 }, 1405 { 1406 breakpoint: 768, 1407 settings: { 1408 slidesToShow: 2, 1409 slidesToScroll: 1 1410 } 1411 }, 1412 { 1413 breakpoint: 480, 1414 settings: { 1415 slidesToShow: 1, 1416 slidesToScroll: 1 1417 } 1418 } 1419 ] 1420 1421 }); 1422 } 1423 jQuery('.ex-tpcarousel').each(function(){ 1424 var $this = jQuery(this); 1425 var id = $this.attr('id'); 1426 var slidesshow = $this.data('slidesshow'); 1427 if(slidesshow==''){ slidesshow = 3;} 1428 var startit = $this.data('startit') > 0 ? $this.data('startit') : 1; 1429 var auto_play = $this.data('autoplay'); 1430 var auto_speed = $this.data('speed'); 1431 var slidestoscroll = $this.data('slidestoscroll'); 1432 var rtl_mode = $this.data('rtl'); 1433 var start_on = $this.data('start_on') > 0 ? $this.data('start_on') : 0; 1434 if($this.data('infinite')=='0'){ 1435 var infinite = 0; 1436 }else{ 1437 var infinite = $this.data('infinite') == 'yes' || $this.data('infinite') == '1' ? true : false; 1438 } 1439 extp_carousel('#'+id+' .ctgrid',infinite,start_on,rtl_mode,slidesshow,auto_play,auto_speed,slidestoscroll); 1440 }); 1441 // End Carousel 1442 1443 //DataTable 1444 1445 function extp_table_modal(){ 1446 $('.fct-modal tbody').on("click", ".exp-td-first", function(event){ 1447 event.preventDefault(); 1448 var $next = $(this).next(); 1449 $next.find(".item-grid").trigger('click'); 1450 }); 1451 }; 1452 function extp_table_lightbox(){ 1453 $('.fct-lightbox tbody').on("click",".exp-td-first", function(event){ 1454 event.preventDefault(); 1455 var $next = $(this).next(); 1456 $next.find(".exlightbox").trigger('click'); 1457 }); 1458 }; 1459 extp_table_modal(); 1460 extp_table_lightbox(); 1461 //End datatable 1462 // ajax loadmore 1463 function extp_ajax_load_page($style,$this_click,id_crsc,$page_link){ 1464 if($style !='loadmore'){ 1465 $('#'+id_crsc+' .page-numbers').removeClass('disable-click'); 1466 } 1467 if($('#'+id_crsc).hasClass('fct-collapse')){ 1468 $('#'+id_crsc+'.fct-collapse .item-grid').removeClass('active-collaps'); 1469 setTimeout(function(){ 1470 $('#'+id_crsc+'.fct-collapse .item-grid .exp-expand-des').getNiceScroll().resize(); 1471 }, 300); 1472 } 1473 $this_click.addClass('disable-click'); 1474 var n_page = $('#'+id_crsc+' input[name=num_page_uu]').val(); 1475 if($style=='loadmore'){ 1476 $('#'+id_crsc+' .loadmore-exbt').addClass("loading"); 1477 }else{ 1478 $('#'+id_crsc).addClass("loading"); 1479 } 1480 var layout = $('#'+id_crsc).hasClass('table-layout') ? 'table' : ''; 1481 if($('#'+id_crsc).hasClass('list-layout')){ layout = 'list';} 1482 var param_query = $('#'+id_crsc+' input[name=param_query]').val(); 1483 var param_ids = $('#'+id_crsc+' input[name=param_ids]').val(); 1484 var page = $('#'+id_crsc+' input[name=current_page]').val(); 1485 var num_page = $('#'+id_crsc+' input[name=num_page]').val(); 1486 var ajax_url = $('#'+id_crsc+' input[name=ajax_url]').val(); 1487 var param_shortcode = $('#'+id_crsc+' input[name=param_shortcode]').val(); 1488 var char_ft = $('#'+id_crsc+' .etp-alphab a').length ? $('#'+id_crsc+' .etp-alphab a.current').data('value') : ''; 1489 var param = { 1490 action: 'extp_loadmore', 1491 param_query: param_query, 1492 param_ids: param_ids, 1493 id_crsc: id_crsc, 1494 page: $page_link!='' ? $page_link : page*1+1, 1495 param_shortcode: param_shortcode, 1496 layout: layout, 1497 char: char_ft, 1498 }; 1499 $.ajax({
1500 type: "post", 1501 url: ajax_url, 1502 dataType: 'json', 1503 data: (param), 1504 success: function(data){ 1505 if(data != '0') 1506 { 1507 if($style=='loadmore'){ 1508 n_page = n_page*1+1; 1509 $('#'+id_crsc+' input[name=num_page_uu]').val(n_page) 1510 if(data.html_content == ''){ 1511 $('#'+id_crsc+' .loadmore-exbt').remove(); 1512 }else{ 1513 $('#'+id_crsc+' input[name=current_page]').val(page*1+1); 1514 if(layout=='table'){ 1515 var $g_container = $('#'+id_crsc+' table tbody'); 1516 $g_container.append(data.html_content); 1517 }else if(layout=='list'){ 1518 var $g_container = $('#'+id_crsc+' .ctlist'); 1519 $g_container.append(data.html_content); 1520 }else{ 1521 var $g_container = $('#'+id_crsc+' .ctgrid'); 1522 $g_container.append(data.html_content); 1523 setTimeout(function(){ 1524 $('#'+id_crsc+' .item-grid').addClass("active"); 1525 }, 200); 1526 } 1527 $('#'+id_crsc+' .loadmore-exbt').removeClass("loading"); 1528 $this_click.removeClass('disable-click'); 1529 } 1530 if(n_page == num_page){ 1531 $('#'+id_crsc+' .loadmore-exbt').remove(); 1532 } 1533 }else{ 1534 if(layout=='table'){ 1535 $showin = $('#'+id_crsc+' table tbody'); 1536 }else if(layout=='list'){ 1537 $showin = $('#'+id_crsc+' .ctlist'); 1538 }else{ 1539 $showin = $('#'+id_crsc+' .ctgrid'); 1540 } 1541 $($showin).fadeOut({ 1542 duration:0, 1543 complete:function(){ 1544 $( this ).empty(); 1545 } 1546 });
1547 $('#'+id_crsc).removeClass("loading"); 1548 $showin.append(data.html_content).fadeIn(); 1549 1550 } 1551 if(data.html_modal!=''){ 1552 // $('#'+id_crsc+' .ex-hidden .exp-mdcontaner').fadeOut({ 1553 // duration:0, 1554 // complete:function(){ 1555 // $( this ).empty(); 1556 // } 1557 // }); 1558 $('#'+id_crsc+' .ex-hidden .exp-mdcontaner').append(data.html_modal).fadeIn(); 1559 } 1560 extp_lightbox(); 1561 extp_modal_info(); 1562 extp_table_modal(); 1563 extp_table_lightbox(); 1564 1565 if($('#'+id_crsc).hasClass('extp-masonry') && !$('#'+id_crsc).hasClass('column-1')){ 1566 if (typeof imagesLoaded === "function"){ 1567 $('#'+id_crsc+'.extp-masonry .ctgrid').imagesLoaded( function() { 1568 $('#'+id_crsc+'.extp-masonry .ctgrid').masonry('reloadItems'); 1569 $('#'+id_crsc+'.extp-masonry .ctgrid').masonry({ 1570 isInitLayout : false, 1571 horizontalOrder: true, 1572 itemSelector: '.item-grid' 1573 }); 1574 }); 1575 } 1576 } 1577 }else{$('#'+id_crsc+' .loadmore-exbt').html('error');} 1578 } 1579 }); 1580 return false; 1581 } 1582 function extp_loadmore(){ 1583 $('.loadmore-exbt').on('click',function() { 1584 if($(this).hasClass('disable-click')){ 1585 return; 1586 } 1587 var $this_click = $(this); 1588 var id_crsc = $this_click.closest(".ex-tplist").attr('id'); 1589 extp_ajax_load_page($style ='loadmore' ,$this_click,id_crsc,''); 1590 }); 1591 } 1592 extp_loadmore(); 1593 // End load more 1594 1595 //Start paging 1596 $('.ex-tplist .extp-pagination-parent').on('click','.page-numbers',function(event) { 1597 event.preventDefault(); 1598 var $this_click = $(this); 1599 var id_crsc = $this_click.closest(".ex-tplist").attr('id'); 1600 $('#'+id_crsc+' .page-numbers').removeClass('current'); 1601 $($this_click).addClass('current'); 1602 $page_link = $this_click.text(); 1603 if($page_link*1 > 1){ 1604 $('#'+id_crsc+' .prev-ajax').removeClass('disable-click'); 1605 } 1606 $('#'+id_crsc+' .next-ajax').removeClass('disable-click'); 1607 extp_ajax_load_page($style ='page_link',$this_click,id_crsc,$page_link); 1608 }); 1609 $('.ex-tplist .extp-pagination-parent').on('click','.next-ajax',function(event) { 1610 event.preventDefault(); 1611 var $this_click = $(this); 1612 var id_crsc = $this_click.closest(".ex-tplist").attr('id'); 1613 var $current = $('#'+id_crsc+' .current'); 1614 var current_page = $current.text(); 1615 $('#'+id_crsc+' .prev-ajax').removeClass('disable-click'); 1616 1617 $current.removeClass('current'); 1618 $current.next().addClass('current'); 1619 $page_link = current_page*1+1; 1620 extp_ajax_load_page($style ='page_link',$this_click,id_crsc,$page_link); 1621 $this_click.removeClass('disable-click'); 1622 }); 1623 $('.ex-tplist .extp-pagination-parent').on('click','.prev-ajax',function(event) { 1624 event.preventDefault(); 1625 var $this_click = $(this); 1626 var id_crsc = $this_click.closest(".ex-tplist").attr('id'); 1627 var $current = $('#'+id_crsc+' .page-navi .current'); 1628 var current_page = parseInt($current.text()); 1629 $('#'+id_crsc+' .next-ajax').removeClass('disable-click'); 1630 if (current_page == 1) { 1631 $('#'+id_crsc+' .prev-ajax').addClass('disable-click'); 1632 return false; 1633 } 1634 $current.removeClass('current'); 1635 $current.prev().addClass('current'); 1636 $page_link = current_page-1; 1637 extp_ajax_load_page($style ='page_link',$this_click,id_crsc,$page_link); 1638 if($page_link*1 > 1){ 1639 $('#'+id_crsc+' .prev-ajax').removeClass('disable-click'); 1640 } 1641 }); 1642 $('.etp-alphab ul li a').on('click',function(event) { 1643 event.preventDefault(); 1644 var $this_click = $(this); 1645 var char_ft = $(this).data('value'); 1646 var id_crsc = $this_click.closest(".ex-tplist").attr('id'); 1647 var cat = $('#'+id_crsc+' select[name=extp_cat]').val(); 1648 var loc = $('#'+id_crsc+' select[name=extp_location]').val(); 1649 if (loc == undefined) {loc ='';} 1650 var key_word = $('#'+id_crsc+' input[name=s]').val(); 1651 var mode = 'alphab'; 1652 extp_ajax_search($this_click,char_ft,key_word,cat,mode,loc); 1653 return false; 1654 });
1655 function extp_ajax_search($this_click,$char_ft, $key_word,$cat,mode,location){ 1656 var id_crsc = $this_click.closest(".ex-tplist").attr('id'); 1657 if($('#'+id_crsc).hasClass('fct-collapse')){ 1658 $('#'+id_crsc+'.fct-collapse .item-grid').removeClass('active-collaps'); 1659 setTimeout(function(){ 1660 $('#'+id_crsc+'.fct-collapse .item-grid .exp-expand-des').getNiceScroll().resize(); 1661 }, 300); 1662 } 1663 $('#'+id_crsc+' .etp-alphab a').removeClass('current'); 1664 if(mode=='alphab'){ 1665 $($this_click).addClass('current'); 1666 }else{ 1667 $('#'+id_crsc+' .etp-alphab li:first-child a').addClass('current'); 1668 } 1669 var layout = $('#'+id_crsc).hasClass('table-layout') ? 'table' : ''; 1670 $('#'+id_crsc).addClass("loading"); 1671 if($('#'+id_crsc).hasClass('list-layout')){ layout = 'list';} 1672 var param_query = $('#'+id_crsc+' input[name=param_query]').val(); 1673 var ajax_url = $('#'+id_crsc+' input[name=ajax_url]').val(); 1674 var param_shortcode = $('#'+id_crsc+' input[name=param_shortcode]').val(); 1675 var param = { 1676 action: 'extp_filter_alphab', 1677 param_query: param_query, 1678 id_crsc: id_crsc, 1679 param_shortcode: param_shortcode, 1680 layout: layout, 1681 char: $char_ft, 1682 key_word: $key_word, 1683 cat: $cat, 1684 location: location, 1685 }; 1686 $.ajax({ 1687 type: "post", 1688 url: ajax_url, 1689 dataType: 'json', 1690 data: (param), 1691 success: function(data){ 1692 if(data != '0') 1693 { 1694 if($('#'+id_crsc+' .ex-loadmore').length){ 1695 var $loadmore=1; 1696 if(data.page_navi =='off'){ 1697 $('#'+id_crsc+' .ex-loadmore .loadmore-exbt').remove(); 1698 }else{ 1699 $('#'+id_crsc+' .ex-loadmore').remove(); 1700 } 1701 1702 }; 1703 $('#'+id_crsc+' input[name=num_page_uu]').val('1'); 1704 $('#'+id_crsc+' input[name=current_page]').val('1'); 1705 if(layout=='table'){ 1706 $showin = $('#'+id_crsc+' table tbody'); 1707 }else if(layout=='list'){ 1708 $showin = $('#'+id_crsc+' .ctlist'); 1709 }else{ 1710 $showin = $('#'+id_crsc+' .ctgrid'); 1711 } 1712 $($showin).fadeOut({ 1713 duration:0, 1714 complete:function(){ 1715 $( this ).empty(); 1716 } 1717 }); 1718 if(data.page_navi !='' && data.page_navi !='off'){ 1719 if ($loadmore ==1) { 1720 $('#'+id_crsc).append(data.page_navi); 1721 } 1722 else{ 1723 $('#'+id_crsc+' .extp-pagination').fadeOut({ 1724 duration:0, 1725 complete:function(){ 1726 $( this ).remove(); 1727 } 1728 });
1729 $('#'+id_crsc+' .extp-pagination-parent').append(data.page_navi); 1730 } 1731 }else if(data.page_navi=='off'){ 1732 $('#'+id_crsc+' .extp-pagination .page-navi').fadeOut({ 1733 duration:0, 1734 complete:function(){ 1735 $( this ).remove(); 1736 } 1737 }); 1738 } 1739 $('#'+id_crsc).removeClass("loading"); 1740 $showin.append(data.html_content).fadeIn(); 1741 if(data.html_modal!=''){ 1742 $('#'+id_crsc+' .ex-hidden .exp-mdcontaner').fadeOut({ 1743 duration:0, 1744 complete:function(){ 1745 $( this ).empty(); 1746 } 1747 }); 1748 $('#'+id_crsc+' .ex-hidden .exp-mdcontaner').append(data.html_modal).fadeIn(); 1749 } 1750 extp_lightbox(); 1751 extp_modal_info(); 1752 extp_table_modal(); 1753 extp_table_lightbox(); 1754 extp_loadmore(); 1755 if($('#'+id_crsc).hasClass('extp-masonry') && !$('#'+id_crsc).hasClass('column-1')){ 1756 if (typeof imagesLoaded === "function"){ 1757 $('#'+id_crsc+'.extp-masonry .ctgrid').imagesLoaded( function() { 1758 $('#'+id_crsc+'.extp-masonry .ctgrid').masonry('reloadItems'); 1759 $('#'+id_crsc+'.extp-masonry .ctgrid').masonry({ 1760 isInitLayout : false, 1761 horizontalOrder: true, 1762 itemSelector: '.item-grid' 1763 }); 1764 });
1765 } 1766 } 1767 }else{$('#'+id_crsc+' .loadmore-exbt').html('error');} 1768 } 1769 }); 1770 1771 }; 1772 //search 1773 $('.ex-tplist .tp-search-submit').on('click',function(event) { 1774 event.preventDefault(); 1775 var $this_click = $(this); 1776 var id_crsc = $this_click.closest(".ex-tplist").attr('id'); 1777 var cat = $('#'+id_crsc+' select[name=extp_cat]').val(); 1778 var loc = $('#'+id_crsc+' select[name=extp_location]').val(); 1779 if (loc == undefined) {loc ='';} 1780 var key_word = $('#'+id_crsc+' input[name=s]').val(); 1781 var mode = 'search'; 1782 extp_ajax_search($this_click,'',key_word,cat,mode,loc); 1783 return false; 1784 }); 1785 $('.ex-tplist select[name=extp_cat]').on('change',function(event) { 1786 event.preventDefault(); 1787 var $this_click = $(this); 1788 var id_crsc = $this_click.closest(".ex-tplist").attr('id'); 1789 var cat = $('#'+id_crsc+' select[name=extp_cat]').val(); 1790 var loc = $('#'+id_crsc+' select[name=extp_location]').val(); 1791 if (loc == undefined) {loc ='';} 1792 var key_word = $('#'+id_crsc+' input[name=s]').val(); 1793 var mode = 'search'; 1794 extp_ajax_search($this_click,'',key_word,cat,mode,loc); 1795 return false; 1796 }); 1797 // location filter 1798 $('.ex-tplist select[name=extp_location]').on('change',function(event) { 1799 event.preventDefault(); 1800 var $this_click = $(this); 1801 var id_crsc = $this_click.closest(".ex-tplist").attr('id'); 1802 var cat = $('#'+id_crsc+' select[name=extp_cat]').val(); 1803 var loc = $('#'+id_crsc+' select[name=extp_location]').val(); 1804 if (cat == undefined) {cat ='';} 1805 var key_word = $('#'+id_crsc+' input[name=s]').val(); 1806 if (key_word == undefined) {key_word ='';} 1807 var mode = 'search'; 1808 extp_ajax_search($this_click,'',key_word,cat,mode,loc); 1809 return false; 1810 }); 1811 // child cat category click 1812 $('.ex-tplist .extp-search .extp-child_cat.extp-cat-box .extp-child-click').on('click',function(event) { 1813 event.preventDefault(); 1814 var $this_click = $(this); 1815 var id_crsc = $this_click.closest(".ex-tplist").attr('id'); 1816 var $parent = $this_click.closest(".extp-child_cat"); 1817 $parent.find('.extp-child-click').removeClass('extp-child-active'); 1818 $this_click.addClass('extp-child-active'); 1819 $this_click.parents('li.extp-child-click').addClass('extp-child-active'); 1820 var val = $(this).data('value'); 1821 jQuery('#'+id_crsc+' .extp-search-group > select option').each(function(){ 1822 if($(this).val() == val){ 1823 $('#'+id_crsc+' .extp-search-group > select').val(val).trigger('change'); 1824 } 1825 }); 1826 return false; 1827 }); 1828 // child cat location 1829 $('.ex-tplist .extp-loc_parent .extp-child_cat .extp-child-click').on('click',function(event) { 1830 event.preventDefault(); 1831 var $this_click = $(this); 1832 var id_crsc = $this_click.closest(".ex-tplist").attr('id'); 1833 var $parent = $this_click.closest(".extp-child_cat"); 1834 $parent.find('.extp-child-click').removeClass('extp-child-active'); 1835 $this_click.addClass('extp-child-active'); 1836 $this_click.parents('li.extp-child-click').addClass('extp-child-active'); 1837 var val = $(this).data('value'); 1838 jQuery('#'+id_crsc+' .extp-loc > select option').each(function(){ 1839 if($(this).val() == val){ 1840 $('#'+id_crsc+' .extp-loc > select').val(val).trigger('change'); 1841 } 1842 }); 1843 return false; 1844 }); 1845 // Scroll if collapse 1846 $('body').on('click', '.fct-collapse figure',function(event) { 1847 var $this = $(this); 1848 if($this.closest(".item-grid ").hasClass('active-collaps')){ 1849 var windowHeight = $(window).height(); 1850 $('html,body').animate({ 1851 scrollTop: ($this.offset().top + $this.height() - 100)}, 1852 'slow'); 1853 } 1854 }); 1855 }); 1856}(jQuery));
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.