diff --git a/_locales/en/messages.json b/_locales/en/messages.json index e3d1cf73..b33d2f84 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1202,5 +1202,11 @@ }, "controlAxisAux8": { "message": "AUX 8" + }, + "pidHelp1": { + "message": "The values below change the behaviour of the ANGLE and HORIZON flight modes. Different PID controllers handle the LEVEL values differently. Please check the documentation." + }, + "configHelp1": { + "message": "RSSI is a measurement of signal strength and is very handy so you know when your aircraft isw going out of range or if it is suffering RF interference." } } \ No newline at end of file diff --git a/main.css b/main.css index 59d0c98b..2a469281 100644 --- a/main.css +++ b/main.css @@ -37,17 +37,10 @@ a.disabled { } /* Help-Icon */ -span .helpicon { - float: right; - margin-top: 2px; - margin-right: 0px; - display: block; - height: 14px; - width: 14px; - opacity: 0.2; - background-image: url(images/icons/cf_icon_info_grey.svg); - background-size: contain; - background-position: center; +.helpicon:hover { + opacity: 1.0; + background-image: url(images/icons/cf_icon_info_green.svg); + transition: none; } .helpicon { @@ -61,12 +54,10 @@ span .helpicon { background-image: url(images/icons/cf_icon_info_grey.svg); background-size: contain; background-position: center; + transition: none; } -.helpicon:hover { - opacity: 1.0; - background-image: url(images/icons/cf_icon_info_green.svg); -} + /* Change here the content of the documentation button in all tabs!!! @@ -1465,7 +1456,13 @@ dialog { margin-right: 7px; height: 14px; width: 14px; + transition: none; + } + + #tooltiptext { + } + .gps_false { padding: 0px 3px 0px 3px; font-size: 10px; diff --git a/main.js b/main.js index a7a96b4e..44763056 100644 --- a/main.js +++ b/main.js @@ -131,9 +131,32 @@ $(document).ready(function () { secondaryColor: '#c4c4c4' }); - $(html).removeClass('toggle'); + $(html).removeClass('togglemedium'); }); + + // loading tooltip + jQuery(document).ready(function($) { + $('cf_tip').each(function() { // Grab all ".cf_tip" elements, and for each... + log(this); // ...print out "this", which now refers to each ".cf_tip" DOM element + }); + + $('.cf_tip').each(function() { + $(this).jBox('Tooltip', { + content: $(this).children('.cf_tooltiptext'), + delayOpen: 100, + delayClose: 100, + position: { + x: 'right', + y: 'center' + }, + outside: 'x' + }); + }); + }); + + + // Build link to in-use CF version documentation var documentationButton = $('div#content #button-documentation'); documentationButton.html("Documentation for "+CONFIG.flightControllerVersion); @@ -428,16 +451,6 @@ $("#showlog").on('click', function() { +// loading tooltip PLACEHOLDER + -// loading tooltip -$(document).ready(function() { -$('.cf_tip').jBox('Tooltip', { - delayOpen: 100, - delayClose: 100, - position: { - x: 'right', - y: 'center' - }, - outside: 'x' -}); -}); diff --git a/tabs/configuration.html b/tabs/configuration.html index 83c5494a..e6760af3 100644 --- a/tabs/configuration.html +++ b/tabs/configuration.html @@ -281,9 +281,10 @@
Accelerometer/Level
-
+
+
+
|
diff --git a/tabs/pid_tuning.js b/tabs/pid_tuning.js
index 8743c87b..6f256abf 100755
--- a/tabs/pid_tuning.js
+++ b/tabs/pid_tuning.js
@@ -264,20 +264,6 @@ TABS.pid_tuning.initialize = function (callback) {
// translate to user-selected language
localize();
- // loading tooltip
- $(document).ready(function() {
- $('.cf_tip').jBox('Tooltip', {
- delayOpen: 100,
- delayClose: 100,
- position: {
- x: 'right',
- y: 'center'
- },
- outside: 'x'
- });
- });
-
-
hideUnusedPids(CONFIG.activeSensors);
$('#showAllPids').on('click', function(){
---|