Spaces:
Sleeping
Sleeping
Delete my_component.html
Browse files- my_component.html +0 -48
my_component.html
DELETED
|
@@ -1,48 +0,0 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8">
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>Streamlit Component</title>
|
| 7 |
-
</head>
|
| 8 |
-
<body>
|
| 9 |
-
<script>
|
| 10 |
-
function clickAskButton() {
|
| 11 |
-
let askButton = document.querySelector('button[data-baseweb="button"]');
|
| 12 |
-
if (!askButton) {
|
| 13 |
-
askButton = document.querySelector('button:contains("Ask")');
|
| 14 |
-
}
|
| 15 |
-
if (askButton) {
|
| 16 |
-
askButton.click();
|
| 17 |
-
} else {
|
| 18 |
-
console.error('Ask button not found');
|
| 19 |
-
}
|
| 20 |
-
}
|
| 21 |
-
|
| 22 |
-
function setupClickHandlers() {
|
| 23 |
-
document.getElementById('question1').onclick = function() {
|
| 24 |
-
console.log('Question 1 clicked');
|
| 25 |
-
document.querySelectorAll('div.stTextInput input')[0].value = 'Was genau ist ein Belegarzt?';
|
| 26 |
-
document.querySelectorAll('div.stTextInput input')[0].dispatchEvent(new Event('change'));
|
| 27 |
-
clickAskButton();
|
| 28 |
-
};
|
| 29 |
-
document.getElementById('question2').onclick = function() {
|
| 30 |
-
console.log('Question 2 clicked');
|
| 31 |
-
document.querySelectorAll('div.stTextInput input')[0].value = 'Wofür wird die Alpha-ID verwendet?';
|
| 32 |
-
document.querySelectorAll('div.stTextInput input')[0].dispatchEvent(new Event('change'));
|
| 33 |
-
clickAskButton();
|
| 34 |
-
};
|
| 35 |
-
document.getElementById('question3').onclick = function() {
|
| 36 |
-
console.log('Question 3 clicked');
|
| 37 |
-
document.querySelectorAll('div.stTextInput input')[0].value = 'Was sind die Vorteile des ambulanten operierens?';
|
| 38 |
-
document.querySelectorAll('div.stTextInput input')[0].dispatchEvent(new Event('change'));
|
| 39 |
-
clickAskButton();
|
| 40 |
-
};
|
| 41 |
-
};
|
| 42 |
-
|
| 43 |
-
window.onload = function() {
|
| 44 |
-
setTimeout(setupClickHandlers, 3000);
|
| 45 |
-
};
|
| 46 |
-
</script>
|
| 47 |
-
</body>
|
| 48 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|