Skip to content

DigiHoss/Js-pop-up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Js-Pop-Up

Small demo project that shows a popup using HTML, CSS and JavaScript.

Contents

  • index.html — main page
  • style.css — styles
  • script.js — popup behavior

Run locally

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:8000

Or with Node (if you have http-server):

npx http-server -c-1 .

Prepare & push to GitHub

  1. Create a repository on GitHub (via web UI or gh CLI).
  2. 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 main

If you prefer HTTPS remote:

git remote add origin https://github.com/<username>/<repo>.git
git push -u origin main

If you have the GitHub CLI installed you can create the remote from the command line:

gh repo create <username>/<repo> --public --source=. --remote=origin --push

GitHub Pages

To 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>/.

License

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors