-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstart.php
44 lines (33 loc) · 1.08 KB
/
start.php
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
<!-- this is the welcome screen -->
<!DOCTYPE html>
<html>
<head>
<title>DigiVet</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1> Welcome to Digivet.</h1>
<p> Click on the cross to diagnose your animal. Click on the question mark to receive general information. </p>
<a href="animal_screen.php"><img src="images/red_cross.png"></a>
<a href="animal_screen2.php"><img src="images/question_mark.png"></a>
<script>
$(document).ready(function() {
var audioElement = document.createElement('audio');
audioElement.setAttribute('src', 'sounds/welcome.mp3');
audioElement.setAttribute('autoplay', 'autoplay');
//audioElement.load()
$.get();
audioElement.addEventListener("load", function() {
audioElement.play();
}, true);
$('.play').click(function() {
audioElement.play();
});
$('.pause').click(function() {
audioElement.pause();
});
});
</script>
</body>
</html>