This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from Azure-Samples/drwill/deviceCount
Show device count and update style
- Loading branch information
Showing
5 changed files
with
69 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,6 @@ jspm_packages | |
# Optional REPL history | ||
.node_repl_history | ||
|
||
**/.vs/* | ||
**/.vs/* | ||
|
||
**/.vscode/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,46 @@ | ||
body { | ||
padding: 50px; | ||
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; | ||
padding: 50px; | ||
margin: 0; | ||
text-align: center; | ||
} | ||
|
||
.flexHeader { | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: nowrap; | ||
justify-content: space-between; | ||
} | ||
|
||
a { | ||
color: #00B7FF; | ||
} | ||
} | ||
|
||
body select { | ||
padding: 10px 70px 10px 13px; | ||
max-width: 100%; | ||
height: auto; | ||
border: 1px solid #e3e3e3; | ||
border-radius: 3px; | ||
background: url("https://i.ibb.co/b7xjLrB/selectbox-arrow.png") right center no-repeat; | ||
background-color: #fff; | ||
color: #444444; | ||
line-height: 16px; | ||
appearance: none; | ||
/* this is must */ -webkit-appearance: none; | ||
-moz-appearance: none; | ||
} | ||
|
||
/* body select.select_box option */ | ||
body select option { | ||
padding: 0 4px; | ||
} | ||
|
||
/* for Edge */ | ||
select::-ms-expand { | ||
display: none; | ||
} | ||
|
||
select:disabled::-ms-expand { | ||
background: #f60; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,19 +10,20 @@ | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js" type="text/javascript" charset="utf-8"></script> | ||
<script src="js/chart-device-data.js" type="text/javascript" charset="utf-8"></script> | ||
<link href="css/style.css" rel="stylesheet" /> | ||
|
||
<title>Temperature & Humidity Real-time Data</title> | ||
</head> | ||
|
||
<body> | ||
<div style="display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; align-content: stretch;"> | ||
<div style="align-self: center; flex: 2 2 200px;"> | ||
<h4>Select a device:</h4> | ||
<select id="listOfDevices" size=10 style="width: 180px;"></select> | ||
</div> | ||
<div style="align-self: top; flex: 8 8 800px; min-height: 500px;"> | ||
<canvas id="iotChart" width="400" height="150"></canvas> | ||
</div> | ||
<h1 class="flexHeader"> | ||
<span> | ||
<span id="deviceCount">0 devices</span> | ||
<select id="listOfDevices" class="select_box"></select> | ||
</span> | ||
<span>Temperature & Humidity Real-time Data</span> | ||
</h1> | ||
<div> | ||
<canvas id="iotChart"></canvas> | ||
</div> | ||
</body> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters