Miles1999 commited on
Commit
0795d97
·
verified ·
1 Parent(s): e1bdf1b

Update evaluation/eval_interfaces/graph_eval_interface.html

Browse files
evaluation/eval_interfaces/graph_eval_interface.html CHANGED
@@ -93,6 +93,7 @@ button:hover{opacity:.9}
93
 
94
  <!-- MAIN CONTROLS (now vertical on the right) -->
95
  <div class="controls" style="display:none">
 
96
  <button id="full_screen" >Enter Full Screen</button>
97
  <p>Is the final answer correct or incorrect?</p>
98
  <button id="btn-correct">Correct</button>
@@ -122,6 +123,7 @@ button:hover{opacity:.9}
122
 
123
  document.addEventListener("DOMContentLoaded", () => {
124
  const btn = document.getElementById('full_screen');
 
125
  function isFullscreen() {
126
  return document.fullscreenElement ||
127
  document.webkitFullscreenElement ||
@@ -131,7 +133,7 @@ document.addEventListener("DOMContentLoaded", () => {
131
  // Show button only if NOT in fullscreen at start
132
  if (!isFullscreen()) {
133
  btn.style.visibility = 'visible';
134
- btn.innerText = "Enter Full Screen";
135
  }
136
  btn.addEventListener('click', () => {
137
  if (!isFullscreen()) {
@@ -144,9 +146,10 @@ document.addEventListener("DOMContentLoaded", () => {
144
  function toggleButton() {
145
  if (isFullscreen()) {
146
  btn.style.visibility = 'hidden'; // Hide in fullscreen
 
147
  } else {
148
  btn.style.visibility = 'visible'; // Show when not fullscreen
149
- btn.innerText = "Enter Full Screen";
150
  }
151
  }
152
  document.addEventListener('fullscreenchange', toggleButton);
 
93
 
94
  <!-- MAIN CONTROLS (now vertical on the right) -->
95
  <div class="controls" style="display:none">
96
+ <p id= "instruction"> you <strong>MUST</strong> do the experiment in full screen mode by clicking the button below 👇 </p>
97
  <button id="full_screen" >Enter Full Screen</button>
98
  <p>Is the final answer correct or incorrect?</p>
99
  <button id="btn-correct">Correct</button>
 
123
 
124
  document.addEventListener("DOMContentLoaded", () => {
125
  const btn = document.getElementById('full_screen');
126
+ const span = document.getElementById('instruction');
127
  function isFullscreen() {
128
  return document.fullscreenElement ||
129
  document.webkitFullscreenElement ||
 
133
  // Show button only if NOT in fullscreen at start
134
  if (!isFullscreen()) {
135
  btn.style.visibility = 'visible';
136
+ span.style.visibility = "visible";
137
  }
138
  btn.addEventListener('click', () => {
139
  if (!isFullscreen()) {
 
146
  function toggleButton() {
147
  if (isFullscreen()) {
148
  btn.style.visibility = 'hidden'; // Hide in fullscreen
149
+ span.style.visibility = "hidden";
150
  } else {
151
  btn.style.visibility = 'visible'; // Show when not fullscreen
152
+ span.style.visibility = "visible";
153
  }
154
  }
155
  document.addEventListener('fullscreenchange', toggleButton);