Small demo project that shows a popup using HTML, CSS and JavaScript.
index.html— main pagestyle.css— stylesscript.js— popup behavior
You can open index.html directly in your browser. For a lightweight local server (recommended if you use modules or want a proper dev URL):
# from project root
python3 -m http.server 8000
# then open http://localhost:8000Or with Node (if you have http-server):
npx http-server -c-1 .- Create a repository on GitHub (via web UI or
ghCLI). - Run these commands from the project root to push:
git init
git add .
git commit -m "Initial commit"
git branch -M main
# replace <username> and <repo> with your GitHub information
git remote add origin git@github.com:<username>/<repo>.git
git push -u origin mainIf you prefer HTTPS remote:
git remote add origin https://github.com/<username>/<repo>.git
git push -u origin mainIf you have the GitHub CLI installed you can create the remote from the command line:
gh repo create <username>/<repo> --public --source=. --remote=origin --pushTo publish with GitHub Pages, enable Pages in repository Settings and point it to the main branch (or gh-pages if you prefer a separate branch). The site will then be served at https://<username>.github.io/<repo>/.
This project is licensed under the MIT License. See LICENSE.
If you'd like, I can also:
- Add a small CI workflow for linting or deployment
- Create a
gh-CLI script to create the repo remotely (requires your authorization)
Tell me which of those you'd like next.