diff --git a/static/main.css b/static/main.css index 86106d7..221137e 100644 --- a/static/main.css +++ b/static/main.css @@ -20,11 +20,11 @@ h1 { } form { - padding: 5px; text-align: center; + display: inline; } -input { +input, button { background-color: #666; border: 1px solid #999; border-radius: 5px; @@ -34,6 +34,21 @@ input { vertical-align: middle; } +button { + margin: 5px; +} + +button:hover { + background-color: #999; + border: 1px solid #666; +} + +button:active { + background-color: #999; + border: 1px solid #666; + color: #000; +} + label { vertical-align: middle; } diff --git a/static/main.js b/static/main.js index 95bdbd0..e5fc4d4 100644 --- a/static/main.js +++ b/static/main.js @@ -101,6 +101,10 @@ function resetSearch() { searchfield.focus(); } +function playStream(){ + var streamUrl = document.querySelector("#streaming-url").value; + ajaxRequest("/?video="+encodeURI(streamUrl)); +} function hideSections() { var sections = document.querySelectorAll("section"); diff --git a/templates/index.html b/templates/index.html index ad1b999..8c04664 100644 --- a/templates/index.html +++ b/templates/index.html @@ -42,15 +42,14 @@ {% endfor %}