|
|
|
|
30
|
<div class="scrollable">
|
30
|
<div class="scrollable">
|
31
|
{{ content|safe }}
|
31
|
{{ content|safe }}
|
32
|
</div>
|
32
|
</div>
|
33
|
- <form method="POST" action="">
|
|
|
34
|
- <!-- onsubmit='document.getElementById("prompt").setAttribute("disabled", "")' -->
|
|
|
|
|
33
|
+ <form method="POST" action=""
|
|
|
34
|
+ onsubmit='setTimeout(() => { document.getElementById("prompt").setAttribute("disabled", ""); }, 100)'>
|
35
|
<input class="prompt" id="prompt" name="prompt" placeholder="Talk to me" />
|
35
|
<input class="prompt" id="prompt" name="prompt" placeholder="Talk to me" />
|
36
|
</form>
|
36
|
</form>
|
37
|
</section>
|
37
|
</section>
|
38
|
{% for moment in history %}
|
38
|
{% for moment in history %}
|
39
|
<section data-background-size="cover" data-background-video="{{moment.bg_video}}" data-background-opacity="0.75" data-background-video-loop="True" data-background-video-mute="True">
|
39
|
<section data-background-size="cover" data-background-video="{{moment.bg_video}}" data-background-opacity="0.75" data-background-video-loop="True" data-background-video-mute="True">
|
40
|
<h3 class="title slide_title">{{moment.title}}</h3>
|
40
|
<h3 class="title slide_title">{{moment.title}}</h3>
|
41
|
- <input class="prompt" value="{{moment.prompt}}" disabled />
|
|
|
|
|
41
|
+ {% if moment.prompt %}
|
|
|
42
|
+ <input class="prompt" value="{{moment.prompt}}" disabled />
|
|
|
43
|
+ {% endif %}
|
42
|
<div class="scrollable">
|
44
|
<div class="scrollable">
|
43
|
{{ moment.content|safe }}
|
45
|
{{ moment.content|safe }}
|
44
|
</div>
|
46
|
</div>
|