mirror of
https://github.com/NaitLee/Cat-Printer.git
synced 2025-05-18 00:00:18 -07:00
30 lines
1.2 KiB
HTML
30 lines
1.2 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>Print Image</title>
|
|
<link rel="stylesheet" href="main.css" />
|
|
<link rel="stylesheet" href="skin.css" />
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<p id="notice" style="height: 2em; border: 1px dotted gray;">
|
|
<noscript>Javascript should be enabled</noscript>
|
|
</p>
|
|
<h2>Print Image</h2>
|
|
<p>
|
|
<input style="display: none;" type="text" id="bt_mac" value="" />
|
|
<span>Select device:</span><select id="device_selection"></select><button id="refresh_device">Refresh</button>
|
|
</p>
|
|
<p>
|
|
<input type="file" id="file_selection" /><button id="preview_button">Preview</button><button id="print_button">Print</button><br />
|
|
<span>Threshold:</span><input type="range" min="0" max="2" step="0.05" value="0.6" id="filter_threshold" /><br />
|
|
<canvas id="image_preview" width="384" height="0"></canvas>
|
|
</p>
|
|
</main>
|
|
<script src="main.js"></script>
|
|
<script src="print-image.js"></script>
|
|
</body>
|
|
</html> |