If you look further down in that function though you will notice it is appending the text "Scheduled downtime in:" followed by a span field with id of down_in_timer seen in codebox 1 below. Also the span field is automatically updated by the script from the code in codebox 2 below.
Code:
function messageSrv()
{
this.cdTimerObj = null;
this.init = function()
{
var url = localurl+"backend/getmessage";
$.ajax(
{
url: url,
method: 'POST',
success: function(data)
{
if(data.advert && data.userid >= data.aduidrange['min'] && data.userid < data.aduidrange['max'])
{
var defaultTimerText = ($('#down_in_timer').length ? $('#down_in_timer').text() : "");
$('#above-game-message').html(data.advert);
if (ms.cdTimerObj != null && typeof(ms.cdTimerObj.stop) != "undefined")
{
this.cdTimerObj.stop();
}
if (typeof(data.down_in) == "undefined" || data.down_in <= 0)
{
setTimeout(ms.init,updateInterval);
return;
}
$('#above-game-message').append('<br />Scheduled downtime in: <span id="down_in_timer">'+defaultTimerText+'</span>');
Code:
var ditFunc = function(data)
{
var count = this.count;
globalQueue.push(function()
{
if ($('#down_in_timer').length)
{
var durText = ((data.duration/1000) <= 10 ? 'Just a few seconds.' : getDuration((data.duration/1000)));
$('#down_in_timer').text(durText);
}
});
};