diff --git a/.DS_Store b/.DS_Store index 9886f2a..2a099ce 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/themes/.DS_Store b/themes/.DS_Store new file mode 100644 index 0000000..2f3c72c Binary files /dev/null and b/themes/.DS_Store differ diff --git a/themes/chocolate/.DS_Store b/themes/chocolate/.DS_Store new file mode 100644 index 0000000..a211d9d Binary files /dev/null and b/themes/chocolate/.DS_Store differ diff --git a/themes/chocolate/static/js/skip-to-content.js b/themes/chocolate/static/js/skip-to-content.js new file mode 100644 index 0000000..9285808 --- /dev/null +++ b/themes/chocolate/static/js/skip-to-content.js @@ -0,0 +1,22 @@ +(function($) { + + $('.skip-to-content').click(function (e){ + skipTo(); + e.preventDefault(); + }); + $(".skip-to-content").keyup(function (e){ + if(e.which == '13'){ + skipTo(); + e.preventDefault(); + } + }); +})(jQuery); + + +function skipTo(){ + $('main').attr("tabindex",0).focus(); + $('html,body').animate({ + scrollTop: ($('main').offset().top) + }); +}; +