PageSourceSearch

https://inewgames.com/wp-content/plugins/epoll-wp-voting/assets/js/it_epoll_votev3.js?ver=4.9.26

js inewgames.com collected 2026-10-02 14:06:05 UTC 2,199 bytes, 56 lines download raw bytes

1jQuery(document).ready(function() {
2	jQuery('.it_epoll_survey-item').each(function(){
3		var it_epoll_item = jQuery(this);
4		jQuery(this).find('#it_epoll_survey-vote-button').click(function(){
5		
6			
7			jQuery(it_epoll_item).parent().find('.it_epoll_survey-item').each(function(){
8				
9					jQuery(this).find('#it_epoll_survey-vote-button').val('...');
10					jQuery(this).find('#it_epoll_survey-vote-button').attr('disabled','yes');
11				
12			});
13
14			var it_epoll_btn  = jQuery(this);	
15			jQuery(it_epoll_item).find('.it_epoll_spinner').fadeIn();
16			//console.log(it_epoll_item);
17
18			var data = {
19				'action': 'it_epoll_vote',
20				'option_id': jQuery(it_epoll_item).find('#it_epoll_survey-item-id').val(),
21				'poll_id': jQuery(it_epoll_item).find('#it_epoll_poll-id').val() // We pass php values differently!
22			};
23	
24		// We can also pass the url value separately from ajaxurl for front end AJAX implementations
25			jQuery.post(it_epoll_ajax_obj.ajax_url, data, function(response) {
26				
27				var it_epoll_json = jQuery.parseJSON(response);
28		        
29		        jQuery(it_epoll_item).parent().find('.it_epoll_survey-item').each(function(){
30		        	 jQuery(this).find('#it_epoll_survey-vote-button').addClass('it_epoll_scale_hide');	
31		    	});
32
33				jQuery(it_epoll_item).find('.it_epoll_survey-progress-fg').attr('style','width:'+it_epoll_json.total_vote_percentage+'%');
34				jQuery(it_epoll_item).find('.it_epoll_survey-progress-label').text(it_epoll_json.total_vote_percentage+'%');
35				jQuery(it_epoll_item).find('.it_epoll_survey-completes').text(it_epoll_json.total_opt_vote_count+' / '+it_epoll_json.total_vote_count);		
36				
37				setTimeout(function(){
38					jQuery(it_epoll_btn).addClass('it_epoll_scale_show');
39					jQuery(it_epoll_btn).val("Voted");
40					jQuery(it_epoll_btn).toggleClass("it_epoll_green_gradient");
41					jQuery(it_epoll_item).find('.it_epoll_spinner').toggleClass("it_epoll_spinner_stop");	
42					jQuery(it_epoll_item).find('.it_epoll_spinner').toggleClass("it_epoll_drawn");
43				},300);
44
45				
46			});
47	
48		});
49
50	});
51
52	jQuery('.it_epoll_pop_close').click(function(){
53		jQuery('.it_epoll_pop_container').fadeOut();
54	});
55
56});

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.