Upload patient.html
Browse files- templates/patient.html +54 -3
templates/patient.html
CHANGED
|
@@ -148,15 +148,66 @@
|
|
| 148 |
<span id="heard-text"></span>
|
| 149 |
</div>
|
| 150 |
</div>
|
| 151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
<button type="button" class="btn btn-secondary" id="check-response-btn">
|
| 153 |
<span class="btn-spinner spinner" style="display: none;"></span>
|
| 154 |
-
<span class="btn-label">Check
|
| 155 |
</button>
|
| 156 |
</div>
|
| 157 |
|
| 158 |
<div class="card" id="response-card" style="display: none;">
|
| 159 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
</div>
|
| 161 |
|
| 162 |
<button type="button" class="btn btn-secondary" id="new-conversation-btn">Start a new conversation</button>
|
|
|
|
| 148 |
<span id="heard-text"></span>
|
| 149 |
</div>
|
| 150 |
</div>
|
| 151 |
+
</div>
|
| 152 |
+
|
| 153 |
+
<!-- Waiting state: honest 3-step status (we only actually know two things
|
| 154 |
+
from the backend: submitted, and answered-or-not, so the middle step
|
| 155 |
+
is the only one that's ever "current"), plus a manual refresh and a
|
| 156 |
+
general, clearly-non-personalized safety note. Hidden entirely once
|
| 157 |
+
a reply arrives, since the chat bubble above becomes the record of
|
| 158 |
+
that. -->
|
| 159 |
+
<div class="card" id="waiting-card">
|
| 160 |
+
<div class="status-timeline">
|
| 161 |
+
<div class="timeline-step done">
|
| 162 |
+
<span class="timeline-dot"></span>
|
| 163 |
+
<span class="timeline-label">Submitted</span>
|
| 164 |
+
</div>
|
| 165 |
+
<div class="timeline-connector"></div>
|
| 166 |
+
<div class="timeline-step current">
|
| 167 |
+
<span class="timeline-dot"></span>
|
| 168 |
+
<span class="timeline-label">Waiting for provider</span>
|
| 169 |
+
</div>
|
| 170 |
+
<div class="timeline-connector"></div>
|
| 171 |
+
<div class="timeline-step">
|
| 172 |
+
<span class="timeline-dot"></span>
|
| 173 |
+
<span class="timeline-label">Response ready</span>
|
| 174 |
+
</div>
|
| 175 |
+
</div>
|
| 176 |
+
|
| 177 |
+
<p class="helper-text">We check automatically every little while, no need to keep this open.</p>
|
| 178 |
+
|
| 179 |
+
<div class="waiting-note">
|
| 180 |
+
<strong>While you wait:</strong> if your symptoms feel severe or are getting worse
|
| 181 |
+
quickly, please go to the nearest clinic instead of waiting for a reply here.
|
| 182 |
+
This is general safety guidance, not advice about your specific message.
|
| 183 |
+
</div>
|
| 184 |
+
|
| 185 |
<button type="button" class="btn btn-secondary" id="check-response-btn">
|
| 186 |
<span class="btn-spinner spinner" style="display: none;"></span>
|
| 187 |
+
<span class="btn-label">Check now</span>
|
| 188 |
</button>
|
| 189 |
</div>
|
| 190 |
|
| 191 |
<div class="card" id="response-card" style="display: none;">
|
| 192 |
+
<h3>Provider's reply</h3>
|
| 193 |
+
<div class="audio-player">
|
| 194 |
+
<audio id="response-audio" preload="metadata"></audio>
|
| 195 |
+
<div class="audio-player-controls">
|
| 196 |
+
<button type="button" class="audio-btn" id="audio-play-btn" aria-label="Play">
|
| 197 |
+
<svg class="icon-play" viewBox="0 0 24 24" fill="currentColor"><polygon points="6 3 20 12 6 21 6 3"/></svg>
|
| 198 |
+
<svg class="icon-pause" viewBox="0 0 24 24" fill="currentColor" style="display: none;"><rect x="5" y="3" width="5" height="18" rx="1"/><rect x="14" y="3" width="5" height="18" rx="1"/></svg>
|
| 199 |
+
</button>
|
| 200 |
+
<button type="button" class="audio-btn audio-btn-sm" id="audio-replay-btn" aria-label="Replay from start">
|
| 201 |
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/></svg>
|
| 202 |
+
</button>
|
| 203 |
+
<span class="audio-time" id="audio-current-time">0:00</span>
|
| 204 |
+
<input type="range" class="audio-seek" id="audio-seek" min="0" max="0" value="0" step="0.1" aria-label="Seek audio position">
|
| 205 |
+
<span class="audio-time" id="audio-duration">0:00</span>
|
| 206 |
+
<a class="audio-btn audio-btn-sm" id="audio-download-btn" download="talktodoc-reply.wav" aria-label="Download audio reply" href="#">
|
| 207 |
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
|
| 208 |
+
</a>
|
| 209 |
+
</div>
|
| 210 |
+
</div>
|
| 211 |
</div>
|
| 212 |
|
| 213 |
<button type="button" class="btn btn-secondary" id="new-conversation-btn">Start a new conversation</button>
|