|
@@ -1,4 +1,4 @@
|
|
-if (Meteor.isClient) {
|
|
|
|
|
|
+if (Meteor.isClient) {
|
|
Template.register.events({
|
|
Template.register.events({
|
|
"submit form": function(e){
|
|
"submit form": function(e){
|
|
e.preventDefault();
|
|
e.preventDefault();
|
|
@@ -71,7 +71,15 @@ if (Meteor.isClient) {
|
|
})
|
|
})
|
|
$(".station .song-info").html("<h6 class='song-title'>Immortals</h6><p class='song-artist'>Fall Out Boy</p>")
|
|
$(".station .song-info").html("<h6 class='song-title'>Immortals</h6><p class='song-artist'>Fall Out Boy</p>")
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ Template.Room.helpers({
|
|
|
|
+ type: function() {
|
|
|
|
+ var parts = location.href.split('/');
|
|
|
|
+ var id = parts.pop();
|
|
|
|
+ return id;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
|
|
if (Meteor.isServer) {
|
|
if (Meteor.isServer) {
|
|
@@ -95,3 +103,11 @@ if (Meteor.isServer) {
|
|
secret: "375939d001ef1a0ca67c11dbf8fb9aeaa551e01b"
|
|
secret: "375939d001ef1a0ca67c11dbf8fb9aeaa551e01b"
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+Router.route("/", {
|
|
|
|
+ template: "Home"
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+Router.route("/:type", {
|
|
|
|
+ template: "Room"
|
|
|
|
+});
|