This repository has been archived by the owner on Jul 31, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdemo-kube-card.html
52 lines (47 loc) · 1.66 KB
/
demo-kube-card.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!doctype html>
<!-- Copyright (c) 2014 Google Inc. All rights reserved. -->
<html>
<head>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>kube-card Demo</title>
<script src="../platform/platform.js"></script>
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-slider/paper-slider.html">
<link rel="import" href="kube-card.html">
<style>
body {
font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
transform: translateZ(0);
-webkit-transform: translateZ(0);
transform: translateZ(0);
padding: 16px;
}
</style>
</head>
<body>
<kube-card id="zcard" top="Card demo" icon="check-circle-blank" z="1">
<main>
<p>This is main card body</p>
<paper-slider min="0" max="5" step="1" value="1" snaps></paper-slider>
</main>
<bottom>1/9/2014 10:30 AM</bottom>
</kube-card>
<kube-card top="Second card" icon="check-circle-blank">
<main>Hello, second card with default shadow (1).</main>
Raw / unpadded remainder of the card content.
<bottom>Bottom of the card</bottom>
</kube-card>
<kube-card top="Card with a very very very very very very long title" icon="home">
<main>This card should have it's title truncated with ellipsis.</main>
</kube-card>
<script>
window.addEventListener('polymer-ready', function(e) {
var slider = document.querySelector('kube-card paper-slider');
var zcard = document.querySelector('#zcard');
slider.addEventListener('core-change', function(){
zcard.setAttribute('z', slider.value);
});
});
</script>
</body>
</html>