mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-09 15:15:58 +08:00
added custom layoutfluid to the graph water mark
This commit is contained in:
parent
f0aebbbb33
commit
2823a54e9c
1 changed files with 8 additions and 4 deletions
|
@ -1706,9 +1706,9 @@ export function finish(difficultyFailed = false) {
|
|||
$("#result .stats .testType .bottom").html(testType);
|
||||
|
||||
let otherText = "";
|
||||
if (Config.layout !== "default") {
|
||||
otherText += "<br>" + Config.layout;
|
||||
}
|
||||
// if (Config.layout !== "default") {
|
||||
// otherText += "<br>" + Config.layout;
|
||||
// }
|
||||
if (difficultyFailed) {
|
||||
otherText += "<br>failed";
|
||||
}
|
||||
|
@ -1750,6 +1750,10 @@ export function finish(difficultyFailed = false) {
|
|||
}
|
||||
|
||||
if (Funbox.funboxSaved !== "none") {
|
||||
let content = Funbox.funboxSaved;
|
||||
if (Funbox.funboxSaved === "layoutfluid") {
|
||||
content += " " + Config.customLayoutfluid.replace(/#/g, " ");
|
||||
}
|
||||
ChartController.result.options.annotation.annotations.push({
|
||||
enabled: false,
|
||||
type: "line",
|
||||
|
@ -1770,7 +1774,7 @@ export function finish(difficultyFailed = false) {
|
|||
cornerRadius: 3,
|
||||
position: "left",
|
||||
enabled: true,
|
||||
content: `${Funbox.funboxSaved}`,
|
||||
content: `${content}`,
|
||||
yAdjust: -11,
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue