{{ 'fb_in_app_browser_popup.desc' | translate }} {{ 'fb_in_app_browser_popup.copy_link' | translate }}

{{ 'in_app_browser_popup.desc' | translate }}

見你咁耐冇返黎,但我哋從來冇忘記過你,希望我哋可以重新開始搵番大家嘅快樂。既然你咁有心返嚟,我真係要恭喜你呀!

依家只要輸入 myfd3 你就可以 85 折買番個開心,送俾自己,送俾朋友,送俾另一半。

}); window.scriptQueue.push(function() { app.run([ '$rootScope', '$timeout', 'modalTypes', 'mainConfig', function( $rootScope, $timeout, modalTypes, ) { $rootScope.$on('modal.open', function(event, payload) { if ([modalTypes.QUICK_CART, modalTypes.QUICK_CART_PRODUCT_SET].indexOf(payload.modalType) === -1) return; $timeout(function() { $('.js-variant-gallery-stage').append(''); }); $timeout(function() { /* add more detail button */ $('.js-product-link:visible').each(function() { var more = $(this).detach(); $('.modal .js-product-image').wrap(more); }); /* change position html of more detail */ $('.modal .js-variant-gallery-stage').remove('a.temp'); $('.modal .js-variant-gallery-stage').append($('.QuickCart-modal .js-product-link a')[0].outerHTML); fixSelect(); $('.member-price-tip').each(function() { var price = $(this).prev().detach(); $(this).parent().prepend(price); }); }, 200); });}]);/* change style select box */function fixSelect() { $('.js-selectpicker').each(function() { if ($(this).is(':visible')) { $('').insertAfter($(this)); } });}/* content auto padding follow header height */function autoPaddingTop(){ var previewingClosedStoreBanner = $('.js-previewing-closed-store-banner'); var previewingClosedStoreBannerHeight = previewingClosedStoreBanner.length ? previewingClosedStoreBanner.height() : 0; var $header = window.matchMedia('(max-width: 1199px)').matches ? $('.js-navbar-mobile') : $('.js-navbar-desktop'); var hHeader = ($header.height() || 0) + (previewingClosedStoreBannerHeight || 0); var isSectionPage = $('.shopline-section').length > 0; if ( $('body.home.index').length > 0 && (isSectionPage || $('.Grid-row-wrapper').length > 0) ) { var $item = $('.Grid-row-wrapper').first(); var isFullWidth = $item.hasClass('m-full-width'); var isBackground = $item.find('.Grid-item').length === 1 && $item.find('.editor-boxify-image-wrapper, .ImageItem-carouselContainer').length > 0; var isSectionFullWidth = isSectionPage && $('.shopline-section').first().find('.section-full-width').length > 0; if (isFullWidth || isBackground || isSectionFullWidth) { hHeader = 0; $item.addClass('m-remove-padding'); if (window.matchMedia && window.matchMedia('(max-width: 1199px)').matches) { $('.NavigationBar ~ .js-content').css('padding-top', hHeader); } } } $('.ProductList-container').css('visibility', 'visible'); $('.CustomPage').css('visibility', 'visible');}$(window).on('resize', _.debounce(autoPaddingTop, 200));$(window).on('scroll', _.debounce(autoPaddingTop, 200));var image = $('.js-nav-logo img, .header__logo img');if ((image.length !== 0 && image[0].complete) || image.length === 0) { autoPaddingTop();} else { image.on('load', autoPaddingTop);}$(window).load(function() { fixSelect();});/* close popup product when click mask */$(document).on('touchend', '.modal-backdrop', function() { $('.js-quick-cart-cancel').click();});/* add class scroll for go to top button */$(window).scroll(function() { var trialBannerHeight = $('.trial-banner').height() || 0; if ($(window).scrollTop() >= (100 - trialBannerHeight)) { $('.sl-goto-top').addClass('active'); } else { $('.sl-goto-top').removeClass('active'); }});/* check IOS */var iOS = is.ios();var iOS11 = /OS 11_0|OS 11_1|OS 11_2/.test(navigator.userAgent);var detectTap = false;if (iOS && iOS11) { $('body').addClass('ios-eleven');}/* location when click in IOS */if (iOS) { $('body').addClass('ios');}$('.instagram-post .caption').dotdotdot({ wrap: 'letter', ellipsis: '...', height: 56});function syncHeaderTopWithAnnouncementHeight() { $('#shopline-section-header').css('top', $('#shopline-section-announcement').height() || 0);}if ( $('body.cart.index, body.checkout.index, body.orders.confirm').length === 0 && $('#shopline-section-header').length > 0) { if ('ResizeObserver' in window) { var observer = new ResizeObserver(_.throttle(syncHeaderTopWithAnnouncementHeight, 200)); observer.observe($('#shopline-section-announcement')[0]); } else { document.fonts.ready.then(syncHeaderTopWithAnnouncementHeight); $(window).on('resize', _.throttle(syncHeaderTopWithAnnouncementHeight, 200)); } syncHeaderTopWithAnnouncementHeight();}/* this code will be remove in SL-31595 */if ($('.header').hasClass('header--sticky')) { $('#shopline-section-header').css({ 'position': 'sticky', 'z-index': 100 });}if ($('body.home.index').length > 0) { /* Should fix header when the first widget type on the OPB page is carousel or image. */ var firstGridRowWrapper = $('.Grid-row-wrapper').first(); var shouldFixHeaderForOpbPage = firstGridRowWrapper.length > 0 && firstGridRowWrapper.find('.Grid-item').length === 1 && firstGridRowWrapper.find( '.editor-boxify-image-wrapper, .ImageItem-carouselContainer', ).length > 0; /* When the first image widget has no content, check whether the second widget type is image. */ if (shouldFixHeaderForOpbPage && firstGridRowWrapper.find('.Grid-item').first().find('.image-container').children().length === 0) { var secondGridRowWrapper = firstGridRowWrapper.next(); shouldFixHeaderForOpbPage = secondGridRowWrapper.length > 0 && secondGridRowWrapper.find('.Grid-item').length === 1 && secondGridRowWrapper.find( '.editor-boxify-image-wrapper, .ImageItem-carouselContainer', ).length > 0; } /* Should fix header when first widget type on OPB page is gallery or slideshow with fullscreen option turned on. */ var isSectionPage = $('.shopline-section').length > 0; var shouldFixHeaderForNpbPage = isSectionPage && $('.shopline-section') .first() .find('.section-full-width') .find('.gallery__mask, .slideshow__list').length > 0; var shouldFixHeader = shouldFixHeaderForOpbPage || shouldFixHeaderForNpbPage; var fixedHeader = function () { $('.header').attr( 'style', 'position: fixed !important; top: ' + ($('#shopline-section-announcement').height() || 0) + 'px', ); }; var transparentHead = function () { $('.header').attr('style', 'position: absolute !important'); }; var resetHeader = function () { $('.header').removeAttr('style'); }; if ($('.header').hasClass('header--sticky')) { if (shouldFixHeader) { fixedHeader(); } else { /* add header height to prevent body relayout */ $('#shopline-section-header').css({ 'height': $('.header:visible').outerHeight() || 0 + 'px' }); $(window).on('scroll', _.debounce(function () { if ($(window).scrollTop() >= 100) { fixedHeader(); } else { resetHeader(); } }, 300)); } } else { if (shouldFixHeader) { transparentHead(); } else { resetHeader(); } }}/* end of this code will be remove in SL-31595 */ }); window.scriptQueue.push(function() { var scrollTop,$mask=$(''),hHeader=($(".js-navbar-desktop").height()||0)+($(".js-announcement").height()||0),docEl=$("html, body"),wrapContent=$("#Content"),lockBody=function(){window.pageYOffset&&(scrollTop=window.pageYOffset,wrapContent.css({top:-scrollTop})),$("html").css({"max-height":"100%",overflow:""}),$("body").css({"max-height":"100%",overflow:"hidden"})},unlockBody=function(){docEl.css({"max-height":"",overflow:""}),wrapContent.css({top:""}),window.scrollTo(0,scrollTop),window.setTimeout(function(){scrollTop=null},0)};const announcementHeight=$(".js-announcement").height()||0,headerHeight=$(".js-navbar-desktop").height()||0,headerMarginBottom=20;$("head").append('");var keepCart,cartPanel,isMobile=$(".js-navbar-mobile").length;function adjustCartPanel(){var e;window.matchMedia("(max-width: 1199px)").matches||(hHeader=($(".js-navbar-desktop").height()||0)+($(".js-announcement").height()||0),e=$("#cart-panel .cart-chkt-btn-cont").outerHeight(),e=hHeader+e+24,$("#cart-panel .cart-items").css({"max-height":"calc(100vh - "+e+"px)"}))}$(".js-cart-panel").unbind(),$(".sl-cart-toggle").sidr(new SidrOptions({name:"cart-panel",onOpen:function(){$(".js-cart-panel").addClass("is-open"),$mask.css({display:"block"}),angular.element("body").scope().$broadcast("cart.reload"),adjustCartPanel(),isMobile&&lockBody()},onClose:function(){$(".js-cart-panel").removeClass("is-open"),$mask.css({display:"none"}),isMobile&&unlockBody()}})),$mask.appendTo("body").on("click",function(){$.sidr("close","cart-panel"),$mask.css({display:"none"})}),is.touchDevice()||(cartPanel=document.querySelector(".js-cart-panel"),$(document).on("click",".js-btn-add-to-cart, .js-btn-quick-cart-add-to-cart",function(){var e=new MutationObserver(function(){keepCart=setTimeout(function(){$.sidr("close","cart-panel"),$mask.css({display:"none"})},3e3),e.disconnect()});e.observe(cartPanel,{attributes:!0})}),cartPanel.addEventListener("mouseover",function(){clearTimeout(keepCart)})),$(".sl-currency-chooser-currency").on("click",function(){$.sidr("close","CurrencyPanel"),$.sidr("close","MenuPanel"),$(".sl-modal-mask").css({display:"none"})}),$(window).on("resize scroll",_.throttle(setHeaderTop,200)); }); ;