mirror of
https://github.com/gen2brain/cam2ip.git
synced 2026-01-10 08:38:34 +00:00
Format HTML
This commit is contained in:
@@ -44,10 +44,10 @@ func (h *HTML) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
var html = `<html>
|
var html = `<html>
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
<title>cam2ip</title>
|
<title>cam2ip</title>
|
||||||
<script>
|
<script>
|
||||||
var url = "ws://{BIND}/socket";
|
ws = new WebSocket("ws://{BIND}/socket");
|
||||||
ws = new WebSocket(url);
|
|
||||||
var image = new Image();
|
var image = new Image();
|
||||||
|
|
||||||
ws.onopen = function() {
|
ws.onopen = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user