StarHub brings UEFA Euro 2024™ excitement on SPOTV, brought ...
11 Apr 2024
StarHub
As part of StarHub's “Football For All” initiative, fans can now catch more football action live on StarHub TV+. Singapore, 11 April 2024 – StarHub"...
';
html += '';
html += '
';
$(this).html(html);
});
$('.tv-pass-tile').click(function(){
window.location.href = $('.tile-cta').attr('href');
});
$(window).resize(function(){
$('.clearbutt').css('height',(($('.tv-pass-tile').height()/2)-10)+'px');
}).resize();
}
/* Component : Tile Container + Tile */
starlight.lob_hero_card_tiles = function(){
var css = `
.product-tiles h4.paddingTop30{padding-top:5px!important;}
.product-tiles .cards-content.personal-content.paddingTop20{padding-top:0px;}
.product-tiles p.tile-pricing{margin-top:25px;}
.product-tiles div.dotdotdot{height:90px!important;}
.product-tiles .eq-ht-cont.cards{
border-radius: 12px;
}
.product-tiles .cards-img-bg img {
border-top-left-radius:12px;
border-top-right-radius:12px;
}
.tile_v1 .col-lg-6 .cards.material .cards-img-bg{
height:auto !important;
}
.tile_v1 .cards-img-bg.cbgTileImg{
height:auto !important;
}
/*@media screen and (max-width:767px){
.tile_v1 .col-lg-6 .cards.material .cards-img-bg{
height:auto !important;
}
.tile_v1 .cards-img-bg.cbgTileImg{
height:auto !important;
}
}*/
`;
$('head').append('');
}
/* Component : Featured Banner (Half) */
starlight.msa_onpage_banner = function(){
var css = `
.shared_featurebanner_half .feature-half {
background:#250e62;
border-radius:14px;
-webkit-box-shadow: 0 1px 3px 0 rgb(0 0 0 / 20%);
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 20%);
-webkit-transition: all 200ms ease-out;
-moz-transition: all 200ms ease-out;
-ms-transition: all 200ms ease-out;
-o-transition: all 200ms ease-out;
transition: all 200ms ease-out;
}
.shared_featurebanner_half .feature-half .border-lighter-grey{
border-color:transparent;
}
.shared_featurebanner_half .feature-half .top-headline{
text-transform:uppercase;
font-size:14px;
color:#ffffff;
font-weight:bold;
}
.shared_featurebanner_half .feature-half .header3{
color:#ffffff;
}
.shared_featurebanner_half .feature-half .text-content p{
color:#ffffff;
}
.shared_featurebanner_half .feature-half .text-content .msa-links{
margin-right:7px;
}
`;
$('head').append('');
var msa_banner = $('.shared_featurebanner_half').first();
msa_banner.find('.border-lighter-grey.border1').removeClass('border1');
}
/* Component : Plan Banner */
starlight.plan_banner = function(block_seq){
var css = `
.plan-banner-component .cards-img-bg.cbgTileImg {
border-top-right-radius: 12px;
border-top-left-radius: 12px;
}
.plan-banner-component .plan-banner-box-content {
padding: 20px 30px 20px!important;
border-radius: 12px;
}
.plan-banner-component .plan-banner-box a:hover {
color: #fff!important;
border-radius: 12px;
}
.plan-banner-component .plan-banner-box a {
border-radius: 12px;
color:#ffffff;
background-color: #c800a1;
}
.plan-banner-component .plan-banner-box a h4{
color:#ffffff;
}
.plan-banner-component .plan-banner-box a #green-hr-line{
background-color: #fff;
border-color: #fff;
}
.plan-banner-component .plan-banner-box:nth-child(1) a {
background-color: #c800a1!important;
}
.plan-banner-component .plan-banner-box:nth-child(2) a {
background-color: #1cd4b0;
}
.plan-banner-component .plan-banner-box:nth-child(3) a {
background-color: #685bc7;
}
.plan-banner-component .plan-banner-box:nth-child(4) a {
background-color: #1ed760;
}
.plan-banner-component .border1{border:0px!important}
.plan-banner-component .padding-left-bott {padding-left:25px;padding-bottom:25px;}
.plan-banner-component .padding-bott {padding-bottom:25px;}
.plan-banner-box a{
-webkit-box-shadow: 0 1px 3px 0 rgb(0 0 0 / 20%);
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 20%);
-webkit-transition: all 200ms ease-out;
-moz-transition: all 200ms ease-out;
-ms-transition: all 200ms ease-out;
-o-transition: all 200ms ease-out;
transition: all 200ms ease-out;
}
.plan-banner-box a:hover {
box-shadow: 0 5px 5px 0 rgb(0 0 0 / 30%);
}
`;
var firstbanner = $('.plan-banner-component').first();
var firstblock = firstbanner.find('.col-xs-24.col-md-12').first();
var secondblock = firstbanner.find('.col-xs-24.col-md-12').last();
var fb_html = firstblock.html();
var sb_html = secondblock.html();
$('head').append('');
if (block_seq == 'tiles-left'){
firstblock.html(sb_html);
secondblock.html(fb_html);
var thirdblock = ''+fb_html+'
'; firstblock.before(thirdblock); secondblock.addClass('hidden-sm hidden-xs padding-left-bott'); } $('.plan-banner-component h1.bold-font').removeClass('paddingTop40'); } /* Component : Masthead */ starlight.video_banner = function(){ if ($('.desktop-masthead .video-btn.dam-video-btn')){ var css = ` .clear30{ clear:both; height:30px !important; } .vid-banner{ position:relative; width:100%; overflow:hidden; } .vid-banner .vid-content{ width:100%; float:left; position:absolute; bottom:30px; z-index:5; text-align:center; padding: 10px; } .vid-banner .vid-content h1{ color:#ffffff !important; font-weight:bold; font-size:38px; line-height: 42px; } .vid-banner .vid-content .m_desc{ width:100%; float:left; position:relative; z-index:5; text-align:center; padding: 20px 10px; } .vid-banner .vid-content .m_desc p{ color:#ffffff !important; font-weight:bold; font-size:16px; line-height:22px; } .vid-banner .vid-content .m_butt{ width:100%; float:left; position:relative; z-index:5; text-align:center; } .vid-banner .vid-content .m_butt .butt2{ margin-left:8px; } .vid-mask{ position:absolute; top:0px; right:0px; bottom:0px; left:0px; z-index:1; background-image:linear-gradient(180deg, #00000014, #00000045); } .vid-back{ position:relative; float:left; width:100%; min-height:500px; padding:0px; margin:0px; z-index:-1; } /* .vid-back video{ position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } */ .vid-back video{ height: 100%; width: 177.77777778vh; /* 100 * 16 / 9 */ min-width: 100%; min-height: 56.25vw; /* 100 * 9 / 16 */ } .vid-content-ext{ width:100%; float:left; position:relative; text-align:center; padding: 10px; display:none; background:#000000; } .vid-content-ext h1{ color:#ffffff !important; font-weight:bold; font-size:32px; line-height:37px; } .vid-content-ext .m_desc{ width:100%; float:left; position:relative; z-index:5; text-align:center; padding:10px; } .vid-content-ext .m_desc p{ color:#ffffff !important; font-weight:bold; font-size:16px; line-height:22px; } .vid-content-ext .m_butt{ width:100%; float:left; position:relative; z-index:5; text-align:center; margin-bottom: 20px; } .vid-content-ext .m_butt .butt2{ margin-left:8px; } @media screen and (max-width:768px){ .vid-mask{display:none;} .bg-video { display: block !important; } .vid-back{ min-height:350px; } .vid-banner .vid-content{ display:none; } .vid-content-ext{ display:block; } } @media screen and (max-width:605px){ .vid-back video{ height: 100%; width: 100%; min-width: 100%; min-height: 100%; } .vid-content-ext{ margin-top:-10px; } .vid-banner{ margin-top:-10px; } } @media screen and (max-width:580px){ .vid-back video{ margin-top:-10px; } .vid-content-ext{ margin-top:-30px; } } @media screen and (max-width:545px){ .vid-back video{ margin-top:-20px; } .vid-content-ext{ margin-top:-50px; } } @media screen and (max-width:510px){ .vid-back video{ margin-top:-25px; } .vid-content-ext{ margin-top:-60px; } } @media screen and (max-width:495px){ .vid-back video{ margin-top:-30px; } .vid-content-ext{ margin-top:-70px; } } @media screen and (max-width:470px){ .vid-back video{ margin-top:-40px; } .vid-content-ext{ margin-top:-90px; } } @media screen and (max-width:440px){ .vid-back video{ margin-top:-50px; } .vid-content-ext{ margin-top:-110px; } } @media screen and (max-width:400px){ .vid-back video{ margin-top:-60px; } .vid-content-ext{ margin-top:-130px; } } @media screen and (max-width:370px){ .vid-back video{ margin-top:-70px; } .vid-content-ext{ margin-top:-150px; } } @media screen and (max-width:335px){ .vid-back video{ margin-top:-80px; } .vid-content-ext{ margin-top:-170px; } } `; var mp4 = $('.desktop-masthead .video-btn.dam-video-btn') ? $('.desktop-masthead .video-btn.dam-video-btn').attr('data-url') : ''; if (mp4 != ''){ $('head').append(''); var vidtypes = [ {'format' : 'video/mp4','src' : mp4}, {'format' : 'video/ogv','src' : mp4.replace('.mp4','.ogv')}, {'format' : 'video/webm','src' : mp4.replace('.mp4','.webm')}, ]; var vid = document.createElement("video"); vid.setAttribute("class","bg-video"); vid.setAttribute("preload","auto"); vid.setAttribute("playsinline",true); vid.id= "bg-vid"; vid.muted = true; vid.autoplay = true; vid.loop = true; for (var i=0; i 0 ? $('.masthead-main-title h1 pre').html() : ''; var m_desc = $('.blend-extend .mastheadDesc h5') && $('.blend-extend .mastheadDesc h5').length > 0 ? $('.blend-extend .mastheadDesc h5').html() : ''; var m_butt1_link = $('.blend-extend .btn').first() && $('.blend-extend .btn').length > 0 ? $('.blend-extend .btn').first().attr('href') : ''; var m_butt1_label = $('.blend-extend .btn').first() && $('.blend-extend .btn').length > 0 ? $('.blend-extend .btn').first().attr('title') : ''; var m_butt2_link = $('.blend-extend .btn').last() && $('.blend-extend .btn').length > 1 ? $('.blend-extend .btn').last().attr('href') : ''; var m_butt2_label = $('.blend-extend .btn').last() && $('.blend-extend .btn').length > 1 ? $('.blend-extend .btn').last().attr('title') : ''; var butts = ''; if (m_butt1_link && m_butt1_label){ var tgt = ''; if ($('.blend-extend .btn').first().attr('target') == '_blank'){ //tgt = 'target="_blank"'; } butts += ''; } var vid_html = `${m_desc}
${butts}${m_desc}
${butts}${m_desc}
${butts}${m_desc}
${butts}