aboutsummaryrefslogtreecommitdiffstats
path: root/public/projects/js-small-apps/bin2dec/index.html
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-20 16:11:50 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-20 16:15:08 +0100
commit73a5c7fae9ffbe9ada721148c8c454a643aceebe (patch)
treec8fad013ed9b5dd589add87f8d45cf02bbfc6e91 /public/projects/js-small-apps/bin2dec/index.html
parentb01239fbdcc5bbc5921f73ec0e8fee7bedd5c8e8 (diff)
chore!: restructure repo
I separated public files from the config/dev files. It improves repo readability. I also moved dotenv helper to public/inc directory and extract the Matomo tracker in the same directory.
Diffstat (limited to 'public/projects/js-small-apps/bin2dec/index.html')
-rw-r--r--public/projects/js-small-apps/bin2dec/index.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/public/projects/js-small-apps/bin2dec/index.html b/public/projects/js-small-apps/bin2dec/index.html
new file mode 100644
index 0000000..dd8951d
--- /dev/null
+++ b/public/projects/js-small-apps/bin2dec/index.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Bin2Dec</title>
+ <link rel="stylesheet" href="style.css" />
+ </head>
+ <body>
+ <header class="header"><h1 class="branding">Bin2Dec</h1></header>
+ <main class="main">
+ <form action="#" method="POST" class="form">
+ <fieldset class="form__fieldset">
+ <legend class="form__legend">
+ Convert a binary number to decimal
+ </legend>
+ <label class="form__label">Binary:</label>
+ <input
+ type="text"
+ name="binary-string"
+ id="input-field"
+ value=""
+ required
+ pattern="[0-1]{1,}"
+ class="form__input"
+ />
+ <button type="submit" class="btn">Convert</button>
+ </fieldset>
+ <div class="result-box">
+ <p class="result-box__label">Decimal:</p>
+ <p id="result"></p>
+ </div>
+ </form>
+ </main>
+ <footer class="footer">
+ <p class="copyright">Bin2Dec. MIT 2021. Armand Philippot.</p>
+ </footer>
+ <script src="app.js"></script>
+ </body>
+</html>