1jQuery(document).ready(function($){ 2 'use strict'; 3 4 if($('.price-period-switch').length){ 5 $('.price-period-switch').each(function(){ 6 7 var tgl_btn = $(this).find('.period'),totes,target_box, ac_btn, prices; 8 if($(this).data('target') !=''){ 9 target_box = $('#'+ $(this).data('target')); 10 } 11 else{ 12 target_box = $(this).closest('section.elementor-section'); 13 } 14 15 if( typeof target_box !='undefined'){ 16 prices = $(target_box).find('.temegum-price-table.double-period'); 17 } 18 19 tgl_btn.each(function(){ 20 $(this).on("click", function(e){ 21 e.preventDefault(); 22 var $this= $(this); 23 24 tgl_btn.removeClass('active'), 25 $this.addClass('active'); 26 27 if(typeof prices !='undefined' ){ 28 29 prices.each(function(){ 30 ac_btn = $(this).find('.price-btn .elementor-button'); 31 var reg_price = $(this).find('.regular-price'),anual_price = $(this).find('.anual-price'),regular_link; 32 var reg_period = $(this).find('.regular-period'),anual_period = $(this).find('.anual-period'),anual_link; 33 34 35 if(ac_btn.length){ 36 regular_link = ac_btn.data('regular'); 37 anual_link = ac_btn.data('anual'); 38 } 39 40 if($this.hasClass('anual-period')){ 41 if( ac_btn.length ) { try{ ac_btn.attr('href',anual_link);}catch(er){ alert(er);} } 42 reg_price.hide(); 43 reg_period.hide(); 44 anual_price.show(); 45 anual_period.show(); 46 47 }else{ 48 if( ac_btn.length ) { try{ ac_btn.attr('href',regular_link);}catch(er){ alert(er);} } 49 anual_price.hide(); 50 anual_period.hide(); 51 reg_price.show(); 52 reg_period.show(); 53 } 54 }); 55 } 56 }); 57 }); 58 }); 59 } 60 61});
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.