
CSS not loading
This website http://srm-pl.ktc-international.hu/ loads fine in IE, Edge and Google Chrome, but it doesn't load on Firefox. Any help?
Saafara biñ tànn
Try changing that last parameter "09" to just "9" (without the quotation marks).
Jàng tontu lii ci fi mu bokk 👍 1All Replies (4)
Just the circle? Firefox's Browser Console (Ctrl+Shift+j) displays these script error messages and I suspect these may be related to the problem:
SyntaxError: "0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead File: theme.js:241:70
ReferenceError: theme is not defined File: srm-pl.ktc-international.hu:1067:9
ReferenceError: theme is not defined File: srm-pl.ktc-international.hu:1075:9
Looking at the code in theme.js, it seems to be constructing a date. If I paste these lines into Firefox's web console and run them, I get a slightly different error message:
var austDay = new Date(); austDay = new Date(austDay.getFullYear() + 0, 11 - 1, 24, 09);
=> SyntaxError: 09 is not a legal ECMA-262 octal constant
The various parameters should correspond to:
new Date(year, month, day, hour);
For hour, Firefox accepts 00, 01, 02, 03, 04, 05, 06, 07 but after that, a leading 0 generates the error. It works better without leading zeros, but as end users, we don't have any way to fix it.
Alright, so what exactly should I change?
In my theme.js, the date is in the following format:
}, // CountDown initCountDown: function () { var austDay = new Date(); austDay = new Date(austDay.getFullYear() + 0, 11 - 1, 24, 09); $('#defaultCountdown').countdown({until: austDay}); $('#year').text(austDay.getFullYear()); },
which is a countodown to November 24, 2016.
So, do I need to try a different date format? What would I put instead?
Saafara yiñ Tànn
Try changing that last parameter "09" to just "9" (without the quotation marks).
jscher2000 said
Try changing that last parameter "09" to just "9" (without the quotation marks).
I simply deleted the "09" and now it works like a charm!! :)