-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
40 lines (36 loc) · 889 Bytes
/
script.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
36
37
38
39
40
// Sample web app data
const webApps = [
{
name: "Project Management",
url: "/management"
},
{
name: "Resource Database",
url: "/resources"
},
{
name: "Collaboration Platform",
url: "https://example.com/collaboration-platform"
},
// Add more web app objects as needed
];
// Function to generate HTML for each web app link
function generateAppHTML(app) {
return `
<div class="app">
<a href="${app.url}" target="_blank">${app.name}</a>
</div>
`;
}
// Function to display web app links
function displayApps() {
const appList = document.getElementById('appList');
appList.innerHTML = '';
// Generate HTML for each web app link
webApps.forEach(app => {
const appHTML = generateAppHTML(app);
appList.insertAdjacentHTML('beforeend', appHTML);
});
}
// Display initial list of web app links on page load
displayApps();