mirror of
https://github.com/bigchaindb/site.git
synced 2024-12-02 05:57:18 +01:00
14 lines
379 B
JavaScript
14 lines
379 B
JavaScript
//=include popper.js/dist/umd/popper.js
|
|
//=include bootstrap/js/dist/util.js
|
|
//=include bootstrap/js/dist/dropdown.js
|
|
|
|
$('body').on('mouseenter mouseleave', '.dropdown--hover', function(e) {
|
|
var _d = $(e.target).closest('.dropdown--hover')
|
|
|
|
_d.addClass('show')
|
|
|
|
setTimeout(function () {
|
|
_d[_d.is(':hover') ? 'addClass' : 'removeClass']('show')
|
|
}, 300)
|
|
})
|