Demo on localhost

You may serve downloaded repository by simple Python 3 CLI snippet (for macOS/Linux/Windows WSL).

First, clone repository:

1
2
foo@bar:~$ git clone https://github.com/koddr/sweetconfirm.js.git
foo@bar:~$ cd sweetconfirm.js

Let's serve it:

1
foo@bar:~$ python3 -m http.server 8080 --bind 127.0.0.1

And now, go to browser to see SweetConfirm.js Example page:

1
2
3
4
5
# 01_simple.html
http://127.0.0.1:8080/examples/01_simple.html

# 02_fetch.html
http://127.0.0.1:8080/examples/02_fetch.html