Spaces:
Paused
Paused
Upload 4 files
Browse files- static/Ibs_Module_script.js +14 -10
- static/Immunization_Tracker_script.js +14 -10
- static/Tailscale_script.js +14 -10
- static/Weight_Tracker_script.js +14 -10
static/Ibs_Module_script.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
| 1 |
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
|
|
|
| 1 |
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
+
const appInfo = {
|
| 3 |
+
App_name: 'Ibs_Module', // Replace with the actual app name
|
| 4 |
+
app_folder: 'Ibs_Module' // Replace with the actual image folder
|
| 5 |
+
};
|
| 6 |
+
|
| 7 |
+
// Get the install link element"""WILL be in static folder, linking to install.html and subsequently to install_module"
|
| 8 |
+
const installLink = document.getElementById('Ibs_Module-link');
|
| 9 |
+
|
| 10 |
+
// Add a click event handler to the link
|
| 11 |
+
installLink.addEventListener('click', function() {
|
| 12 |
+
const installUrl = `/install?app_name_file=${appInfo.App_name}&app_folder=${appInfo.app_folder}`;
|
| 13 |
+
window.open(installUrl, '_blank');
|
| 14 |
+
});
|
| 15 |
+
});
|
| 16 |
|
static/Immunization_Tracker_script.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
| 1 |
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
|
|
|
| 1 |
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
+
const appInfo = {
|
| 3 |
+
App_name: 'Immunization_Tracker', // Replace with the actual app name
|
| 4 |
+
app_folder: 'Immunization_Tracker' // Replace with the actual image folder
|
| 5 |
+
};
|
| 6 |
+
|
| 7 |
+
// Get the install link element"""WILL be in static folder, linking to install.html and subsequently to install_module"
|
| 8 |
+
const installLink = document.getElementById('Immunization_Tracker-link');
|
| 9 |
+
|
| 10 |
+
// Add a click event handler to the link
|
| 11 |
+
installLink.addEventListener('click', function() {
|
| 12 |
+
const installUrl = `/install?app_name_file=${appInfo.App_name}&app_folder=${appInfo.app_folder}`;
|
| 13 |
+
window.open(installUrl, '_blank');
|
| 14 |
+
});
|
| 15 |
+
});
|
| 16 |
|
static/Tailscale_script.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
| 1 |
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
|
|
|
| 1 |
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
+
const appInfo = {
|
| 3 |
+
App_name: 'Tailscale', // Replace with the actual app name
|
| 4 |
+
app_folder: 'Tailscale' // Replace with the actual image folder
|
| 5 |
+
};
|
| 6 |
+
|
| 7 |
+
// Get the install link element"""WILL be in static folder, linking to install.html and subsequently to install_module"
|
| 8 |
+
const installLink = document.getElementById('Tailscale-link');
|
| 9 |
+
|
| 10 |
+
// Add a click event handler to the link
|
| 11 |
+
installLink.addEventListener('click', function() {
|
| 12 |
+
const installUrl = `/install?app_name_file=${appInfo.App_name}&app_folder=${appInfo.app_folder}`;
|
| 13 |
+
window.open(installUrl, '_blank');
|
| 14 |
+
});
|
| 15 |
+
});
|
| 16 |
|
static/Weight_Tracker_script.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
| 1 |
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
|
|
|
| 1 |
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
+
const appInfo = {
|
| 3 |
+
App_name: 'Weight_Tracker', // Replace with the actual app name
|
| 4 |
+
app_folder: 'Weight_Tracker' // Replace with the actual image folder
|
| 5 |
+
};
|
| 6 |
+
|
| 7 |
+
// Get the install link element"""WILL be in static folder, linking to install.html and subsequently to install_module"
|
| 8 |
+
const installLink = document.getElementById('Weight_Tracker-link');
|
| 9 |
+
|
| 10 |
+
// Add a click event handler to the link
|
| 11 |
+
installLink.addEventListener('click', function() {
|
| 12 |
+
const installUrl = `/install?app_name_file=${appInfo.App_name}&app_folder=${appInfo.app_folder}`;
|
| 13 |
+
window.open(installUrl, '_blank');
|
| 14 |
+
});
|
| 15 |
+
});
|
| 16 |
|