Spaces:
Runtime error
Runtime error
Commit
•
4ecb059
1
Parent(s):
0b96e32
Trying new colors
Browse files- templates/template_html.j2 +19 -2
templates/template_html.j2
CHANGED
@@ -12,13 +12,13 @@ Below is the prompt that is given to the model. <hr>
|
|
12 |
</details>
|
13 |
{% endfor %}
|
14 |
|
15 |
-
<h2>Query</h2> <span style="color: #
|
16 |
|
17 |
<style>
|
18 |
.doc-box {
|
19 |
padding: 10px;
|
20 |
margin-top: 10px;
|
21 |
-
background-color: #
|
22 |
border: none;
|
23 |
}
|
24 |
.doc-short, .doc-full {
|
@@ -28,3 +28,20 @@ Below is the prompt that is given to the model. <hr>
|
|
28 |
color: white;
|
29 |
}
|
30 |
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
</details>
|
13 |
{% endfor %}
|
14 |
|
15 |
+
<h2>Query</h2> <span style="color: #801616;">{{ query }}</span>
|
16 |
|
17 |
<style>
|
18 |
.doc-box {
|
19 |
padding: 10px;
|
20 |
margin-top: 10px;
|
21 |
+
background-color: #48a3ff;
|
22 |
border: none;
|
23 |
}
|
24 |
.doc-short, .doc-full {
|
|
|
28 |
color: white;
|
29 |
}
|
30 |
</style>
|
31 |
+
|
32 |
+
<script>
|
33 |
+
document.addEventListener("DOMContentLoaded", function() {
|
34 |
+
const detailsElements = document.querySelectorAll('.doc-box');
|
35 |
+
|
36 |
+
detailsElements.forEach(detail => {
|
37 |
+
detail.addEventListener('toggle', function() {
|
38 |
+
const docShort = this.querySelector('.doc-short');
|
39 |
+
if (this.open) {
|
40 |
+
docShort.style.display = 'none';
|
41 |
+
} else {
|
42 |
+
docShort.style.display = 'inline';
|
43 |
+
}
|
44 |
+
});
|
45 |
+
});
|
46 |
+
});
|
47 |
+
</script>
|