From c4985fc53fbf6e63cde58b394a1f10c2cf64d2a8 Mon Sep 17 00:00:00 2001 From: Zaccharie Jacquat Date: Wed, 8 Mar 2017 11:11:47 +0545 Subject: [PATCH] Inline demo update --- README.md | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index ec6271f..ea6e23b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/koada-os/paper-input-username) -##<paper-input-username> +# Material design: Text fields with username check system @@ -9,6 +9,7 @@ Material design: Text fields with username check system Example: + ```html - - var validInput = document.getElementById('validInput'); - var failInput = document.getElementById('failInput') - var customFailInput = document.getElementById('customFailInput') - validInput.addEventListener('usernameChanged', function(e,w) { - console.log(e,w); - validInput.usernameValid(); - }); - failInput.addEventListener('usernameChanged', function() { - failInput.usernameInvalid('The username already exists'); - }); + ```