$(document).keydown(function(event) {
if(event.keyCode == 116) {
event.preventDefault();
event.stopPropagation();
if (navigator.appVersion.indexOf('MSIE') != -1) {
event.keyCode = 0;
event.returnValue = false;
}
return false;
}
return true;
});
$(document).keyup(function(event) {
if(event.keyCode == 116) {
window.location.reload();
}
return true;
});
function redirect(url) {
document.location.href=url;
}
function openWindow(url, width, height) {
leftVal = (screen.width-width)/2;
topVal = (screen.height-height)/2;
newWindow = window.open(url,'TheCrims','width='+width+',height='+height+',left='+leftVal+',top='+topVal+',toolbar=no,directories=no,status=no,menubar=no,copyhistory=no,scrollbars=yes,resizable=yes');
}
function checkForm(value_array, msg)
{
var choosed;
for(var i=0; i
59)
{
minutes = 0;
hours += 1;
}
if(hours > 23)
{
hours = 0;
days += 1;
}
t_days = days;
t_hours = hours;
t_minutes = minutes;
if(minutes < 10)
{
t_minutes = "0"+minutes;
}
if(hours < 10)
{
t_hours = "0"+hours;
}
time = dayText+" "+t_days+" "+t_hours+":"+t_minutes;
obj_gametime = document.getElementById('gametime_id');
obj_gametime.innerHTML = time;
setTimeout("live_gametime("+days+","+hours+","+minutes+",'"+dayText+"',"+multiplier+")", 60000/multiplier);
}
function ToggleCheckAll(trigger) {
d=document;
el=d.getElementsByTagName('INPUT');
for(i=0;i
var container = document.getElementById('nativeroll_video_cont');
if (container) {
var parent = container.parentElement;
if (parent) {
const wrapper = document.createElement('div');
wrapper.classList.add('js-teasers-wrapper');
parent.insertBefore(wrapper, container.nextSibling);
}
}