-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.htm
45 lines (41 loc) · 2 KB
/
index.htm
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Device Tilt</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/slds/assets/styles/salesforce-lightning-design-system.css">
<script src="/bower_components/angular/angular.js"></script>
<script src="/bower_components/chart.js/dist/Chart.min.js"></script>
<script src="/bower_components/angular-chart.js/dist/angular-chart.min.js"></script>
<script src="index.js"></script>
</head>
<body ng-app="Index" ng-controller="IndexCtrl">
<article class="slds-card slds-col slds-size--1-of-1">
<div class="slds-card__header slds-grid">
<header class="slds-media slds-media--center slds-has-flexi-truncate">
<div class="slds-media__figure">
<svg aria-hidden="true" class="slds-icon slds-icon-standard-contact slds-icon--small">
<use xlink:href="/slds/assets/icons/utility-sprite/svg/symbols.svg#socialshare"></use>
</svg>
</div>
<div class="slds-media__body slds-truncate">
<h2>
<a href="javascript:void(0);" class="slds-text-link--reset">
<span class="slds-text-heading--small">Device Tilt</span>
</a>
</h2>
</div>
</header>
<div class="slds-no-flex">
<div class="slds-text-align--center slds-text-heading--large" ng-class="{'slds-text-color--error': buttonPressed}">{{tilt | number:2}}°</div>
</div>
</div>
<div class="slds-card__body slds-text-align--center">
<canvas class="chart chart-line" chart-data="data" chart-labels="labels"
chart-series="series" chart-options="options" height="450px" style="display: block; height: 450px"></canvas>
</div>
<div class="slds-card__footer"> </div>
</article>
</body>
</html>