mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 07:46:15 +08:00
fixed font size button needing 2 clicks to activate. fixes #56
This commit is contained in:
parent
5785de4c39
commit
bffc418c83
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
// });
|
||||
}
|
Loading…
Reference in a new issue