-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutcome_BSE.html
59 lines (50 loc) · 2.76 KB
/
outcome_BSE.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
<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="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="outcome_BSE.css">
<script src="responsivevoice.js"></script>
<script src="jquery.min.js"></script>
</head>
<body>
<h2>Outcome: BSE/Mad Cow Disease</h2>
<p>It seems that your cow has BSE, a progressive degenerative disease that affects the central nervous system of cattle. The cause is unknown and unfortunately there is no known treatment for this fatal disease. The best thing to do is to seperate the sick cow from the other ones, in order to prevent possible spreading. Please select the image below to report your case and help raise awareness about this disease among veterinarians.</p>
<textarea id="text">It seems that your cow has BSE, a progressive degenerative disease that affects the central nervous system of cattle. The cause is unknown and unfortunately there is no known treatment for this fatal disease. The best thing to do is to seperate the sick cow from the other ones, in order to prevent possible spreading. Please select the image below to report your case and help raise awareness about this disease among veterinarians.</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>
<div class="fit_screen">
<div class="square img_1-1">
<a class="click" href="javascript:sendsms(+31647418031);" title="call" id="img_1-1"></a>
</div>
</div>
</body>
</html>