-
Notifications
You must be signed in to change notification settings - Fork 0
/
play22.html
66 lines (59 loc) · 2.9 KB
/
play22.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
<!DOCTYPE html>
<html>
<head>
<title>Select your Song</title>
<link rel="stylesheet" type="text/css" href="lib/normalize.css">
<link rel="stylesheet" type="text/css" href="lib/rdio-utils/rdio-utils.css">
<link rel="stylesheet/less" type="text/css" href="main.less">
<!-- Register your app at http://www.rdio.com/developers/create/ and replace client_id below with yours -->
<!--
<script src="https://www.rdio.com/api/api.js?client_id=idniu4ntlzdrfdknocpctjhgsi"></script>
-->
<!-- for localhost
<script src="https://www.rdio.com/api/api.js?client_id=dq3wsxoke5curkxmi2wruch4dy"></script>
-->
<!-- for github 2 version -->
<script src="https://www.rdio.com/api/api.js?client_id=gkgx6phgefe2zplaiuwth3jela"></script>
<script src="lib/jquery-1.9.1.min.js"></script>
<script src="lib/underscore-1.4.4.min.js"></script>
<script src="lib/less-1.3.0.min.js"></script>
<script src="lib/rdio-utils/rdio-utils.js"></script>
<!--
<script src="main.js"></script>
-->
</head>
<body>
<div class="log"></div>
<select id="songlist" name="songkey" size="5" onClick="myFunction();">
<option value="t69393056">Blank Space - Ryan Adams</option>
<option value="t67821878">Hotline Bling - Drake</option>
<option value="t68618007">What Do You Mean? - Justin Bieber</option>
<option value="t68552037">The Hills - The Weeknd</option>
<option value="t69204225">Honeymoon - Lana Del Rey</option>
<option value="t66340753">679 (feat. Remy Boyz) - Fetty Wap</option>
<option value="t69223631">Weekend (feat. Miguel) - Mac Miller</option>
<option value="t60368451">Trap Queen - Fetty Wap</option>
<option value="t67143036">Where Ya At (feat. Drake) - Future</option>
<option value="t69018982">Gibraltar - Beirut</option>
<option value="t69563849">Infinity - One Direction</option>
<option value="t69271072">On My Mind - Ellie Goulding</option>
<option value="t69405066">Lifeless - Draenor</option>
<option value="t41904969">Look Me in the Face - Jerk Circus</option>
<option value="t66136860">Good For You - Selena Gomez</option>
<option value="t67820642">Back To Back - Drake</option>
<option value="t63745991">Stitches - Shawn Mendes</option>
</select>
<div id="saveit-key"></div>
<script>
function myFunction() {
// set the background color of <body> to yellow
//document.getElementsByTagName("BODY")[0].style.backgroundColor = "yellow";
var x = document.getElementById("songlist").selectedIndex;
var y = document.getElementById("songlist").options[x].value;
document.getElementById("saveit-key").innerHTML = "save to db key="+y+"<br>song= "+document.getElementById("songlist").options[x].innerHTML;
$('#playbutton').append("onClick=\"R.player.play({source: " + y + "});\"");
}
</script>
<input id="playbutton" type="button" value="play song">
</body>
</html>