Spaces:
Running
Running
Update static/scripts.js
Browse files- static/scripts.js +3 -3
static/scripts.js
CHANGED
|
@@ -196,7 +196,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|
| 196 |
document.getElementById('dubbing-lang').required = false;
|
| 197 |
}
|
| 198 |
|
| 199 |
-
//
|
| 200 |
const note = document.getElementById("daily-note");
|
| 201 |
const closeBtn = document.getElementById("close-note");
|
| 202 |
const today = new Date().toISOString().split("T")[0];
|
|
@@ -211,7 +211,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|
| 211 |
});
|
| 212 |
});
|
| 213 |
|
| 214 |
-
//
|
| 215 |
function resetForm() {
|
| 216 |
fetch('/delete-uploads', {
|
| 217 |
method: 'POST'
|
|
@@ -236,6 +236,6 @@ function closePurchaseModal() {
|
|
| 236 |
}
|
| 237 |
|
| 238 |
function confirmPurchase() {
|
| 239 |
-
alert("
|
| 240 |
closePurchaseModal();
|
| 241 |
}
|
|
|
|
| 196 |
document.getElementById('dubbing-lang').required = false;
|
| 197 |
}
|
| 198 |
|
| 199 |
+
// Daily info note
|
| 200 |
const note = document.getElementById("daily-note");
|
| 201 |
const closeBtn = document.getElementById("close-note");
|
| 202 |
const today = new Date().toISOString().split("T")[0];
|
|
|
|
| 211 |
});
|
| 212 |
});
|
| 213 |
|
| 214 |
+
// Reset form
|
| 215 |
function resetForm() {
|
| 216 |
fetch('/delete-uploads', {
|
| 217 |
method: 'POST'
|
|
|
|
| 236 |
}
|
| 237 |
|
| 238 |
function confirmPurchase() {
|
| 239 |
+
alert("Purchase completed successfully!");
|
| 240 |
closePurchaseModal();
|
| 241 |
}
|