Update my_component.html
Browse files- my_component.html +5 -1
my_component.html
CHANGED
|
@@ -19,7 +19,7 @@ function clickAskButton() {
|
|
| 19 |
}
|
| 20 |
}
|
| 21 |
|
| 22 |
-
|
| 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?';
|
|
@@ -39,6 +39,10 @@ window.onload = function() {
|
|
| 39 |
clickAskButton();
|
| 40 |
};
|
| 41 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
</script>
|
| 43 |
</body>
|
| 44 |
</html>
|
|
|
|
| 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?';
|
|
|
|
| 39 |
clickAskButton();
|
| 40 |
};
|
| 41 |
};
|
| 42 |
+
|
| 43 |
+
window.onload = function() {
|
| 44 |
+
setTimeout(setupClickHandlers, 3000);
|
| 45 |
+
};
|
| 46 |
</script>
|
| 47 |
</body>
|
| 48 |
</html>
|