How can I get the error message on a good way to solve? Error message: timetotal is not defined.
$(document).ready(function() {
if (typeof(timeleft) !== 'undefined') {
Chrono.update();
}
$('a.add_other_answer').click(function() {
addAnswer();
});
});
Chrono = {
warning: timetotal * 0.25,
critical: timetotal * 0.05,
update: function() {
...
...
timetotaldefined?timetotalsomewhere...