mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 08:16:20 +08:00
defaulting to false
also affecting stop function based on the parameter to smooth the loading bar a bit
This commit is contained in:
parent
9f8adbbb25
commit
4ad36d2527
|
@ -1,10 +1,10 @@
|
|||
import * as Misc from "../utils/misc";
|
||||
import Page from "./page";
|
||||
|
||||
export function updateBar(percentage: number, fast?: boolean): void {
|
||||
export function updateBar(percentage: number, fast = false): void {
|
||||
const speed = fast ? 100 : 1000;
|
||||
$(".pageLoading .fill, .pageAccount .fill")
|
||||
.stop(true, true)
|
||||
.stop(true, fast)
|
||||
.animate(
|
||||
{
|
||||
width: percentage + "%",
|
||||
|
|
Loading…
Reference in a new issue