OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <!-- |
| 3 @license |
| 4 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 5 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 7 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 8 Code distributed by Google as part of the polymer project is also |
| 9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 10 --> |
| 11 <html> |
| 12 <head> |
| 13 |
| 14 <meta charset="utf-8"> |
| 15 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 16 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1, user-scalable=yes"> |
| 17 |
| 18 <title>gold-cc-input demo</title> |
| 19 |
| 20 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> |
| 21 <link rel="import" href="../gold-cc-input.html"> |
| 22 |
| 23 <link rel="stylesheet" href="../../paper-styles/paper-styles.html"> |
| 24 <link rel="import" href="../../paper-styles/demo-pages.html"> |
| 25 |
| 26 </head> |
| 27 <body> |
| 28 <div class="vertical-section-container centered"> |
| 29 <h4>Standard</h4> |
| 30 <div class="vertical-section"> |
| 31 <gold-cc-input></gold-cc-input> |
| 32 <gold-cc-input auto-validate label="Auto-validating"></gold-cc-input> |
| 33 </div> |
| 34 |
| 35 <h4>Pre-validated</h4> |
| 36 <div class="vertical-section"> |
| 37 <gold-cc-input label="Visa" value="4000 0000 0000 0002" auto-validate></go
ld-cc-input> |
| 38 <gold-cc-input label= "MasterCard" value="5100 0000 0000 0008" auto-valida
te></gold-cc-input> |
| 39 <gold-cc-input label="Discover" value="6011 0000 0000 0004" auto-validate>
</gold-cc-input> |
| 40 <gold-cc-input label="Invalid Discover Card" value="6011 0000 0000 1233" a
uto-validate></gold-cc-input> |
| 41 </div> |
| 42 |
| 43 <h4>Custom error message</h4> |
| 44 <div class="vertical-section"> |
| 45 <gold-cc-input auto-validate label="Cats only" error-message="needs more c
ats" required></gold-cc-input> |
| 46 <div> |
| 47 </div> |
| 48 </body> |
OLD | NEW |