PageSourceSearch

https://onlinecasinoaffe.com/wp-content/plugins/wp-money-machine/js/wpmoneymach-front.js

js onlinecasinoaffe.com collected 2026-10-04 12:40:05 UTC 7,580 bytes, 248 lines download raw bytes

1jQuery(document).ready( function( $ ) {
2
3  try {
4    jQuery('a.moneymach-popup').webuiPopover({trigger:"hover",animation:"pop"});
5    }
6    catch(err) {
7    }
8
9
10	jQuery('#autoc-cbar').click(function(e) {
11		e.preventDefault();
12      jQuery('#autoc-topbar').slideUp();
13	});
14
15		jQuery('.bclose2').click(function(e) {
16			e.preventDefault();
17	      jQuery('#wpmoneymach-skype-wrap').slideUp();
18		});
19
20			jQuery('.mmfloatingclose').click(function(e) {
21				e.preventDefault();
22		      jQuery('.mmfloatingba').slideUp();
23			});
24		
25		/* 3. Sidebar*/
26
27		jQuery(document).on('click', '.moneymach_side_display_q', function(e) {
28	  		e.preventDefault();
29			jQuery('#moneymach_sidebar_question').animate({ width: 'show' }, 'fast', function() {
30	    			jQuery('#moneymach_top_content_inner').show('slow');
31	  			}
32			);
33	  	});
34
35		jQuery(document).on('click', '.moneymach_sidebar_close_btn', function(e) {
36	  		e.preventDefault();
37			jQuery('#moneymach_sidebar_question').animate({ width: 'hide' }, 'slow', function() {
38	    			jQuery('#moneymach_top_content_inner').hide( 'slow' );
39	  			}
40	  		);
41	  	});
42
43	  	mmstartTicker('ticker-box', {speed:12, delay:1000});
44
45	  	// When the user scrolls the page, execute myFunction
46
47	  	// Get the header
48	  	var stickies = document.getElementsByClassName("mmfloatingb");
49	  	if( stickies.length )
50	  		window.onscroll = function() {mmcheckifsticky()};
51
52	  	// Get the offset position of the navbar
53	  	// var sticky = header.offsetTop;
54
55	  	// Add the sticky class to the header when you reach its scroll position. Remove "sticky" when you leave the scroll position
56	  	function mmcheckifsticky() {
57
58	  		// var tickerboxes = document.getElementsByClassName("wpmmnewsticker");
59	  		// var k;
60	  		for (k = 0; k < stickies.length; k++) {
61	  			var header = stickies[k];
62	  			var sticky = header.offsetTop;
63	  	  if (window.pageYOffset > sticky) {
64	  	    header.classList.add("mmsticky");
65	  	  } else {
66	  	    header.classList.remove("mmsticky");
67	  	  }
68	  	}
69	  	}
70/*
71	jQuery('#cryptomc_no').click(function(e) {
72		e.preventDefault();
73		jQuery('#cryptomc_topbar').slideUp();
74
75		var data = {
76			action: 'wpcryptomc_sayno',
77			val: 1
78		};
79
80		jQuery.post( wpcryptomc_vars.ajaxurl, data, function(response) {
81			// console.log(response);
82		});
83	});
84
85*/
86
87	// jQuery('#btn-send-message').click(function(e) {
88	// 	e.preventDefault();
89	// 	wpsc_stopTitle();
90	// 	var data = {
91	// 		action: 'scontact_form',
92	// 		to_name: jQuery('#wpscontact-name').val(),
93	// 		to_email: jQuery('#wpscontact-email').val(),
94	// 		message: jQuery('#wpscontact-msg').val()
95	// 	};
96	// 	jQuery(this).html('<i class="fa fa-spinner fa-spin fa-fw"></i>');
97	// 	jQuery.post(wpscontact_settings.ajaxurl, data, function(response) {
98	// 		// if ( response ) {
99	// 			// alert('response: '+response);
100	// 		jQuery('#wpscontact-form').hide();
101	// 		jQuery('#wpsc-thankyou').show();
102	// 	});
103	// });
104
105	jQuery( document ).on( 'click', '.wpac_submit_optin', function(e) {
106		e.preventDefault();
107		// console.log('click')
108		var $this = jQuery(this);
109		var parent = $this.closest( '.wpac-optin-form' );
110		var email_to = parent.find( '.wpac-email' ).val();
111		var name_to = parent.find( '.wpac-name' ).val();
112		var postid = parent.find( '.wpac-post-id' ).val();
113		var monetize_id = parent.find( '.wpac-monetize-id' ).val();
114
115		var redirect = parent.find( '.wpac-redirect-url' ).val();
116		var thankyou = parent.find( '.wpac-thankyou' ).html();
117
118		form_el = $this.closest('.wplpdf-optin-formp')
119		$this.attr('disabled', 'disabled').val('Sending...');
120
121		var data = {
122			action: 'wpacom_optin_submit',
123			email_to: email_to,
124			name_to: name_to,
125			post_id: postid,
126			monetize_id: monetize_id
127		};
128
129		jQuery.post( wpmoneymachf_vars.ajax_url, data, function(response) {
130			if( response.INVALIDEMAIL ) {
131				var htmlq = '<div style="color:red"><span style="padding-top:5px">Please enter a valid e-mail address.</span></div>';
132				$this.removeAttr( 'disabled' ).val( 'Submit' );
133				$this.after( htmlq );
134			} else if( response.SAVED ) {
135				if ( redirect != 0 && redirect != '') {
136					parent.html('<span>'+thankyou+'</span>');
137					setTimeout( function(){ location.href = redirect; }, 2000 );
138				}
139				else {
140					parent.html('<span>'+thankyou+'</span>');
141				}
142			}
143		});
144	});
145});
146
147
148function wpmmachine_setCookie(name,value,days) {
149    var expires = "";
150    if (days) {
151        var date = new Date();
152        date.setTime(date.getTime() + (days*24*60*60*1000));
153        expires = "; expires=" + date.toUTCString();
154    }
155    document.cookie = name + "=" + (value || "")  + expires + "; path=/";
156}
157function wpmmachine_getCookie(name) {
158    var nameEQ = name + "=";
159    var ca = document.cookie.split(';');
160    for(var i=0;i < ca.length;i++) {
161        var c = ca[i];
162        while (c.charAt(0)==' ') c = c.substring(1,c.length);
163        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
164    }
165    return null;
166}
167function wpmmachine_eraseCookie(name) {   
168    document.cookie = name+'=; Max-Age=-99999999;';  
169}
170
171/*!
172 * MangoTicker v1.0.0
173 * Text Ticker JavaScript Library
174 * http://phppot.com/mango-ticker/
175 *
176 * Copyright 2015, PhpPot
177 * Released under the MIT license
178 *
179 * Date: 2015-04-16
180 */
181 
182function applyStyles(obj,styles){
183	var property;
184	var styleLength = Object.keys(styles).length;
185	for (var i=0; i<styleLength; i++) {
186		property = Object.keys(styles)[i];
187		obj.style[property] = styles[property];
188	}
189} 
190
191function extend(object1,object2){
192    for (var attrname in object2) { 
193		object1[attrname] = object2[attrname]; 
194	}
195    return object1;
196}
197 
198function mmstartTicker(id,param){
199	// var tickerBox = document.getElementById(id);
200	var tickerboxes = document.getElementsByClassName("wpmmnewsticker");
201	var k;
202	for (k = 0; k < tickerboxes.length; k++) {
203		var tickerbox = tickerboxes[k];
204	  // x[i].style.backgroundColor = "red";
205
206		var defaultParam={speed:5,delay:500,rotate:true};
207		var extendedParam = extend(defaultParam,param);
208		applyStyles(tickerbox,{overflow:"hidden",'min-height':'40px'});
209		var ul=tickerbox.getElementsByTagName("ul");
210		var li=ul[0].getElementsByTagName("li");
211		applyStyles(ul[0],{padding:0,margin:0,position:'relative','list-style-type':'none'});
212		for (i = 0; i < li.length; i++) {
213			applyStyles(li[i],{position:'absolute','white-space': 'nowrap',display:'none'});
214		}
215	
216	var li_index = 0;
217	var trans_width = tickerbox.offsetWidth;
218	var chunk_width = 1;
219					
220	var iterateTickerElement = function(trans_width) {
221		li[li_index].style.left = trans_width+"px";
222		li[li_index].style.display = '';
223		var t = setInterval(function(){
224			if (parseInt(li[li_index].style.left) > -li[li_index].offsetWidth) {
225				li[li_index].style.left = parseInt(li[li_index].style.left) - chunk_width + "px";
226			} else {
227				clearInterval(t);
228				trans_width = tickerbox.offsetWidth;
229				li_index++;				
230				if(li_index == li.length && extendedParam.rotate == true){
231					li_index = 0;						
232					iterateTickerElement(trans_width);
233				} else if (li_index < li.length) {
234					setTimeout(function(){iterateTickerElement(trans_width);},extendedParam.delay);					
235				}
236			}
237		},extendedParam.speed);	
238		tickerbox.onmouseover =	function(){
239			clearInterval(t);
240		}
241		tickerbox.onmouseout =	function(){
242			iterateTickerElement(parseInt(li[li_index].style.left));
243		}		
244	}	
245	iterateTickerElement(trans_width);
246}
247
248	}

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.