problem with code in firefox

Hello,
My problem is with this countdown code that I found and it works perfect when I open the page in google chrome but in firefox it does not work. Any solution? this is the code.

Thank you

It also tells me this alert = "missing radix parameter"


CODE:

$w.onReady(function () {
$w(“#countbox”).hide();
var segun;
var La_fecha;
var La_fecha_total;
var segundos;
var dias;
var horas;
var minutos;

$w(“#countbox”).show();

function predica()
{
La_fecha = new Date();
La_fecha_total = new Date (" Dec 9 18:00:00:2018");

segundos = (La_fecha_total - La_fecha) / 1000;

dias = parseInt(segundos / 86400);
segundos = segundos % 86400;

horas = parseInt(segundos / 3600);
segundos = segundos % 3600;

minutos = parseInt(segundos / 60);
segun = parseInt(segundos % 60);

$w(“#counttext3”).text = String(dias);
$w(“#counttext4”).text = String (horas);
$w(“#counttext5”).text = String (minutos);
$w(“#counttext6”).text = String (segun);

}

setInterval(function()
{
predica();
}, 1000);

});

Many Thanks

Hi,
The parseInt should work with Firefox, as you can see from the MDN documentation (Browser compatibility section). I recommend adding Radix to make sure that it works as expected (in your case, I assume that it would be 10, for example:

parseInt(segundos / 60, 10);

Check out the documentation (link mentioned above) to better understand the use of the radix parameter.

Good luck!
Tal.

Thanks for your answer.

I looked the link that you left me and I correct the radix error but this still does not work in firefox

@jesuslapuerta_pl
Can you please send me the site URL?

Thanks

Ok, I understand the problem with code in firefox I will try to resolve, but now firefox critical error ,starts appearing mostly please provide suggestion to fix it.