iurbinah commited on
Commit
8d72de3
·
1 Parent(s): e2c12e7

Remove iframe (blocked by oTree headers), add quick-start instructions card

Browse files
Files changed (1) hide show
  1. templates/pages/session.html +25 -25
templates/pages/session.html CHANGED
@@ -40,20 +40,18 @@
40
  }
41
  .url-bar .btn { white-space: nowrap; }
42
 
43
- .iframe-wrap {
44
- margin-top: 1.5rem;
45
- border: 1px solid var(--border);
46
- border-radius: 12px;
47
- overflow: hidden;
48
- background: #fff;
49
- }
50
- .iframe-wrap iframe {
51
- width: 100%;
52
- height: calc(100vh - 260px);
53
- min-height: 500px;
54
- border: none;
55
- display: block;
56
  }
 
 
 
57
  .status-dot {
58
  display: inline-block;
59
  width: 8px; height: 8px;
@@ -73,8 +71,8 @@
73
  <span class="status-dot"></span> oTree Room Link
74
  </h2>
75
  <p style="color:var(--text-dim); font-size:.84rem;">
76
- Click <strong>Open</strong> to join in a new tab, or use the embedded
77
- view below.
78
  </p>
79
  <div class="url-bar">
80
  <code id="otree-url">{{ otree_url }}</code>
@@ -82,17 +80,19 @@
82
  <a class="btn btn-primary" href="{{ otree_url }}" target="_blank" rel="noopener">Open</a>
83
  </div>
84
  </div>
85
- </div>
86
 
87
- <!-- Embedded oTree view -->
88
- <div class="iframe-wrap">
89
- <iframe
90
- id="otree-frame"
91
- src="{{ otree_url }}"
92
- loading="lazy"
93
- sandbox="allow-same-origin allow-scripts allow-forms allow-popups"
94
- title="oTree session"
95
- ></iframe>
 
 
 
96
  </div>
97
  {% endblock %}
98
 
 
40
  }
41
  .url-bar .btn { white-space: nowrap; }
42
 
43
+ .info-card {
44
+ margin-top: .25rem;
45
+ display: flex;
46
+ align-items: flex-start;
47
+ gap: 1rem;
48
+ color: var(--text-dim);
49
+ font-size: .85rem;
50
+ line-height: 1.5;
 
 
 
 
 
51
  }
52
+ .info-card .icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
53
+ .info-card ol { padding-left: 1.1rem; }
54
+ .info-card li { margin-bottom: .3rem; }
55
  .status-dot {
56
  display: inline-block;
57
  width: 8px; height: 8px;
 
71
  <span class="status-dot"></span> oTree Room Link
72
  </h2>
73
  <p style="color:var(--text-dim); font-size:.84rem;">
74
+ Click <strong>Open</strong> to join the experiment in a new tab, or
75
+ copy the link to paste into a browser.
76
  </p>
77
  <div class="url-bar">
78
  <code id="otree-url">{{ otree_url }}</code>
 
80
  <a class="btn btn-primary" href="{{ otree_url }}" target="_blank" rel="noopener">Open</a>
81
  </div>
82
  </div>
 
83
 
84
+ <!-- Quick-start instructions -->
85
+ <div class="card session-link-card">
86
+ <h2 style="font-size:1rem; margin-bottom:.5rem;">Quick Start</h2>
87
+ <div class="info-card">
88
+ <span class="icon">📋</span>
89
+ <ol>
90
+ <li>Click <strong>Open</strong> above — the oTree waiting room opens in a new tab.</li>
91
+ <li>The participant is automatically assigned when the session admin starts the experiment.</li>
92
+ <li>Repeat on each lab machine that needs to join.</li>
93
+ </ol>
94
+ </div>
95
+ </div>
96
  </div>
97
  {% endblock %}
98