File size: 692 Bytes
571f20f
9f5e936
 
 
 
 
 
 
 
 
 
 
 
 
 
571f20f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
document.addEventListener('DOMContentLoaded', function() {
    const appInfo = {
        App_name: 'Ibs_Module',  // Replace with the actual app name
        app_folder: 'Ibs_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('Ibs_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');
    });
});