-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite_that_responds2.html
34 lines (28 loc) · 1.04 KB
/
site_that_responds2.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
<html>
<head>
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="realtime-notifications/src/lib/gritter/js/jquery.gritter.min.js"></script>
<link href="realtime-notifications/src/lib/gritter/css/jquery.gritter.css"rel="stylesheet" type="text/css" />
<script src="/pusher.js"></script>
<script type="text/javascript" src="http://mediaplayer.yahoo.com/js"></script>
<script src="realtime-notifications/src/PusherNotifier.js"></script>
<script language=javascript>
/* function stopSound() {
if (document.all) document.all['BGSOUND_ID'].src='jsilence.mid';
else self.iplayer.location.replace('jsplayer.htm?stop');
} */
function play() {
document.getElementById("#player").innerHTML="<autostart=true>";
}
$(function() {
var pusher = new Pusher('7625411e5974417ad5ca');
var channel = pusher.subscribe('my_notifications');
channel.bind("play", function(data){
alert(data);});
var notifier = new PusherNotifier(channel);
});
</script>
</head>
<body>
<embed id='player' src='/Beeps.mp3' hidden=true autostart=true loop=false>
</body>