fixed font size button needing 2 clicks to activate. fixes #56

This commit is contained in:
unknown 2020-05-23 14:32:45 +01:00
parent 5785de4c39
commit bffc418c83
2 changed files with 4 additions and 4 deletions

View file

@ -1113,7 +1113,7 @@ if (window.location.hostname === "localhost") {
$(document).ready(() => {
updateFavicon(32,14);
$('body').css('transition', '.25s');
restartTest();
// restartTest();
if (config.quickTab) {
$("#restartTestButton").addClass('hidden');
}

View file

@ -219,7 +219,7 @@ function changeFontSize(fontSize) {
if (fontSize == null || fontSize == undefined) {
fontSize = 1;
}
$("#words").stop(true, true).animate({ opacity: 0 }, 125, e => {
// $("#words").stop(true, true).animate({ opacity: 0 }, 125, e => {
config.fontSize = fontSize;
$("#words").removeClass('size125');
$("#caret").removeClass('size125');
@ -239,6 +239,6 @@ function changeFontSize(fontSize) {
$("#caret").addClass('size2');
}
saveConfigToCookie();
restartTest();
});
// restartTest();
// });
}