diff --git a/README.md b/README.md index c292c55..db38b89 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Octavalidate - JS V1.3.0 [![Verified on Openbase](https://badges.openbase.com/js/verified/octavalidate.svg?style=openbase&token=hRDLECo09Y2dpWagwvsa7n8kkQO4y/lNcnh7ZH4FnH0=)](https://openbase.com/js/octavalidate?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge) +# Octavalidate - JS V1.3.2 [![Verified on Openbase](https://badges.openbase.com/js/verified/octavalidate.svg?style=openbase&token=hRDLECo09Y2dpWagwvsa7n8kkQO4y/lNcnh7ZH4FnH0=)](https://openbase.com/js/octavalidate?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge) [![Rate this package](https://badges.openbase.com/js/rating/octavalidate.svg?style=openbase&token=hRDLECo09Y2dpWagwvsa7n8kkQO4y/lNcnh7ZH4FnH0=)](https://openbase.com/js/octavalidate?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge) @@ -6,7 +6,6 @@ This JavaScript library helps to validate your frontend (HTML) forms using valid We have included a **[demo.html](https://octagon-simon.github.io/octaValidate/demo.html)** file which you can play with to see how this library really works. - [![Featured on Openbase](https://badges.openbase.com/js/featured/octavalidate.svg?style=openbase&token=hRDLECo09Y2dpWagwvsa7n8kkQO4y/lNcnh7ZH4FnH0=)](https://openbase.com/js/octavalidate?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge) diff --git a/demo.html b/demo.html index dc4bcd9..c99b4ac 100644 --- a/demo.html +++ b/demo.html @@ -68,12 +68,9 @@ input:not([type="file"]) { display: block; border-radius: 5px; - background-color: #fcfcfc !important; - border: 2px solid #aaaaaa; - width: 100%; - width: -moz-available; - width: -webkit-fill-available; - width: fill-available; + background-color: #e9e9e9 !important; + border: 2px solid #787878; + width: calc(100% - 24px); padding: 10px; } @@ -124,9 +121,10 @@ } button { - all: unset; + border: 2px solid #fff; text-align: center; - padding: 10px 0px 10px 0px; + padding: 15px; + border-radius: 10px; color: #fff; cursor: pointer; } @@ -139,7 +137,7 @@ .form-cont { padding: var(--container-padding); border: 1px solid #ddd; - border-radius: 20px; + border-radius: 5px; max-width: var(--container-width); } @@ -186,7 +184,7 @@ .form-section { position: relative; - margin-top: 6rem; + margin-top: 8rem; } .bg-white { @@ -349,7 +347,7 @@ /* Add a z-index if needed */ left: 50%; /* Center the snackbar */ - bottom: 30px; + top: 10px; /* 30px from the bottom */ height: 3rem; display: inline-flex; @@ -417,41 +415,52 @@ } } - .footer-link a { + a.footer-link { text-decoration: none; color: rgb(24 163 221); } - .footer-link a:hover { + a.footer-link:hover { color: #fff; text-decoration: none; } - .footer-link-wrapper { - display: flex; - justify-content: center; - } - - .footer-link-wrapper ul { - margin-left: 10px; - list-style-type: none; - } - .link { color: inherit; } - @media screen and (max-width : 500px) { - .footer-link-wrapper { - display: block; - text-align: center; - } + .brand-title { + margin: 10px; + font-size: 2em; + font-weight: bold; + color: #fff; + } + + .d-block { + display: block !important; } :root { --container-width: 370px; --container-padding: 20px; } + + /*** + I FIXED A LONG EXISTING BUG YAAAY! + You might not have noticed that this library had a bug with validating form inputs using the onchange handler. + length now needs to check if value exists before it works + removed successBorder entirely + + Enjoying octavalidate? Please leave a short review on Openbase: https://openbase.com/js/octavalidate#rate + + As a developer of this great library, I can assure you that this is the best form validation library. + + In all my projects, I use octavalidate to validate form inputs both client-side and server-side, and the implementation process is quick. + + In as much as there are inbuilt rules, the library allows you to add your custom regular expression if you wish to validate a value that must follow a particular pattern. + + Try it out today! + ***/ @@ -459,11 +468,12 @@