Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions static/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ input {
margin-left: 10px;
}

#debug-btn{
height: 2.2em;
background-color: orange;
color: white;
border: none;
border-radius: 4px;
padding: 8px 16px;
cursor: pointer;
margin-left: 10px;
}

.card {
background: hsla(0, 0%, 31%, 0.7);
border-radius: 12px;
Expand Down
14 changes: 13 additions & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
</div>
<div class="card">
<div style="display: flex; justify-content: center; align-items: center; flex-direction: column;">
<div style="display: flex; justify-content: center; align-items: center; padding-bottom: 10px;">
<div style="display: flex; justify-content: center; align-items: center; padding-bottom: 5px;">
<h2 id="cache_tag">SCE TV</h2>
</div>
<div style="display: flex; justify-content: center; align-items: center; padding-bottom: 10px;">
<button id="show-logs-btn">Show Logs</button>
<button id="debug-btn">Debug</button>
</div>
</div>

Expand Down Expand Up @@ -214,6 +217,15 @@ <h2 id="title"></h2>
// Scroll to bottom
logsContent.scrollTop = logsContent.scrollHeight;
}

// Adds a function to open the debug page in a new window when the debug button is clicked
document.getElementById("debug-btn").addEventListener("click", function () {
const debugURL = new URL(window.location.origin + window.location.pathname);
debugURL.pathname = debugURL.pathname.endsWith('/')
? `${debugURL.pathname}debug`
: `${debugURL.pathname}/debug`;
window.open(debugURL);
});
</script>
</body>

Expand Down