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-cvc-input demo</title> |
| 19 |
| 20 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> |
| 21 <link rel="import" href="../gold-cc-cvc-input.html"> |
| 22 |
| 23 <link rel="stylesheet" href="../../paper-styles/paper-styles.html"> |
| 24 <link rel="import" href="../../paper-styles/demo-pages.html"> |
| 25 </head> |
| 26 <style> |
| 27 gold-cc-cvc-input { |
| 28 width: 80px; |
| 29 margin-left: auto; |
| 30 margin-right: auto; |
| 31 } |
| 32 </style> |
| 33 <body> |
| 34 <div class="vertical-section-container centered"> |
| 35 <h4>Standard</h4> |
| 36 <div class="vertical-section layout horizontal"> |
| 37 <gold-cc-cvc-input class="small"></gold-cc-cvc-input> |
| 38 <gold-cc-cvc-input class="small" label="AMEX" card-type="amex"></gold-cc
-cvc-input> |
| 39 <gold-cc-cvc-input auto-validate label="Auto"></gold-cc-cvc-input> |
| 40 </div> |
| 41 |
| 42 <h4>Pre-validated</h4> |
| 43 <div class="vertical-section layout horizontal"> |
| 44 <gold-cc-cvc-input required auto-validate value="123"></gold-cc-cvc-input> |
| 45 <gold-cc-cvc-input required auto-validate card-type="amex" value="1234"></
gold-cc-cvc-input> |
| 46 <gold-cc-cvc-input required auto-validate value="12"></gold-cc-cvc-input> |
| 47 </div> |
| 48 |
| 49 <h4>Custom error message</h4> |
| 50 <div class="vertical-section"> |
| 51 <gold-cc-cvc-input required auto-validate error-message="Please enter a va
lid CVC"></gold-cc-cvc-input> |
| 52 </div> |
| 53 </div> |
| 54 </body> |
OLD | NEW |