1"use strict" 2 3;(function ($) { 4 $(function () { 5 var selectedStore = Cookies.get('selectedTirepitStore') 6 , selectedStoreName = Cookies.get('selectedTirepitStoreName') 7 , invisible = Cookies.get('selectedTirepitStoreInvisible') 8 , now = Date.now() 9 , isPopup = true 10 11 if (invisible && now < invisible) { 12 isPopup = false 13 } 14 if (selectedStore && selectedStoreName && isPopup) { 15 if ($('#selectedStoreName').length) { 16 $('#selectedStoreName').html(selectedStoreName) 17 $('#selectedTirepitStore').show() 18 } 19 } else { 20 $('#selectedTirepitStore').remove() 21 } 22 }) 23 24 $('#selectedTirepitStore .tpSelClear a').on('click', function () { 25 Cookies.remove('selectedTirepitStore', {path: '/'}) 26 Cookies.remove('selectedTirepitStoreName', {path: '/'}) 27 Cookies.remove('selectedTirepitStoreInvisible', {path: '/'}) 28 29 $('#selectedTirepitStore').animate({height: 'toggle'}, 'slow', 'swing') 30 }) 31 32 $('#selectedTirepitStore .bottomRightClose').on('click', function () { 33 Cookies.set('selectedTirepitStoreInvisible', Date.now() + (60 * 30 * 1000), {path: '/'}) // 30åéé表示 34 35 $('#selectedTirepitStore').animate({height: 'toggle'}, 'slow', 'swing') 36 }) 37})(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.