|
@@ -0,0 +1,45 @@
|
|
|
+<!doctype html>
|
|
|
+<html>
|
|
|
+ <head>
|
|
|
+ <title>RadioMolestia</title>
|
|
|
+ <style>
|
|
|
+ body {
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ .date {
|
|
|
+ font-size: 9pt;
|
|
|
+ }
|
|
|
+ form {
|
|
|
+ padding-top: 25%;
|
|
|
+ }
|
|
|
+ input {
|
|
|
+ padding: .375rem .75rem;
|
|
|
+ font-size: 1rem;
|
|
|
+ line-height: 1.5;
|
|
|
+ color: #55595c;
|
|
|
+ background-color: #fff;
|
|
|
+ background-image: none;
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ border-radius: .25rem;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+ <script>
|
|
|
+ function addSong() {
|
|
|
+ var request = new XMLHttpRequest();
|
|
|
+ request.open('POST', '/add', true);
|
|
|
+ request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
|
|
|
+ data = "link="+document.getElementsByName('link')[0].value
|
|
|
+ request.send(data);
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <form>
|
|
|
+ <input type="text" name="link"></link>
|
|
|
+ <input type="button" onclick="addSong()" value="play"/>
|
|
|
+ </form>
|
|
|
+ <br/>
|
|
|
+ <a href="/listen">/listen</a><br/>
|
|
|
+ <a href="/playlist">/playlist</a>
|
|
|
+ </body>
|
|
|
+</html>
|