1 2let bottomNavVue; 3 4window.addEventListener('load', function () { 5 bottomNavVue = new Vue(bottomNavObject); 6}); 7 8const bottomNavObject = { 9 el: '#el-bottom-nav', 10 data() { 11 return { 12 eventBadgeAllowedPaths: ['/', '/main', '/booking/campList'], 13 currentPathName: window.location.pathname, 14 } 15 }, 16 mounted() { 17 this.addEventBadgePathIfCampIdExists(); 18 this.highlightCurrentMenuItem(); 19 }, 20 methods: { 21 // ì í¨í _campIdê° ìì¼ë©´ ì´ë²¤í¸ ë°°ì§ íì© ê²½ë¡ì ì¶ê° 22 addEventBadgePathIfCampIdExists() { 23 if (typeof _campId !== 'undefined') { 24 this.eventBadgeAllowedPaths.push(`/booking/camp/${_campId}`); 25 } 26 }, 27 // íì¬ íì´ì§ì ì¼ì¹íë ë©ë´ë¥¼ ì°¾ì í´ëì¤ë¥¼ ì¶ê° 28 highlightCurrentMenuItem() { 29 const menuItems = this.$el.querySelectorAll(".cpt-nav nav ul li"); 30 menuItems.forEach((item) => { 31 const link = item.querySelector("a"); 32 if (link && link.getAttribute("href") === this.currentPathName) { 33 item.classList.add("cpt-color"); 34 item.querySelector("i").classList.add("cpt-color"); 35 item.querySelector("span").classList.add("cpt-color"); 36 } 37 }); 38 }, 39 /** 40 * ë´ ì ë³´ íì´ì§ë¡ 41 */ 42 goMyInfo() { 43 if (memberManager.isMember) { 44 document.location = _linkTo('/member/info'); 45 } else { 46 authManager.goSnsLogin({ destinationUri: _linkTo('/member/info') }); 47 } 48 }, 49 goEventPage(eventPageUrl) { 50 document.location = _linkTo(eventPageUrl); 51 } 52 }, 53}; 54 55/** 56 * ì¤í¬ë¡¤ ì 57 */ 58window.onscroll = function () { 59 const scroll = window.scrollY; 60 const nav = document.querySelector(".header"); 61 62 /* Top */ 63 if (scroll !== 0) { 64 nav.classList.add("header-bs"); 65 } else { 66 nav.classList.remove("header-bs"); 67 } 68} 69 70//ìë°ì¸ì¼ íì¤í ì© 71let saleFestaListVue; 72 73window.addEventListener('load', function () { 74 saleFestaListVue = new Vue(saleFestaListObj); 75}); 76 77const saleFestaListObj = { 78 el: '#sale-festa-list', 79 data: { 80 }, 81 computed: { 82 }, 83 methods: { 84 goCamp(campId) { 85 window.location.href = _linkTo('/booking/camp/' + campId); 86 }, 87 linkToCampListPage(key) { 88 channelSessionStorage.setItem('campFormData', JSON.stringify({ 89 ...JSON.parse(channelSessionStorage.getItem('campFormData')), 90 selectedSearchItemList: getSearchItemList()?.filter(item => item.key === key) 91 })); 92 channelSessionStorage.removeItem('campList'); 93 channelSessionStorage.removeItem('campListPageNo'); 94 channelSessionStorage.removeItem('campListTotalCount'); 95 channelSessionStorage.removeItem('campListTotalPageCount'); 96 window.location.href = _linkTo('/booking/campList'); 97 }, 98 }, 99}; 100
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.