JQuery a JavaScript Converter Online
// this worked for me
https://www.workversatile.com/jquery-to-javascript-converter/
Better Barracuda
// this worked for me
https://www.workversatile.com/jquery-to-javascript-converter/
There is no i guess:D
$(document).ready(function () {
$('#menu').click(function () {
$(this).toggleClass('fa-times');
$('header').toggleClass('toggle');
});
$(window).on('scroll load', function () {
$('#menu').removeClass('fa-times');
$('header').removeClass('toggle');
if($(window).scrollTop() > 0){
$('.top').show();
}else{
$('.top').hide();
}
});
$('a[]href*="#"]').on('click',function (e) {
e.preventDefault();
$('html, body').animate({
scrolltop : $($(this).attr('href')).offset().top,
},
500,
'linear'
);
});
});