@disqus_udeYR8WRAq:disqus just put the js as it is in your .js-file.
Do not wrap at in a document.ready
Dee () - 9 years ago - Reply 0
I tried to start the js like this but it does not work.
$( document ).ready(function() {
$(function () {
$('.navbar-toggle-sidebar').click(function () {
$('.navbar-nav').toggleClass('slide-in');
$('.side-body').toggleClass('body-slide-in');
$('#search').removeClass('in').addClass('collapse').slideUp(200);
});
$('#search-trigger').click(function () {
$('.navbar-nav').removeClass('slide-in');
$('.side-body').removeClass('body-slide-in');
$('.search-input').focus();
});
});
});
Abdullah () - 9 years ago - Reply 0