Skip to content

Commit

Permalink
Formated html.
Browse files Browse the repository at this point in the history
  • Loading branch information
bia-pain-bache committed Oct 13, 2024
1 parent 6dc30cc commit 31e5d38
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
22 changes: 11 additions & 11 deletions _worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1441,14 +1441,14 @@ function renderHomePage (proxySettings, hostName, isPassSet) {
const html = `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BPB Panel ${panelVersion}</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
<title>Collapsible Sections</title>
<style>
<style>
:root {
--color: black;
--primary-color: #09639f;
Expand Down Expand Up @@ -1733,9 +1733,9 @@ function renderHomePage (proxySettings, hostName, isPassSet) {
.modal-content { width: 30% }
.routing { display: grid; grid-template-columns: 4fr 1fr 3fr 4fr; }
}
</style>
</head>
<body>
</style>
</head>
<body>
<h1>BPB Panel <span style="font-size: smaller;">${panelVersion}</span> 💦</h1>
<div class="form-container">
<form id="configForm">
Expand Down Expand Up @@ -2408,7 +2408,7 @@ function renderHomePage (proxySettings, hostName, isPassSet) {
<i id="modeIcon" class="fa fa-2x fa-adjust" style="color: var(--background-color);" aria-hidden="true"></i>
</button>
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
<script>
<script>
const defaultHttpsPorts = ['443', '8443', '2053', '2083', '2087', '2096'];
let activePortsNo = ${ports.length};
let activeHttpsPortsNo = ${ports.filter(port => defaultHttpsPorts.includes(port)).length};
Expand Down Expand Up @@ -2828,9 +2828,9 @@ function renderHomePage (proxySettings, hostName, isPassSet) {
console.error('Error:', error);
}
}
</script>
</body>
</html>`;
</script>
</body>
</html>`;

return html;
}
Expand Down

0 comments on commit 31e5d38

Please sign in to comment.