1var ecblib = ecblib || {}; 2ecblib.customize = ecblib.customize || {}; 3ecblib.customize.goods = ecblib.customize.goods || {}; 4 5(function () { 6 'use strict'; 7 8 var _goods = ecblib.customize.goods; 9 10}()); 11 12 13jQuery(function(){ 14 if(!jQuery('#goods-detail-fixed-anchor')[0]||!jQuery('.block-goods--pricearea')[0]) return false; 15 const $fixed = jQuery('#goods-detail-fixed-anchor'); 16 let $cartarea = jQuery('.block-size-with-cart'); 17 if(!jQuery('.block-size-with-cart')[0]) $cartarea = jQuery('.goods-detail--single-cart-btn'); 18 19 const $btn = $fixed.find('.goods-detail-fixed-anchor-btn .btn'); 20 $btn.on('click',function(){ 21 var headerH = 100; 22 const pos = $cartarea.offset().top - headerH; 23 jQuery('body,html').animate({ scrollTop: pos }, 500, 'linear'); 24 }) 25 jQuery(window).on('load resize scroll',fixedCartAnchor); 26 fixedCartAnchor(); 27 $fixed.addClass('st__active') 28 function fixedCartAnchor(){ 29 const p1 = $cartarea.offset().top + $cartarea.outerHeight(); 30 const sc1 = jQuery(window).scrollTop() + 100; 31 const sc2 = jQuery(window).scrollTop() + window.innerHeight; 32 let visibleFlg = false; 33 (sc1>=p1&&sc2<=jQuery('#copyright').offset().top) ? visibleFlg=true : visibleFlg=false; 34 (visibleFlg)?$fixed.addClass('st__show'):$fixed.removeClass('st__show'); 35 } 36})
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.