Javascript in sv_loadingurl not being called?

Hello world!

Here’s the code for my sv_loadingurl

<html>
<head>

	<style type="text/css">
	  Body {
		  background-repeat: no-repeat;
		  background-position: center center;
		  background-size: 100% 100%;
		  background-image: url(tttmotd.jpg);
	  }
	</style>

</head>
<body>


<center>

	<div style='position: absolute; bottom: 15%; right: 0; bottom: 0; left: 0; margin: auto; overflow: hidden;'>

		<img src='loading.gif'>
		<div id='loadingtext' style='margin-top: 10px; color: #FFFFFF; font-family: MS Sans Serif; font-size: 17px;'>Loading stupid stuff...</div>
		<div style='position: absolute; font-family: Arial; MS Sans Serif: 24px; color: #FFFFFF' id='files'>

		</div>
	</div>
	<div id="music"></div>
</center>


<script type="text/javascript">

keywords =
	[
		"Breaking the game",
		"Gagging little kids",
		"Getting rid of RDM'ers",
		"Did I mention I was breaking the game yet?",
		"Breaking the game, AGAIN",
		"Adding some cool swag because yodo",
		"Spraying porn to scare the kids away",
		"Planning a terrorist attack",
		"Crashing the server",
		"Downloading useless stuff that eats your hard drive space",
		"Teaching arrays to our coders",
		"Dancing (I should be fixing this game, shouldn't I be?)",
		"Wasting your time as you read this",
		"Hang on, I think I forgot to fuck up your code... Ah, here you go!"
	];

var bCanChangeStatus = true;

function ChangeText ( )	{
	if ( bCanChangeStatus )
	{
		var keyword = keywords[ Math.floor( Math.random() * keywords.length ) ];
		document.getElementById( "loadingtext" ).innerHTML = keyword;
	}
		
	setTimeout( "ChangeText()", 2500 );
}

ChangeText();

var iFilesNeeded = 0;
var iFilesTotal = 0;
var bDownloadingFile = false;

function SetFilesNeeded( iNeeded )
{
	iFilesNeeded = iNeeded;
	RefreshFileBox();
}
	
function SetFilesTotal( iTotal )
{
	iFilesTotal = iTotal;
	RefreshFileBox();
}

function DownloadingFile( filename )
{
	if ( bDownloadingFile )
	{
		iFilesNeeded = iFilesNeeded - 1;
		RefreshFileBox();
	}
		
	document.getElementById( "loadingtext" ).innerHTML = "Downloading " + filename;
	bCanChangeStatus = false;
	setTimeout( "bCanChangeStatus = true;", 1000 );
		
	bDownloadingFile = true;
		
}
	
function SetStatusChanged( status )
{
	if ( bDownloadingFile )
	{
		iFilesNeeded = iFilesNeeded - 1;
		bDownloadingFile = false;
		RefreshFileBox();
	}
		
	document.getElementById( "loadingtext" ).innerHTML = status;
	bCanChangeStatus = false;
	setTimeout( "bCanChangeStatus = true;", 1000 );
}
	
function RefreshFileBox()
{
	
	document.getElementById( "files" ).innerHTML = "(" + iFilesNeeded + " downloads remaining)";
	
	if ( iFilesTotal > 0 )
		document.getElementById( "files" ).style.visibility = 'visible';
	else
		document.getElementById( "files" ).style.visibility = 'hidden';
}
	
RefreshFileBox();
	
</script>

</body>
</html>

It seems like the functions don’t get called anymore.
Did Garry break something again or was this function removed/changed? (Or perhaps I derped somewhere?)

You can’t use the functions anymore… :confused:

Ah that sucks, why not?