1/* ajax for non login users */ 2 3 jQuery(document).ready(function($){ 4 5 jQuery('*[data-modal="modal-3"]').on('click', function(e){ 6 jQuery('div#modal-3').html(''); 7 jQuery('.content-loading').css('background-position','center center'); 8 $this = jQuery(this); 9 jQuery.ajax({ 10 type: 'POST', 11 dataType: 'json', 12 url: needlogin_object.ajaxurl, 13 data: { 14 'action': 'listingpro_loginpopup', 15 'lpNonce' : jQuery('#lpNonce').val() 16 }, 17 success: function(res){ 18 jQuery('.content-loading').css('background-position','-9999px -9999px'); 19 jQuery('div#modal-3').html(res); 20 if(jQuery('form#register .check_policy').is('.termpolicy')){ 21 jQuery("input#lp_usr_reg_btn").prop('disabled',true); 22 jQuery('.check_policy').on('click', function(){ 23 if(jQuery('#check_policy').is(':checked')){ 24 jQuery("input#lp_usr_reg_btn").prop('disabled',false); 25 } 26 else{ 27 jQuery("input#lp_usr_reg_btn").prop('disabled',true); 28 } 29 }); 30 } 31 } 32 }); 33 }); 34 35 jQuery('.reviewformwithnotice input[type=text], .reviewformwithnotice textarea').keyup(function (e) { 36 37 jQuery('div#modal-3').html(''); 38 jQuery('.content-loading').css('background-position', 'center center'); 39 $this = jQuery(this); 40 jQuery.ajax({ 41 type: 'POST', 42 dataType: 'json', 43 url: needlogin_object.ajaxurl, 44 data: { 45 'action': 'listingpro_loginpopup', 46 'lpNonce' : jQuery('#lpNonce').val() 47 }, 48 success: function (res) { 49 jQuery('.content-loading').css('background-position', '-9999px -9999px'); 50 jQuery('div#modal-3').html(res); 51 } 52 }); 53 }); 54 55 jQuery('.reviewformwithnotice input[type=text], .reviewformwithnotice textarea').keyup(function (e) { 56 57 if(jQuery('body').find('.lp-menu-container') ) 58 { 59 60 jQuery( "body" ).prepend( '<div class="full-overlay-popup"></div>' ); 61 jQuery(".full-overlay-popup").css({ 62 "width": "100vw", 63 "height": "100vh", 64 "position": "fixed", 65 "background": "#000000c7", 66 "z-index": "10", 67 }); 68 69 jQuery('#app-view-login-popup').fadeIn(); 70 jQuery('#app-view-login-popup').css({ 71 'top': '20%', 72 'transform': 'translateY(0%)', 73 'opacity' : 1 74 }); 75 } 76 else 77 { 78 jQuery('#app-view-login-popup').css({ 79 'top': '0px', 80 'transform': 'translateY(0%)', 81 }); 82 } 83 }); 84 85 jQuery(document).on('click', '.md-close', function(){ 86 jQuery('.full-overlay-popup').remove(); 87 }); 88 }); 89 /* document ready ends here */ 90 91 92 /* for app view */ 93 94 jQuery(document).on('click' ,'#app-view-login-popup .signUpClick' , function() { 95 jQuery('.signInClick').removeClass('active'); 96 jQuery('.siginincontainer2').hide(); 97 jQuery('.forgetpasswordcontainer2').hide(); 98 jQuery('.siginupcontainer2').fadeIn(); 99 jQuery(this).addClass('active'); 100 }); 101 jQuery(document).on('click', "#app-view-login-popup .signInClick" , function() { 102 jQuery('.signUpClick').removeClass('active'); 103 jQuery(this).addClass('active'); 104 jQuery('.forgetpasswordcontainer2').hide(); 105 jQuery('.siginupcontainer2').hide(); 106 jQuery('.siginincontainer2').fadeIn(); 107 }); 108 jQuery(document).on('click', "#app-view-login-popup .forgetPasswordClick" , function() { 109 jQuery('.siginupcontainer2').hide(); 110 jQuery('.siginincontainer2').hide(); 111 jQuery('.forgetpasswordcontainer2').fadeIn(); 112 113 }); 114 jQuery(document).on('click' ,"#app-view-login-popup .cancelClick", function() { 115 jQuery('.siginupcontainer2').hide(); 116 jQuery('.forgetpasswordcontainer2').hide(); 117 jQuery('.siginincontainer2').fadeIn(); 118 119 }); 120 121 122 /* for desktop view */ 123 jQuery(document).on('click', ".signUpClick" , function() { 124 jQuery('.signInClick').removeClass('active'); 125 jQuery(this).addClass('active'); 126 jQuery('.siginincontainer').fadeOut(); 127 jQuery('.forgetpasswordcontainer').fadeOut(); 128 jQuery('.siginupcontainer').fadeIn(); 129 }); 130 jQuery(document).on('click', ".signInClick" , function() { 131 jQuery('.signUpClick').removeClass('active'); 132 jQuery(this).addClass('active'); 133 jQuery('.forgetpasswordcontainer').fadeOut(); 134 jQuery('.siginupcontainer').fadeOut(); 135 jQuery('.siginincontainer').fadeIn(); 136 });
137 jQuery(document).on('click', ".forgetPasswordClick", function() { 138 jQuery('.siginupcontainer').fadeOut(); 139 jQuery('.siginincontainer').fadeOut(); 140 jQuery('.forgetpasswordcontainer').fadeIn(); 141 142 }); 143 jQuery(document).on('click', ".cancelClick", function() { 144 jQuery('.siginupcontainer').fadeOut(); 145 jQuery('.forgetpasswordcontainer').fadeOut(); 146 jQuery('.siginincontainer').fadeIn(); 147 148 });
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.