Skip to content

Instantly share code, notes, and snippets.

View AlexeyKuzmich's full-sized avatar

AlexeyKuzmich

View GitHub Profile
@AlexeyKuzmich
AlexeyKuzmich / hoverToTouch.html
Last active December 1, 2017 08:10
Bootstrap nav menu hack
/**
* Bootstrap nav menu hack
*/
$(window).on('load', function () {
// On page load
if ($(window).width() < 768) {
$('.navbar-nav > li > .dropdown-toggle').removeAttr('data-hover').attr('data-toggle', 'dropdown');
}
// On window resize