/*! * jquery hc-mobilenav * =================== * version: 3.0.0 * author: some web media * author url: http://somewebmedia.com * plugin url: https://github.com/somewebmedia/hc-mobile-nav * description: jquery plugin for creating toggled mobile multi-level navigations * license: mit */ !function(y,e){"use strict";var a,l,x=e.document,t=(/ipad|iphone|ipod/.test(navigator.useragent)||!!navigator.platform&&/ipad|iphone|ipod/.test(navigator.platform))&&!e.msstream,w="ontouchstart"in e||navigator.maxtouchpoints||e.documenttouch&&x instanceof documenttouch,o=function(e){return!isnan(parsefloat(e))&&isfinite(e)},b=function(e){return e.stoppropagation()},m=function(n,a,l){return function(e){n&&e.preventdefault(),a&&e.stoppropagation(),"function"==typeof l&&l()}},p=(a=y("head"),l="hc-mobile-nav-style",function(e){var n=a.find("style#"+l);n.length?n.html(e):y('").appendto(a)}),n=function(e,n,a){var l=a.children("li"),o=l.length,i=-1").parent();else if(e.is("nav"))n=e.clone();else if(!(n=e.find("nav, ul").first().clone()).length)return void console.log("%c! hc mobilenav:%c there is no