From 2823a54e9ca15e249157e6448bf577b5eb123dc5 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 7 May 2021 15:51:03 +0100 Subject: [PATCH] added custom layoutfluid to the graph water mark --- src/js/test/test-logic.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/js/test/test-logic.js b/src/js/test/test-logic.js index e1ea918cb..02065e9cf 100644 --- a/src/js/test/test-logic.js +++ b/src/js/test/test-logic.js @@ -1706,9 +1706,9 @@ export function finish(difficultyFailed = false) { $("#result .stats .testType .bottom").html(testType); let otherText = ""; - if (Config.layout !== "default") { - otherText += "
" + Config.layout; - } + // if (Config.layout !== "default") { + // otherText += "
" + Config.layout; + // } if (difficultyFailed) { otherText += "
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, }, });