We need to set the `Access-Control-Allow-Origin` header in order to upload gcode with XHR
21 lines
795 B
HTML
21 lines
795 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>LaserKutter Job Control</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<input type="checkbox" id="autostart" name="autostart" value="enable">
|
|
<label for="autostart"> Nach dem Upload automatisch starten</label><br>
|
|
<div class="drop-zone" ondrop="dropHandler(event);" ondragover="event.preventDefault();">
|
|
<p>Drag & Drop files here</p>
|
|
</div>
|
|
<input type="file" class="file-upload" onchange="fileUploadChanged(event);"/>
|
|
<script src="index.js"></script>
|
|
</body>
|
|
</html>
|
|
|
|
|