OLD | NEW |
| (Empty) |
1 <!doctype html> | |
2 <html> | |
3 <head> | |
4 <title>paper-toast</title> | |
5 | |
6 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-
scale=1.0"> | |
7 <meta name="mobile-web-app-capable" content="yes"> | |
8 <meta name="apple-mobile-web-app-capable" content="yes"> | |
9 | |
10 <script src="../platform/platform.js"></script> | |
11 | |
12 <link rel="import" href="paper-toast.html"> | |
13 <link rel="import" href="../font-roboto/roboto.html" > | |
14 <link rel="import" href="../paper-button/paper-button.html" > | |
15 | |
16 <style> | |
17 | |
18 html, body { | |
19 height: 100%; | |
20 } | |
21 | |
22 body { | |
23 overflow: hidden; | |
24 margin: 0; | |
25 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial; | |
26 -webkit-user-select: none; | |
27 -moz-user-select: none; | |
28 -ms-user-select: none; | |
29 user-select: none; | |
30 -webkit-tap-highlight-color: rgba(0,0,0,0); | |
31 -webkit-touch-callout: none; | |
32 } | |
33 | |
34 paper-button { | |
35 margin: 20px; | |
36 } | |
37 | |
38 </style> | |
39 | |
40 </head> | |
41 <body unresolved> | |
42 | |
43 <paper-button raisedButton onclick="document.querySelector('#toast1').show()"
label="Discard Draft"></paper-button> | |
44 | |
45 <paper-button raisedButton onclick="document.querySelector('#toast2').show()"
label="Get Messages"></paper-button> | |
46 | |
47 <paper-button raisedButton onclick="document.querySelector('#toast3').show()"
label="Send Message"></paper-button> | |
48 | |
49 <paper-toast id="toast1" text="Your draft has been discarded."></paper-toast> | |
50 | |
51 <paper-toast id="toast2" role="alert" text="Connection timed out. Showing limi
ted messages."> | |
52 <div style="color: #eeff41;" onclick="console.log('RETRY')">Retry</div> | |
53 </paper-toast> | |
54 | |
55 <paper-toast id="toast3" class="capsule" text="Message sent" style="padding-ri
ght: 60px;"></paper-toast> | |
56 | |
57 </body> | |
58 </html> | |
OLD | NEW |