OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <!-- |
| 3 Copyright 2013 The Polymer Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style |
| 5 license that can be found in the LICENSE file. |
| 6 --> |
| 7 <html class="polymer-ui-full-bleed"> |
| 8 <head> |
| 9 <title>polymer-ui-pages</title> |
| 10 <meta charset="utf-8"> |
| 11 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 12 <!-- load toolkit --> |
| 13 <script src="../platform/platform.js"></script> |
| 14 <!-- import elements--> |
| 15 <link rel="import" href="polymer-ui-pages.html"> |
| 16 <!-- --> |
| 17 <link rel="stylesheet" href="../polymer-ui-base/base.css"> |
| 18 </head> |
| 19 <body class="polymer-ui-body-text polymer-ui-full-bleed" unresolved> |
| 20 <polymer-ui-pages selected="0"> |
| 21 <span>One</span> |
| 22 <span>Two</span> |
| 23 <span>Three</span> |
| 24 <span>Four</span> |
| 25 <span>Five</span> |
| 26 </polymer-ui-pages> |
| 27 <script> |
| 28 document.body.onclick = function(e) { |
| 29 var p = document.querySelector('polymer-ui-pages'); |
| 30 p.selected = (p.selected + 1) % 5; |
| 31 } |
| 32 </script> |
| 33 </body> |
| 34 </html> |
OLD | NEW |