Files
fundamentals-of-webengineering/task_2_ts/index.html
2025-10-22 10:43:56 +02:00

105 lines
3.2 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<title>Open data explorer</title>
<script src="ts/main.ts" type="module"></script>
</head>
<body>
<nav class="container-fluid">
<ul>
<li>
<h1>Open data explorer</h1>
</li>
</ul>
</nav>
<main class="container-fluid">
<article>
<header>
<h2>Select CSV data</h2>
</header>
<form id="select-data-form">
<label for="file-input" class="custom-file-upload">
<i class="fa fa-file-csv"></i> Select CSV file to explore
</label>
<input id="file-input" type="file" aria-describedby="fileHelp" accept="text/csv" />
<small id="fileHelp">Please upload a CSV file, where the first row is the header. And the values are
comma(,) separated.</small>
</form>
</article>
<article>
<header>
<h2>Data infos</h2>
</header>
<div id="data-info" class="info">
<h4>Filename</h4>
<p id="data-filename"></p>
<h4>File type</h4>
<p id="data-filetype"></p>
<h4>File size</h4>
<p id="data-filesize"></p>
<h4>Number of rows</h4>
<p id="data-rowcount"></p>
</div>
<div id="data-info-placeholder">
No file selected
</div>
</article>
<article>
<header>
<h2>Selected column infos</h2>
</header>
<div id="column-info" class="info">
<h4>Selected column</h4>
<p id="column-selected"></p>
<h4>Data type</h4>
<p id="column-datatype"></p>
<h4 id="title-column-entries">Different entries</h4>
<p id="column-entries"></p>
<h4 id="title-column-min">Min</h4>
<p id="column-min"></p>
<h4 id="title-column-max">Max</h4>
<p id="column-max"></p>
</div>
<div id="column-info-placeholder">
No column selected
</div>
</article>
<article>
<header>
<h2>Filter active column</h2>
</header>
<label for="filter">Filter column:</label>
<input type="search" id="filter" name="filter" placeholder="Filter" disabled>
</article>
<article class="table-container">
<header>
<h2>Data table</h2>
</header>
<div class="table-scroll-wrapper">
<table id="table-content">
<thead>
<tr id="table-header">
</tr>
</thead>
<tbody id="table-body">
</tbody>
</table>
</div>
</article>
</main>
</body>
</html>