first commit
This commit is contained in:
commit
346d1cb29d
287 changed files with 43533 additions and 0 deletions
37
themes/contrib/bootstrap_mint/js/bootstrap-minte628.js
vendored
Normal file
37
themes/contrib/bootstrap_mint/js/bootstrap-minte628.js
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
/**
|
||||
* @file
|
||||
* Contains JavaScript used in Bootstrap Mint theme.
|
||||
*/
|
||||
|
||||
(function ($) {
|
||||
|
||||
'use strict';
|
||||
|
||||
// Responsive main menu.
|
||||
$('#main-menu').smartmenus();
|
||||
|
||||
// Main menu toggle.
|
||||
$('.navbar-toggle').click(function () {
|
||||
$('.region-primary-menu').slideToggle();
|
||||
});
|
||||
|
||||
// Hide dropdown menu.
|
||||
if ($(window).width() < 768) {
|
||||
$('.region-primary-menu li a:not(.has-submenu)').click(function () {
|
||||
$('.region-primary-menu').hide();
|
||||
});
|
||||
}
|
||||
|
||||
// Sliding header.
|
||||
$('.toggle-switch').click(function () {
|
||||
$('#sliding-header-wrap').slideToggle();
|
||||
});
|
||||
|
||||
// Bootstrap tooltip.
|
||||
$('[data-toggle=tooltip]').tooltip();
|
||||
|
||||
// Smooth scroll to top.
|
||||
$('#toTop a').click(function () {
|
||||
$('body,html').animate({scrollTop: 0}, 1000);
|
||||
});
|
||||
})(jQuery);
|
Loading…
Add table
Add a link
Reference in a new issue