Spaces:
Build error
Build error
File size: 3,578 Bytes
8de88bd 0665e63 3cb8374 8de88bd 3cb8374 8de88bd 3cb8374 8de88bd 3cb8374 8de88bd 8b15eea 8de88bd 8b15eea 8de88bd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Information Page</title>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap">
<style>
* {
font-family: "Source Sans Pro";
}
.instructions > * {
color: #111 !important;
}
details.doc-box * {
color: #111 !important;
}
details.doc-box a {
color: #0000EE !important; /* This is a common blue color for links */
text-decoration: underline; /* This underlines the link */
}
.dark {
background: #111;
color: white;
}
.doc-box {
padding: 10px;
margin-top: 10px;
background-color: #baecc2;
border-radius: 6px;
color: #111 !important;
max-width: 700px;
box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px 0px;
}
.doc-full {
margin: 10px 14px;
line-height: 1.6rem;
}
.instructions {
color: #111 !important;
background: #b7bdfd;
display: block;
border-radius: 6px;
padding: 6px 10px;
line-height: 1.6rem;
max-width: 700px;
box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px 0px;
}
.query {
color: #111 !important;
background: #ffbcbc;
display: block;
border-radius: 6px;
padding: 6px 10px;
line-height: 1.6rem;
max-width: 700px;
box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px 0px;
}
</style>
</head>
<body>
<div class="prose svelte-1ybaih5" id="component-6">
<h2>الموجه</h2>
فيما يلي الموجه الذي تم تقديمه للنموذج.
<hr>
<h2>تعليمات</h2>
<span class="instructions" dir="rtl">استخدم الأجزاء التالية من السياق للإجابة على السؤال في النهاية. <brإذا كنت لا تعرف الإجابة، فقط قل أنك لا تعرف،<span
style="font-weight: bold;">لا تحاول اختلاق إجابة.</span></span><br>
<h2>سياق</h2>
{% for doc in documents %}
<details class="doc-box" dir="rtl">
<summary>
<b>وثيقة_{{ loop.index }} | <a href="{{ doc.meta.url }}">{{ doc.meta.title }}</a>:</b> <span
class="doc-short">{{ doc.content[:50] }}...</span>
</summary>
<div class="doc-full">{{ doc.content }}</div>
</details>
{% endfor %}
<h2>استفسار</h2>
<span class="query" dir="rtl">{{ query }}</span>
</div>
<script>
document.addEventListener("DOMContentLoaded", function () {
const detailsElements = document.querySelectorAll('.doc-box');
detailsElements.forEach(detail => {
detail.addEventListener('toggle', function () {
const docShort = this.querySelector('.doc-short');
if (this.open) {
docShort.style.display = 'none';
} else {
docShort.style.display = 'inline';
}
});
});
});
</script>
</body>
</html>
|