-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (45 loc) · 863 Bytes
/
index.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
<html>
<head>
<meta charset="utf-8">
<script src="j.js"></script>
<script>
$(document).ready(function()
{
var audioElement = document.createElement('audio');
audioElement.setAttribute('src', 'lol.mp3');
$('#play').click(function()
{
audioElement.play();
$("#play").addClass("kliknuto");
setTimeout(function(){$("#play").removeClass("kliknuto");}, 500);
});
});
</script>
<style>
body
{
background: #0e83cd;
}
button
{
border: .1em solid white;
color: white;
background: none;
width: 75%;
height: 50%;
position: fixed;
top: 25%;
left: 12.5%;
font-size: 5em;
}
.kliknuto
{
color: #0e83cd;
background: white;
}
</style>
</head>
<body>
<button id="play">LOL</button>
</body>
</html>