From 4305224d6c89feab0cfa1d4cd3c8a6de92a66f48 Mon Sep 17 00:00:00 2001 From: Nima Maghooli Date: Wed, 17 Apr 2024 11:22:34 +0330 Subject: [PATCH] Update main.js --- assets/js/main.js | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/assets/js/main.js b/assets/js/main.js index b1da423..cb62546 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -1,10 +1,10 @@ -/** -* Template Name: MyResume -* Updated: Mar 10 2023 with Bootstrap v5.2.3 -* Template URL: https://bootstrapmade.com/free-html-bootstrap-template-my-resume/ -* Author: BootstrapMade.com -* License: https://bootstrapmade.com/license/ -*/ +/** +* Template Name: MyResume +* Updated: Mar 10 2023 with Bootstrap v5.2.3 +* Template URL: https://bootstrapmade.com/free-html-bootstrap-template-my-resume/ +* Author: BootstrapMade.com +* License: https://bootstrapmade.com/license/ +*/ (function() { "use strict"; @@ -267,4 +267,10 @@ */ new PureCounter(); -})() \ No newline at end of file +window.onbeforeunload = () => { + for(const form of document.getElementsByTagName('form')) { + form.reset(); + } +} + +})()