1CLI_ACCEPT_COOKIE_NAME =(typeof CLI_ACCEPT_COOKIE_NAME !== 'undefined' ? CLI_ACCEPT_COOKIE_NAME : 'viewed_cookie_policy'); 2CLI_ACCEPT_COOKIE_EXPIRE =(typeof CLI_ACCEPT_COOKIE_EXPIRE !== 'undefined' ? CLI_ACCEPT_COOKIE_EXPIRE : 365); 3CLI_COOKIEBAR_AS_POPUP=(typeof CLI_COOKIEBAR_AS_POPUP !== 'undefined' ? CLI_COOKIEBAR_AS_POPUP : false); 4var CLI_Cookie={ 5 set: function (name, value, days) { 6 if (days) { 7 var date = new Date(); 8 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 9 var expires = "; expires=" + date.toGMTString(); 10 } else 11 var expires = ""; 12 document.cookie = name + "=" + value + expires + "; path=/"; 13 if(days<1) 14 { 15 host_name=window.location.hostname; 16 document.cookie = name + "=" + value + expires + "; path=/; domain=."+host_name+";"; 17 if(host_name.indexOf("www")!=1) 18 { 19 var host_name_withoutwww=host_name.replace('www',''); 20 document.cookie = name + "=" + value + expires + "; path=/; domain="+host_name_withoutwww+";"; 21 } 22 host_name=host_name.substring(host_name.lastIndexOf(".", host_name.lastIndexOf(".")-1)); 23 document.cookie = name + "=" + value + expires + "; path=/; domain="+host_name+";"; 24 } 25 }, 26 read: function (name) { 27 var nameEQ = name + "="; 28 var ca = document.cookie.split(';'); 29 for (var i = 0; i < ca.length; i++) { 30 var c = ca[i]; 31 while (c.charAt(0) == ' ') { 32 c = c.substring(1, c.length); 33 } 34 if (c.indexOf(nameEQ) === 0) { 35 return c.substring(nameEQ.length, c.length); 36 } 37 } 38 return null; 39 }, 40 erase: function (name) { 41 this.set(name, "", -10); 42 }, 43 exists: function (name) { 44 return (this.read(name) !== null); 45 }, 46 getallcookies:function() 47 { 48 var pairs = document.cookie.split(";"); 49 var cookieslist = {}; 50 for (var i = 0; i < pairs.length; i++) { 51 var pair = pairs[i].split("="); 52 cookieslist[(pair[0] + '').trim()] = unescape(pair[1]); 53 } 54 return cookieslist; 55 } 56} 57var CLI= 58{ 59 bar_config:{}, 60 showagain_config:{}, 61 set:function(args) 62 { 63 if(typeof JSON.parse !== "function") 64 { 65 console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it"); 66 return; 67 } 68 this.settings = JSON.parse(args.settings); 69 this.bar_elm=jQuery(this.settings.notify_div_id); 70 this.showagain_elm = jQuery(this.settings.showagain_div_id); 71 72 /* buttons */ 73 this.main_button=jQuery('.cli-plugin-main-button'); 74 this.main_link = jQuery('.cli-plugin-main-link'); 75 this.reject_link = jQuery('.cookie_action_close_header_reject'); 76 this.delete_link=jQuery(".cookielawinfo-cookie-delete"); 77 this.settings_button=jQuery('.cli_settings_button'); 78 79 if(this.settings.cookie_bar_as=='popup') 80 { 81 CLI_COOKIEBAR_AS_POPUP=true; 82 } 83 this.configBar(); 84 this.toggleBar(); 85 this.attachDelete(); 86 this.attachEvents(); 87 this.configButtons(); 88 89 var cli_hidebar_on_readmore=this.hideBarInReadMoreLink(); 90 if(this.settings.scroll_close===true && cli_hidebar_on_readmore===false) 91 { 92 window.addEventListener("scroll",CLI.closeOnScroll, false); 93 } 94 }, 95 hideBarInReadMoreLink:function() 96 { 97 if(CLI.settings.button_2_hidebar===true && this.main_link.length>0 && this.main_link.hasClass('cli-minimize-bar')) 98 { 99 this.hideHeader(); 100 this.showagain_elm.slideDown(this.settings.animate_speed_show); 101 return true; 102 } 103 return false; 104 }, 105 attachEvents:function() 106 { 107 jQuery('.cli_action_button').click(function(e){ 108 e.preventDefault(); 109 var elm=jQuery(this); 110 var button_action=elm.attr('data-cli_action'); 111 var open_link=elm[0].hasAttribute("href") && elm.attr("href") != '#' ? true : false; 112 var new_window=false; 113 if(button_action=='accept') 114 { 115 CLI.accept_close(); 116 new_window=CLI.settings.button_1_new_win ? true : false;
117 }else if(button_action=='reject') 118 { 119 CLI.reject_close(); 120 new_window=CLI.settings.button_3_new_win ? true : false; 121 } 122 if(open_link) 123 { 124 if(new_window) 125 { 126 window.open(elm.attr("href"),'_blank'); 127 }else 128 { 129 window.location.href =elm.attr("href"); 130 } 131 } 132 }); 133 this.settingsPopUp(); 134 this.settingsTabbedAccordion(); 135 this.toggleUserPreferenceCheckBox(); 136 }, 137 toggleUserPreferenceCheckBox:function() 138 { 139 jQuery('.cli-user-preference-checkbox').each(function(){ 140 if(jQuery(this).is(':checked')) 141 { 142 CLI_Cookie.set('cookielawinfo-'+jQuery(this).attr('data-id'),'yes',CLI_ACCEPT_COOKIE_EXPIRE); 143 }else 144 { 145 CLI_Cookie.set('cookielawinfo-'+jQuery(this).attr('data-id'),'no',CLI_ACCEPT_COOKIE_EXPIRE); 146 } 147 }); 148 jQuery('.cli-user-preference-checkbox').click(function(){ 149 if(jQuery(this).is(':checked')) 150 { 151 CLI_Cookie.set('cookielawinfo-'+jQuery(this).attr('data-id'),'yes',CLI_ACCEPT_COOKIE_EXPIRE); 152 }else 153 { 154 CLI_Cookie.set('cookielawinfo-'+jQuery(this).attr('data-id'),'no',CLI_ACCEPT_COOKIE_EXPIRE); 155 } 156 }); 157 }, 158 settingsPopUp:function() 159 { 160 jQuery('.cli_settings_button').click(function (e) { 161 e.preventDefault(); 162 jQuery('#cliSettingsPopup').addClass("cli-show").css({'opacity':0}).animate({'opacity':1}); 163 jQuery('#cliSettingsPopup').removeClass('cli-blowup cli-out').addClass("cli-blowup"); 164 jQuery('body').addClass("cli-modal-open"); 165 jQuery(".cli-settings-overlay").addClass("cli-show"); 166 jQuery("#cookie-law-info-bar").css({'opacity':.1}); 167 if(!jQuery('.cli-settings-mobile').is(':visible')) 168 { 169 jQuery('#cliSettingsPopup').find('.cli-nav-link:eq(0)').click(); 170 } 171 }); 172 jQuery('#cliModalClose').click(function(){ 173 CLI.settingsPopUpClose(); 174 }); 175 jQuery("#cliSettingsPopup").click(function(e){ 176 if(!(document.getElementsByClassName('cli-modal-dialog')[0].contains(e.target))) 177 { 178 CLI.settingsPopUpClose(); 179 } 180 }); 181 jQuery('.cli_enable_all_btn').click(function(){ 182 var cli_toggle_btn = jQuery(this); 183 var enable_text = cli_toggle_btn.attr('data-enable-text'); 184 var disable_text= cli_toggle_btn.attr('data-disable-text'); 185 if(cli_toggle_btn.hasClass('cli-enabled')){ 186 CLI.disableAllCookies(); 187 cli_toggle_btn.html(enable_text); 188 } 189 else 190 { 191 CLI.enableAllCookies(); 192 cli_toggle_btn.html(disable_text); 193 194 } 195 jQuery(this).toggleClass('cli-enabled'); 196 }); 197 198 this.privacyReadmore(); 199 }, 200 settingsTabbedAccordion:function() 201 { 202 jQuery(".cli-tab-header").on("click", function(e) { 203 if(!(jQuery(e.target).hasClass('cli-slider') || jQuery(e.target).hasClass('cli-user-preference-checkbox'))) 204 { 205 if (jQuery(this).hasClass("cli-tab-active")) { 206 jQuery(this).removeClass("cli-tab-active"); 207 jQuery(this) 208 .siblings(".cli-tab-content") 209 .slideUp(200); 210 211 } else { 212 jQuery(".cli-tab-header").removeClass("cli-tab-active"); 213 jQuery(this).addClass("cli-tab-active"); 214 jQuery(".cli-tab-content").slideUp(200); 215 jQuery(this) 216 .siblings(".cli-tab-content") 217 .slideDown(200); 218 } 219 } 220 }); 221 }, 222 settingsPopUpClose:function() 223 { 224 jQuery('#cliSettingsPopup').removeClass('cli-show'); 225 jQuery('#cliSettingsPopup').addClass('cli-out'); 226 jQuery('body').removeClass("cli-modal-open"); 227 jQuery(".cli-settings-overlay").removeClass("cli-show"); 228 jQuery("#cookie-law-info-bar").css({'opacity':1}); 229 }, 230 privacyReadmore:function() 231 { 232 var el= jQuery('.cli-privacy-content .cli-privacy-content-text'), 233 clone= el.clone(), 234 originalHtml= clone.html(), 235 originalHeight= el.outerHeight(), 236 Trunc = { 237 addReadmore:function(textBlock) 238 { 239 if(textBlock.html().length > 250) 240 { 241 jQuery('.cli-privacy-readmore').show(); 242 } 243 else 244 { 245 jQuery('.cli-privacy-readmore').hide(); 246 } 247 }, 248 truncateText : function( textBlock ) { 249 var strippedText = jQuery('<div />').html(textBlock.html()); 250 strippedText.find('table').remove(); 251 textBlock.html(strippedText.html()); 252 currentText = textBlock.text(); 253 if(currentText.trim().length > 250){ 254 var newStr = currentText.substring(0, 250); 255 textBlock.empty().html(newStr).append('...'); 256 } 257 }, 258 replaceText: function ( textBlock, original ){ 259 return textBlock.html(original); 260 } 261 262 }; 263 Trunc.addReadmore(el); 264 Trunc.truncateText(el); 265 jQuery('a.cli-privacy-readmore').click(function(e){ 266 e.preventDefault(); 267 if(jQuery('.cli-privacy-overview').hasClass('cli-collapsed')) 268 { 269 Trunc.truncateText(el); 270 jQuery('.cli-privacy-overview').removeClass('cli-collapsed'); 271 el.css('height', '100%'); 272 } 273 else 274 {
275 jQuery('.cli-privacy-overview').addClass('cli-collapsed'); 276 Trunc.replaceText(el, originalHtml); 277 } 278 279 280 }); 281 }, 282 attachDelete:function() 283 { 284 this.delete_link.click(function () { 285 CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME); 286 for(var k in Cli_Data.nn_cookie_ids) 287 { 288 CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]); 289 } 290 return false; 291 }); 292 }, 293 configButtons:function() 294 { 295 /*[cookie_button] */ 296 this.main_button.css('color',this.settings.button_1_link_colour); 297 if(this.settings.button_1_as_button) 298 { 299 this.main_button.css('background-color',this.settings.button_1_button_colour); 300 this.main_button.hover(function () { 301 jQuery(this).css('background-color',CLI.settings.button_1_button_hover); 302 },function (){ 303 jQuery(this).css('background-color',CLI.settings.button_1_button_colour); 304 }); 305 } 306 307 /* [cookie_link] */ 308 this.main_link.css('color',this.settings.button_2_link_colour); 309 if(this.settings.button_2_as_button) 310 { 311 this.main_link.css('background-color',this.settings.button_2_button_colour); 312 this.main_link.hover(function () { 313 jQuery(this).css('background-color',CLI.settings.button_2_button_hover); 314 },function (){ 315 jQuery(this).css('background-color',CLI.settings.button_2_button_colour); 316 }); 317 } 318 /* [cookie_reject] */ 319 this.reject_link.css('color',this.settings.button_3_link_colour); 320 if(this.settings.button_3_as_button) 321 { 322 this.reject_link.css('background-color',this.settings.button_3_button_colour); 323 this.reject_link.hover(function () { 324 jQuery(this).css('background-color',CLI.settings.button_3_button_hover); 325 },function () { 326 jQuery(this).css('background-color',CLI.settings.button_3_button_colour); 327 }); 328 } 329 /* [cookie_settings] */ 330 this.settings_button.css('color',this.settings.button_4_link_colour); 331 if(this.settings.button_4_as_button) 332 { 333 this.settings_button.css('background-color',this.settings.button_4_button_colour); 334 this.settings_button.hover(function () { 335 jQuery(this).css('background-color',CLI.settings.button_4_button_hover); 336 },function () { 337 jQuery(this).css('background-color',CLI.settings.button_4_button_colour); 338 }); 339 } 340 }, 341 toggleBar:function() 342 { 343 if(CLI_COOKIEBAR_AS_POPUP) 344 { 345 this.barAsPopUp(1); 346 } 347 if(CLI.settings.cookie_bar_as=='widget') 348 { 349 this.barAsWidget(1); 350 } 351 if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)) 352 { 353 this.displayHeader(); 354 }else 355 { 356 this.hideHeader(); 357 } 358 if(this.settings.show_once_yn) 359 { 360 setTimeout(function(){ 361 CLI.close_header(); 362 },CLI.settings.show_once); 363 } 364 365 this.showagain_elm.click(function (e) { 366 e.preventDefault(); 367 CLI.showagain_elm.slideUp(CLI.settings.animate_speed_hide,function() 368 { 369 CLI.bar_elm.slideDown(CLI.settings.animate_speed_show); 370 if(CLI_COOKIEBAR_AS_POPUP) 371 { 372 CLI.showPopupOverlay(); 373 } 374 }); 375 }); 376 }, 377 configShowAgain:function() 378 { 379 this.showagain_config = { 380 'background-color': this.settings.background, 381 'color':this.l1hs(this.settings.text), 382 'position': 'fixed', 383 'font-family': this.settings.font_family 384 }; 385 if(this.settings.border_on) 386 { 387 var border_to_hide = 'border-' + this.settings.notify_position_vertical; 388 this.showagain_config['border'] = '1px solid ' + this.l1hs(this.settings.border); 389 this.showagain_config[border_to_hide] = 'none'; 390 } 391 var cli_win=jQuery(window); 392 var cli_winw=cli_win.width(); 393 var showagain_x_pos=this.settings.showagain_x_position; 394 if(cli_winw<300) 395 { 396 showagain_x_pos=10; 397 this.showagain_config.width=cli_winw-20; 398 }else 399 { 400 this.showagain_config.width='auto'; 401 } 402 var cli_defw=cli_winw>400 ? 500 : cli_winw-20; 403 if(CLI_COOKIEBAR_AS_POPUP) /* cookie bar as popup */ 404 { 405 var sa_pos=this.settings.popup_showagain_position; 406 var sa_pos_arr=sa_pos.split('-'); 407 if(sa_pos_arr[1]=='left') 408 { 409 this.showagain_config.left=showagain_x_pos; 410 }else if(sa_pos_arr[1]=='right') 411 { 412 this.showagain_config.right=showagain_x_pos; 413 } 414 if(sa_pos_arr[0]=='top') 415 { 416 this.showagain_config.top=0; 417 418 }else if(sa_pos_arr[0]=='bottom') 419 { 420 this.showagain_config.bottom=0; 421 } 422 this.bar_config['position'] = 'fixed'; 423 424 }else if(this.settings.cookie_bar_as=='widget') 425 { 426 this.showagain_config.bottom=0; 427 if(this.settings.widget_position=='left') 428 { 429 this.showagain_config.left=showagain_x_pos; 430 }else if(this.settings.widget_position=='right') 431 { 432 this.showagain_config.right=showagain_x_pos; 433 } 434 } 435 else 436 { 437 if(this.settings.notify_position_vertical == "top") 438 { 439 this.showagain_config.top = '0'; 440 } 441 else if(this.settings.notify_position_vertical == "bottom") 442 { 443 this.bar_config['position'] = 'fixed'; 444 this.bar_config['bottom'] = '0'; 445 this.showagain_config.bottom = '0'; 446 } 447 if(this.settings.notify_position_horizontal == "left") 448 { 449 this.showagain_config.left =showagain_x_pos; 450 }else if(this.settings.notify_position_horizontal == "right") 451 { 452 this.showagain_config.right =showagain_x_pos; 453 } 454 } 455 this.showagain_elm.css(this.showagain_config); 456 }, 457 configBar:function() 458 { 459 this.bar_config = { 460 'background-color':this.settings.background, 461 'color':this.settings.text, 462 'font-family':this.settings.font_family 463 }; 464 if(this.settings.notify_position_vertical=="top") 465 { 466 this.bar_config['top'] = '0'; 467 if(this.settings.header_fix === true) 468 { 469 this.bar_config['position'] = 'fixed'; 470 } 471 }else 472 { 473 this.bar_config['bottom'] = '0'; 474 } 475 this.configShowAgain(); 476 this.bar_elm.css(this.bar_config).hide(); 477 }, 478 l1hs:function(str) 479 { 480 if (str.charAt(0) == "#") { 481 str = str.substring(1, str.length); 482 } else { 483 return "#" + str; 484 } 485 return this.l1hs(str); 486 }, 487 close_header:function() 488 { 489 CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE); 490 this.hideHeader(); 491 }, 492 accept_close:function() 493 { 494 this.hidePopupOverlay(); 495 CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE); 496 if(this.settings.notify_animate_hide) 497 { 498 this.bar_elm.slideUp(this.settings.animate_speed_hide); 499 }else 500 { 501 this.bar_elm.hide(); 502 } 503 if(this.settings.showagain_tab) 504 { 505 this.showagain_elm.slideDown(this.settings.animate_speed_show); 506 } 507 if(this.settings.accept_close_reload === true) 508 { 509 this.reload_current_page(); 510 } 511 return false;
512 }, 513 reject_close:function() 514 { 515 this.hidePopupOverlay(); 516 for(var k in Cli_Data.nn_cookie_ids) 517 { 518 CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]); 519 } 520 CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'no',CLI_ACCEPT_COOKIE_EXPIRE); 521 if(this.settings.notify_animate_hide) 522 { 523 this.bar_elm.slideUp(this.settings.animate_speed_hide); 524 } else 525 { 526 this.bar_elm.hide(); 527 } 528 if(this.settings.showagain_tab) 529 { 530 this.showagain_elm.slideDown(this.settings.animate_speed_show); 531 } 532 if(this.settings.reject_close_reload === true) 533 { 534 this.reload_current_page(); 535 } 536 return false; 537 }, 538 reload_current_page:function() 539 { 540 if(typeof cli_flush_cache!=='undefined' && cli_flush_cache==1) 541 { 542 window.location.href=this.add_clear_cache_url_query(); 543 }else 544 { 545 window.location.reload(true); 546 } 547 }, 548 add_clear_cache_url_query:function() 549 { 550 var cli_rand=new Date().getTime()/1000; 551 var cli_url=window.location.href; 552 var cli_hash_arr=cli_url.split('#'); 553 var cli_urlparts= cli_hash_arr[0].split('?'); 554 if(cli_urlparts.length>=2) 555 { 556 var cli_url_arr=cli_urlparts[1].split('&'); 557 cli_url_temp_arr=new Array(); 558 for(var cli_i=0; cli_i<cli_url_arr.length; cli_i++) 559 { 560 var cli_temp_url_arr=cli_url_arr[cli_i].split('='); 561 if(cli_temp_url_arr[0]=='cli_action') 562 { 563 564 }else 565 { 566 cli_url_temp_arr.push(cli_url_arr[cli_i]); 567 } 568 } 569 cli_urlparts[1]=cli_url_temp_arr.join('&'); 570 cli_url=cli_urlparts.join('?')+(cli_url_temp_arr.length>0 ? '&': '')+'cli_action='; 571 }else 572 { 573 cli_url=cli_hash_arr[0]+'?cli_action='; 574 } 575 cli_url+=cli_rand; 576 if(cli_hash_arr.length>1) 577 { 578 cli_url+='#'+cli_hash_arr[1]; 579 } 580 return cli_url; 581 }, 582 closeOnScroll:function() 583 { 584 if(window.pageYOffset > 100 && !CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)) 585 { 586 CLI.accept_close(); 587 if(CLI.settings.scroll_close_reload === true) 588 { 589 window.location.reload(); 590 } 591 window.removeEventListener("scroll",CLI.closeOnScroll,false); 592 } 593 }, 594 displayHeader:function() 595 { 596 if(this.settings.notify_animate_show) 597 { 598 this.bar_elm.slideDown(this.settings.animate_speed_show); 599 }else 600 { 601 this.bar_elm.show(); 602 } 603 this.showagain_elm.hide(); 604 if(CLI_COOKIEBAR_AS_POPUP) 605 { 606 this.showPopupOverlay(); 607 } 608 }, 609 hideHeader:function() 610 { 611 if(this.settings.showagain_tab) 612 { 613 if(this.settings.notify_animate_show) 614 { 615 this.showagain_elm.slideDown(this.settings.animate_speed_show); 616 } else { 617 this.showagain_elm.show(); 618 } 619 }else 620 { 621 this.showagain_elm.hide(); 622 } 623 this.bar_elm.slideUp(this.settings.animate_speed_show); 624 this.hidePopupOverlay(); 625 }, 626 hidePopupOverlay:function() 627 { 628 jQuery('body').removeClass("cli-barmodal-open"); 629 jQuery(".cli-popupbar-overlay").removeClass("cli-show"); 630 }, 631 showPopupOverlay:function() 632 { 633 if(this.settings.popup_overlay) 634 { 635 jQuery('body').addClass("cli-barmodal-open"); 636 jQuery(".cli-popupbar-overlay").addClass("cli-show"); 637 } 638 }, 639 barAsWidget:function(a) 640 { 641 var cli_elm=this.bar_elm; 642 var cli_win=jQuery(window); 643 var cli_winh=cli_win.height()-40; 644 var cli_winw=cli_win.width(); 645 var cli_defw=cli_winw>400 ? 300 : cli_winw-30; 646 cli_elm.css({ 647 'width':cli_defw,'height':'auto','max-height':cli_winh,'padding':'25px 15px','overflow':'auto','position':'fixed','box-sizing':'border-box' 648 }); 649 if(this.settings.widget_position=='left') 650 { 651 cli_elm.css({ 652 'left':'15px','right':'auto','bottom':'15px','top':'auto' 653 }); 654 }else 655 { 656 cli_elm.css({ 657 'left':'auto','right':'15px','bottom':'15px','top':'auto' 658 }); 659 } 660 if(a) 661 { 662 this.setResize(); 663 } 664 }, 665 barAsPopUp:function(a) 666 { 667 if(typeof cookie_law_info_bar_as_popup==='function') 668 { 669 return false;
670 } 671 var cli_elm=this.bar_elm; 672 var cli_win=jQuery(window); 673 var cli_winh=cli_win.height()-40; 674 var cli_winw=cli_win.width(); 675 var cli_defw=cli_winw>700 ? 500 : cli_winw-20; 676 677 cli_elm.css({ 678 'width':cli_defw,'height':'auto','max-height':cli_winh,'bottom':'','top':'50%','left':'50%','margin-left':(cli_defw/2)*-1,'margin-top':'-100px','padding':'25px 15px','overflow':'auto' 679 }).addClass('cli-bar-popup cli-modal-content'); 680 681 682 cli_h=cli_elm.height(); 683 li_h=cli_h<200 ? 200 : cli_h; 684 cli_elm.css({'top':'50%','margin-top':((cli_h/2)+30)*-1}); 685 setTimeout(function(){ 686 cli_elm.css({ 687 'bottom':'' 688 }); 689 },100); 690 if(a) 691 { 692 this.setResize(); 693 } 694 }, 695 setResize:function() 696 { 697 var resizeTmr=null; 698 jQuery(window).resize(function() { 699 clearTimeout(resizeTmr); 700 resizeTmr=setTimeout(function() 701 { 702 if(CLI_COOKIEBAR_AS_POPUP) 703 { 704 CLI.barAsPopUp(); 705 } 706 if(CLI.settings.cookie_bar_as=='widget') 707 { 708 CLI.barAsWidget(); 709 } 710 CLI.configShowAgain(); 711 },500); 712 }); 713 } 714} 715jQuery(document).ready(function() { 716 if(typeof cli_cookiebar_settings!='undefined') 717 { 718 CLI.set({ 719 settings:cli_cookiebar_settings 720 }); 721 } 722});
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.