Added search function with DuckDuckGo.

This commit is contained in:
Fredrik Jonsson 2017-03-20 19:17:04 +01:00
commit efce838267

View file

@ -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);