Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -166,44 +166,16 @@ def main():
|
|
166 |
<div class="question-box" id="question3">Was sind die Vorteile des ambulanten operierens?</div>
|
167 |
""", unsafe_allow_html=True)
|
168 |
|
169 |
-
|
170 |
<script>
|
171 |
-
function clickAskButton() {
|
172 |
-
let askButton = document.querySelector('button[data-baseweb="button"]');
|
173 |
-
if (!askButton) {
|
174 |
-
askButton = document.querySelector('button:contains("Ask")');
|
175 |
-
}
|
176 |
-
if (askButton) {
|
177 |
-
console.log('Ask button found', askButton);
|
178 |
-
askButton.click();
|
179 |
-
} else {
|
180 |
-
console.error('Ask button not found');
|
181 |
-
}
|
182 |
-
}
|
183 |
-
|
184 |
document.getElementById('question1').onclick = function() {
|
185 |
-
console.log('Question 1 clicked');
|
186 |
-
let inputElement = document.querySelectorAll('div.stTextInput input')[0];
|
187 |
-
console.log('Input Element:', inputElement);
|
188 |
-
inputElement.value = 'Was genau ist ein Belegarzt?';
|
189 |
-
inputElement.dispatchEvent(new Event('change'));
|
190 |
-
clickAskButton();
|
191 |
};
|
192 |
document.getElementById('question2').onclick = function() {
|
193 |
-
console.log('Question 2 clicked');
|
194 |
-
let inputElement = document.querySelectorAll('div.stTextInput input')[0];
|
195 |
-
console.log('Input Element:', inputElement);
|
196 |
-
inputElement.value = 'Wofür wird die Alpha-ID verwendet?';
|
197 |
-
inputElement.dispatchEvent(new Event('change'));
|
198 |
-
clickAskButton();
|
199 |
};
|
200 |
document.getElementById('question3').onclick = function() {
|
201 |
-
console.log('Question 3 clicked');
|
202 |
-
let inputElement = document.querySelectorAll('div.stTextInput input')[0];
|
203 |
-
console.log('Input Element:', inputElement);
|
204 |
-
inputElement.value = 'Was sind die Vorteile des ambulanten operierens?';
|
205 |
-
inputElement.dispatchEvent(new Event('change'));
|
206 |
-
clickAskButton();
|
207 |
};
|
208 |
</script>
|
209 |
""", unsafe_allow_html=True)
|
|
|
166 |
<div class="question-box" id="question3">Was sind die Vorteile des ambulanten operierens?</div>
|
167 |
""", unsafe_allow_html=True)
|
168 |
|
169 |
+
st.markdown("""
|
170 |
<script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
document.getElementById('question1').onclick = function() {
|
172 |
+
console.log('Question 1 box clicked');
|
|
|
|
|
|
|
|
|
|
|
173 |
};
|
174 |
document.getElementById('question2').onclick = function() {
|
175 |
+
console.log('Question 2 box clicked');
|
|
|
|
|
|
|
|
|
|
|
176 |
};
|
177 |
document.getElementById('question3').onclick = function() {
|
178 |
+
console.log('Question 3 box clicked');
|
|
|
|
|
|
|
|
|
|
|
179 |
};
|
180 |
</script>
|
181 |
""", unsafe_allow_html=True)
|