Commit 224c4c02 authored by Goutte's avatar Goutte

Restore the site javascript.

parent e3c02c56
...@@ -32,28 +32,28 @@ jQuery(document).ready(function($){ ...@@ -32,28 +32,28 @@ jQuery(document).ready(function($){
} }
}); });
//Smooth scroll to start // //Smooth scroll to start
$('#to-start').click(function(){ // $('#to-start').click(function(){
var start_y = $('#start').position().top; // var start_y = $('#start').position().top;
var header_offset = 45; // var header_offset = 45;
window.scroll({ top: start_y - header_offset, left: 0, behavior: 'smooth' }); // window.scroll({ top: start_y - header_offset, left: 0, behavior: 'smooth' });
return false; // return false;
}); // });
//
//Smooth scroll to top // //Smooth scroll to top
$('#to-top').click(function(){ // $('#to-top').click(function(){
window.scroll({ top: 0, left: 0, behavior: 'smooth' }); // window.scroll({ top: 0, left: 0, behavior: 'smooth' });
return false; // return false;
}); // });
//
// Responsive Menu // // Responsive Menu
$('#toggle').click(function () { // $('#toggle').click(function () {
$(this).toggleClass('active'); // $(this).toggleClass('active');
$('#overlay').toggleClass('open'); // $('#overlay').toggleClass('open');
$('body').toggleClass('mobile-nav-open'); // $('body').toggleClass('mobile-nav-open');
}); // });
//
// Tree Menu // // Tree Menu
$(".tree").treemenu({delay:300}); // $(".tree").treemenu({delay:300});
}); });
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
{# … No we did not, not until we remake the language selector #} {# … No we did not, not until we remake the language selector #}
{% do assets.addJs('jquery', 101) %} {% do assets.addJs('jquery', 101) %}
{# {% do assets.addJs('theme://js/jquery.treemenu.js', {group:'bottom'}) %}#} {# {% 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 %} {% endblock %}
{{ assets.js()|raw }} {{ 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