1jQuery(document).ready(function() { 2 //Epoll js common actions 3 jQuery('.it_epoll_pop_close').click(function(){ 4 jQuery('.it_epoll_pop_container').fadeOut(); 5 }); 6 7 jQuery('body .it_epoll_container_alert').each(function(){ 8 var item = jQuery(this); 9 jQuery(this).find('.it_epoll_container_alert_close').on('click',function(){ 10 jQuery(item).removeClass('it_epoll_container_alert_show') 11 }); 12 }); 13 14 //Epoll poll share popup actions & common 15 jQuery('.eg_main_content #epoll_container_opinion').each(function(){ 16 var it_epoll_opionion_item = jQuery(this); 17 18 jQuery(document).mouseup(function(e) 19 { 20 var container = jQuery(it_epoll_opionion_item).find('#it_epoll_opinion_share_btn'); 21 22 // if the target of the click isn't the container nor a descendant of the container 23 if (!container.is(e.target) && container.has(e.target).length === 0) 24 { 25 26 jQuery(container).find('.epoll_sc_share_container').addClass('hide_epoll_sc_share_container'); 27 } 28 }); 29 30 31 jQuery(it_epoll_opionion_item).find('#it_epoll_opinion_share_btn').click(function(){ 32 33 jQuery(this).find('.epoll_sc_share_container').toggleClass('hide_epoll_sc_share_container'); 34 }); 35 36 37 jQuery(it_epoll_opionion_item).find('#epoll_opinion_show_result_button,#epoll_opinion_hide_result_button').click(function(){ 38 jQuery(it_epoll_opionion_item).find('#epoll_opinion_show_result_button').toggleClass('epoll_hide_element'); 39 jQuery(it_epoll_opionion_item).find('#epoll_opinion_vote_button').toggleClass('epoll_hide_element'); 40 jQuery(it_epoll_opionion_item).find('#epoll_opinion_hide_result_button').toggleClass('epoll_hide_element'); 41 42 jQuery(it_epoll_opionion_item).find('.epoll_poll_options li').each(function(){ 43 jQuery(this).find('.it_epoll_otp_result_wrap').css({width:'0%',opacity:'0'}); 44 45 46 var progress = jQuery(this).find('.it_epoll_poll_opt_progressbar').data('count'); 47 jQuery(this).find('.it_epoll_poll_opt_progressbar').toggleClass('epoll_hide_element'); 48 jQuery(this).find('.it_epoll_otp_result_wrap').animate({width:progress,opacity:'1'}); 49 jQuery(this).find('.it_epoll_opt_radio ').removeClass('it_epoll_opnion_opt_error'); 50 51 52 if(!jQuery(this).find('.it_epoll_poll_opt_progressbar').hasClass('epoll_hide_element')){ 53 jQuery(this).find('.it_epoll_opt_radio_wrap [type="radio"] + label').animate({paddingLeft:'25px'}); 54 }else{ 55 jQuery(this).find('.it_epoll_opt_radio_wrap [type="radio"] + label').css({paddingLeft:'50px'}); 56 } 57 58 jQuery(this).find('.epoll_show_radio').toggleClass('epoll_hide_radio'); 59 }); 60 }); 61 }); 62 63 64 //Epoll contest share popup actions 65 jQuery('.eg_main_content .it_epoll_container').each(function(){ 66 67 var it_epoll_opionion_item = jQuery(this); 68 jQuery(it_epoll_opionion_item).find('#it_epoll_opinion_share_btn').mouseenter(function(){ 69 jQuery(this).find('.epoll_sc_share_container').fadeIn(); 70 }); 71 jQuery(it_epoll_opionion_item).find('.it_epoll_container_alert').on('click',function(){ 72 //jQuery(it_epoll_opionion_item).find('.it_epoll_container_alert').removeClass('it_epoll_container_alert_show'); 73 }); 74 75 76 jQuery('.it_epoll_container_alert_inner').click(function(event){ 77 event.stopPropagation(); 78 }); 79 80 jQuery(it_epoll_opionion_item).find('.it_epoll_poll_share_btn').on('click',function(){ 81 jQuery(it_epoll_opionion_item).find('#it_epoll_share_alert').addClass('it_epoll_container_alert_show'); 82 }); 83 84 jQuery(it_epoll_opionion_item).find('#it_epoll_opinion_share_btn').mouseleave(function(){ 85 jQuery(this).find('.epoll_sc_share_container').fadeOut(); 86 }); 87 }); 88 89}); 90(function () { 91 jQuery(function () { 92 return jQuery('[data-toggle]').on('click', function () { 93 var toggle; 94 toggle = $(this).addClass('active').attr('data-toggle'); 95 jQuery(this).siblings('[data-toggle]').removeClass('active'); 96 return jQuery('.surveys').removeClass('grid list').addClass(toggle); 97 }); 98 }); 99 100 101}.call(this));
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.