-
Notifications
You must be signed in to change notification settings - Fork 0
/
mysubscription.js
35 lines (22 loc) · 952 Bytes
/
mysubscription.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
document.addEventListener('DOMContentLoaded' , function (){
function upgradePlan() {
document.getElementById('upgrade-form').style.display = 'block';
}
// Function to hide the upgrade form
function hideUpgradeForm() {
document.getElementById('upgrade-form').style.display = 'none';
}
function handleUpgradeSubmit(event) {
event.preventDefault(); // Prevent the form from submitting normally
// Here you can add code to handle the form submission (e.g., sending data to a server)
// Hide the form after submission
hideUpgradeForm();
}
function cancelSubscription(){
document.getElementById('subscription-details').style.display = 'none';
}
window.upgradePlan = upgradePlan;
window.hideUpgradeForm = hideUpgradeForm;
window.handleUpgradeSubmit = handleUpgradeSubmit;
window.cancelSubscription = cancelSubscription;
});