|
| |
<script type="text/javascript"> |
| |
window.ux = window.ux || {}; |
| |
window.ux.gaconfig = window.ux.gaconfig || []; |
| |
window.ux.gaconfig.push({ 'isc': 'goflltk24' }); |
| |
window.ux.gaconfig.push({ 'tcc.status': 'on' }); |
| |
window.ux.gaconfig.push({ 'status': '200' }); |
| |
window.ux.gaconfig.push({ 'dcenter': 'P3' }); |
| |
</script> |
| |
|
| |
|
| |
|
| |
|
| |
<link rel="stylesheet" type="text/css" href="https://tr.godaddy.com/assets/cms/sales/css/sales-cms-8f02ad718563bc4e644d1f11719aca8a.min.css?isc=goflltk24"></link> |
| |
<style> |
| |
.same-size-view {display: block !important;} |
| |
.same-size-height {height: auto !important;} |
| |
.same-size-width {width: auto !important;} |
| |
</style> |
| |
<script type="text/javascript"> |
| |
(function(){ |
| |
var cookies; |
| |
|
| |
function readCookie(name) { |
| |
if (cookies) { |
| |
return cookies[name]; |
| |
} |
| |
|
| |
var cookiesSplit = document.cookie.split('; '); |
| |
cookies = {}; |
| |
|
| |
for (var i = 0, len = cookiesSplit.length - 1; i < len; i++) { |
| |
var keyValue = cookiesSplit[i].split('='); |
| |
cookies[keyValue[0]] = keyValue[1]; |
| |
} |
| |
|
| |
return cookies[name]; |
| |
} |
| |
|
| |
window.cms = window.cms || {}; |
| |
window.cms.readCookie = readCookie; |
| |
})(); |
| |
</script> |
| |
<script type="text/javascript"> |
| |
(function(){ |
| |
var shopperData; |
| |
var idpCookie = window.cms.readCookie('info_idp'); |
| |
|
| |
if (idpCookie && JSON && JSON.parse) { |
| |
try { |
| |
shopperData = JSON.parse(decodeURIComponent(idpCookie)); |
| |
} |
| |
catch (e) { |
| |
shopperData = null; |
| |
} |
| |
} |
| |
|
| |
window.cms = window.cms || {}; |
| |
window.cms.shopperData = shopperData || { info_shopperId: ''}; |
| |
})(); |
| |
</script> |
| |
<script type="text/javascript"> |
| |
(function () { |
| |
var lazyContentLoader = function () { |
| |
var init = function () { |
| |
(function() { |
| |
var windowHeight = window.innerHeight; |
| |
|
| |
window.lazyContent = { |
| |
version: '1.0.0', |
| |
items: [], |
| |
loadThresholdBottom: 200, |
| |
checkInterval: 200, |
| |
status: { |
| |
playing: 'PLAYING' |
| |
} |
| |
}; |
| |
|
| |
var _canLoadItem = function(lazyItem) { |
| |
return lazyItem && lazyItem.offsetParent !== null && lazyItem.getBoundingClientRect().top - windowHeight <= lazyContent.loadThresholdBottom; |
| |
} |
| |
|
| |
var _checkPosition = function (keepInterval) { |
| |
lazyContent.items = []; |
| |
var videos = window.document.getElementsByClassName('autoplay-video-container'), |
| |
videoCount = videos.length; |
| |
|
| |
for (var i = 0; i < videoCount; i++) { |
| |
var item = videos[i]; |
| |
if (item.getAttribute('data-autoplay-status') !== lazyContent.status.playing) { |
| |
lazyContent.items.push(item); |
| |
} |
| |
} |
| |
if (keepInterval.type && keepInterval.type === 'scroll' && lazyContent.checkInterval) { |
| |
clearInterval(lazyContent.checkInterval); |
| |
lazyContent.checkInterval = null; |
| |
} |
| |
|
| |
var count = lazyContent.items.length; |
| |
for (var i = 0; i < count; i++) { |
| |
var lazyItem = lazyContent.items[i]; |
| |
if (_canLoadItem(lazyItem)) { |
| |
var video = lazyItem.querySelector('video'); |
| |
if (video) { |
| |
var srcVids = video.querySelectorAll('source'); |
| |
for (var videoSrcIndex = 0; videoSrcIndex < srcVids.length; videoSrcIndex++) { |
| |
var srcVideo = srcVids[videoSrcIndex]; |
| |
if (srcVideo.hasAttributes('data-lazy-video-src')) { |
| |
srcVideo.setAttribute("src", srcVideo.getAttribute("data-lazy-video-src")); |
| |
} |
| |
} |
| |
|
| |
if (video.readyState === 0) { |
| |
video.load(); |