1//it works for small pieces of code, you still have to do most by hand. Just like you do at night
2https://properprogramming.com/tools/jquery-to-javascript-converter/
1$(document).ready(function () {
2 $('#menu').click(function () {
3 $(this).toggleClass('fa-times');
4 $('header').toggleClass('toggle');
5 });
6 $(window).on('scroll load', function () {
7 $('#menu').removeClass('fa-times');
8 $('header').removeClass('toggle');
9 if($(window).scrollTop() > 0){
10 $('.top').show();
11 }else{
12 $('.top').hide();
13 }
14 });
15 $('a[]href*="#"]').on('click',function (e) {
16 e.preventDefault();
17 $('html, body').animate({
18 scrolltop : $($(this).attr('href')).offset().top,
19
20 },
21 500,
22 'linear'
23 );
24 });
25 });