-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdigivet.html
99 lines (78 loc) · 3.34 KB
/
digivet.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>GETTING STARTED WITH BRACKETS</title>
<meta name="description" content="An interactive getting started guide for Brackets.">
<link rel="stylesheet" href="digivet.css">
<script src="responsivevoice.js"></script>
<script src="jquery.min.js"></script>
</head>
<body>
<h3>Hello and welcome to the DigiVet web application. Please select the species of your sick animal by tapping on its picture.</h3>
<textarea id="text">Hello and welcome to the DigiVett web application. Please select the species of your sick animal by tapping on its picture.</textarea>
<select id="voiceselection"></select>
<input
onclick="responsiveVoice.speak($('#text').val(),$('#voiceselection').val());"
type="button"
class="button"
/>
<script>
//Populate voice selection dropdown
var voicelist = responsiveVoice.getVoices();
var vselect = $("#voiceselection");
$.each(voicelist, function() {
vselect.append($("<option />").val(this.name).text(this.name));
});
function sendsms(num) {
$.ajax({
url: "http://localhost:8088/manager?action=login&username=admin&secret=admin"
}).done(function() {
var sms_text = "dongle sms dongle0"
sms_text = sms_text + " " + num
sms_text = sms_text + " " + document.location
console.log(sms_text)
$.ajax({
url: "http://localhost:8088/rawman?action=command&command=" + encodeURIComponent(sms_text)
}).done(function(data) {
console.log('Youpi!\n' + data)
});
});
}
</script>
<img src="logo.gif" alt="DigiVet Logo" style="width:10%;height:15%;position:absolute;left:10px;top:-5px;">
<!-- 1st row verticaly centered text in the square columns -->
<div class="fit_screen">
<div class="square img_1-1">
<a class="click" href="question_cow_1.html" title="photo" id="img_1-1"></a>
</div>
<div class="square img_1-2">
<a class="click" href="question_guinea_fowl_1.html" title="photo" id="img_1-2"></a>
</div>
<div class="square img_1-3">
<a class="click" href="question_cow_1.html" title="photo" id="img_1-3"></a>
</div>
<!-- 2nd row verticaly centered images in square columns -->
<div class="square img_2-1">
<a class="click" href="question_cow_1.html" title="photo" id="img_2-1"></a>
</div>
<div class="square img_2-2">
<a class="click" href="question_cow_1.html" title="photo" id="img_2-2"></a>
</div>
<div class="square img_2-3">
<a class="click" href="question_chicken_1.html" title="photo" id="img_2-3"></a>
</div>
<!-- 3rd row responsive images in background with centered content -->
<div class="square img_3-1">
<a class="click" href="question_chicken_1.html" title="photo" id="img_3-1"></a>
</div>
<div class="square img_3-2">
<a class="click" href="question_cow_1.html" title="photo" id="img_3-2"></a>
</div>
<div class="square img_3-3">
<a class="click" href="question_cow_1.html" title="photo" id="img_3-3"></a>
</div>
</div>
</body>
</html>