right-t.getBoundingClientRect().right)<=1,document.documentElement.removeChild(e),r):!1})},normalizeLogs:function(){window.log=function(){window.log.history=window.log.history||[],window.log.history.push(arguments),window.isDebugMode&&window.console&&window.console.log(Array.prototype.slice.call(arguments))},window.isDebugMode||t(document).keyup(function(e){var t,n;if(e.keyCode===192||e.keyCode===19)if(window.console){window.log.history=window.log.history||[];for(t=0,n=window.log.history.length;t<n;t++)window.console.log(Array.prototype.slice.call(window.log.history[t]))}window.log.history=[]})},createPubSub:function(){var e=t({});i.on=function(){e.on.apply(e,arguments)},i.off=function(){e.off.apply(e,arguments)},i.trigger=function(){e.trigger.apply(e,arguments)}},createGlobalEvents:function(){var e={},r="onorientationchange"in window?"orientationchange resize":"resize";e.IEResizeCheck=function(e){if(!n.isLTIE9)return e();var t=n.$window.width(),r=n.$window.height();if(t!==n.windowWidth||r!==n.windowHeight)n.windowWidth=t,n.windowHeight=r,e()},e.throttledResize=t.throttle(500,function(){i.trigger("global:resizeThrottled")}),e.debouncedResize=t.debounce(500,function(){i.trigger("global:resizeDebounced")}),e.throttledResize200=t.throttle(200,function(){i.trigger("global:resizeThrottled-200ms")}),e.debouncedResize200=t.debounce(200,function(){i.trigger("global:resizeDebounced-200ms")}),e.debouncedResizeAtBegin200=t.debounce(200,!0,function(){i.trigger("global:resizeDebouncedAtBegin-200ms")}),e.baseThrottle=t.throttle(100,function(){e.IEResizeCheck(function(){e.throttledResize(),e.debouncedResize(),e.throttledResize200(),e.debouncedResize200(),e.debouncedResizeAtBegin200()})}),n.$window.on(r,function(){e.baseThrottle()})},fixModernizrFalsePositives:function(){n.isLTIE10&&(Modernizr.mq=function(){return!1},Modernizr.mediaqueries=!1),n.isSonyTabletP&&(Modernizr.boxshadow=!1,n.$html.removeClass("boxshadow").addClass("no-boxshadow")),!Modernizr.generatedcontent&&n.isSonyTabletS&&(Modernizr.generatedcontent=!0,n.$html.removeClass("no-generatedcontent").addClass("generatedcontent")),Modernizr.generatedcontent&&n.isLTIE8&&(Modernizr.generatedcontent=!1,n.$html.removeClass("generatedcontent").addClass("no-generatedcontent"))},addDeviceClasses:function(){n.isSonyTabletS&&n.$html.addClass("sonytablets"),n.isSonyTabletP&&n.$html.addClass("sonytabletp"),n.isPS3&&n.$html.addClass("ps3"),n.isVita&&n.$html.addClass("vita")}};return i.init(),i}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length>>>0,n=Number(arguments[1])||0;n=n<0?Math.ceil(n):Math.floor(n),n<0&&(n+=t);for(;n<t;n++)if(n in this&&this[n]===e)return n;return-1}),Array.prototype.filter||(Array.prototype.filter=function(e,t,n,r,i){n=this,r=[];for(i in n)~~i+""==i&&i>=0&&e.call(t,n[i],+i,n)&&r.push(n[i]);return r}),define("require/sony-global",["require","jquery","enquire","require/sony-global-router","require/sony-global-settings","require/sony-global-environment"],function(e){var t=e("jquery"),n=e("enquire"),r=e("require/sony-global-router"),i=e("require/sony-global-settings"),s=e("require/sony-global-environment"),o={init:function(e){!i.$html.hasClass("lt-ie10"),r.init(),s.trigger("global:ready"),log("SONY : Global : Initialized")}};return o.init(),o}),define("require/sony-global-utilities",["require","jquery","iQ","modernizr","require/sony-global-settings"],function(e){var t=e("jquery"),n=e("iQ"),r=e("modernizr"),i=e("require/sony-global-settings"),s={forceWebkitRedraw:function(){var e=document.createElement("style");document.body.appendChild(e),document.body.removeChild(e)},forceFontIconRedraw:function(e){var t='[class*="fonticon-"]:before',n='[class*="fonticon-"]:after{content:none !important}',r=",";e&&(t=e+" "+t,n=e+" "+n),i.isLTIE9&&!i.isLTIE8&&(s.iconRedrawID&&clearTimeout(s.iconRedrawID),s.iconRedrawID=setTimeout(function(){var i=document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",s.styleSheet.cssText=t+r+n,i.appendChild(s),setTimeout(function(){i.removeChild(s)},0)},100))},pxToEm:function(e,t){return t=typeof t!="undefined"?t:16,e/t+"em"},enquire:{min:function(e,t){return t=typeof t!="undefined"?t:16,"(min-width: "+s.pxToEm(e,t)+")"},max:function(e,t){return t=typeof t!="undefined"?t:16,"(max-width: "+s.pxToEm(e,t)+")"},minMax:function(e,t,n){return n=typeof n!="undefined"?n:16,"(min-width: "+s.pxToEm(e,n)+") and (max-width: "+s.pxToEm(t,n)+")"}},masonryColumns:function(e){var t=e;if(!r||!i)return;if(!r.mediaqueries||r.mq("(min-width: 35.5em)"))t=i.COLUMN_WIDTH_SLIM*e;return t},masonryGutters:function(e){var t=0;if(!r||!i)return;if(!r.mediaqueries||r.mq("(min-width: 35.5em)"))t=i.GUTTER_WIDTH_SLIM*e;return t},constrain:function(e,t,n){return e=parseFloat(e),e<t?t:e>n?n:e},scrollToTop:function(){t("html,body").animate({scrollTop:0},400,"swing")},swapElements:function(e,t){var n=e.get(0),r=t.get(0),i,s,o,u;if(!n||!r)return;i=n.parentNode,s=n.nextSibling,o=r.parentNode,u=r.nextSibling,i.insertBefore(r,s),o.insertBefore(n,u)},getElementCenter:function(e){var t=e.getBoundingClientRect().right-e.getBoundingClientRect().left,n=e.getBoundingClientRect().bottom-e.getBoundingClientRect().top;return{x:e.getBoundingClientRect().left+t/2,y:e.getBoundingClientRect().top+n/2}},closestInArray:function(e,t,n){var r=0,i;for(var s=0;s<e.length;s++){if(n===">"&&e[s]<t)continue;if(n==="<"&&e[s]>t)continue;var o=Math.abs(e[s]-t);if(typeof i=="undefined"||o<i)i=o,r=e[s]}return r},once:function(e){var t=!1,n;return function(){return t?n:(t=!0,n=e.apply(this,arguments),e=null,n)}},autoSelectInputOnFocus:function(e){e.on("focus",function(){var e=this;setTimeout(function(){e.select()},0)}),e=null},reassignSpanWidths:function(e,n){var r=n;e.each(function(){var e=t(this),i=this.className.split(" "),s,o;o=i.filter(function(e){return e.indexOf("span")===0}).shift().split("span").pop()*1,n==="reset"&&(s=i.filter(function(e){return e.indexOf("default-span")===0}).shift().split("default-span").pop()*1,r=s),e.removeClass("span"+o),e.addClass("span"+r)})},gridApportion:function(e){var n=e.$groups,r="span",i=n.first().clone(),s=[],o=i.empty().
Back to home |
File page
Subscribe |
Register |
Login
| N