Skip to content

Commit

Permalink
samples: webusb: Fix HTML validator issues
Browse files Browse the repository at this point in the history
Running the HTML code through W3C Validator revealed several issues with
the markup that this commit fixes.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
  • Loading branch information
kartben committed Sep 14, 2023
1 parent 3ce8a6c commit ac5e404
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions samples/subsys/usb/webusb/index.html
@@ -1,9 +1,9 @@
<html>
<!DOCTYPE html>
<html lang="en">
<head>
<title>WebUSB Serial Sample Application</title>
</head>


<body>
<script>
var serial = {};
Expand Down Expand Up @@ -109,17 +109,18 @@
}

document.querySelector("#submit").onclick = () => {
let source = document.querySelector("#editor").value;
let source = document.querySelector("#input").value;
send(source);
}
}

</script>
<button id="connect" style="visibility: initial">Connect To WebUSB Device</button>
<br><br><label for="title">Sender: </label> <br>
<textarea id="editor", rows="25" cols="80" id="source">WebUSB!</textarea>
<br><br><label for="input">Sender: </label> <br>
<textarea id="input" rows="25" cols="80">WebUSB!</textarea>
<br><button id="submit">Send</button>
<br><br>
<label for="title">Receiver: </label> </br>
<textarea id="output", rows="25" cols="80" id="source"></textarea>
<label for="output">Receiver: </label> <br>
<textarea id="output" rows="25" cols="80"></textarea>
</body>
</html>

0 comments on commit ac5e404

Please sign in to comment.