infoscreens/bar-history/index.html

74 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2017-11-28 23:20:36 +01:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>c-base bar stats</title>
2018-12-09 21:42:17 +01:00
<script src="../vendor/webcomponentsjs/webcomponents-lite.js"></script>
<script src="../vendor/webcomponentsjs/custom-elements-es5-adapter.js"></script>
<script src="../vendor/plotly.js/plotly.min.js"></script>
<script src="../lib/infoscreens.js"></script>
2017-11-30 15:54:55 +01:00
<link rel="stylesheet" href="../theme/c-base.css">
2017-11-28 23:20:36 +01:00
<style>
2017-11-30 15:54:55 +01:00
main {
display: flex;
2017-11-30 23:31:29 +01:00
width: 98vw;
2017-11-30 21:45:25 +01:00
height: 98vh;
2017-11-30 15:54:55 +01:00
align-items: center;
justify-content: center;
flex-direction: column;
}
2017-11-28 23:20:36 +01:00
p {
2017-11-30 18:52:12 +01:00
font-size: 6vmin;
2017-11-28 23:29:42 +01:00
margin: 0px;
padding: 0px;
2017-11-28 23:26:35 +01:00
width: 80vw;
text-align: center;
2017-11-28 23:20:36 +01:00
}
cbase-polar {
2017-12-01 17:35:52 +01:00
height: 65vmin;
width: 65vmin;
2017-11-28 23:20:36 +01:00
}
cbase-time, h1 {
font-family: 'ceva', sans-serif;
font-weight: normal;
font-size: 6vmin;
line-height: 10vh;
color: #fff;
margin: 0px;
padding: 0px;
}
#screen-title {
text-align: left;
padding-left: 3vw;
position: absolute;
left: 0px;
bottom: 0px;
}
#current-time {
position: absolute;
right: 0px;
bottom: 0px;
text-align: right;
padding-right: 3vw;
}
2017-11-30 18:52:12 +01:00
@media (orientation: portrait) {
p {
width: 95vw;
2017-11-30 21:45:25 +01:00
font-size: 5vmin;
2017-11-30 18:52:12 +01:00
}
}
2017-11-28 23:20:36 +01:00
</style>
</head>
2017-11-30 23:31:29 +01:00
<body class="station">
2017-11-28 23:20:36 +01:00
<main>
<p>
2017-11-28 23:31:48 +01:00
Likelihood of bar being open at a given hour. Based on last 90 days.
2017-11-28 23:20:36 +01:00
</p>
<cbase-polar timeseries="bar.open" days="90" size="65" percentage></cbase-polar>
2017-11-28 23:20:36 +01:00
</main>
2017-12-05 12:44:38 +01:00
<h1 id="screen-title">c-base space station</h1>
<cbase-time id="current-time" interval="1" format="HH:MM"></cbase-time>
2017-11-28 23:20:36 +01:00
</body>
</html>