1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 12:25:13 +03:00

placing tooltip content into the json file

This commit is contained in:
skaman82 2015-11-11 11:54:56 +01:00
parent b8fa745571
commit e429cf623d
7 changed files with 52 additions and 64 deletions

39
main.js
View file

@ -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'
});
});