-
Notifications
You must be signed in to change notification settings - Fork 0
/
decibel.html
61 lines (41 loc) · 2.06 KB
/
decibel.html
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<ion-view view-title="Sound Decibel" >
<ion-content padding="true">
<br>
<center>
<h3 style="color:green;">Breath To Check Depression</h3>
</center>
<button class="button button-block button-assertive"ng-click="startTime()">Start Timer For Breathing</button>
<center>
<h4>Please count the number of breathes per 10 Secs</h4>
<h3 style="background-color:pink"> Timer:<span id="minutes">00</span>:<span id="seconds">00</span></h3>
<form name="userForm" ng-submit="submitForm(userForm.$valid)" novalidate>
<div ng-class="{ 'has-error' : userForm.message.$invalid && !userForm.message.$pristine }" class="form-group col-sm-12">
<textarea type="text" name="message" ng-model="user.text" required="required" class="form-control" placeholder="enter number of breathes for 10 secs " rows="1"></textarea>
<button type="submit" ng-disabled="userForm.$invalid" class="button button-full btn-primary">Submit</button>
<label ng-show="userForm.$valid" ng-hide="userForm.$invalid"></label>
</form>
<p>Breathing Condition:{{breathe}}</p>
</center>
<center>
<p style="color:blue">This feature will study the decibel levels of your breath to check you are angry/depressed/sad/happy</p>
<p>Please click button to record the sound decibel</p>
<button class="button button-block button-positive"ng-click="start()">Start</button>
<table id="table--pizza2">
<tr>
<th><div><center><i class="ion-paper-airplane"></i></center></div>Sound(decibel)</th>
<td>{{sound}}</td>
</tr>
</table>
<h3 style="color:maroon">Message:{{message}}</h3>
<p>Max Sound:{{max}}</p>
<p>Min Sound:{{min}}</p>
<p>Sounddata:{{x}}</p>
<br>
<button class="button button-block button-assertive"ng-click="stop()">Stop</button>
<button class="button button-block button-assertive"ng-click="deletesound()">Delete Values</button>
<br>
<a href="#/app/decibelchart" class="button button-full button-royal">Go To Chart</a>
</br>
</center>
</ion-content >
</ion-view >