ausglamr/blogs/static/js/glamr.js

8 lines
234 B
JavaScript

function showLoading(){
form = document.querySelector("form")
loader = document.querySelector(".loader")
loader.removeAttribute("hidden")
form.setAttribute("hidden", "hidden")
}
addEventListener('submit', showLoading)