/*! * navscroll.js * version: 1.2.0 * author: jeroen hammann * * copyright (c) 2014 jeroen hammann * released under the mit license */ ;(function ($, window, document, undefined) { 'use strict'; var pluginname = 'navscroll', defaults = { // the time it takes to scroll to the element (set this to 0 so it obviously won't show an animation). scrolltime: 500, // the class of the items which invokes the scroll animation. all anchor tags inside the element are clickable when the value is empty. navitemclassname: '', // set the height of the navigation (to use as offset). 'auto' let's the plugin determine the height automatically, a number determines the height in px. navheight: 'auto', // if your navigation hides and is used as a dropdown on small screens setting this to true hides the dropdown after a click. mobiledropdown: false, // additionaly you can insert the mobile nav's classname here, when left empty the plugin searches for a