mirror of
https://github.com/NaitLee/Cat-Printer.git
synced 2025-05-18 00:00:18 -07:00
27 lines
1.0 KiB
HTML
27 lines
1.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Printer Center</title>
|
|
<link rel="stylesheet" href="main.css" />
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<h1>Printer Center</h1>
|
|
<p id="notice" style="height: 2em;"></p>
|
|
<p>
|
|
<input style="display: none;" type="text" id="bt_mac" value="60:05:FF:7D:8D:FD" />
|
|
Select device: <select id="device_selection"></select><button id="refresh_device">Refresh</button>
|
|
</p>
|
|
<h2>Print an image</h2>
|
|
<p>
|
|
<input type="file" id="file_selection" /><button id="preview_button">Preview</button><button id="print_button">Print</button><br />
|
|
Threshold: <input type="range" min="0" max="2" step="0.05" value="0.6" id="filter_threshold" /><br />
|
|
<canvas id="image_preview"></canvas>
|
|
</p>
|
|
</main>
|
|
<script src="main.js"></script>
|
|
</body>
|
|
</html> |