PageSourceSearch

https://yourdoll.jp/wp-content/cache/min/1/wp-content/themes/woodm…/updateCartFragmentsFix.js?ver=1790233967

js yourdoll.jp collected 2026-10-03 21:01:39 UTC 1,273 bytes, 5 lines download raw bytes

1(function($){$(document).ready(function(){$('body').on('added_to_cart removed_from_cart',function(e,fragments){if(fragments){$.each(fragments,function(key,value){$(key.replace('_wd','')).replaceWith(value)})}})});$('body').on('wc_fragments_refreshed wc_fragments_loaded',function(){if(typeof wd_cart_fragments_params!=='undefined'){var wc_fragments=JSON.parse(sessionStorage.getItem(wd_cart_fragments_params.fragment_name)),cart_hash_key=wd_cart_fragments_params.cart_hash_key,cart_hash=sessionStorage.getItem(cart_hash_key),cookie_hash=Cookies.get('woocommerce_cart_hash'),cart_created=sessionStorage.getItem('wc_cart_created'),day_in_ms=(24*60*60*1000);if(cart_hash===null||cart_hash===undefined||cart_hash===''){cart_hash=''}
2if(cookie_hash===null||cookie_hash===undefined||cookie_hash===''){cookie_hash=''}
3if(cart_hash&&(cart_created===null||cart_created===undefined||cart_created==='')){throw 'No cart_created'}
4if(cart_created){var cart_expiration=((1*cart_created)+day_in_ms),timestamp_now=(new Date()).getTime();if(cart_expiration<timestamp_now){throw 'Fragment expired'}}
5if(wc_fragments&&wc_fragments['div.widget_shopping_cart_content']&&cart_hash===cookie_hash){$.each(wc_fragments,function(key,value){$(key.replace('_wd','')).replaceWith(value)})}}})})(jQuery)

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.