Spaces:
Paused
Paused
File size: 703 Bytes
571f20f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
document.addEventListener('DOMContentLoaded', function() {
const appInfo = {
App_name: 'Anxiety_Module', // Replace with the actual app name
app_folder: 'Anxiety_Module' // Replace with the actual image folder
};
// Get the install link element"""WILL be in static folder, linking to install.html and subsequently to install_module"
const installLink = document.getElementById('Anxiety_Module-link');
// Add a click event handler to the link
installLink.addEventListener('click', function() {
const installUrl = `/install?app_name_file=${appInfo.App_name}&app_folder=${appInfo.app_folder}`;
window.open(installUrl, '_blank');
});
});
|