From f37a483e0168085318f3c1e2061df2f5eb51d48d Mon Sep 17 00:00:00 2001 From: Denis Seleznev Date: Sat, 10 Feb 2024 13:32:23 +0300 Subject: [PATCH] Add form --- README.md | 5 +++- example/form.html | 73 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 example/form.html diff --git a/README.md b/README.md index f146804..bf92ef7 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,10 @@ [Small package](https://bundlephobia.com/result?p=calc-aspect-ratio) for calculating aspect ratio of display resolution. -## [Demo](https://vvideo.github.io/calc-aspect-ratio/example/index.html) +## Demo +- [Aspect ratio for your screen]](https://vvideo.github.io/calc-aspect-ratio/example/index.html) +- [Calculate aspect ratio]](https://vvideo.github.io/calc-aspect-ratio/example/form.html) + ## Install `npm i --save-dev calc-aspect-ratio` diff --git a/example/form.html b/example/form.html new file mode 100644 index 0000000..a3831df --- /dev/null +++ b/example/form.html @@ -0,0 +1,73 @@ + + + + Calc Aspect Ratio + + + + +
+
Calculate aspect ratio
+
+ Width: +
+
+ Height: +
+
+ Aspect ratio: +
+
+ + +