PageSourceSearch

https://sydneycorporateyoga.com/wp-content/plugins/chimpmate/public/assets/js/public.js?ver=1.3.2

js sydneycorporateyoga.com collected 2026-10-08 20:45:45 UTC 25,837 bytes, 647 lines download raw bytes

1!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b,c=navigator.userAgent,d=/iphone/i.test(c),e=/chrome/i.test(c),f=/android/i.test(c);a.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"},a.fn.extend({caret:function(a,b){var c;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof a?(b="number"==typeof b?b:a,this.each(function(){this.setSelectionRange?this.setSelectionRange(a,b):this.createTextRange&&(c=this.createTextRange(),c.collapse(!0),c.moveEnd("character",b),c.moveStart("character",a),c.select())})):(this[0].setSelectionRange?(a=this[0].selectionStart,b=this[0].selectionEnd):document.selection&&document.selection.createRange&&(c=document.selection.createRange(),a=0-c.duplicate().moveStart("character",-1e5),b=a+c.text.length),{begin:a,end:b})},unmask:function(){return this.trigger("unmask")},mask:function(c,g){var h,i,j,k,l,m,n,o;if(!c&&this.length>0){h=a(this[0]);var p=h.data(a.mask.dataName);return p?p():void 0}return g=a.extend({autoclear:a.mask.autoclear,placeholder:a.mask.placeholder,completed:null},g),i=a.mask.definitions,j=[],k=n=c.length,l=null,a.each(c.split(""),function(a,b){"?"==b?(n--,k=a):i[b]?(j.push(new RegExp(i[b])),null===l&&(l=j.length-1),k>a&&(m=j.length-1)):j.push(null)}),this.trigger("unmask").each(function(){function h(){if(g.completed){for(var a=l;m>=a;a++)if(j[a]&&C[a]===p(a))return;g.completed.call(B)}}function p(a){return g.placeholder.charAt(a<g.placeholder.length?a:0)}function q(a){for(;++a<n&&!j[a];);return a}function r(a){for(;--a>=0&&!j[a];);return a}function s(a,b){var c,d;if(!(0>a)){for(c=a,d=q(b);n>c;c++)if(j[c]){if(!(n>d&&j[c].test(C[d])))break;C[c]=C[d],C[d]=p(d),d=q(d)}z(),B.caret(Math.max(l,a))}}function t(a){var b,c,d,e;for(b=a,c=p(a);n>b;b++)if(j[b]){if(d=q(b),e=C[b],C[b]=c,!(n>d&&j[d].test(e)))break;c=e}}function u(){var a=B.val(),b=B.caret();if(o&&o.length&&o.length>a.length){for(A(!0);b.begin>0&&!j[b.begin-1];)b.begin--;if(0===b.begin)for(;b.begin<l&&!j[b.begin];)b.begin++;B.caret(b.begin,b.begin)}else{for(A(!0);b.begin<n&&!j[b.begin];)b.begin++;B.caret(b.begin,b.begin)}h()}function v(){A(),B.val()!=E&&B.change()}function w(a){if(!B.prop("readonly")){var b,c,e,f=a.which||a.keyCode;o=B.val(),8===f||46===f||d&&127===f?(b=B.caret(),c=b.begin,e=b.end,e-c===0&&(c=46!==f?r(c):e=q(c-1),e=46===f?q(e):e),y(c,e),s(c,e-1),a.preventDefault()):13===f?v.call(this,a):27===f&&(B.val(E),B.caret(0,A()),a.preventDefault())}}function x(b){if(!B.prop("readonly")){var c,d,e,g=b.which||b.keyCode,i=B.caret();if(!(b.ctrlKey||b.altKey||b.metaKey||32>g)&&g&&13!==g){if(i.end-i.begin!==0&&(y(i.begin,i.end),s(i.begin,i.end-1)),c=q(i.begin-1),n>c&&(d=String.fromCharCode(g),j[c].test(d))){if(t(c),C[c]=d,z(),e=q(c),f){var k=function(){a.proxy(a.fn.caret,B,e)()};setTimeout(k,0)}else B.caret(e);i.begin<=m&&h()}b.preventDefault()}}}function y(a,b){var c;for(c=a;b>c&&n>c;c++)j[c]&&(C[c]=p(c))}function z(){B.val(C.join(""))}function A(a){var b,c,d,e=B.val(),f=-1;for(b=0,d=0;n>b;b++)if(j[b]){for(C[b]=p(b);d++<e.length;)if(c=e.charAt(d-1),j[b].test(c)){C[b]=c,f=b;break}if(d>e.length){y(b+1,n);break}}else C[b]===e.charAt(d)&&d++,k>b&&(f=b);return a?z():k>f+1?g.autoclear||C.join("")===D?(B.val()&&B.val(""),y(0,n)):z():(z(),B.val(B.val().substring(0,f+1))),k?b:l}var B=a(this),C=a.map(c.split(""),function(a,b){return"?"!=a?i[a]?p(b):a:void 0}),D=C.join(""),E=B.val();B.data(a.mask.dataName,function(){return a.map(C,function(a,b){return j[b]&&a!=p(b)?a:null}).join("")}),B.one("unmask",function(){B.off(".mask").removeData(a.mask.dataName)}).on("focus.mask",function(){if(!B.prop("readonly")){clearTimeout(b);var a;E=B.val(),a=A(),b=setTimeout(function(){B.get(0)===document.activeElement&&(z(),a==c.replace("?","").length?B.caret(0,a):B.caret(a))},10)}}).on("blur.mask",v).on("keydown.mask",w).on("keypress.mask",x).on("input.mask paste.mask",function(){B.prop("readonly")||setTimeout(function(){var a=A(!0);B.caret(a),h()},0)}),e&&f&&B.off("input.mask").on("input.mask",u),A()})}})});
2;(function( $ ){
3	var wpmccsldMoving = false,
4		wpmccsldOpened = false;
5	var privateMethods = {
6		execute: function(action, callback) {
7		var $menu = $("#wpmchimpas"),
8			$trig = $("#wpmchimpas-trig"),
9			$body = $("body"),
10			$html = $("html"),
11			menucWidth = $menu.data("menucWidth"),
12			speed = $menu.data("speed"),
13			side = $menu.data("side"),
14			bodyClass = "body-wpmchimpas-open",
15			bodyAnimation,
16			bodyInit,
17			scrollTop,
18			diff;
19		if ('open' === action || ('toggle' === action && !$body.hasClass('body-wpmchimpas-open'))) {
20
21			$body.bind('mousewheel DOMMouseScroll', freezeCon);
22			$('.wpmchimpas-cont').bind('mousewheel DOMMouseScroll', scrollCon);
23			$('.wpmchimpas-overlay').addClass('showo');
24			$body.addClass(bodyClass);
25			centresp();
26			$(window).resize(function() {
27				$(".wpmchimpas").hasClass("wpmchimpas-open") && centresp()
28			});
29			$('.wpmchimpas').addClass('wpmchimpas-open');
30		} else {
31			$body.unbind('mousewheel DOMMouseScroll', freezeCon);
32			$('.wpmchimpas-cont').unbind('mousewheel DOMMouseScroll', scrollCon);
33			$('.wpmchimpas-overlay').removeClass('showo');
34			$('body > *').css({
35				'-webkit-transform' : '',
36				transform: ''
37			});
38			setTimeout(function() {
39				$body.removeClass(bodyClass).removeAttr('style');
40			}, speed);
41			$('.wpmchimpas').removeClass('wpmchimpas-open');
42			$trig.removeClass('wpmchimpas-trigdis');
43		}
44	}
45};
46function centresp() {
47	var $menu = $("#wpmchimpas"),
48		$trig = $("#wpmchimpas-trig"),
49		$body = $("body"),
50		$html = $("html"),
51		menucWidth = $menu.data("menucWidth"),
52		transit = 1,
53		speed = $menu.data("speed"),
54		side = $menu.data("side"),
55		bodytrans,sltrans,
56		scrollTop,
57		diff,
58		bodyClass = "body-wpmchimpas-open";
59
60	$('.wpmchimpas-bg,.wpmchimpas-overlay').css({'height': $('body').height()});
61	if ($('.wpmchimpas').height() < $('.wpmchimpas-scroller').height())
62		$('.wpmchimpas-scroller').removeClass('wpmchimpas-vertcent');
63	else
64		$('.wpmchimpas-scroller').addClass('wpmchimpas-vertcent');
65
66	if ($(window).width() < 560) {
67		diff = (560 - $(window).width());
68		var perc = (menucWidth - diff) / 500;
69		$('.wpmchimpas-resp').css({
70			'-webkit-transform': 'scale(' + perc + ',' + perc + ')',
71			transform: 'scale(' + perc + ',' + perc + ')'
72		});
73	} else {
74		$('.wpmchimpas-resp').removeAttr('style');
75		diff = 0;
76	}
77	menuWidth = menucWidth - diff;
78	if (side === 'left') {
79		bodytrans = {
80			'-webkit-transform': 'translate(' + menuWidth + 'px,0)',
81			transform: 'translate(' + menuWidth + 'px,0)'
82		};
83		sltrans = {left:'-'+menuWidth+'px'};
84	} else {
85		bodytrans = {
86			'-webkit-transform': 'translate(-' + menuWidth + 'px,0)',
87			transform: 'translate(-' + menuWidth + 'px,0)'
88		};
89		sltrans = {right:'-'+menuWidth+'px'};
90	}
91	$('body > *').not('.wpmchimpas').css(bodytrans);
92}
93function scrollCon(e) {
94	var scrollTo = null;
95	if (e.type == 'mousewheel') {
96		scrollTo = (e.originalEvent.wheelDelta * -1);
97	}
98	else if (e.type == 'DOMMouseScroll') {
99		scrollTo = 40 * e.originalEvent.detail;
100	}
101	if (scrollTo) {
102		e.preventDefault();
103		$(this).scrollTop(scrollTo + $(this).scrollTop());
104	}
105}
106
107function freezeCon(e) {
108	if (e.type == 'mousewheel' || e.type == 'DOMMouseScroll') {
109		e.preventDefault()
110	}
111}
112var methods = {
113	open: function(name, callback) {
114		privateMethods.execute('open', name, callback);
115	},
116	close: function(name, callback) {
117		privateMethods.execute('close', name, callback);
118	},
119	toggle: function(name, callback) {
120		privateMethods.execute('toggle', name, callback);
121	}
122};
123
124$.wpmccsld = function(method) {
125	if (methods[method]) {
126		return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
127	} else if (typeof method === 'function' || typeof method === 'string' || !method) {
128		return methods.toggle.apply(this, arguments);
129	} else {
130		$.error('Method ' + method + ' does not exist on jQuery.sidr');
131	}
132};
133$.fn.wpmccsld = function(options) {
134	var settings=$.extend({speed:400,side:"left",source:null,menucWidth:$(".wpmchimpas-scroller").width(),transit:1},options);
135	var name = 'wpmchimpas',
136		$sideMenu = $('#wpmchimpas'),
137		$trigMenu = $('#wpmchimpas-trig');
138	$sideMenu
139		.addClass('wpmchimpas')
140		.addClass(settings.side)
141		.data({
142			speed: settings.speed,
143			side: settings.side,
144			menucWidth: settings.menucWidth,
145			transit:settings.transit
146		});
147	if(!wpmcisset(wpmchimpa.chkcon.s)){
148		$trigMenu.addClass('condhide');
149	}
150	$trigMenu
151		.addClass('wpmchimpas-trig')
152		.addClass(settings.side);
153	$('.wpmchimpas-bg').css({
154	'background-color' : $('body').css('background-color')||'#fff',
155	'background-image' : $('body').css('background-image'),
156	});
157	if(settings.transit > 1){
158		if(settings.side == 'left')
159			$('.wpmchimpas').css({left:'-'+settings.menucWidth+'px'});
160		else
161			$('.wpmchimpas').css({right:'-'+settings.menucWidth+'px'});
162	}
163	if (typeof settings.source === 'function') {
164		var newContent = settings.source(name);
165		privateMethods.loadContent($sideMenu, newContent);
166	}
167	return this.each(function() {
168		var $this = $(this),
169			data = $this.data('wpmchimpas');
170		if (!data) {
171			$this.data('wpmchimpas', name);
172			if ('ontouchstart' in document.documentElement) {
173				$this.find('.wpmchimpas-trigi').bind('touchstart', function(e) {
174					var theEvent = e.originalEvent.touches[0];
175					this.touched = e.timeStamp;
176				});
177				$this.find('.wpmchimpas-trigi').bind('touchend', function(e) {
178					var delta = Math.abs(e.timeStamp - this.touched);
179					if(delta < 200) {
180						e.preventDefault();
181						methods.toggle(name);
182					}
183				});
184				$this.find('.wpmchimpas-trigh').bind('touchstart', function(e) {
185					var theEvent = e.originalEvent.touches[0];
186					this.touched = e.timeStamp;
187				});
188				$this.find('.wpmchimpas-trigh').bind('touchend', function(e) {
189					var delta = Math.abs(e.timeStamp - this.touched);
190					if(delta < 200) {
191						e.preventDefault();
192						$trigMenu.addClass('wpmchimpas-trigdis');
193					}
194				});
195			} else {
196				$this.find('.wpmchimpas-trigi').click(function(e) {
197					e.preventDefault();
198					methods.toggle(name);
199				});
200				$this.find('.wpmchimpas-trigh').click(function(e) {
201					e.preventDefault();
202					$trigMenu.addClass('wpmchimpas-trigdis');
203				});
204			}
205		}
206	});
207};
208
209	$(function () {
210$('[wpmcmask]').each(function(){
211	$(this).mask($(this).attr('wpmcmask'),{placeholder:$(this).attr('wpmcmph')});
212});
213if(wpmcisset(wpmchimpa.addon) || wpmcisset(wpmchimpa.addon_scode)){
214	if(wpmcisset(wpmchimpa.addon_desktop)) var deskb = true;
215	if(wpmcisset(wpmchimpa.addon_tablet)) var tabb = true;
216	if(wpmcisset(wpmchimpa.addon_mobile)) var mobb = true;
217}
218if(wpmcisset(wpmchimpa.chkcon.t)){
219	show_wpmc_topbar();
220	$('.wpmchimpat-close-button').click(hide_wpmc_topbar);
221}
222if(wpmcisset(wpmchimpa.chkcon.f)){
223	var flipclosed=0;
224	show_wpmc_flipbox();
225	$('.wpmchimpaf-close-button').click(hide_wpmc_flipbox);
226}
227
228var x=0;
229if((wpmcisset(mobb) && $(window).width()<=480) || (wpmcisset(tabb) && $(window).width()>480 && $(window).width()<=768) || (wpmcisset(deskb) && $(window).width()>768))
230$('.wpmchimpab').show();
231
232if(wpmcisset(wpmchimpa.chkcon.l)){
233	if($('.wpmchimpa-leftpane.adjh').height() < $('#wpmchimpa-main').height());
234	var docHeight = $(document).height();
235	var timeoutID;
236	if(wpmcisset(wpmchimpa.lite_desktop)) var deskl = true;
237	if(wpmcisset(wpmchimpa.lite_tablet)) var tabl = true;
238	if(wpmcisset(wpmchimpa.lite_mobile)) var mobl = true;
239	if(wpmcisset(wpmchimpa.chkcon.l) && ((wpmcisset(mobl) && $(window).width()<=480) || (wpmcisset(tabl) && $(window).width()>480 && $(window).width()<=768) || (wpmcisset(deskl) && $(window).width()>768))){
240		window.onload = function(){
241			if(wpmcisset(wpmchimpa.lite_behave_time)){
242				if(wpmcisset(wpmchimpa.lite_behave_time_inac)) {
243			 		 wpmc_setup();
244				}
245				else
246					setTimeout(function(){show_wpmc_litebox()}, wpmchimpa.lite_behave_time*1000);
247			}
248			if(wpmcisset(wpmchimpa.lite_behave_scroll)){
249				var scrollp = 50;
250				$(document).scroll(function() {if(x==0)if(($(window).scrollTop() / ($(document).height()-$(window).height())) * 100 > scrollp)show_wpmc_litebox();});
251			}
252		};
253	}
254
255	$('.wpmchimpa-close-button').click(function(){
256		hide_wpmc_litebox();
257	});
258	if(wpmcisset(wpmchimpa.lite_close_bck)){
259		$('.wpmchimpa-overlay-bg').click(function(e){
260			if($(e.target).find('#wpmchimpa-newsletterform').length != 0)
261				hide_wpmc_litebox();
262		});
263	}
264
265}
266
267if(wpmcisset(wpmchimpa.chkcon.l) || wpmcisset(wpmchimpa.chkcon.a) || wpmcisset(wpmchimpa.chkcon.t) || wpmcisset(wpmchimpa.chkcon.f) || wpmcisset(wpmchimpa.chkcon.w) || wpmcisset(wpmchimpa.chkcon.s) || wpmcisset(wpmchimpa.addon_scode)){
268	var wpmc_subing = 0;
269	$('.wpmchimpa-subs-button').click(function (e){
270		e.preventDefault();
271		if(wpmc_subing)return false;
272		var button = this;
273		var chimp = $(button).parents('.wpmchimpselector:first');
274		var form = $(chimp).find('form');
275		var preload = $(button).attr('wpmcpre');
276		$(chimp).find('[wpmcerr="gen"]').html('');
277		$(chimp).find('[wpmctype]').each(function(){
278			v = (['radio','checkboxes'].indexOf($(this).attr('wpmctype')) > -1)? (($(chimp).find('[wpmcfield="'+$(this).attr('wpmcfield')+'"]:checked').length > 0)? '1':'') : this.value;
279  			err = wpmcvalid($(this).attr('wpmctype'),$(this).attr('wpmcreq'),v);
280  			if(err){
281  				$(this).addClass('wpmcerror');
282  				$this = $(this).closest('.wpmchimpa-field');
283  				if(!$(chimp).find('.wpmchimpa-mainc').length){
284	  				$this.addClass('wpmcerrora');
285				  	setTimeout(function() {
286				  		$this.removeClass('wpmcerrora');
287				  	}, 500);
288				}
289			  	$(chimp).find('[wpmcerr="'+$(this).attr('wpmcfield')+'"]').html(err);
290  			}
291  			else{
292  				$(this).removeClass('wpmcerror');
293  				$(chimp).find('[wpmcerr="'+$(this).attr('wpmcfield')+'"]').html('');
294  			}
295  		});
296		if($(chimp).find('.wpmcerror').length){
297			if($(chimp).find('.wpmchimpa-mainc').length){
298				$(chimp).find('.wpmchimpa-mainc').addClass('wpmcerrora');
299				setTimeout(function() {
300					$('.wpmchimpa-mainc').removeClass('wpmcerrora');
301				}, 500);
302			}
303			return false;
304		}
305		$(chimp).addClass('signalshow');
306		var SubsForm = $(form).serialize();
307		wpmc_subing = 1;
308		$.ajax({
309			type:"POST",
310			url: wpmchimpa.ajax_url+'?chimpmate_service=1',
311			data: SubsForm,
312			dataType: "json",
313			success:function(data){
314				wpmc_subing = 0;
315				$(chimp).removeClass('signalshow');
316				if(data.status == 1){
317					if(wpmcsucurl()){$('.wpmchimpa-overlay-bg').hide();}
318					else if(wpmchimpa.suc_sub == 'suc_msg' && wpmcisset(wpmchimpa.suc_msg)){
319						$(chimp).find('form').fadeOut(function () {
320							$(chimp).find('[wpmcerr="gen"]').addClass('wpmchimpa-done').html(wpmchimpa.suc_msg);
321						});
322					}
323					wpmchimpa_unlock_func(chimp);
324				}
325				else if(data.status == 200){
326					if(wpmcsucurl()){$('.wpmchimpa-overlay-bg').hide();}
327					else if(wpmchimpa.suc_sub == 'suc_msg' && wpmcisset(wpmchimpa.suc_msg)){
328						$(chimp).find('form').fadeOut(function () {
329							$(chimp).find('[wpmcerr="gen"]').addClass('wpmchimpa-done').html(wpmc_errmsg[2]);
330						});
331					}
332					wpmchimpa_unlock_func(chimp);
333				}
334				else if(data.status == 0 || data.status == 401){
335					$(chimp).find('[wpmcerr="gen"]').html(wpmc_errmsg[4]);
336				}
337				else $(chimp).find('[wpmcerr="gen"]').html(wpmc_errmsg[3]);
338			}
339		});
340		return false;
341	});
342
343	$('.wpmchimpselector').each(function(){
344		var form = $(this).find('form');
345		$(form).find('input').keypress(function(e) {
346			if(e.which == 10 || e.which == 13) {
347				$(form).find('.wpmchimpa-subs-button').click();
348			}
349		});
350	});
351	$('.wpmchimpa-soc').click(function (e){
352		e.preventDefault();
353		var cont = $(this).closest('.wpmchimpselector');
354		$(cont).addClass('signalshow');
355		if($(this).hasClass('wpmchimpa-fb')){
356
357			FB.login(function(response) {if (response.status === 'connected') {FB.api('/me?locale=en_US&fields=name,email,first_name,last_name', function(response) {
358					SubsForm={name:response.first_name+' '+response.last_name,
359						email:response.email,
360						action:'wpmchimpa_add_email_ajax'};
361					$(cont).find('[wpmcfield="FNAME"]').val(response.first_name);
362					$(cont).find('[wpmcfield="LNAME"]').val(response.last_name);
363					$(cont).find('[wpmcfield="email"]').val(response.email);
364					$(cont).find('.wpmchimpa-subs-button').click();
365			});}else{
366				$(cont).find('[wpmcerr="gen"]').html(wpmc_errmsg[3]);
367				$(cont).removeClass('signalshow');
368			}}, {scope: 'public_profile,email'});
369
370		}
371		else if($(this).hasClass('wpmchimpa-gp')){
372			gapi.auth.signIn({'callback': signinCallback });
373				function signinCallback(authResult) {if (authResult['status']['signed_in']) {if (authResult['status']['method'] == 'PROMPT') {gapi.client.load('oauth2', 'v2', function () {gapi.client.oauth2.userinfo.get().execute(function (resp) {
374				SubsForm={name:resp.name,
375						email:resp.email,
376						action:'wpmchimpa_add_email_ajax'};
377						$(cont).find('[wpmcfield="FNAME"]').val(resp.name);
378						$(cont).find('[wpmcfield="email"]').val(resp.email);
379						$(cont).find('.wpmchimpa-subs-button').click();
380			});});}} else {
381				$(cont).find('[wpmcerr="gen"]').html(wpmc_errmsg[3]);
382				$(cont).removeClass('signalshow');
383			}}
384		}
385		else if($(this).hasClass('wpmchimpa-ms')){
386			WL.login({scope: ["wl.basic", "wl.emails"]}).then(function (response) {
387				WL.api({path: "me",method: "GET"}).then(function (response) {
388					SubsForm={name:response.name,
389						email:response.emails.account,
390						action:'wpmchimpa_add_email_ajax'};
391						$(cont).find('[wpmcfield="FNAME"]').val(response.name);
392						$(cont).find('[wpmcfield="email"]').val(response.emails.account);
393						$(cont).find('.wpmchimpa-subs-button').click();
394				},function (responseFailed) {
395					$(cont).find('[wpmcerr="gen"]').html(wpmc_errmsg[3]);
396					$(cont).removeClass('signalshow');
397				});},function (responseFailed){
398					$(cont).find('[wpmcerr="gen"]').html(wpmc_errmsg[3]);
399					$(cont).removeClass('signalshow');
400			});
401
402		}
403
404	});
405}
406
407
408if (wpmcisset(wpmchimpa.chkcon.s)) {
409	if (wpmcisset(wpmchimpa.slider_desktop)) var desks = true;
410	if (wpmcisset(wpmchimpa.slider_tablet)) var tabs = true;
411	if (wpmcisset(wpmchimpa.slider_mobile)) var mobs = true;
412	if (wpmcisset(wpmchimpa.chkcon.s) && ((wpmcisset(mobs) && $(window).width() <= 480) || (wpmcisset(tabs) && $(window).width() > 480 && $(window).width() <= 768) || (wpmcisset(desks) && $(window).width() > 768))) {
413
414		var opts = [];
415		var timeoutIDs,s=0;
416		if (wpmcisset(wpmchimpa.slider_orient)) opts['side'] = wpmchimpa.slider_orient;
417		$('#wpmchimpas-trig').wpmccsld(opts);
418
419		$('#wpmchimpas-trig').removeClass('scrollhide');
420		if (wpmcisset(wpmchimpa.slider_close_bck)) {
421			$('.wpmchimpas-overlay').click(function() {
422				$.wpmccsld('close', 'wpmchimpas');
423			});
424		}
425		if (wpmcisset(wpmchimpa.slider_behave_time)) {
426			if (wpmcisset(wpmchimpa.slider_behave_time_inac)) {
427				setups();
428			} else
429				setTimeout(function() {
430					$.wpmccsld('open', 'wpmchimpas');
431				}, wpmchimpa.slider_behave_time * 1000);
432		}
433	}
434}
435
436wpmchimpa_unlock_func =	function(cont,cooklock){
437	if($(cont).parents('.wpmchimpa_lock').length > 0 && wpmcisset(wpmchimpa_unlock) && !wpmchimpa_unlocked){
438		$(cont).hide().next('.wpmchimpa_verify').show().find('.wpmchimpa_verify_cb').click(function(){
439			clearInterval(wpmcunlocktimer);
440			$(cont).find('form').show();
441			$(cont).find('[wpmcerr="gen"]').removeClass('wpmchimpa-done').html('');
442			$(cont).show().next('.wpmchimpa_verify').hide();
443		});
444		var wpmcunlocktimer = setInterval(function(){
445			$.ajax({
446			type:"POST",
447			url: wpmchimpa.ajax_url+'?chimpmate_service=1',
448			dataType: "json",
449			data: {'action':'wpmchimpa_secret_ajax',
450			'secret':wpmchimpa_unlock,
451			'email':(cooklock ? cooklock : $(cont).find('[wpmcfield="email"]').val()),
452			'wpmcform':$(cont).find('[name="wpmcform"]').val()},
453			success:function(data){
454				if(data.status && wpmcisset(wpmchimpa_unlock) && !wpmchimpa_unlocked){
455					$(cont).parents('.wpmchimpa_lock').addClass('secretload').after(data.content);
456					clearInterval(wpmcunlocktimer);
457					wpmchimpa_unlocked = 1;
458				}
459			}});
460		 }, 5000);
461	}
462}
463
464wpmcvalid = function(t,r,v){
465	if(r == 'true' && !v)
466		return wpmc_errmsg[0];
467	if(!v)return '';
468	switch(t){
469		case 'email' : if(!wpmcvalidate('e',v))
470						return wpmc_errmsg[1];
471						break;
472		case 'number' : if(!wpmcvalidate('n',v))
473						return wpmc_errmsg[1];
474						break;
475		case 'imageurl' :
476		case 'url' : if(!wpmcvalidate('w',v))
477						return wpmc_errmsg[1];
478						break;
479						return wpmc_errmsg[1];
480						break;
481	}
482	return '';
483};
484wpmcsucurl = function(){
485	if(wpmchimpa.suc_sub == 'suc_url' && wpmcisset(wpmchimpa.suc_url)){
486		if(wpmcisset(wpmchimpa.suc_url_tab)){
487			var win=window.open(wpmchimpa.suc_url,'_blank');
488			win.focus();
489		}
490		else window.open(wpmchimpa.suc_url,'_self');
491		return true;
492	}
493};
494msieversion = function() {
495    var ua = window.navigator.userAgent;
496    var msie = ua.indexOf("MSIE ");
497    if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./))
498    	return true;
499    return false;
500}
501if(msieversion()){
502	$(".wpmchimpa-field input").on("keyup", function() {
503		var label = $(this).parent().find(".inputlabel");
504		if($(this).val()) {
505			$(label).hide();
506		} else {
507			$(label).show();
508		}
509	});	
510}
511function show_wpmc_litebox(){
512	if(x==1)return;
513	if(wpmcisset(wpmchimpa.lite_behave_cookie) && x==0){
514		if(document.cookie.indexOf("wpmchimpa_show") >= 0)return;
515		var date, expires;
516		date = new Date();
517		date.setTime(date.getTime()+(24*60*60*1000));
518		expires = "; expires="+date.toGMTString();
519		document.cookie = "wpmchimpa_show=true"+expires+"; path=/";
520	}
521	$('.wpmchimpa-overlay-bg').show();
522	if($('.wpmchimpa-leftpane.adjh')){
523		var ah = $('.wpmchimpa-leftpane.adjh').height(),
524			bh =$('#wpmchimpa-main').height();
525			if(ah < bh)$('.wpmchimpa-leftpane.adjh').css('height',bh+1);
526	}
527	x=1;
528	if(wpmcisset(wpmchimpa.lite_close_time)){
529			setup();
530	}
531}
532
533function hide_wpmc_litebox(){
534	$('.wpmchimpa-overlay-bg').hide();
535	if (typeof hide_wpmc_l_cb === 'function') {
536		hide_wpmc_l_cb();
537	}
538}
539function show_wpmc_topbar(){
540	
541	$('#wpmchimpat').removeClass('wpmchimpat-close');
542}
543function hide_wpmc_topbar(){
544	$('#wpmchimpat').addClass('wpmchimpat-close');
545}
546function show_wpmc_flipbox(){
547	
548	var scp = 50/100;
549	$(document).scroll(function() {
550		if(flipclosed)return;
551		if($(window).scrollTop()+ $(window).height()*scp >= $(document).height()*scp)
552			$('.wpmchimpaf').removeClass('wpmchimpaf-close');
553		else
554			$('.wpmchimpaf').addClass('wpmchimpaf-close');
555	});
556}
557function hide_wpmc_flipbox(){
558
559	if($('.wpmchimpaf').hasClass('wpmchimpaf-close'))
560		$('.wpmchimpaf').removeClass('wpmchimpaf-close');
561	else{
562		$('.wpmchimpaf').addClass('wpmchimpaf-close');
563		flipclosed=1;
564	}
565}
566
567function wpmc_setup() {
568	document.addEventListener("mousemove", wpmcresetTimer, false);
569	document.addEventListener("mousedown", wpmcresetTimer, false);
570	document.addEventListener("keypress", wpmcresetTimer, false);
571	document.addEventListener("DOMMouseScroll", wpmcresetTimer, false);
572	document.addEventListener("mousewheel", wpmcresetTimer, false);
573	document.addEventListener("touchmove", wpmcresetTimer, false);
574	document.addEventListener("MSPointerMove", wpmcresetTimer, false);
575	wpmcstartTimer();
576}
577function wpmcstartTimer() {
578	wpmctimeoutID = window.setTimeout(wpmcgoInactive, wpmchimpa.lite_behave_time*1000);
579}
580function wpmcresetTimer(e) {
581	window.clearTimeout(wpmctimeoutID);wpmc_setup();
582}
583function wpmcgoInactive() {
584	 if(x==0)show_wpmc_litebox();
585}
586function setups() {
587	document.addEventListener("mousemove", resetTimers, false);
588	document.addEventListener("mousedown", resetTimers, false);
589	document.addEventListener("keypress", resetTimers, false);
590	document.addEventListener("DOMMouseScroll", resetTimers, false);
591	document.addEventListener("mousewheel", resetTimers, false);
592	document.addEventListener("touchmove", resetTimers, false);
593	document.addEventListener("MSPointerMove", resetTimers, false);
594	startTimers();
595}
596function startTimers() {
597	timeoutIDs = window.setTimeout(goInactives, wpmchimpa.slider_behave_time * 1000);
598}
599function resetTimers(e) {
600	window.clearTimeout(timeoutIDs);
601	setups();
602}
603function goInactives() {
604	if(s==0){$.wpmccsld('open', 'wpmchimpas');s=1;}
605}
606function setup() {
607	document.addEventListener("mousemove", resetTimer, false);
608	document.addEventListener("mousedown", resetTimer, false);
609	document.addEventListener("keypress", resetTimer, false);
610	document.addEventListener("DOMMouseScroll", resetTimer, false);
611	document.addEventListener("mousewheel", resetTimer, false);
612	document.addEventListener("touchmove", resetTimer, false);
613	document.addEventListener("MSPointerMove", resetTimer, false);
614	startTimer();
615}
616function startTimer() {
617	timeoutID = window.setTimeout(goInactive, wpmchimpa.lite_close_time*1000);
618}
619function resetTimer(e) {
620	window.clearTimeout(timeoutID);setup();
621}
622function goInactive() {
623	hide_wpmc_litebox();
624}
625function wpmcvalidate(t,w){
626	var a;
627	switch(t){
628		case 'e':a=new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i),e=a.test(w);
629			break;
630		case 'n':a=new RegExp(/^[0-9]*$/gm),e=a.test(w);
631			break;
632		case 'w':a=new RegExp(/^(ftp|http|https):\/\/[^ "]+$/g),e=a.test(w);
633			break;
634	}
635	return e?!0:!1;
636}
637	});
638
639}(jQuery));
640function wpmcisset(){var r,t=arguments,n=t.length,e=0;if(0===n)throw new Error("Empty wpmcisset");for(;e!==n;){if(t[e]===r||null===t[e])return!1;e++}return!0}
641var wpmc_errmsg = [
642	wpmchimpa.errorrf || '* Field Required',
643	wpmchimpa.errorfe || '* Invalid Entry',
644	wpmchimpa.erroras || 'Already subscribed to Newsletters',
645	wpmchimpa.errorue || 'An unknown error occurred processing your request. Please try again later.',
646	"Please configure the plugin properly"
647];

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.