mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 13:44:29 +08:00
Add power mode to gulp and init when ready
This commit is contained in:
parent
3840504efd
commit
914ae704e3
2 changed files with 4 additions and 1 deletions
|
|
@ -109,6 +109,7 @@ const refactoredSrc = [
|
|||
"./src/js/input-controller.js",
|
||||
"./src/js/route-controller.js",
|
||||
"./src/js/ready.js",
|
||||
"./src/js/power-mode.js",
|
||||
|
||||
"./src/js/account/all-time-stats.js",
|
||||
"./src/js/account/pb-tables.js",
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import * as Settings from "./settings";
|
|||
import * as RouteController from "./route-controller";
|
||||
import * as UI from "./ui";
|
||||
import * as SignOutButton from "./sign-out-button";
|
||||
import * as PowerMode from "./power-mode";
|
||||
|
||||
ManualRestart.set();
|
||||
Misc.migrateFromCookies();
|
||||
|
|
@ -17,7 +18,7 @@ $(document).ready(() => {
|
|||
if (window.location.pathname === "/") {
|
||||
$("#top .config").removeClass("hidden");
|
||||
}
|
||||
$("body").css("transition", ".25s");
|
||||
$("body").css("transition", "all .25s, transform .05s");
|
||||
if (Config.quickTab) {
|
||||
$("#restartTestButton").addClass("hidden");
|
||||
}
|
||||
|
|
@ -56,4 +57,5 @@ $(document).ready(() => {
|
|||
}
|
||||
});
|
||||
Settings.settingsFillPromise.then(Settings.update);
|
||||
PowerMode.init();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue