Page MenuHomeSealhub

template.html
No OneTemporary

Authored By
Unknown
Size
4 KB
Referenced Files
None
Subscribers
None

template.html

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://unpkg.com/tabulator-tables@6.3.1/dist/css/tabulator.min.css" rel="stylesheet">
</head>
<body>
<nav>
<a onclick="main.open_tab(event, 'tab_1')">Setup</a>
<a onclick="main.open_tab(event, 'tab_2')">Details</a>
<a onclick="main.open_tab(event, 'tab_3')">Summary</a>
</nav>
<main>
<div class="tab active" id="tab_1">
<form>
<input type="file" id="file"></input>
<div id="error_box"></div>
</form>
<div>
<table id="private-info-table">
<thead>
<tr>
<th>Information</th>
<th>Description</th>
</tr>
</thead>
<tbody id="private-info-table-body">
<tr>
<td>42</td>
<td>the real secret of life</td>
</tr>
<!-- PRIVATE INFO -->
</tbody>
</table>
<form id="private-info-form">
<input type="text" name="info" placeholder="New information"/>
<input type="text" name="desc" placeholder="Information description"/>
<button type="submit">Submit</button>
</form>
</div>
</div>
<div class="tab" id="tab_2">
<div id="tab_2_content">
<div id="main-left">
<div id="search-box">
<input id="filter_route" type="text" placeholder="Path filter"></input>
<input id="filter_value" type="text" placeholder="Value filter"></input>
</div>
<div id="table-wrapper">
<div id="main-table"></div>
</div>
</div>
<div id="expanded_info">
<div class="card">
<div class="card-label">Request Info</div>
<div class="card-content">
<div>
<span class="card-title">Request method: </span>
<span id="details_req_method"></span>
</div>
<div>
<span class="card-title">Request URL: </span>
<span id="details_req_url"></span>
</div>
</div>
</div>
<div class="card">
<div class="card-label">Path</div>
<div class="card-content">
<div id="curr_path"></div>
</div>
</div>
<div class="card">
<div class="card-label">Decoded msg</div>
<div class="card-content">
<textarea id="curr_decoded_msg" rows=5></textarea>
</div>
</div>
</div>
</div>
</div>
<div class="tab" id="tab_3">
<h1>Summary</h1>
<div>
<div id="domain_summary_table"></div>
</div>
</div>
</main>
</body>
</html>
<style>
html, body {
margin: 0;
height: 100vh;
display: flex;
flex-direction: column;
}
nav {
display: flex;
flex-direction: row;
align-items: center;
}
main {
flex-grow: 1;
display: flex;
flex-direction: column;
overflow-y: hidden;
}
nav>a {
padding: 0.5em;
border: 1px black solid;
text-align: center;
margin: 0;
display: inline-block;
box-sizing: border-box;
}
nav > a:hover {
background-color: darkgrey;
}
#table-wrapper {
/* https://stackoverflow.com/questions/36230944/prevent-flex-items-from-overflowing-a-container */
min-height: 0;
}
#main-left {
overflow-y: hidden;
width: 60%;
display: flex;
flex-direction: column;
}
#expanded_info {
width: 40%;
overflow: scroll;
display: flex;
flex-direction: column;
gap: 5px;
}
#private-info-form {
display: flex;
flex-direction: row;
}
.tab {
display: none;
height: 100%;
}
.tab.active {
display: block;
}
#tab_2_content {
display: flex;
flex-direction:row;
height: 100%;
}
.card {
border: 1px solid black;
<!-- border-radius: 10px; -->
margin-left: 5px;
margin-right: 5px;
padding: 0;
overflow: hidden;
}
.card-content {
margin: 10px;
}
#curr_decoded_msg {
width: 100%;
resize: vertical;
box-sizing: border-box;
overflow-y: scroll;
}
.card-label {
width: 100%;
box-sizing: border-box;
font-weight: bold;
background-color: darkgrey;
padding: 0.5em;
}
#error_box > div {
background-color: red;
}
.delete_btn {
font-family: monospace;
font-weight: bold;
font-size: 1em;
text-align: center;
}
a.disabled {
color: #1a1d14ff;
pointer-events: none;
cursor: default;
}
</style>
<!-- REPLACE ME -->

File Metadata

Mime Type
text/html
Expires
Sat, Nov 28, 04:18 (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1230265
Default Alt Text
template.html (4 KB)

Event Timeline