added custom layoutfluid to the graph water mark

This commit is contained in:
Jack 2021-05-07 15:51:03 +01:00
parent f0aebbbb33
commit 2823a54e9c

View file

@ -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,
},
});