renderMonitor
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
2025-08-07 09:38:29 +00:00
parent c95880d22f
commit f0171a0232
2 changed files with 18 additions and 4 deletions

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

@@ -6,7 +6,7 @@
<title>Safebox</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Switzer:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"/>
<link rel="stylesheet" href="style.css?t=10" />
<link rel="stylesheet" href="style.css?t=11" />
</head>
<body>
<div class="sidebar">
@@ -42,7 +42,7 @@
</div>
<p>Enjoy benefits and unlock more feature such as remote access, geo-redundant backups etc. <br><br>
<a href="" class="details">Read details</a><br><br>
<img src="/img/upgrade.png" alt="Upgrade now" width="80%" id="vpnBtn"/>
<img src="/img/upgrade.png" alt="Upgrade now" width="80%" id="vpnBtn" style="cursor:pointer"/>
</p>
</div>
</div>
@@ -178,6 +178,20 @@
}
}
function renderMonitor() {
myAppsContainer.classList.remove('hidden');
popup.classList.add('hidden');
//TODO: itt kell a buttont editálni és így kell hozzáadni hozzá mindent
myAppsContainer.innerHTML = `
<div class="main-header">
<h1>Monitor</h1>
<button id="updatesBtn"><i class="fas fa-bell"></i> Notification</button>
</div>
<img src="/img/monitor.jpg" alt="Under development..." width="1000" />
`;
}
function renderVPN() {
myAppsContainer.classList.remove('hidden');
popup.classList.add('hidden');
@@ -338,7 +352,7 @@
installAppsBtn.addEventListener('click', () => {renderApps(true); activate(installAppsBtn);});
backupBtn.addEventListener('click', () => {renderText('Backup'); activate(backupBtn);});
diskBtn.addEventListener('click', () => {renderText('Disk Management'); activate(diskBtn)});
monitorBtn.addEventListener('click', () => {renderText('Monitor'); activate(monitorBtn)});
monitorBtn.addEventListener('click', () => {renderMonitor(); activate(monitorBtn)});
settingsBtn.addEventListener('click', () => {renderSettings(); activate(settingsBtn)});
vpnBtn.addEventListener('click', () => renderVPN());
@@ -370,6 +384,6 @@
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.14.6/dist/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.2.1/dist/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
<script src="common.js?t=40"></script>
<script src="common.js?t=41"></script>
</body>
</html>