diff --git a/client/footer.html b/client/footer.html
new file mode 100644
index 0000000..15552a8
--- /dev/null
+++ b/client/footer.html
@@ -0,0 +1,36 @@
+
+
+
diff --git a/client/footer.js b/client/footer.js
new file mode 100644
index 0000000..8737988
--- /dev/null
+++ b/client/footer.js
@@ -0,0 +1,54 @@
+Template.footer.helpers({
+ 'hidePlayer': function(){
+ return Session.get('hidePlayer');
+ },
+ 'music_isPlaying': function(){
+ return Session.get('isPlaying');
+ },
+ 'music_title': function(){
+ return Session.get('playerTitle');
+ },
+ 'music_thumbnail': function(){
+ return Session.get('playerThumbnail');
+ },
+ 'music_url': function(){
+ return Session.get('musicUrl');
+ }
+});
+
+Template.footer.events({
+ 'click .applink-playMusic': function(){
+ Session.set('isPlaying', true);
+ var player = document.getElementsByTagName("audio")[0];
+ player.play();
+ },
+ 'click .applink-pauseMusic': function(){
+
+ Session.set('isPlaying', false);
+ var player = document.getElementsByTagName("audio")[0];
+ player.pause();
+
+ },
+ 'click .applink-stopMusic': function(){
+
+ Session.set('isPlaying', false);
+ Session.set('musicUrl', '');
+ Session.set('playerThumbnail', null);
+ Session.set('playerTitle', '');
+ var player = document.getElementsByTagName("audio")[0];
+ player.removeAttribute("src");
+ player.load();
+ Sessio.set('hidePlayer', true);
+
+ },
+ 'click .applink-skipMusic': function(){
+
+ Session.set('isPlaying', true);
+
+ }
+});
+
+Template.footer.rendered = function () {
+
+};
+
diff --git a/client/globalhelpers.js b/client/globalhelpers.js
new file mode 100644
index 0000000..5b66fb5
--- /dev/null
+++ b/client/globalhelpers.js
@@ -0,0 +1,3 @@
+Template.registerHelper('getBaseUrl', function(){
+ return Meteor.absoluteUrl('');
+});
\ No newline at end of file
diff --git a/client/loading.html b/client/loading.html
new file mode 100644
index 0000000..8beda7d
--- /dev/null
+++ b/client/loading.html
@@ -0,0 +1,13 @@
+
+
This song will be added to the collection. Do you confirm?
++ Just paste a youtube link. The music will start playing on your phone, downloading the song and saving it on a master playlist, for all our friends! +
++ User accounts are not available at the moment. An invite system will be available soon. +
+Name | +Artist (Album) | +Duration | ++ | |
---|---|---|---|---|
{{title}} | +{{artist}} | +{{readableTime length}} | + {{#if isPlaying location}} +pause | + {{else}} +play_arrow | + {{/if}} +
There is no music in the library! Add a song to see it here.
+