-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwid-card-count-progress.html
More file actions
81 lines (63 loc) · 2.41 KB
/
wid-card-count-progress.html
File metadata and controls
81 lines (63 loc) · 2.41 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<html><head><link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-flex-layout/classes/iron-flex-layout.html">
<link rel="import" href="../paper-material/paper-material.html">
<link rel="import" href="../paper-styles/paper-styles-classes.html">
<link rel="import" href="../iron-icon/iron-icon.html">
<link rel="import" href="../wid-card-standard-behavior/wid-card-standard-behavior.html">
<link rel="import" href="../wid-card-weight-behavior/wid-card-weight-behavior.html">
<link rel="import" href="../wid-card-theme-behavior/wid-card-theme-behavior.html">
<link rel="import" href="../wid-versatile-websocket/wid-versatile-websocket.html">
<link rel="import" href="../wid-card-subscriptions-behavior/wid-card-subscriptions-behavior.html">
<!--
An element providing a solution to no problem in particular.
Example:
<wid-card-count-progress></wid-card-count-progress>
@group Seed Elements
@element wid-card-count-progress
@demo demo/index.html
@hero hero.svg
-->
</head><body><dom-module id="wid-card-count-progress">
<template>
<style>
:host {
display: block;
box-sizing: border-box;
}
paper-material {
overflow-y: auto;
height: 100%;
background-color: #fff;
overflow: visible;
}
.graph {
background-color: #eaeaea;
}
.scale-icon {
width: 50%;
height: 100%;
}
#counter {
font-size: 3vw;
}
</style>
<div id="websockets">
<!-- This is a requirement of `wid-card-subscriptions-behavior` -->
<!-- one websocket element for each subscribed channel -->
<template is="dom-repeat" items="[[websockets]]" as="ws">
<wid-versatile-websocket url="[[ws.url]]" token="[[ws.token]]" subscription="[[ws.subscription]]" on-data="_onData">
</wid-versatile-websocket>
</template>
</div>
<paper-material id="mainContent" class="layout horizontal flex" elevation="3">
<div class="layout vertical flex center-center ">
<iron-icon id="countImage" class="center-center flex-3 scale-icon" src="/images/cards/users.svg"></iron-icon>
<div id="counter" class="flex center-center">[[count]]</div>
<div class="flex">[[progression]]</div>
</div>
<div class="graph flex">
</div>
</paper-material>
</template>
</dom-module>
<script src="wid-card-count-progress.js"></script></body></html>