diff --git a/gulpfile.js b/gulpfile.js index 6826f1e3b..e5382875a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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", diff --git a/src/js/ready.js b/src/js/ready.js index 26421f6d7..10c0c5982 100644 --- a/src/js/ready.js +++ b/src/js/ready.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(); });