summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/regform.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/public/regform.js b/public/regform.js
deleted file mode 100644
index 197034e..0000000
--- a/public/regform.js
+++ /dev/null
@@ -1,21 +0,0 @@
-function fetch(url, id) {
- var req = new XMLHttpRequest();
- req.onload = function() {
- var element = document.getElementById(id);
- var node = document.createElement("div");
- node.innerHTML = this.response;
- element.appendChild(node);
- };
- req.open("GET", url);
- req.send();
-}
-
-window.onload = function() {
- var num_songs = 0;
- var add_song_button = document.getElementById('add-song-button');
-
- add_song_button.onclick = function() {
- num_songs += 1;
- fetch(window.location + '/song/new/' + num_songs, 'form-songs');
- };
-};