Add an exponential backoff to rechecking the app list doodle.
[chromium-blink-merge.git] / third_party / polymer / components-chromium / paper-toast / demo.html
blob2e61865eaebb786940ce16d6e21d095182d3a51a
1 <!--
2 @license
3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9 -->
10 <!doctype html>
11 <html>
12 <head>
13 <title>paper-toast</title>
15 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
16 <meta name="mobile-web-app-capable" content="yes">
17 <meta name="apple-mobile-web-app-capable" content="yes">
19 <script src="../webcomponentsjs/webcomponents.js"></script>
21 <link rel="import" href="paper-toast.html">
22 <link rel="import" href="../font-roboto/roboto.html" >
23 <link rel="import" href="../paper-button/paper-button.html" >
25 <style>
27 html, body {
28 height: 100%;
31 body {
32 overflow: hidden;
33 margin: 0;
34 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
35 -webkit-user-select: none;
36 -moz-user-select: none;
37 -ms-user-select: none;
38 user-select: none;
39 -webkit-tap-highlight-color: rgba(0,0,0,0);
40 -webkit-touch-callout: none;
43 paper-button {
44 margin: 20px;
47 </style>
49 </head>
50 <body unresolved>
52 <paper-button raised onclick="document.querySelector('#toast1').show()">Discard Draft</paper-button>
54 <paper-button raised onclick="document.querySelector('#toast2').show()">Get Messages</paper-button>
56 <paper-button raised onclick="document.querySelector('#toast3').show()">Send Message</paper-button>
58 <paper-toast id="toast1" text="Your draft has been discarded."></paper-toast>
60 <paper-toast id="toast2" role="alert" text="Connection timed out. Showing limited messages.">
61 <div style="color: #eeff41;" onclick="console.log('RETRY')">Retry</div>
62 </paper-toast>
64 <paper-toast id="toast3" class="capsule" text="Message sent" style="padding-right: 60px;"></paper-toast>
66 </body>
67 </html>