jQuery(document).ready(function($){ $('.head-nav .menu').slicknav({label: '' , prependTo: 'header#head .head-area .container'}); $('.head-nav ul li').hover(function(){ $('.sub-menu:first, .children:first',this).stop(true,true).slideDown('fast'); }, function(){ $('.sub-menu:first, .children:first',this).stop(true,true).slideUp('fast'); }); $(window).bind('scroll', function () { if ($(window).scrollTop() > 0) { $('#head .head-area').addClass('fixed') } else { $('#head .head-area').removeClass('fixed'); } }); var Page = (function() { var $navArrows = $( '#nav-arrows' ), slitslider = $( '#slider' ).slitslider( { //autoplay: true, } ), init = function() { initEvents(); }, initEvents = function() { // add navigation events $navArrows.children( ':last' ).on( 'click', function() { slitslider.next(); return false; } ); $navArrows.children( ':first' ).on( 'click', function() { slitslider.previous(); return false; } ); }; return { init : init }; })(); Page.init(); /** * Notes: * * example how to add items: */ /* var $items = $('

some text

bla bla

Margi Clarke
'); // call the plugin's add method ss.add($items); */ });