Added search function with DuckDuckGo.
This commit is contained in:
parent
a5f63128cf
commit
efce838267
1 changed files with 65 additions and 14 deletions
|
|
@ -3,11 +3,19 @@
|
|||
* A JavaScript file for the theme.
|
||||
*/
|
||||
|
||||
$(document).ready(function () {
|
||||
(function ($) {
|
||||
|
||||
'use strict';
|
||||
|
||||
// Add a js class to the html-tag when JavsScript is active.
|
||||
$('html').addClass('js');
|
||||
|
||||
// Activate he SlickNav menu for small screens.
|
||||
if (window.matchMedia && $.isFunction($.fn.slicknav)) {
|
||||
var mq = window.matchMedia("(max-width: 666px)");
|
||||
var mq = window.matchMedia('(max-width: 666px)');
|
||||
if (mq.matches) {
|
||||
$('.main-menu').hide().find('.navbar').filter(':first').slicknav();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
|
|
|||
Loading…
Reference in a new issue