Static marketing website for KR Agency (water distribution service), built with plain HTML, CSS, and JavaScript.
- HTML5 (
index.html) - CSS3 (
style.css) - Vanilla JavaScript (
script.js) - External assets:
- Google Fonts
- Font Awesome CDN
kr-water-agency/
|- index.html # Main page markup and all sections
|- style.css # Site styling and responsive rules
|- script.js # Navbar, animations, smooth scroll, contact form submit
No build tools or package installation are required.
- Open
index.htmlin your browser.
From this folder:
python -m http.server 5500Then open:
http://localhost:5500
This option is better for testing form/network requests and browser console logs.
The contact form is submitted from script.js using fetch and FormData.
- Form ID:
contactForm - Endpoint configured in
script.js:const scriptUrl = 'https://script.google.com/macros/s/AKfycbwAc7aDq83CbLXqbblk6giE0DSCZl518N28MIAhfA2IwN62-XuKQrRtXeihEpkTZmZm/exec';
Make sure these input names remain unchanged if your Apps Script expects them:
namephoneemailmessage
If submissions are not appearing in the Google Sheet:
- Verify Web App deployment uses the correct
/execURL. - Re-deploy after script changes (
Deploy->Manage deployments->Edit->Deploy). - Confirm access settings:
Execute as:MeWho has access:Anyone(or suitable public setting for your use case)
- Confirm Spreadsheet ID and sheet name in
doPost(e)are correct. - Check Apps Script logs:
- Open Apps Script project ->
Executions-> select latest run -> inspect logs/errors.
- Open Apps Script project ->
- Check browser console for frontend logs:
Apps Script response: ...Form submission error: ...
- Update text, sections, links, and contact details in
index.html. - Update colors/layout/responsive behavior in
style.css. - Update interactivity and form submission logic in
script.js.
You can host this site on any static hosting provider:
- GitHub Pages
- Netlify
- Vercel
- Firebase Hosting
Upload index.html, style.css, and script.js together in the same directory.