-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkaraoke.html
96 lines (78 loc) · 3.18 KB
/
karaoke.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>RANDOM KARAOKE</title>
<link rel="stylesheet" href="static/css/bootstrap.min.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
function insertVideo(){
$('#watch').hide();
document.getElementById('empty').innerHTML = '<center><iframe width="640" height="390" src="http://www.youtube.com/embed/{{original_song}}" frameborder="0" allowfullscreen></iframe></center>';
return false;
};
document.onkeyup = KeyCheck;
function KeyCheck(){
var KeyID = event.keyCode;
if(KeyID==39){
window.location=('/sing?choice={{related_song}}');
}
}
</script>
<style>
h1 {
text-align: center;
}
#like {
position: fixed;
right: 10px;
top: 10px;
width: 450px;
}
#form {
text-align: center;
}
#foot {
position: relative;
top: 50px;
text-align: center;
}
#original {
text-align: center;
}
#watch {
position: relative;
left: 150px;
top: 150px;
}
</style>
</head>
<body>
<div id="like">
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://random-karaoke.appspot.com/" data-text="Check this out!" data-via="alicejliu" data-size="medium">Tweet</a>
<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Frandom-dancing.appspot.com%2F&send=false&layout=standard&width=450&show_faces=true&font&colorscheme=light&action=like&height=0" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:240px; height:25px;" allowTransparency="true"></iframe>
</div>
<h1>RANDOM KARAOKE</h1>
<form id="form">
<input type="text" name="choice">
<input id = "submit" class="btn" type="submit" value="Enter song!">
</form>
<div class="row-fluid">
<span class="span6">
<center><iframe width="640" height="390" src="http://www.youtube.com/embed/{{song_id}}" frameborder="0" allowfullscreen></iframe></center>
</span>
<span class="span6">
<span id="empty"></span>
<button class="btn" value='Watch Original' type="submit" id='watch' onclick="insertVideo()"> Watch Original </button>
</span>
</div>
<div id="original">
<a href='/sing?choice={{related_song}}'><img src="static/img/right.jpg" alt="next"/> Next </a>
</div>
<div id="foot">
<p>If you liked this app, check out <a href="http://www.random-dancing.appspot.com/">RANDOM DANCING</a>!<p>
<p><a href="https://github.com/aliceliu/randomkaraoke">Github</a></p>
</div>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</body>
</html>