1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 00:05:22 +03:00

Remove unfinished light/dark theme switching code.

This commit is contained in:
Dominic Clifton 2015-11-10 01:37:57 +00:00
parent 6f853cbc0a
commit ea2d59f4fb
3 changed files with 1 additions and 21 deletions

View file

@ -3,8 +3,7 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="cTn" /> <meta name="author" content="cTn" />
<!--link type="text/css" rel="stylesheet" href="./main2.css" media="all" /--> <link type="text/css" rel="stylesheet" href="./main.css" media="all"/>
<link type="text/css" rel="stylesheet" href="./main.css" media="all" id="default" />
<link type="text/css" rel="stylesheet" href="./js/libraries/jquery.nouislider.min.css" /> <link type="text/css" rel="stylesheet" href="./js/libraries/jquery.nouislider.min.css" />
<link type="text/css" rel="stylesheet" href="./js/libraries/jquery.nouislider.pips.min.css" /> <link type="text/css" rel="stylesheet" href="./js/libraries/jquery.nouislider.pips.min.css" />
<link type="text/css" rel="stylesheet" href="./js/libraries/flightindicators.css" /> <link type="text/css" rel="stylesheet" href="./js/libraries/flightindicators.css" />

14
main.js
View file

@ -238,20 +238,6 @@ $(document).ready(function () {
googleAnalyticsConfig.setTrackingPermitted(check); googleAnalyticsConfig.setTrackingPermitted(check);
}); });
// CSS switch TEST
var css = $("#default");
$("div#options-window #remove").click(function(){
css.remove();
});
$("div#options-window #restore").click(function(){
$("head").append(css);
});
// CSS switch TEST END
function close_and_cleanup(e) { function close_and_cleanup(e) {
if (e.type == 'click' && !$.contains($('div#options-window')[0], e.target) || e.type == 'keyup' && e.keyCode == 27) { if (e.type == 'click' && !$.contains($('div#options-window')[0], e.target) || e.type == 'keyup' && e.keyCode == 27) {
$(document).unbind('click keyup', close_and_cleanup); $(document).unbind('click keyup', close_and_cleanup);

View file

@ -4,8 +4,3 @@
<div class="statistics"> <div class="statistics">
<label><input type="checkbox" /><span i18n="options_improve_configurator"></span></label> <label><input type="checkbox" /><span i18n="options_improve_configurator"></span></label>
</div> </div>
<div class="appearance" style="display: none;">
<label> <input type="radio" name="RadioGroup1" value="1" id="restore"> Dark Theme
</label> <br> <label> <input type="radio" name="RadioGroup1" value="2" id="remove"> Light Theme
</label>
</div>