Spaces:
Runtime error
Runtime error
Commit ·
30403c7
1
Parent(s): 5b8df2e
Update templates/index.html
Browse files- templates/index.html +3 -0
templates/index.html
CHANGED
|
@@ -69,6 +69,9 @@
|
|
| 69 |
generateTweets(); // Call generateTweets() when the page finishes loading
|
| 70 |
|
| 71 |
};
|
|
|
|
|
|
|
|
|
|
| 72 |
function generateTweets() {
|
| 73 |
var account = document.getElementById("account").value;
|
| 74 |
console.log("What up")
|
|
|
|
| 69 |
generateTweets(); // Call generateTweets() when the page finishes loading
|
| 70 |
|
| 71 |
};
|
| 72 |
+
document.getElementById("account").addEventListener("change", function () {
|
| 73 |
+
generateTweets(); // Call generateTweets() whenever a new account is selected
|
| 74 |
+
});
|
| 75 |
function generateTweets() {
|
| 76 |
var account = document.getElementById("account").value;
|
| 77 |
console.log("What up")
|