-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ilker Temir
committed
Oct 5, 2016
1 parent
4772d6f
commit 0737bb4
Showing
13 changed files
with
346 additions
and
252 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<ion-header> | ||
<ion-navbar primary> | ||
<ion-title>Sensors</ion-title> | ||
<ion-buttons end> | ||
<button (click)='signalK.obtainServerAddrManually()'> | ||
<ion-icon *ngIf='signalK.connected' style='color: green;' name='wifi'></ion-icon> | ||
<ion-icon *ngIf='!signalK.connected' style='color: red;' name='wifi'></ion-icon> | ||
</button> | ||
</ion-buttons> | ||
</ion-navbar> | ||
</ion-header> | ||
|
||
<ion-content padding> | ||
<table class='fullWidth'> | ||
<tr> | ||
<td colspan='2' class='fullWidth center padding-top'> | ||
<canvas [hidden]="unit!='celsius'" #temperatureC id="temperatureC" width="100" height="100"></canvas> | ||
<canvas [hidden]="unit!='fahrenheit'" #temperatureF id="temperatureF" width="100" height="100"></canvas> | ||
<div style='width: 100px; margin: 0 auto;'> | ||
<ion-segment [(ngModel)]="unit" (ionChange)="saveUnit()" medium> | ||
<ion-segment-button value="fahrenheit"> | ||
°F | ||
</ion-segment-button> | ||
<ion-segment-button value="celsius"> | ||
°C | ||
</ion-segment-button> | ||
</ion-segment> | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class='halfWidth center padding-top'><canvas #pressure id="pressure" width="100" height="100"></canvas></td> | ||
<td class='halfWidth center padding-top'><canvas #humidity id="humidity" width="100" height="100"></canvas></td> | ||
</tr> | ||
</table> | ||
</ion-content> |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.fullWidth { | ||
width: 100%; | ||
} | ||
|
||
.halfWidth { | ||
width: 50%; | ||
} | ||
|
||
.center { | ||
text-align: center; | ||
} | ||
|
||
.padding-top { | ||
padding-top: 15px; | ||
} |
Oops, something went wrong.