isCarouselMode&&e.$elements.css("width",""),e.destroyed=!0,e.scroller.destroy(),e.$win.off(e.unique),e.$el.removeData("scrollerModule")},disable:function(){this.enabled=!1,this.scroller.disable()},enable:function(){this.enabled=!0,this.scroller.enable()}},t.fn.scrollerModule=function(e){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var r=t(this),i=r.data("scrollerModule");i||(i=new s(r,e),r.data("scrollerModule",i)),typeof e=="string"&&e.charAt(0)!=="_"&&i[e].apply(i,n)})},t.fn.scrollerModule.defaults={mode:"free",contentSelector:undefined,itemElementSelector:undefined,lastPageCenter:!1,extraSpacing:0,extraMarging:0,nextSelector:"",prevSelector:"",fitPerPage:null,centerItems:!0,generatePagination:undefined,generateNav:undefined,appendBulletsTo:null,appendNavOutside:!0,addPaddleTrigger:!0,autoGutters:!0,gutterWidth:0,threshhold:5,iscrollProps:{snap:!1,hScroll:!0,vScroll:!1,hScrollbar:!1,vScrollbar:!1,momentum:!0,bounce:!0,onScrollEnd:null,lockDirection:!0,onBeforeScrollStart:null,onAnimationEnd:null}},t.fn.scrollerModule.settings={enabled:!0,throttleTime:350,paginationClass:"pagination-bullet",paddleTrigger:"paddle-trigger",resizeEvent:"onorientationchange"in window?"orientationchange":"resize",navTemplate:'<nav class="nav-paddles"><a href="#" class="nav-paddle nav-paddle-prev no-hover-transition"><i class="fonticon-10-chevron-reverse"></i></a><a href="#" class="nav-paddle nav-paddle-next no-hover-transition"><i class="fonticon-10-chevron"></i></a></nav>'}}),define("secondary/sony-stickyheaders",["require","jquery","require/sony-global-settings","require/sony-global-utilities","require/sony-global-environment","plugins/sony-iscroll"],function(e){var t=e("jquery"),n=e("require/sony-global-settings"),r=e("require/sony-global-utilities"),i=e("require/sony-global-environment"),s=e("plugins/sony-iscroll"),o=function(e){this.init(e)};return o.prototype={init:function(e){var n=navigator.userAgent.toLowerCase();this.isAndroid=n.indexOf("android")>1;if(this.isAndroid){this.loaded=!1;return}return this.scrollableId=e,this.$headers=t(".js-sticky-headers"),this.$scrollable=t("#"+this.scrollableId),this.$fixedHeader=t(".js-sticky-fixed-header").hide(),this.$fixedHeaderTitle=this.$fixedHeader.find(".js-sticky-header-title"),this.offsets=[],this.currentHeader=undefined,this.headerIsVisible=!1,i.on("SONY:Footer:mobileFooterSecCollapsed",t.proxy(this.refresh,this)),this.loaded=!0,this._getHeaderOffsets()},_getHeaderOffsets:function(){var e=[];return this.$headers.each(function(n,r){var i=t(r);e.push(i.offset().top)}),this.offsets=e,this.lastScrollOffset=0,this},enable:function(){this.$scrollable.css("position","absolute");var e=t.proxy(this.scrollHandler,this);return setTimeout(t.proxy(function(){this.scroll=new IScroll(this.scrollableId,{momentum:!0,hScroll:!1,hScrollbar:!1,onScrollMove:e,onScrollEnd:e}),this.scroll.scrollTo()},this),10),this},disable:function(){return this.$fixedHeader.hide(),this.scroll&&(this.scroll.scrollTo(),this.scroll.destroy()),this.$scrollable.css("position","relative"),this},refresh:function(){this.scroll&&this.scroll.refresh()},scrollHandler:function(){var e=this,t=Math.abs(this.scroll.y);this.updateFixedHeader(t)},updateFixedHeader:function(e){var n,r=t("#nav-wrapper"),i=this._indexOfClosestHeader(e);i!==this.currentHeader&&(this.currentHeader=i,n=t(this.$headers[i]),this.$fixedHeaderTitle.text(n.text()),this.headerIsVisible||(this.$fixedHeader.stop().show(),this.headerIsVisible=!0,r.css("opacity",0))),i===-1&&this.headerIsVisible&&(this.$fixedHeader.stop().hide(),this.headerIsVisible=!1,r.css("opacity",1))},_indexOfClosestHeader:function(e){var t=-1,n=0,r=this.$headers.length,i,s;for(;n<r;n+=1)i=this.offsets[n]-e,i<0&&(i>s||!s)&&(s=i,t=n);return t}},o}),define("secondary/sony-stickynav",["require","jquery","bootstrap","modernizr","require/sony-global-settings","require/sony-global-utilities","require/sony-global-environment"],function(e){var t=e("jquery"),n=e("bootstrap"),r=e("modernizr"),i=e("require/sony-global-settings"),s=e("require/sony-global-utilities"),o=e("require/sony-global-environment"),u=function(e,n){var r=this;t.extend(r,t.fn.stickyNav.defaults,n,t.fn.stickyNav.settings),r.$el=e,r.$window=i.$window,r._init()};u.prototype={constructor:u,_init:function(){var e=this,t=i.$body;e.hasJumpLinks=e.$jumpLinks&&e.$jumpLinks.length>0,e.refreshTriggerPoint(),e._subscribeToEvents(),e.hasJumpLinks&&e._initJumpLinks(),setTimeout(function(){e.refreshOffset(),e.hasJumpLinks&&t.scrollspy({target:".sticky-nav",offset:e.targetOffset}),e._onScroll()},100)},_hashTarget:function(){var e=this,n=window.location.hash,r=this.$jumpLinks.map(function(){return this.hash}).get();0>t.inArray(n,r)&&t(".sticky-nav").hasClass("open")&&t("body").animate({scrollTop:"-=80px"},10),e._hashTarget=function(){return!1}},_subscribeToEvents:function(){var e=this,n=t.debounce(100,t.proxy(e.refreshWithTimeout,e)),r=t.proxy(e._closeStickyNav,e);e.$window.on("scroll.stickynav",t.proxy(e._onScroll,e)),o.on("global:resizeDebounced.stickynav",t.proxy(e._onResize,e)),i.$document.on("universal-nav-open-finished universal-nav-close-finished",n),i.$document.on("universal-nav-open universal-nav-close",r),t(".iq-img").on("imageLoaded.stickynav",n),e.scrollToTopOnClick&&e.$el.on(i.END_EV,function(e){var t=e.target.nodeName;if(t==="A"||t==="BUTTON")return;s.scrollToTop()})},_unsubscribeFromEvents:function(){var e=this;e.$window.off(".stickynav"),o.off(".stickynav"),i.$document.off("universal-nav-open-finished universal-nav-close-finished"),i.$document.off("universal-nav-open universal-nav-close"),t(".iq-img").off(".stickynav"),e.scrollToTopOnClick&&e.$el.off(i.END_EV)},_initJumpLinks:function(){var e=this;e.$jumpLinks.simplescroll({showHash:!0,speed:400,followthrough:!0,followthroughSelector:".iq-img",followthroughEventName:"imageLoaded",offset:function(){return e.targetOffset}})},_onScroll:function(){var e=this;if(!e.enabled)return;e.lastScrollY=e.$window.scrollTop(),e.requestID&&cancelAnimationFrame(e.requestID),e.requestID=requestAnimationFrame(function(){e._updateStickyNav(),e._hashTarget()})},_updateStickyNav:function(){var e=this,t=e.
Back to home |
File page
Subscribe |
Register |
Login
| N