Skip to content

Commit 8e20c30

Browse files
committed
add new widget
1 parent edcfadd commit 8e20c30

31 files changed

+1273
-204
lines changed

demo/widget.html

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<html>
2+
<head>
3+
<title>Hivemind Widget</title>
4+
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
5+
<link rel="stylesheet" href="https://unpkg.com/swiper@4.0.6/dist/css/swiper.min.css" />
6+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flexboxgrid/6.3.1/flexboxgrid.min.css" />
7+
<style>
8+
.widgets:before,
9+
.widgets:after {
10+
content: "";
11+
display: table;
12+
}
13+
.widgets:after {
14+
clear: both;
15+
}
16+
.widgets {
17+
zoom: 1; /* For IE 6/7 (trigger hasLayout) */
18+
margin-bottom: 20px;
19+
}
20+
.widget {
21+
box-sizing: border-box;
22+
padding: 20px;
23+
display: inline-block;
24+
float: left;
25+
width: 33.3%;
26+
}
27+
</style>
28+
</head>
29+
<body>
30+
<div class="widgets">
31+
<div class="widget" style="width:66.6%;height:450px">
32+
<hivemind-widget id="5a11578a07c38300c3eae7d6"></hivemind-widget>
33+
</div>
34+
<div class="widget" style="height:350px">
35+
<hivemind-widget id="5a11578a07c38300c3eae7d6"></hivemind-widget>
36+
</div>
37+
</div>
38+
<div class="widgets">
39+
<div class="widget">
40+
<hivemind-widget id="5a0e855485b27800c30f3f53"></hivemind-widget>
41+
</div>
42+
<div class="widget">
43+
<hivemind-widget id="5a0f9efa85b27800c30f3f57"></hivemind-widget>
44+
</div>
45+
<div class="widget">
46+
<hivemind-widget id="5a1054f0fc8bd800c3eee084"></hivemind-widget>
47+
</div>
48+
</div>
49+
50+
<script src="https://unpkg.com/chart.js@2.7.0/dist/Chart.min.js"></script>
51+
<script src="https://unpkg.com/chartjs-plugin-datalabels@0.1.0/dist/chartjs-plugin-datalabels.min.js"></script>
52+
<script src="https://unpkg.com/swiper@4.0.6/dist/js/swiper.min.js"></script>
53+
<script src="../dist/widget.js"></script>
54+
</body>
55+
</html>

dist/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bundle.js.gz

193 Bytes
Binary file not shown.

dist/content.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/content.js.gz

125 Bytes
Binary file not shown.

dist/summary.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/summary.js.gz

190 Bytes
Binary file not shown.

dist/trend.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/trend.js.gz

7 Bytes
Binary file not shown.

dist/widget.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)