Skip to content

ThisIs-Developer/Portfolio-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portfolio Actions Status

🚀 Explore the Simplicity of HTML, CSS, and a Touch of JS in Building Your Unique Showcase. Let's Elevate Your Portfolio Game Together! 💼❤️

Key Feature

Submit a Form to Google Sheets

This Portfolio Contact form can stores the submitted form data in Google Sheets using plain 'ol JavaScript (ES6), Google Apps Script.

Discover the Process: Learn from @jamiewilson Form-to-Google-Sheets Repository 📝🔗 #OpenSource"

Input the <SCRIPT> in index.html:

<script>
        const scriptURL = 'https://script.google.com/macros/s/AKfycbzwGkCv4dbdFpYjSYbThchpqYSgudoYmK_KtdmS6RkK-vyFqgPCKwxicx0xdmTErDjM/exec'
        const form = document.forms['submit-to-google-sheet']
        const msg = document.getElementById("msg")
        const waitMsg = document.getElementById("wait-msg")
        form.addEventListener('submit', e => {
            e.preventDefault();
            waitMsg.innerHTML = "Please wait...";
            fetch(scriptURL, { method: 'POST', body: new FormData(form) })
                .then(response => {
                    waitMsg.innerHTML = "";
                    msg.innerHTML = "Message sent successfully";
                    setTimeout(function () {
                        msg.innerHTML = "";
                    }, 5000);
                    form.reset();
                })
                .catch(error => {
                    waitMsg.innerHTML = "";
                    console.error('Error!', error.message);
                });
        });
</script>

Layout of Contact form

Screenshot 2023-08-08 135921

After clicking the "Submit" buttom.

"Please wait..."

Screenshot (47)

After sending Message.

"Message sent successfully"

Screenshot (495)

screencapture-baivabsarkar-me-2023-08-08-13_48_17

About

This repository serves as an archive of my past portfolio websites, showcasing the evolution of my web development skills and design style over time. Each branch corresponds to a different version of my portfolio, allowing you to explore the various iterations and changes that have been made.

Topics

Resources

License

Stars

Watchers

Forks

Contributors