Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskaman82 <albert@wd-design.de>2015-11-11 13:54:56 +0300
committerskaman82 <albert@wd-design.de>2015-11-11 13:54:56 +0300
commite429cf623d892d1ec2b38f5870d0e375e2572f3a (patch)
tree063f7f485b4cd270cb623fa462a2467a6432542a /main.js
parentb8fa745571f214f51c17f8aaf06c1c4434912e88 (diff)
placing tooltip content into the json file
Diffstat (limited to 'main.js')
-rw-r--r--main.js39
1 files changed, 26 insertions, 13 deletions
diff --git a/main.js b/main.js
index a7a96b4e..44763056 100644
--- a/main.js
+++ b/main.js
@@ -131,8 +131,31 @@ $(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');
@@ -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'
-});
-});