Commit 224c4c02 authored by Goutte's avatar Goutte

Restore the site javascript.

parent e3c02c56
......@@ -32,28 +32,28 @@ jQuery(document).ready(function($){
}
});
//Smooth scroll to start
$('#to-start').click(function(){
var start_y = $('#start').position().top;
var header_offset = 45;
window.scroll({ top: start_y - header_offset, left: 0, behavior: 'smooth' });
return false;
});
//Smooth scroll to top
$('#to-top').click(function(){
window.scroll({ top: 0, left: 0, behavior: 'smooth' });
return false;
});
// Responsive Menu
$('#toggle').click(function () {
$(this).toggleClass('active');
$('#overlay').toggleClass('open');
$('body').toggleClass('mobile-nav-open');
});
// Tree Menu
$(".tree").treemenu({delay:300});
// //Smooth scroll to start
// $('#to-start').click(function(){
// var start_y = $('#start').position().top;
// var header_offset = 45;
// window.scroll({ top: start_y - header_offset, left: 0, behavior: 'smooth' });
// return false;
// });
//
// //Smooth scroll to top
// $('#to-top').click(function(){
// window.scroll({ top: 0, left: 0, behavior: 'smooth' });
// return false;
// });
//
// // Responsive Menu
// $('#toggle').click(function () {
// $(this).toggleClass('active');
// $('#overlay').toggleClass('open');
// $('body').toggleClass('mobile-nav-open');
// });
//
// // Tree Menu
// $(".tree").treemenu({delay:300});
});
......@@ -31,7 +31,7 @@
{# … No we did not, not until we remake the language selector #}
{% do assets.addJs('jquery', 101) %}
{# {% do assets.addJs('theme://js/jquery.treemenu.js', {group:'bottom'}) %}#}
{# {% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}#}
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
{% endblock %}
{{ assets.js()|raw }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment