Spaces:
Sleeping
Sleeping
Update static/hellopagejs.js
Browse files- static/hellopagejs.js +12 -0
static/hellopagejs.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
document.addEventListener('DOMContentLoaded', function () {
|
| 2 |
+
const SC = document.querySelector('.SC');
|
| 3 |
+
const QA = document.querySelector('.QA');
|
| 4 |
+
|
| 5 |
+
SC.addEventListener('click', function () {
|
| 6 |
+
window.location.href = '/summarization'; // Redirect to Summarization app
|
| 7 |
+
});
|
| 8 |
+
|
| 9 |
+
QA.addEventListener('click', function () {
|
| 10 |
+
window.location.href = '/qtAnswering'; // Redirect to Question Answering app
|
| 11 |
+
});
|
| 12 |
+
});
|