1jQuery(document).on("bleeper_agent_disconnected", function(e) { 2 var taid = jQuery(".wplc_agent_info").attr('aid'); 3 if (taid == e.ndata.aid) { 4 jQuery(".wplc_agent_info").html(""); 5 wplc_animate_agent_header_down(); 6 jQuery("#wplc_chatbox").css("top","18px"); 7 } 8}); 9jQuery(document).on("bleeper_agent_left", function(e) { 10 var taid = jQuery(".wplc_agent_info").attr('aid'); 11 if (taid == e.ndata.agent) { 12 jQuery(".wplc_agent_info").html(""); 13 wplc_animate_agent_header_down(); 14 jQuery("#wplc_chatbox").css("top","18px"); 15 } 16}); 17 18 19jQuery(document).on("wplc_minimize_chat", function( e ) { 20 wplc_is_chat_open = false; 21 jQuery('#wp-live-chat').height(""); 22 if(jQuery("#wp-live-chat").attr("original_pos") === "bottom_right"){ 23 jQuery("#wp-live-chat").css("left", ""); 24 jQuery("#wp-live-chat").css("bottom", "0"); 25 jQuery("#wp-live-chat").css("right", "20px"); 26 } else if(jQuery("#wp-live-chat").attr("original_pos") === "bottom_left"){ 27 jQuery("#wp-live-chat").css("left", "20px"); 28 jQuery("#wp-live-chat").css("bottom", "0"); 29 jQuery("#wp-live-chat").css("right", ""); 30 } else if(jQuery("#wp-live-chat").attr("original_pos") === "left"){ 31 jQuery("#wp-live-chat").css("left", "20px"); 32 jQuery("#wp-live-chat").css("bottom", "100px"); 33 } else if(jQuery("#wp-live-chat").attr("original_pos") === "right"){ 34 35 } 36 jQuery('#wp-live-chat').addClass("wplc_close"); 37 jQuery('#wp-live-chat').removeClass("wplc_open"); 38 jQuery("#wp-live-chat").css("top", ""); 39 jQuery("#wp-live-chat").css("height", ""); 40 jQuery("#wp-live-chat-1").show(); 41 jQuery("#wp-live-chat-1").css('cursor', 'pointer'); 42 jQuery("#wp-live-chat-2").hide(); 43 jQuery("#wp-live-chat-3").hide(); 44 jQuery("#wp-live-chat-4").hide(); 45 jQuery("#wplc_social_holder").hide(); 46 jQuery("#nifty_ratings_holder").hide(); 47 jQuery("#nifty_ratings_holder").hide(); 48 jQuery("#wp-live-chat-react").hide(); 49 jQuery("#wp-live-chat-minimize").hide(); 50 51 jQuery("#wp-live-chat-header").show(); 52 53}); 54 55jQuery(document).on("wplc_start_chat", function( e ) { 56 jQuery("#wp-live-chat-2-inner").hide("slow"); 57 jQuery.event.trigger({type: "wplc_open_chat_1"}); 58 jQuery.event.trigger({type: "wplc_open_chat_2", wplc_online: wplc_online}); 59 60}); 61 62jQuery(document).on( "wplc_open_chat_1", function( e ) { 63 jQuery('#wp-live-chat').removeClass("wplc_close"); 64 jQuery('#wp-live-chat').addClass("wplc_open"); 65 jQuery("#wp-live-chat-react").hide(); 66 67 Cookies.set('wplc_hide', "", { expires: 1, path: '/' }); 68 jQuery("#wp-live-chat-minimize").show(); 69 70 71 72 73}); 74jQuery(document).on("wplc_agent_joined", function(e) { 75 76 var temail = ''; 77 var tname = ''; 78 var taid = ''; 79 var ta_tagline = ''; 80 var ta_bio = ''; 81 var ta_social_links = ''; 82 83 if (typeof e.ndata.other.email !== "undefined") { temail = e.ndata.other.email; } 84 if (typeof e.ndata.other.name !== "undefined") { tname = e.ndata.other.name; } 85 if (typeof e.ndata.other.aid !== "undefined") { taid = parseInt(e.ndata.other.aid); } 86 if (typeof e.ndata.other.agent_tagline !== "undefined") { ta_tagline = e.ndata.other.agent_tagline; } 87 if (typeof e.ndata.other.agent_bio !== "undefined") { ta_bio = e.ndata.other.agent_bio; } 88 if (typeof e.ndata.other.social_links !== "undefined") { ta_social_links = e.ndata.other.social_links; } 89 90 //Ensure this agent ID is valid before proceeding 91 if(!isNaN(taid)){ 92 93 jQuery(".wplc_no_answer").remove(); 94 95 jQuery(".admin_chat_name").html(tname); 96 wplc_node_pair_name = tname; 97 wplc_agent_name = tname; 98 99 var timageurl = wplc_user_avatars[taid]; 100 101 if(jQuery(".wplc_agent_info").html().trim() === "" || typeof jQuery(".wplc_agent_info").attr("aid") === "undefined"){ 102 //No Agents have joined yet 103 jQuery(".wplc_agent_info").html(''); 104 jQuery(".wplc_agent_info").attr("aid",taid); 105 106 if ( ! jQuery( '#agent_grav_'+taid ).length ) { 107 jQuery('<p/>', { 108 'class': '', 109 'style': 'text-align:center;', 110 html: '<img class="img-thumbnail img-circle wplc_thumb32 wplc_agent_involved" style="max-width:inherit;" id="agent_grav_'+taid+'" title="'+tname+'" src="'+timageurl+'?s=60&d=mm" /><br /><span class="wplc_agent_name wplc-color-2">'+tname+'</span>'+ta_tagline+ta_bio+ta_social_links 111 }).appendTo('.wplc_agent_info'); 112 113 jQuery('<span/>', { 114 'class': 'bleeper_pullup down', 115 html: '<i class="fa fa-angle-up"></i>' 116 117 }).appendTo('.wplc_agent_info'); 118 } 119 120 var csst = "url(https://www.gravatar.com/avatar/20a6e5c8b75ce87f4896f46ed6f49832?s=60&d=mm);"; 121 122 jQuery("#wplc_chatbox_header_bg").css('background-image', 'url('+timageurl+'?s=380&d=mm)'); 123 jQuery("#wplc_chatbox").css("top", 124 jQuery("#wplc_chatbox_header").height()+18+"px" 125 ); 126 127 } else { 128 129 var wplc_tracked_agents = jQuery(".wplc_agent_info").attr("aid"); 130 var wplc_tracked_agents_object = wplc_tracked_agents.split(","); 131 132 var wplc_tracked_agent_match = false; //No duplicates found yet 133 for(var i in wplc_tracked_agents_object){ 134 var wplc_indexed_agent_id = parseInt(wplc_tracked_agents_object[i]); 135 136 if(wplc_indexed_agent_id === taid){
137 //Match - This agent is already being tracked 138 wplc_tracked_agent_match = true; 139 } 140 } 141 142 if(!wplc_tracked_agent_match) { 143 //Agent is not being tracked yet 144 wplc_tracked_agents += "," + taid; 145 jQuery(".wplc_agent_info").attr("aid", wplc_tracked_agents); 146 147 //Update Names 148 var wplc_current_agent_names = jQuery(".wplc_agent_name").text(); 149 jQuery(".wplc_agent_name").text(wplc_current_agent_names + ", " + tname); 150 151 //Hide the tagline, it is not needed for two agents in my opinion - Dylan Auty 152 jQuery(".wplc_agent_tagline").hide(); 153 154 //Hide social links, it is too cluttered to add more here 155 jQuery(".wplc_agent_social_links").hide(); 156 157 //Change the way the images are displayed 158 jQuery("img.wplc_agent_involved").removeClass("wplc_thumb32").addClass("wplc_thumb16_stacked"); 159 160 //Add the new agents image as well 161 var wplc_new_agent_grav = '<img class="img-thumbnail img-circle wplc_thumb16_stacked wplc_agent_involved" style="max-width:inherit;" id="agent_grav_'+taid+'" title="'+tname+'" src="'+timageurl+'?s=60&d=mm" />'; 162 jQuery(wplc_new_agent_grav).insertAfter("img.wplc_agent_involved:last"); 163 164 //Update the height of the header 165 jQuery("#wplc_chatbox_header").css("max-height", jQuery("#wplc_chatbox_header").outerHeight()); 166 jQuery("#wplc_chatbox").css("top", jQuery("#wplc_chatbox_header").height()+"px"); //Final update incase anything has changes 167 168 169 jQuery("#wplc_chatbox_header_bg").css("background-image", "none"); 170 } 171 172 } 173 } 174 175 176}); 177 178jQuery(document).on("bleeper_build_involved_agents_header", function(e){ 179 if(typeof e.ndata !== "undefined"){ 180 if(typeof e.ndata.chatid !== "undefined" && typeof e.ndata.agents !== "undefined"){ 181 if(e.ndata.chatid === chatid){ 182 var agent_match = e.ndata.agents; 183 for(var i in agent_match){ 184 var current_agent = agent_match[i]; 185 186 if(typeof wplc_agent_data[current_agent] !== "undefined"){ 187 wplc_agent_data[current_agent].md5; 188 wplc_agent_data[current_agent].name; 189 190 var other = { 191 email: wplc_agent_data[current_agent].md5, 192 name: wplc_agent_data[current_agent].name, 193 aid: current_agent 194 }; 195 196 jQuery.event.trigger({type: "wplc_agent_joined", ndata: {other: other}}); 197 } 198 } 199 } 200 } 201 } 202}); 203 204 205jQuery(document).on("wplc_animation_done", function(e) { 206 207 jQuery("#nifty_text_editor_holder").remove(); 208 jQuery("#wplc_msg_notice").remove(); 209 jQuery("#wp-live-chat-minimize").remove(); 210 211 jQuery("#wplc_logo").prependTo("#wplc_chatbox_header"); 212 213 214 215 216 217 if (jQuery("wplc_chatbox").hasClass("wplc-shrink")) { 218 /** 219 * The +18px is to compensate for the 18px of padding at the bottom of the header box 220 */ 221 jQuery("#wplc_chatbox").css("top", 222 jQuery("#wplc_chatbox_header").height()+18+"px" 223 ); 224 jQuery("#wplc_logo").show(); 225 } else { 226 /** 227 * The +18px is to compensate for the 18px of padding at the bottom of the header box 228 */ 229 jQuery("#wplc_chatbox").css("top", 230 jQuery("#wplc_chatbox_header").height()+18+"px" 231 ); 232 jQuery("#wplc_logo").hide(); 233 } 234 jQuery("#wplc_chatbox").css("bottom", "0"); 235 236 237 238}); 239jQuery(document).on( "wplc_open_chat_2", function( e ) { 240 241 wplc_chat_status = Cookies.get('wplc_chat_status'); 242 243 244 if (Cookies.get('wplc_minimize') === 'yes' && !jQuery("#wp-live-chat-header").hasClass("active")) { } else { 245 246 jQuery("#wp-live-chat-1").hide(); 247 jQuery("#wp-live-chat-2-inner").hide(); 248 249 jQuery("#wp-live-chat-2").show(); 250 251 if(!jQuery("#wp-live-chat-header").hasClass("active")){ 252 jQuery("#wplc_chatmsg").focus(); 253 } 254 255 jQuery("#wp-live-chat-header").addClass("active"); 256 jQuery("#wp-live-chat").addClass("mobile-active"); 257 258 259 wplc_chat_status = Cookies.get('wplc_chat_status'); 260 261 if (typeof e.wplc_online !== "undefined" && e.wplc_online === true) { 262 jQuery("#wp-live-chat-4").show(); 263 jQuery("#wplc_social_holder").show(); 264 jQuery("#nifty_ratings_holder").show(); 265 jQuery.event.trigger({type: "wplc_animation_done"}); 266 267 268 } 269 setTimeout(function() { 270 wplc_scroll_to_bottom(); 271 },1000); 272 273 jQuery("#wp-live-chat-3").hide(); 274 jQuery("#wplc_chatmsg").focus(); 275 jQuery("#wp-live-chat-minimize").css("right","23px"); 276 Cookies.set('wplc_minimize', "", { expires: 1, path: '/' });
277 } 278 279 280}); 281 282 283 284var wplc_leave_window_alone = false; 285var wplc_currently_animating_agent_header = false; 286 287jQuery(function() { 288 289 290 jQuery("body").on("mousewheel", "#wplc_chatbox", function(turn, delta){ 291 292 if (delta == 1) { 293 /** 294 * The +18px is to compensate for the 18px of padding at the bottom of the header box 295 */ 296 297 wplc_animate_agent_header_up(); 298 299 } else { 300 // going down 301 /** 302 * The +18px is to compensate for the 18px of padding at the bottom of the header box 303 */ 304 wplc_animate_agent_header_down(); 305 306 } 307 308 }); 309 310 jQuery("body").on("click", ".bleeper_pullup", function() { 311 if (jQuery(".bleeper_pullup").hasClass('down')) { 312 wplc_animate_agent_header_down(); 313 314 } else { 315 wplc_animate_agent_header_up(); 316 317 } 318 }); 319 320 321 //opens chat when clicked on top bar 322 jQuery("body").on("click", "#wp-live-chat-header", function() { 323 324 325 }); 326 327 328 jQuery("body").on("click", ".wplc_retry_chat", function() { 329 jQuery("#wplc_chatbox").html(""); 330 jQuery("#wp-live-chat-4").fadeOut(); 331 Cookies.remove('wplc_chat_status'); 332 jQuery("#wp-live-chat-2-inner").fadeIn(); 333 wplc_shown_welcome = false; 334 }); 335 336 337 jQuery("body").on("click", "#wp-live-chat-header", function(){ 338 339 if (jQuery(this).hasClass('active')) { 340 jQuery("#wplc_hovercard").fadeOut("fast"); 341 jQuery("#wp-live-chat-2").fadeOut("fast"); 342 jQuery(this).removeClass('active'); 343 jQuery.event.trigger({type: "wplc_minimize_chat"}); 344 345 Cookies.set('wplc_minimize', "yes", { expires: 1, path: '/' }); 346 347 } else { 348 jQuery("#wplc_hovercard").fadeIn('fast'); 349 jQuery(this).addClass('active'); 350 351 wplc_chat_status = Cookies.get('wplc_chat_status'); 352 nc_status = Cookies.get('nc_status'); 353 if (parseInt(wplc_chat_status) == 3 || parseInt(wplc_chat_status) == 2 || parseInt(wplc_chat_status) == 0 || parseInt(wplc_chat_status) == 12 || parseInt(wplc_chat_status) == 10 || nc_status === 'active') { 354 355 jQuery("#bleeper_bell").hide(); 356 357 jQuery("#speeching_button").click(); 358 } 359 360 361 } 362 363 jQuery('#wplc_gdpr_end_chat_notice_container').hide(); 364 365 366 }); 367 jQuery("body").on("click", "#wplc_hovercard_min", function() { 368 jQuery("#wplc_hovercard").fadeOut('fast'); 369 }); 370 jQuery("body").on("click", "#speeching_button", function() { 371 jQuery("#wplc_hovercard").fadeOut("fast"); 372 jQuery("#wplc-chat-alert").removeClass('is-active'); 373 wplc_is_chat_open = true; 374 jQuery.event.trigger({type: "wplc_open_chat"}); 375 376 }); 377 jQuery("body").on("click", "#wp-live-chat-minimize", function() { 378 379 jQuery("#wp-live-chat-header").removeClass('active'); 380 }); 381 382 383 384 385}); 386 387 388 389function wplc_animate_agent_header_up() { 390 if(!wplc_currently_animating_agent_header && jQuery("#wplc_chatbox_header").hasClass("wplc-shrink") && jQuery('#wplc_chatbox_header .wplc_agent_info:first-child').html() !== ""){ 391 wplc_currently_animating_agent_header = true; 392 jQuery("#wplc_chatbox_header").removeClass("wplc-shrink"); 393 394 jQuery("#wplc_chatbox_header").animate( 395 { maxHeight: "280px", }, 396 { 397 duration: 700, 398 complete: function() { 399 // Animation complete 400 401 jQuery("#wplc_logo").show(); 402 wplc_currently_animating_agent_header = false; 403 404 jQuery("#wplc_chatbox_header").css("max-height", jQuery("#wplc_chatbox_header").outerHeight()); 405 jQuery("#wplc_chatbox").css("top", jQuery("#wplc_chatbox_header").height()+18+"px"); //Final update incase anything has changes 406 407 408 }, 409 progress: function() { 410 jQuery("#wplc_chatbox").css("top", jQuery("#wplc_chatbox_header").height()+18+"px"); //Live movement updates 411 412 } 413 } 414 ); 415 } 416 jQuery(".bleeper_pullup").removeClass('up'); 417 jQuery(".bleeper_pullup").addClass('down'); 418 jQuery(".bleeper_pullup").html("<i class='fa fa-angle-up'></i>"); 419 jQuery(".bleeper_pullup").css('bottom','5px'); 420} 421function wplc_animate_agent_header_down() { 422 if(!wplc_currently_animating_agent_header && !jQuery("#wplc_chatbox_header").hasClass("wplc-shrink") && jQuery('#wplc_chatbox_header .wplc_agent_info:first-child').html() !== ""){ 423 wplc_currently_animating_agent_header = true; 424 425 jQuery("#wplc_chatbox_header").addClass("wplc-shrink"); 426 427 jQuery("#wplc_chatbox").css("top", "50px"); 428 429 430 jQuery("#wplc_chatbox_header").animate( 431 { height: "50px", maxHeight: "50px"}, 432 { 433 duration: 200, 434 start: function(){ 435 jQuery("#wplc_logo").hide(); 436 437 }, 438 complete: function() { 439 // Animation complete 440 wplc_currently_animating_agent_header = false; 441 442 jQuery("#wplc_chatbox_header").css("max-height", "50px"); 443 jQuery("#wplc_chatbox_header").css("height", "auto"); 444 445 446 447 } 448 } 449 ); 450 451 } 452 jQuery(".bleeper_pullup").removeClass('down'); 453 jQuery(".bleeper_pullup").addClass('up'); 454 jQuery(".bleeper_pullup").html("<i class='fa fa-angle-down'></i>"); 455 jQuery(".bleeper_pullup").css('bottom','0px'); 456} 457 458!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1
vendor: 2,416 bytes, line 458
458),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
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.