Best CBD Oils 2020 | Best CBD Companies – LA Weekly fbpx Do NOT follow this link or you will be banned from the site! input”).change(function() { readURL(this); }); }); // // MODAL SCRIPT jQuery(document).ready(function($) { jQuery(“.preview-buttom-modla”).click(function(){ // event data preview var title_event = jQuery(‘.Titleofevent>input’).val(); var description_short = jQuery(‘.textarea-shortdescription>textarea’).val(); var description_long = jQuery(‘span.wpcf7-form-control-wrap.Description>textarea’).val(); var time_event = jQuery(‘span.wpcf7-form-control-wrap.Time>input’).val(); var fee_evnt = jQuery(‘span.wpcf7-form-control-wrap.Fee>input’).val(); var age_event = jQuery(“span.wpcf7-form-control-wrap.Age>span>span>input[name=’Age’]:checked”).val(); var genre_event = jQuery(“span.wpcf7-form-control-wrap.Genre>span>span>input[name=’Genre’]:checked”).val(); var link_event = jQuery(“span.wpcf7-form-control-wrap.Eventlink>input”).val(); var tipeEvent = jQuery(“span.wpcf7-form-control-wrap.DateOptions span.wpcf7-list-item.first>input[name=’DateOptions’]:checked”).val(); console.log(tipeEvent); if(tipeEvent == ‘One day’){ console.log(‘ONEDAY’); jQuery(‘.caption-date-pv-event>div>div#eventplus_event_date>.d3sc h5’).hide(); }else{ jQuery(‘.caption-date-pv-event>div>div#eventplus_event_date>.d3sc h5’).fadeIn(); } // format date initial var date_initial_event = jQuery(“.datepicker-payment-init”).val(); const monthNames = [“January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November”, “December” ]; console.log(‘date_initial_event’); const d = new Date(date_initial_event); var month_initial_event = monthNames[d.getMonth()]; var day_initial_event = d.getDate(); var year_initial_event = d.getFullYear(); console.log(month_initial_event+’ ‘+day_initial_event+’, ‘+year_initial_event); jQuery(‘.caption-title-pv-event>span’).text(title_event); jQuery(‘.caption-description-pv-even’).text(”); jQuery(‘.caption-description-pv-even’).append(‘

