For example, in problem 0043479 even if I enter now in view mode, I get:
()",speed); } } function StartMoveTimer(intDelay) { if(is_timer_on) { return false; } is_timer_on = 1; window.setTimeout("doTimer()",intDelay); } function StopMoveTimer() { is_timer_on = 0; } function adjustMeter() { totalseconds = document.getElementById('totalseconds').value; seconds_left = 18 - totalseconds; if(seconds_left <= 0) { seconds_left = 0; meter_width_percent = 0; } else { meter_width_percent = 100 - ((totalseconds / 18) * 100); } if(meter_width_percent <= 10) { document.getElementById('cmmeterbar2').style.backgroundColor = '#c00'; } else if(meter_width_percent <= 25) { document.getElementById('cmmeterbar2').style.backgroundColor = '#ff6'; } time_score = Math.round(calculateTimeScore(meter_width_percent) * 100); document.getElementById('meterbarpercent').value = meter_width_percent; document.getElementById('cmmeterbar2').style.width = (document.getElementById('meterbarpercent').value) + '%'; document.getElementById('meterscore').innerHTML = '<'+'span class="cmscore" id="meterseconds">Score: ' + time_score + '%<'+'/'+'span>'; } function calculateTimeScore(time_percent) { fltPercentOfMax = time_percent / 100; if(fltPercentOfMax >= 0.9) { return 1; } else if(fltPercentOfMax >= 0.75) { fltRangeSize = 0.9 - 0.75; fltRangePercent = (fltPercentOfMax - 0.75) / fltRangeSize; fltRangeScore = 1 - 0.9; fltAdditionAmount = fltRangeScore * fltRangePercent; return 0.9 + fltAdditionAmount; } else if(fltPercentOfMax >= 0.5) { fltRangeSize = 0.75 - 0.5; fltRangePercent = (fltPercentOfMax - 0.5) / fltRangeSize; fltRangeScore = 0.9 - 0.8; fltAdditionAmount = fltRangeScore * fltRangePercent; return 0.8 + fltAdditionAmount; } else if(fltPercentOfMax >= 0.25) { fltRangeSize = 0.5 - 0.25; fltRangePercent = (fltPercentOfMax - 0.25) / fltRangeSize; fltRangeScore = 0.8 - 0.6; fltAdditionAmount = fltRangeScore * fltRangePercent; return 0.6 + fltAdditionAmount; } else if(fltPercentOfMax >= 0.1) { fltRangeSize = 0.25 - 0.1; fltRangePercent = (fltPercentOfMax - 0.1) / fltRangeSize; fltRangeScore = 0.6 - 0.4; fltAdditionAmount = fltRangeScore * fltRangePercent; return 0.4 + fltAdditionAmount; } else { fltRangeSize = 0.1; fltRangePercent = fltPercentOfMax / fltRangeSize; fltRangeScore = 0.4; fltAdditionAmount = fltRangeScore * fltRangePercent; return 0.2 + fltAdditionAmount; }
I keep getting from time to time a failure in loading a problem in the tactics trainer, using Google Chrome. I wonder if that happens with that browser only or not.
When this failure happens, a lot of code appears on the top of the chess board, and although I can move the pieces there is no response from the page, no matter what piece I move. Then I must close the window or reload it, and I get a "skipped" in my list of problems, losing all the rating points... and I hate that :)