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

More Work done:

• Tooltip integration
• Sensor Tab: rework
• Help & Documentation Tab: basic styling
• Logging Tab: basic styling
• PID Tab: some fixes
• Added the word „configurator (+ version)“ under the logo
• Removed not yet used „help icons“
This commit is contained in:
skaman82 2015-11-05 16:37:15 +01:00
parent 8e79a250ed
commit 1816979cc4
37 changed files with 3448 additions and 1606 deletions

20
main.js
View file

@ -18,6 +18,7 @@ $(document).ready(function () {
'Configurator: <strong>' + chrome.runtime.getManifest().version + '</strong>');
$('#status-bar .version').text(chrome.runtime.getManifest().version);
$('#logo .version').text(chrome.runtime.getManifest().version);
// notification messages for various operating systems
switch (GUI.operating_system) {
@ -211,7 +212,7 @@ $(document).ready(function () {
googleAnalyticsConfig.setTrackingPermitted(check);
});
// CSS TEST
// CSS switch TEST
var css = $("#default");
$("div#options-window #remove").click(function(){
css.remove();
@ -220,9 +221,11 @@ $("div#options-window #remove").click(function(){
$("div#options-window #restore").click(function(){
$("head").append(css);
});
// CSS TEST END
// CSS switch TEST END
function close_and_cleanup(e) {
if (e.type == 'click' && !$.contains($('div#options-window')[0], e.target) || e.type == 'keyup' && e.keyCode == 27) {
$(document).unbind('click keyup', close_and_cleanup);
@ -400,4 +403,15 @@ $("#showlog").on('click', function() {
});
// loading tooltip
$(document).ready(function() {
$('.cf_tip').jBox('Tooltip', {
delayOpen: 100,
delayClose: 100,
position: {
x: 'right',
y: 'center'
},
outside: 'x'
});
});