Spaces:
Running
Running
Maryam Ilka commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -232,17 +232,6 @@ st.markdown("""
|
|
| 232 |
padding: 10px 20px !important;
|
| 233 |
font-weight: bold !important;
|
| 234 |
}
|
| 235 |
-
|
| 236 |
-
/* دکمه سبز (ثالث) */
|
| 237 |
-
div[data-testid="stButton"] > button.green-btn {
|
| 238 |
-
background-color: #28a745 !important;
|
| 239 |
-
color: white !important;
|
| 240 |
-
border: none !important;
|
| 241 |
-
border-radius: 8px !important;
|
| 242 |
-
padding: 10px 20px !important;
|
| 243 |
-
font-weight: bold !important;
|
| 244 |
-
width: 100% !important;
|
| 245 |
-
}
|
| 246 |
|
| 247 |
|
| 248 |
/* ========== استایل تضمینی برای گزینههای رادیویی ========== */
|
|
@@ -611,17 +600,22 @@ def attention_check1():
|
|
| 611 |
)
|
| 612 |
|
| 613 |
if st.button("ادامه", key="continue_green"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 614 |
if answer:
|
| 615 |
st.session_state.attention_check1 = answer # ذخیره پاسخ در session_state
|
| 616 |
st.session_state.current_page = "random_likert_questions"
|
| 617 |
st.rerun()
|
| 618 |
else:
|
| 619 |
st.warning("لطفاً یک گزینه را انتخاب کنید")
|
| 620 |
-
|
| 621 |
-
<script>
|
| 622 |
-
document.querySelector('[data-testid="stButton"] button').classList.add('green-btn');
|
| 623 |
-
</script>
|
| 624 |
-
""", unsafe_allow_html=True)
|
| 625 |
|
| 626 |
def attention_check2():
|
| 627 |
"""سوال توجه دوم (بدون بررسی پاسخ صحیح)"""
|
|
|
|
| 232 |
padding: 10px 20px !important;
|
| 233 |
font-weight: bold !important;
|
| 234 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 235 |
|
| 236 |
|
| 237 |
/* ========== استایل تضمینی برای گزینههای رادیویی ========== */
|
|
|
|
| 600 |
)
|
| 601 |
|
| 602 |
if st.button("ادامه", key="continue_green"):
|
| 603 |
+
st.markdown("""
|
| 604 |
+
<style>
|
| 605 |
+
div[data-testid="stButton"] > button[kind="primary"] {
|
| 606 |
+
background-color: #28a745 !important;
|
| 607 |
+
color: white !important;
|
| 608 |
+
}
|
| 609 |
+
</style>
|
| 610 |
+
""", unsafe_allow_html=True)
|
| 611 |
+
|
| 612 |
if answer:
|
| 613 |
st.session_state.attention_check1 = answer # ذخیره پاسخ در session_state
|
| 614 |
st.session_state.current_page = "random_likert_questions"
|
| 615 |
st.rerun()
|
| 616 |
else:
|
| 617 |
st.warning("لطفاً یک گزینه را انتخاب کنید")
|
| 618 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 619 |
|
| 620 |
def attention_check2():
|
| 621 |
"""سوال توجه دوم (بدون بررسی پاسخ صحیح)"""
|