From e41130210c568ad69c5215bf4e58f088beff36ba Mon Sep 17 00:00:00 2001 From: Vibhu Dujari Date: Thu, 16 May 2024 17:10:31 +0530 Subject: [PATCH] width classes and dynamic penalty times in test info --- .../full-screen-contest-view/template.hbs | 21 +++++++++++++------ app/styles/app.scss | 14 ++++++++++++- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/app/pods/components/full-screen-contest-view/template.hbs b/app/pods/components/full-screen-contest-view/template.hbs index 9fa0eae9..4ef6341b 100644 --- a/app/pods/components/full-screen-contest-view/template.hbs +++ b/app/pods/components/full-screen-contest-view/template.hbs @@ -6,7 +6,7 @@

{{contest.name}}

-
+
Note:
    @@ -20,22 +20,27 @@ {{#if contest.disallowTabSwitch}}
  • - Tab Switching Prohibited You will get a penalty of 10 mins in case you switch tab after 3 faults. + Tab Switching Prohibited You will get a penalty of {{contest.tabSwitchPenalty}} mins in case you switch tab after 3 faults.
  • {{/if}} {{#if contest.disallowWindowResize}}
  • - Window Resizing Prohibited You will get a penalty of 10 mins every 10 secs if your window is not fullscreen. + Window Resizing Prohibited You will get a penalty of {{contest.windowResizePenalty}} mins every 10 secs if your window is not fullscreen. +
  • + {{/if}} + {{#if contest.disallowWindowMove}} +
  • + Window Movement Prohibited You will get a penalty of {{contest.windowMovePenalty}} mins every 10 secs if your window is not fullscreen.
  • {{/if}} {{#if contest.disallowNoFace}}
  • - Face Detection Enabled You will get a penalty of 10 mins every 5 secs if your face is not visible in camera after 3 faults. + Face Detection Enabled You will get a penalty of {{contest.noFacePenalty}} mins every 5 secs if your face is not visible in camera after 3 faults.
  • {{/if}} {{#if contest.disallowMultipleFaces}}
  • - Multiple Face Detection Enabled You will get a penalty of 10 mins every 5 secs if multiple faces are visible in camera after 3 faults. + Multiple Face Detection Enabled You will get a penalty of {{contest.multipleFacesPenalty}} mins every 5 secs if multiple faces are visible in camera after 3 faults.
  • {{/if}}
@@ -77,7 +82,7 @@ {{#if (or attempt.tabSwitchCount attempt.windowResizeCount attempt.noFaceCount attempt.multipleFacesCount)}}
Penalties -
+
{{#if contest.disallowTabSwitch}} Total Tab Switches: {{or attempt.tabSwitchCount 0}} | {{or attempt.tabSwitchTimePenaltyMinutes 0}} mins deducted @@ -87,6 +92,10 @@ Total Window Resizes: {{or attempt.windowResizeCount 0}} | {{or attempt.windowResizeTimePenaltyMinutes 0}} mins deducted {{/if}}
+ {{#if contest.disallowWindowMove}} + Total Window Moves: {{or attempt.windowMoveCount 0}} | {{or attempt.windowMoveTimePenaltyMinutes 0}} mins deducted + {{/if}} +
{{#if contest.disallowNoFace}} Total Face Undetected: {{or attempt.noFaceCount 0}} | {{or attempt.noFaceTimePenaltyMinutes 0}} mins deducted {{/if}} diff --git a/app/styles/app.scss b/app/styles/app.scss index d2125047..1d266b2b 100644 --- a/app/styles/app.scss +++ b/app/styles/app.scss @@ -70,6 +70,18 @@ body{ width: 250%; } +.w-300x { + width: 300%; +} + +.w-350x { + width: 350%; +} + +.l-center { + left: -50%; +} + .top-left { top: 0; left: 0; @@ -96,7 +108,7 @@ body{ } .test-info-popup{ - width: 240px; + width: 500px; } .b-orange-hover:hover {