diff --git a/js/libraries/switchery/switchery.css b/js/libraries/switchery/switchery.css index 742cdd88..9a4eb147 100644 --- a/js/libraries/switchery/switchery.css +++ b/js/libraries/switchery/switchery.css @@ -18,7 +18,7 @@ vertical-align: middle; width: 45px; z-index:1000; - + opacity:1 !important; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; @@ -35,14 +35,9 @@ height: 14px; position: absolute; top: 0; - width: 14px; - + width: 14px; } - - - - .switcherymid { background-color: #fff; border: 1px solid #fff; @@ -70,22 +65,13 @@ height: 14px; position: absolute; top: 0; - width: 14px; - + width: 14px; } - - - - - - - /* Switchery sizes. */ .switchery-small { border: none !important; - border-radius: 20px; height: 10px; width: 20px; diff --git a/main.js b/main.js index c91dd86a..a7a96b4e 100644 --- a/main.js +++ b/main.js @@ -123,6 +123,17 @@ $(document).ready(function () { $(html).removeClass('toggle'); }); + $('.togglemedium').each(function(index, html) { + var switchery = new Switchery(html, + { + className: 'switcherymid', + color: '#59aa29', + secondaryColor: '#c4c4c4' + }); + + $(html).removeClass('toggle'); + }); + // Build link to in-use CF version documentation var documentationButton = $('div#content #button-documentation'); documentationButton.html("Documentation for "+CONFIG.flightControllerVersion); diff --git a/tabs/motors.css b/tabs/motors.css index b0bfebe3..fdef599e 100644 --- a/tabs/motors.css +++ b/tabs/motors.css @@ -197,14 +197,14 @@ .tab-motors .titles li { float: left; - width: calc(( 100% / 9)- 10px); + width: calc(( 100% / 9) - 10px); margin-right: 10px; text-align: center; } .tab-motors .servos .titles li { float: right; - width: calc(( 100% / 8)- 10px); + width: calc(( 100% / 8) - 10px); margin: 0 0 0 10px; } @@ -214,7 +214,7 @@ .tab-motors .m-block { float: left; - width: calc(( 100% / 9)- 10px); + width: calc(( 100% / 9) - 10px); height: 100px; margin-right: 10px; text-align: center; @@ -248,7 +248,7 @@ .tab-motors .servos .m-block { float: right; - width: calc(( 100% / 8)- 10px); + width: calc(( 100% / 8) - 10px); margin: 0 0 0 10px; border-radius: 3px; } @@ -271,7 +271,7 @@ .tab-motors .motor_testing .sliders input { -webkit-appearance: slider-vertical; - width: calc(( 100% / 9)- 13px); + width: calc(( 100% / 9) - 13px); height: 73px; margin-left: 10px; } diff --git a/tabs/motors.html b/tabs/motors.html index 20c3fd78..b479f64d 100644 --- a/tabs/motors.html +++ b/tabs/motors.html @@ -118,7 +118,7 @@

-
diff --git a/tabs/ports.js b/tabs/ports.js index d0e439fe..6f0d064d 100644 --- a/tabs/ports.js +++ b/tabs/ports.js @@ -163,7 +163,7 @@ TABS.ports.initialize = function (callback, scrollPosition) { var select_e; if (column != 'telemetry') { var checkboxId = 'functionCheckbox-' + portIndex + '-' + columnIndex + '-' + i; - functions_e.prepend(''); + functions_e.prepend(''); if (serialPort.functions.indexOf(functionName) >= 0) { var checkbox_e = functions_e.find('#' + checkboxId); diff --git a/tabs/servos.html b/tabs/servos.html index a8017034..2db711d7 100755 --- a/tabs/servos.html +++ b/tabs/servos.html @@ -21,7 +21,7 @@
- +