-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathtest1.html
76 lines (63 loc) · 1.93 KB
/
test1.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
<!DOCTYPE html>
<!--
~ /*******************************************************************************
~ jquery.mb.components
~ file: test1.html
~
~ Copyright (c) 2001-2013. Matteo Bicocchi (Pupunzi);
~ Open lab srl, Firenze - Italy
~ email: [email protected]
~ site: http://pupunzi.com
~ blog: http://pupunzi.open-lab.com
~ http://open-lab.com
~
~ Licences: MIT, GPL
~ http://www.opensource.org/licenses/mit-license.php
~ http://www.gnu.org/licenses/gpl.html
~
~ last modified: 15/02/13 0.28
~ ******************************************************************************/
-->
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<title>test audio</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
$(function(){
/*
var player = new Audio("sounds/effectsSprite.mp3");
player.load();
player.play();
*/
/*
var audio = $("<audio/>").attr({id: "mbAudio", preload: "none", autoplay:"autoplay", src: "sounds/bgndsSprite.mp3"});
$("body").append(audio);
*/
/*
audio.get(0).load();
audio.get(0).play();
*/
/*
$(document).on("startSounds",function(){
//player.play();
alert("should start playing")
audio.get(0).play();
});
*/
/*
$(document).one("touchstart",function(){
$(document).trigger("startSounds");
})
*/
// $(document).trigger("startSounds");
})
</script>
</head>
<body>
<audio src="sounds/bgndsSprite.mp3" autoplay="autoplay"></audio>
</body>
</html>