‘ );
$( “.audio-player .mejs-playpause-button” ).after( ” );
$( “.mejs-seek-back” ).on( “click”, function() {
var audio = $( this ).parents(‘.mejs-inner’).find(‘audio’)[0];
audio.currentTime -= 30;
} );
$( “.mejs-seek-forward” ).on( “click”, function() {
var audio = $( this ).parents(‘.mejs-inner’).find(‘audio’)[0];
audio.currentTime += 30;
} );
$(‘.share-button’).on( “click”, function() {
if ( navigator.share && ( SN.isMobile || /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) ) {
navigator.share({
title: ‘Sportsnet’,
url: ”
});
} else {
$( this ).siblings(‘.share-dialog’).toggleClass( “is-open” );
}
});
}
function loadMisclFncs() {
$( “.daac-close” ).on( “click”, function() {
var now = new Date();
var year = now.getFullYear();
var expireYear = year + 3;
now.setYear(expireYear);
document.cookie = ‘rdm_daac=1; expires=’+ now.toGMTString()+ “; path=/; SameSite=Strict”;
$(‘.rdm-daac-notice-template’).hide();
});
if ( document.cookie.indexOf(‘rdm_daac’) === -1 ) {
$(‘.rdm-daac-notice-template’).show();
}
}
setTimeout(loadRadioShortcodes, 1000);
setTimeout(loadRadioButtons, 4000);
setTimeout(loadMisclFncs, 5000);
if(!personalization_modal_data||typeof personalization_modal_data == ‘undefined’) {
var personalization_modal_data = {};
personalization_modal_data.api_url = ‘https://staging-preferences.sportsnet.ca’;
}