Line 883: | Line 883: | ||
}); | }); | ||
− | |||
− | |||
− | |||
− | + | $(function() { | |
− | + | $( document ).tooltip({ | |
− | + | items: "input", | |
− | + | content: function() { | |
− | + | return $('.myPopover').html(); | |
− | + | }, | |
− | + | position: { | |
− | + | my: "center bottom-20", | |
− | + | at: "center top", | |
− | + | using: function( position, feedback ) { | |
− | + | $( this ).css( position ); | |
− | + | $( "<div>" ) | |
− | + | .addClass( "arrow" ) | |
− | } | + | .addClass( feedback.vertical ) |
− | + | .addClass( feedback.horizontal ) | |
− | + | .appendTo( this ); | |
− | + | } | |
+ | } | ||
+ | }); | ||
− | $( | + | $('.fireTip').click(function () { |
− | + | if(!$(this).hasClass('open')) { | |
− | + | $('#age').trigger('mouseover'); | |
− | + | $(this).addClass('open'); | |
− | + | } else { | |
− | + | $('#age').trigger('mouseout'); | |
− | + | $(this).removeClass('open'); | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
+ | }) | ||
− | + | }); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | }); | + | |
</script> | </script> |
Revision as of 08:31, 31 October 2017