芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/breadwinnerv2/assets/js/scripts/tooltip/tooltip.js
/*========================================================================================= File Name: tooltip.js Description: Tooltips are an updated version, which don’t rely on images, use CSS3 for animations, and data-attributes for local title storage. ---------------------------------------------------------------------------------------- Item Name: Robust - Responsive Admin Theme Version: 1.2 Author: GeeksLabs Author URL: http://www.themeforest.net/user/geekslabs ==========================================================================================*/ (function(window, document, $) { 'use strict'; /******************/ // Tooltip events // /******************/ // onShow event $('#show-tooltip').tooltip({ title: 'Tooltip Show Event', trigger: 'click', placement: 'right' }).on('show.bs.tooltip', function() { alert('Show event fired.'); }); // onShown event $('#shown-tooltip').tooltip({ title: 'Tooltip Shown Event', trigger: 'click', placement: 'top' }).on('shown.bs.tooltip', function() { alert('Shown event fired.'); }); // onHide event $('#hide-tooltip').tooltip({ title: 'Tooltip Hide Event', trigger: 'click', placement: 'bottom' }).on('hide.bs.tooltip', function() { alert('Hide event fired.'); }); // onHidden event $('#hidden-tooltip').tooltip({ title: 'Tooltip Hidden Event', trigger: 'click', placement: 'left' }).on('hidden.bs.tooltip', function() { alert('Hidden event fired.'); }); /*******************/ // Tooltip methods // /*******************/ // Show method $('#show-method').on('click', function() { $(this).tooltip('show'); }); // Hide method $('#hide-method').on('mouseenter', function() { $(this).tooltip('show'); }); $('#hide-method').on('click', function() { $(this).tooltip('hide'); }); // Toggle method $('#toggle-method').on('click', function() { $(this).tooltip('toggle'); }); // Dispose method $('#dispose').on('click', function() { $('#dispose-method').tooltip('dispose'); }); /* Trigger*/ $('.manual').on('click', function() { $(this).tooltip('show'); }); $('.manual').on('mouseout', function() { $(this).tooltip('hide'); }); })(window, document, jQuery);