-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathembed.php
43 lines (42 loc) · 1.86 KB
/
embed.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
<html>
<head>
<title>UWave Embed</title>
<base TARGET="_blank"> <!-- should make all links automatically open in a new tab/window -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/css/font-awesome.min.css" rel="stylesheet">
<link href="assets/css/embed.css" rel="stylesheet">
</head>
<body>
<audio id="player" preload="none">
<source src="/listen/128.ogg" type="audio/ogg">
<source src="/listen/128.mp3" type="audio/mp3">
</audio>
<a href="/external" class="btn btn-lg btn-play">
<img src="assets/img/swoosh.png" alt="UWave swoosh shape"><br />
<i class="playpause glyphicon glyphicon-play-circle"></i> <span class="playtext">Listen to UWave</span>
</a><br />
<span class="metadata"></span>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="assets/js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/uwave.js" type="text/javascript"></script>
<script>
$(document).ready(function() {
$(".btn-play").on("click", uwave.playpause);
<?php if(isset($_REQUEST['autoplay'])) {
echo "uwave.player.play();\n";
}
?>
});
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-40841528-1', 'uwave.fm');
ga('require', 'linkid', 'linkid.js');
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>
</body>
</html>