From a22745a21c231f9f2359b7b564afabe0bd8f51a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20In=C3=A1cio?= Date: Sun, 2 Feb 2020 17:05:37 -0300 Subject: [PATCH] Upload static files --- static/script.js | 66 ++++++++++++++++++++++++++++++++++++++++++++++++ static/style.css | 40 +++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 static/script.js create mode 100644 static/style.css diff --git a/static/script.js b/static/script.js new file mode 100644 index 0000000..3606b48 --- /dev/null +++ b/static/script.js @@ -0,0 +1,66 @@ +// Functions to deal with button events +$(function() { + // Preview switch + $('a#cam-preview').bind('click', function() { + $.getJSON('/request_preview_switch', + function(data) { + // do nothing + }); + return false; + }); +}); + +$(function() { + // Model switch + $('a#use-model').bind('click', function() { + $.getJSON('/request_model_switch', + function(data) { + // do nothing + }); + return false; + }); +}); + +$(function() { + // exposure down + $('a#exposure-down').bind('click', function() { + $.getJSON('/request_exposure_down', + function(data) { + // do nothing + }); + return false; + }); +}); + +$(function() { + // exposure up + $('a#exposure-up').bind('click', function() { + $.getJSON('/request_exposure_up', + function(data) { + // do nothing + }); + return false; + }); +}); + +$(function() { + // contrast down + $('a#contrast-down').bind('click', function() { + $.getJSON('/request_contrast_down', + function(data) { + // do nothing + }); + return false; + }); +}); + +$(function() { + // contrast up + $('a#contrast-up').bind('click', function() { + $.getJSON('/request_contrast_up', + function(data) { + // do nothing + }); + return false; + }); +}); diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..a621b6c --- /dev/null +++ b/static/style.css @@ -0,0 +1,40 @@ +/* * Reset all elements */ +* { + margin: 0; + padding: 0; +} + + +/* * HTML elements */ +body { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + font-size: 18px; + font-weight: normal; + line-height: 1.5em; + width: 800px; + margin: auto; +} + + +/* * Local selectors */ +#container { + margin: 0px auto; + margin-top: 40px; + width: 100%; + height: 450px; + border: 10px #333 solid; + background-color: black; +} + +#container #videoElement { + width: auto; + height: 100%; + margin-left: auto; + margin-right: auto; + display: block; + background-color: black; +} + +#control { + margin-top: 40px; +}