diff options
author | skaman82 <albert@wd-design.de> | 2015-11-11 13:54:56 +0300 |
---|---|---|
committer | skaman82 <albert@wd-design.de> | 2015-11-11 13:54:56 +0300 |
commit | e429cf623d892d1ec2b38f5870d0e375e2572f3a (patch) | |
tree | 063f7f485b4cd270cb623fa462a2467a6432542a /main.js | |
parent | b8fa745571f214f51c17f8aaf06c1c4434912e88 (diff) |
placing tooltip content into the json file
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 39 |
1 files changed, 26 insertions, 13 deletions
@@ -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' -}); -}); |