|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
| 4 | + <script type="module"> |
| 5 | + import EmbeddedPageSdk from "https://app.realeye.io/sdk/js/testRunnerEmbeddableSdk-1.7.1.js"; |
| 6 | + |
| 7 | + /** |
| 8 | + * NOTICE: The SDK MUST be created when the UI is fully loaded and ready. |
| 9 | + * So, if you are using (modern) frontend framework please use its proper event to create the SDK when everything is ready and fully rendered, instead of the vanilla JS "DOMContentLoaded" event. |
| 10 | + */ |
| 11 | + window.addEventListener("DOMContentLoaded", () => { |
| 12 | + const debugMode = true; |
| 13 | + const stimulusId = null; // Or Stimulus/Item UUID from RealEye Study, e.g. "61560b76-3d31-4f0e-b530-55bd8709aadb" |
| 14 | + const forceRun = false; |
| 15 | + |
| 16 | + const reSdk = new EmbeddedPageSdk(debugMode, stimulusId, forceRun); |
| 17 | + }); |
| 18 | + </script> |
4 | 19 | <meta charset="UTF-8" /> |
5 | 20 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
6 | 21 | <title>Task Application</title> |
|
53 | 68 | justify-content: center; |
54 | 69 | } |
55 | 70 | </style> |
56 | | - <script type="module"> |
57 | | - import EmbeddedPageSdk from "https://app.realeye.io/sdk/js/testRunnerEmbeddableSdk-1.7.1.js"; |
58 | | - |
59 | | - /** |
60 | | - * NOTICE: The SDK MUST be created when the UI is fully loaded and ready. |
61 | | - * So, if you are using (modern) frontend framework please use its proper event to create the SDK when everything is ready and fully rendered, instead of the vanilla JS "DOMContentLoaded" event. |
62 | | - */ |
63 | | - window.addEventListener("DOMContentLoaded", () => { |
64 | | - const debugMode = false; |
65 | | - const stimulusId = null; // Or Stimulus/Item UUID from RealEye Study, e.g. "61560b76-3d31-4f0e-b530-55bd8709aadb" |
66 | | - const forceRun = false; |
67 | | - |
68 | | - const reSdk = new EmbeddedPageSdk(debugMode, stimulusId, forceRun); |
69 | | - }); |
70 | | - </script> |
71 | 71 | </head> |
72 | 72 | <body> |
73 | 73 | <div id="app"> |
74 | | - <div class="iframe-container"> |
75 | | - <iframe id="taskFrame" src="" class="hidden" scrolling="no"></iframe> |
| 74 | + <div data-re-aoi-name="IFramePleaseSeeMe2" class="iframe-container"> |
| 75 | + <iframe data-re-aoi-name="IFramePleaseSeeMe" id="taskFrame" src="" class="hidden" scrolling="no"></iframe> |
76 | 76 | </div> |
77 | 77 | <div class="button-container"> |
78 | 78 | <button id="nextTaskButton" class="button hidden">Next Task</button> |
79 | 79 | </div> |
80 | 80 | </div> |
| 81 | + |
81 | 82 | <script> |
82 | 83 | let currentTask = 0; |
83 | 84 |
|
|
0 commit comments