Maryam Ilka commited on
Commit
704ba24
·
verified ·
1 Parent(s): 7eea889

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -603,6 +603,18 @@ def attention_check1():
603
 
604
  # 2. ایجاد دکمه سبز با JavaScript
605
  st.components.v1.html(f"""
 
 
 
 
 
 
 
 
 
 
 
 
606
  <button onclick="handleClick()"
607
  style="
608
  background: #28a745;
 
603
 
604
  # 2. ایجاد دکمه سبز با JavaScript
605
  st.components.v1.html(f"""
606
+ <script>
607
+ function handleClick() {{
608
+ // فعال کردن دکمه مخفی Streamlit
609
+ parent.document.querySelector('div[data-testid="stButton"] > button[kind="primary"]').click();
610
+ }}
611
+ </script>
612
+
613
+ <button onclick="handleClick()" class="custom-green-btn">
614
+ ادامه
615
+ </button>
616
+ """, height=60)
617
+ st.components.v1.html(f"""
618
  <button onclick="handleClick()"
619
  style="
620
  background: #28a745;