From 9f56770f091a79982874c9acef74c7bd9ce30091 Mon Sep 17 00:00:00 2001 From: Silver Kuusik Date: Mon, 16 Oct 2017 11:45:30 +0200 Subject: [PATCH] add close button to live stream --- index.html | 5 ++++- sumorobot.js | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index b31ff25..d907ee5 100755 --- a/index.html +++ b/index.html @@ -15,7 +15,10 @@
- + +
+ Close +
diff --git a/sumorobot.js b/sumorobot.js index 1b67430..40bef79 100755 --- a/sumorobot.js +++ b/sumorobot.js @@ -367,6 +367,11 @@ window.onload = function() { } }); + /* start button listener */ + $(".btn-close").click(function() { + $("#stream").hide(); + }); + /* start button listener */ $(".btn-start").click(function() { sumostart = true;