‘+description_short+”); jQuery(‘.caption-description-pv-even’).append(‘

‘+description_long+”); jQuery(‘.caption-date-pv-event div#eventplus_event_time .d3sc h4.timeget’).text(time_event); jQuery(‘.caption-option-pv-evnt>div>div#eventplus_event_fees .row .col-xs-12’).text(fee_evnt); jQuery(‘.caption-option-pv-evnt>div>div.eventplus_event_age .d3sc>span’).text(age_event); jQuery(‘.caption-option-pv-evnt>div>div.eventplus_event_genre .d3sc>span’).text(genre_event); jQuery(‘div#eventplus_actions_registration_btns>a’).attr(‘href’,link_event); jQuery(‘.caption-date-pv-event>div>div#eventplus_event_date>.d3sc h4′).text(month_initial_event+’ ‘+day_initial_event+’, ‘+year_initial_event); // get location user var geocoder = new google.maps.Geocoder(); var address = jQuery(‘span.wpcf7-form-control-wrap.Location>input’).val(); jQuery(‘.caption-option-pv-evnt>div>div#eventplus_event_location .d3sc>span’).text(address); geocoder.geocode( { ‘address’: address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { var latitude = results[0].geometry.location.lat(); var longitude = results[0].geometry.location.lng(); var res = address.replace(” “, “+”); jQuery(‘.caption-map-pv-event iframe’).attr(‘src’,’https://maps.google.com/maps?q=’+res+’&hl=en&z=16&output=embed’); } }); }); }); // // ajax add cart product[ function customCheckout(event){ var wp_ajax_url=”https://www.laweekly.com/wp-admin/admin-ajax.php”; var data = { action: ‘getCheckoutPageContent’, product_id: jQuery(event.target).data(‘productid’), quantity: 1 }; jQuery.post( wp_ajax_url, data, function(content) { jQuery(“#checkOutPageContent”).html(content); jQuery(“#pay-popup”).click(); }); } // // ACTIVE AUTOCLICK EVENT SINGLE add cart jQuery(document).ready(function($) { // https://www.laweekly.com/checkout/ var url = window.location.href; console.log(‘url’); console.log(url); if(url != ‘https://www.laweekly.com/checkout/’){ jQuery(‘.row_demo_products .initial_events_active’).click(); console.log(‘AUTOCLIC2’); }else{ console.log(‘ckec4’); var dataEventIdCheckout = jQuery(‘#dataPostE’).text(); console.log(dataEventIdCheckout); jQuery(‘input#event_file_post_id’).val(dataEventIdCheckout); var textNameEvent = jQuery(‘tr.cart_item td.product-name’).text(); setTimeout(function(){ jQuery(‘tr.cart_item td.product-name>strong’).text(‘- plus 3.95% transaction fee’); }, 200); } }); // // show/hide end date jQuery(document).ready(function($) { jQuery(‘input.dat_option_one’).click(function(){ jQuery(‘label.end_dat’).parent().removeClass(‘acti_date_select’).addClass(‘wpcf7cf-hidden’); jQuery(‘input.datepicker-payment-initialw’).val(”); }); jQuery(‘input.dat_option_recurrent’).click(function(){ jQuery(‘label.end_dat’).parent().addClass(‘acti_date_select’).removeClass(‘wpcf7cf-hidden’); }); }); // // Success save form payment, active modal payment event jQuery(function(){ jQuery(“.contact-form-payment-hub”).submit(function(e){ e.preventDefault(); document.addEventListener( ‘wpcf7invalid’, function( event ) { console.log( “Fire!” ); }, false ); document.addEventListener( ‘wpcf7mailsent’, function( event ) { console.log( “SUCCESS5!” ); customLastPostId(); setTimeout(function(){ jQuery(‘.wpcf7-response-output.wpcf7-display-none.wpcf7-mail-sent-ok’).text(‘Thank you! Your event has been saved successfully. At this time please make the payment and it will be published in the next 24 hours’); jQuery(‘.pay-buttom-modla’).addClass(‘active_payment_action’); }, 200); setTimeout(function(){ window.location.href = “https://www.laweekly.com/checkout/”; console.log(“activo_autoclick”); // jQuery(‘.wpcf7-response-output.wpcf7-display-none.wpcf7-mail-sent-ok’).fadeOut(); }, 2000); }, false ); }); }); // // ajax add cart product[ function customLastPostId(){ var wp_ajax_url=”https://www.laweekly.com/wp-admin/admin-ajax.php”; var data = { action: ‘getLatsEvent’ }; jQuery.post( wp_ajax_url, data, function(content) { console.log(‘LAT POST EVENT4’); jQuery(‘.eventpost_id input’).val(content); // jQuery(‘.eventpost_id input’).prop(‘disabled’, true); console.log(content); }); } // jQuery(‘p.woocommerce-notice.woocommerce-notice–success.woocommerce-thankyou-order-received’).text(‘Thank you for you payment. A payment confirmation will be sent to the email you provided. Your posting will go live within 24 hours. All events will be moderated and LA Weekly reserves the right to edit for clarity or remove and refund payment for inappropriate content.’); // change value input radio – form contact events setTimeout(function(){ jQuery(‘form.wpcf7-form.contact-form-payment span.wpcf7-form-control-wrap.Genre>span span.wpcf7-list-item:nth-child(4)>span’).text(‘ENTERTAINMENT – FILM + TV’); }, 2000); ]]>

a’).lightbox(“open”, function(){ // console.log(‘ABRIP’); // }); // jQuery(‘.cb-slider-image>a’).on(“open.lightbox”, function() { // console.log(‘ABRISSP’); // }) jQuery(‘.cb-slider-image>a’).click(function(){ var sliderPosition = jQuery(this).parent().data(‘slick-index’); jQuery(‘#cb-gallery-post’).attr(‘onclick’,’gaTrack(“click_gallery”,”Image Slider Pop Up ‘+sliderPosition+’ “,”/’+titlePost+'”)’); jQuery(‘#cb-gallery-post’).attr(‘data-lightga’, sliderPosition); console.log(‘INITIAL’); }); jQuery(document).ready(function($) { jQuery(“div#lightbox .lb-nav a.lb-next”).on(“click”, function(){ var sliderPositionOpen = parseInt(jQuery(‘#cb-gallery-post’).attr(‘data-lightga’)); var sliderPositionOpen2 = sliderPositionOpen+1; console.log(sliderPositionOpen2); jQuery(‘#cb-gallery-post’).attr(‘onclick’,’gaTrack(“click_gallery”,”Image Slider Pop Up ‘+sliderPositionOpen2+’ “,”/’+titlePost+'”)’); jQuery(‘#cb-gallery-post’).attr(‘data-lightga’, sliderPositionOpen2); console.log(‘INITIAL2_2_2’); jQuery(‘#cb-gallery-post’).click(); }); jQuery(“div#lightbox .lb-nav a.lb-prev”).on(“click”, function(){ var sliderPositionOpenmin = parseInt(jQuery(‘#cb-gallery-post’).attr(‘data-lightga’)); var sliderPositionOpenmin2 = sliderPositionOpenmin-1; jQuery(‘#cb-gallery-post’).attr(‘onclick’,’gaTrack(“click_gallery”,”Image Slider Pop Up ‘+sliderPositionOpenmin2+’ “,”/’+titlePost+'”)’); jQuery(‘#cb-gallery-post’).attr(‘data-lightga’, sliderPositionOpenmin2); console.log(‘INITIAL3_3_3’); jQuery(‘#cb-gallery-post’).click(); }); }); function gaTrack(eventCategory, title, path) { console.log(eventCategory); console.log(title); console.log(path); // __gaTracker(‘set’, { page: path, title: title }); // __gaTracker(‘send’, { // hitType: ‘pageview’, // screenName: eventCategory, // page: path, // title: title // }); __gaTracker(‘send’, { hitType: ‘pageview’, screenName: eventCategory, title: title, page: path }); // __gaTracker(‘send’, ‘pageview’); console.log(‘ente223e2_#2’); } ]]>

Source