const alert = (level, text) => { $('#alert').empty(); const html = `

${text}

`; $('#alert').append(html); $("html, body").animate({ scrollTop: 0 }); };