PageSourceSearch

https://welcometotwinpeaks.com/wp-content/cache/autoptimize/js/aut…27695cf00e5267b06705cdefd990cb.js?ver=1.4.1

js welcometotwinpeaks.com collected 2026-09-24 17:44:04 UTC 1,941 bytes, 6 lines download raw bytes

1'use strict';(function($){$(document).on('click touch','.wpccl-coupon',function(){let $link=$(this),coupon=$link.data('coupon');if($link.hasClass('wpccl-coupon-plain')){return;}
2if($link.hasClass('wpccl-coupon-applied')){return;}
3if($link.hasClass('wpccl-coupon-disabled')){return;}
4$link.addClass('wpccl-coupon-loading');$.ajax({type:'POST',url:wpccl_vars.wc_ajax_url.toString().replace('%%endpoint%%','wpccl_apply_coupon'),data:{action:'wpccl_apply_coupon',coupon_code:coupon,nonce:wpccl_vars.nonce,},dataType:'json',success:function(response){if(response){$link.removeClass('wpccl-coupon-loading');$('#wpccl-popup [data-coupon="'+coupon+'"]').addClass('wpccl-coupon-applied');}},complete:function(){if($link.closest('.wpccl-popup').length){var current=$.featherlight.current();current.close();$(document.body).trigger('wc_update_cart').trigger('wc_fragment_refresh');if(wpccl_vars.is_checkout){$(document.body).trigger('update_checkout');}}else{location.reload();}},});});})(jQuery);function wpccl_load_coupons(){jQuery('#wpccl-popup .wpccl-coupons').addClass('wpccl-coupons-loading');jQuery.ajax({type:'POST',url:wpccl_vars.wc_ajax_url.toString().replace('%%endpoint%%','wpccl_load_coupons'),data:{action:'wpccl_load_coupons',nonce:wpccl_vars.nonce,},success:function(response){jQuery('#wpccl-popup .wpccl-coupons').html(response).removeClass('wpccl-coupons-loading');wpccl_countdown();},});}
5function wpccl_countdown(){if(wpccl_vars.countdown!=='yes'){return;}
6jQuery('.wpccl-coupon-expiry').each(function(){let $this=jQuery(this),date=$this.attr('data-date'),date_tz=moment.tz(date,'YYYY-MM-DD',wpccl_vars.timezone),date_format='<span>%D %!D:'+wpccl_vars.day+','+wpccl_vars.days+';</span> <span>%H</span>:<span>%M</span>:<span>%S</span>';if(date!==''){$this.countdown(date_tz.toDate(),function(event){$this.html(wpccl_vars.active_in.replace('%s',event.strftime(date_format)));}).on('finish.countdown',function(){$this.remove();});}});}

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.