$(".nav-toggle").on("touchstart click",function(a){a.preventDefault(),$(this).toggleClass("active")}),$(function(){var a=$(".navbar").height();$(window).on("scroll",{previousTop:0},function(){var b=$(window).scrollTop();b0&&$(".navbar").hasClass("fixed")?$(".navbar").addClass("visible"):$(".navbar").removeClass("visible fixed"):($(".navbar").removeClass("visible"),b>a&&!$(".navbar").hasClass("fixed")&&$(".navbar").addClass("fixed")),this.previousTop=b})}),$("#comments").hide(),$(".toggle-comments").on("touchstart click",function(a){a.preventDefault(),$("#comments").toggle("slow",function(){var a=$(".toggle-comments"),b="Hide Comments"===a.text()?"Show Comments":"Hide Comments";$(a).text(b)})}),$("#commentform").validate({rules:{author:{required:!0,minlength:2},email:{required:!0,email:!0},comment:{required:!0,minlength:20}},messages:{author:"Please enter in your name.",email:"Please enter a valid email address.",comment:"Nothing to Say?"},errorElement:"div",errorPlacement:function(a,b){b.before(a)}}),$(document).ready(function(){cookieNotification()});var hideCookieNotification=function(){$(".js-cookie-notification").delay(5e3).fadeOut("slow"),Cookies.set("EU-GDPR-Cookie","true",{expires:365})},cookieNotification=function(){var a=function(){return $(".js-cookie-notification").fadeOut("slow"),Cookies.set("EU-GDPR-Cookie","true",{expires:365}),!1};"true"===Cookies.get("EU-GDPR-Cookie")?console.log("EU GDPR cookie notification set"):(console.log("EU GDPR cookie notification not set"),$(".js-cookie-notification").css({display:"block"}),$(".js-cookie-notification").find(".js-cookie-notification-hide").click(a))};