From 7bd1bf148b0c45006a187be3dabf89bbe6a6b6da Mon Sep 17 00:00:00 2001 From: Pontus Persson Date: Fri, 8 Dec 2017 15:16:26 +0100 Subject: [PATCH] As module. --- client/index.html | 8 ++------ client/webrtc.js | 5 +++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/client/index.html b/client/index.html index 8282b47..454583e 100755 --- a/client/index.html +++ b/client/index.html @@ -2,7 +2,7 @@ - + @@ -11,10 +11,6 @@
- - - + diff --git a/client/webrtc.js b/client/webrtc.js index 2925c43..6a98dea 100755 --- a/client/webrtc.js +++ b/client/webrtc.js @@ -19,6 +19,9 @@ var peerConnectionConfig = { }; function pageReady() { + document.querySelector("button#start") + .addEventListener("click", start); + uuid = createUUID(); localVideo = document.getElementById('localVideo'); @@ -129,3 +132,5 @@ function createUUID() { return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); } + +pageReady();