89 lines
2.8 KiB
HTML
89 lines
2.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<!-- apply pico css-->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
|
|
<!-- apply htmx -->
|
|
<script src="https://unpkg.com/htmx.org@1.7.0"></script>
|
|
<title>converter</title>
|
|
</head>
|
|
|
|
<body>
|
|
<header class="container">
|
|
<h1>XLSX to DXF Converter</h1>
|
|
</header>
|
|
<main class="container">
|
|
|
|
<form action="" method="post" enctype="multipart/form-data">
|
|
<input type="file" id="file-input" name="file" accept=".xls, .csv, .xlsx" required>
|
|
<hr>
|
|
<div class="grid">
|
|
<div>
|
|
|
|
|
|
<div class="grid">
|
|
<label for="range">Velikost textu
|
|
</label>
|
|
<input type="range" min="0.5" max="10" value="1" step="0.5" id="range" name="range">
|
|
<label id="font_size">1</label>
|
|
</div>
|
|
|
|
<label for="file-name">Název výstupního DXF</label>
|
|
<input type="text" id="file-name" name="output_file" placeholder="název výstupního DXF:"
|
|
value="vystupni_body">
|
|
|
|
<button name="btn" type="submit" id="submit-button" value="dxf">Nahrát a stáhnout DXF</button>
|
|
<br>
|
|
<br>
|
|
</div>
|
|
|
|
<div>
|
|
|
|
|
|
<div>
|
|
<label for="range">Štítky nachystat pro:
|
|
</label>
|
|
<select id="select" name="select" required>
|
|
<option value="0" selected>praváka</option>
|
|
<option value="1">leváka</option>
|
|
</select>
|
|
</div>
|
|
|
|
<label for="file-name">Název souboru s popisky</label>
|
|
<input type="text" id="file-name" name="excel_output_file" placeholder="název výstupního DXF:"
|
|
value="popisy_vystup">
|
|
|
|
<button name="btn" id="excel-download" type="submit" value="excel">Nahrát a stáhnout
|
|
popisky</button>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</main>
|
|
</body>
|
|
<script>
|
|
document.getElementById('range').addEventListener('input', function () {
|
|
document.getElementById('font_size').innerText = this.value;
|
|
});
|
|
</script>
|
|
<style>
|
|
#excel-download {
|
|
background-color: #34C759;
|
|
/* green background */
|
|
color: #033009;
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
#font_size {
|
|
margin-left: 10px;
|
|
padding-bottom: 5px;
|
|
font-size: 24px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
</html> |