Hugo Bilberry First commit to gitea@cowbay.org
This commit is contained in:
28
public/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js
Normal file
28
public/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js
Normal file
@@ -0,0 +1,28 @@
|
||||
$(document).ready(function() {
|
||||
$(".toggler").click(function () {
|
||||
$("nav").slideToggle();
|
||||
$("#search").autocomplete("val", "");
|
||||
});
|
||||
|
||||
$(document).keyup(function (e) {
|
||||
if (e.keyCode === 27) {
|
||||
if ( ! $("nav").hasClass('permanentTopNav') )
|
||||
$("nav").slideUp();
|
||||
$("#search").autocomplete("val", "");
|
||||
}
|
||||
else if (e.keyCode === 83){
|
||||
if ( ! $("nav").hasClass('permanentTopNav') )
|
||||
$("nav").slideDown();
|
||||
$("#search").focus();
|
||||
}
|
||||
})
|
||||
|
||||
$('.flexslider').flexslider({
|
||||
animation: "slide",
|
||||
prevText: "",
|
||||
nextText: "",
|
||||
pauseOnHover: true,
|
||||
});
|
||||
});
|
||||
|
||||
hljs.initHighlightingOnLoad();
|
||||
Reference in New Issue
Block a user