This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var userTeams = Teams.find({ | |
members: { | |
$in: [this.userId] | |
} | |
}); | |
var userTeamMembers = _.chain(userTeams.fetch()) | |
.map(function (team) { | |
return team.members; | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Common, shared functions kept it the "app" namespace | |
Meteor.app = Meteor.app || {}; | |
Meteor.app.helpers = { | |
placeholder: function () { | |
return null; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
views/main/main.js | |
Template.main.rendered = function () { | |
$('body').scroll(function() { | |
var scrollTop = $(window).scrollTop(); | |
// Do something now with this change here directly... | |
// :TODO: | |
// and/or save to Session so we can use it reactively |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Demo for Brian K.</title> | |
<script src="js/iconic.min.js"></script> | |
</head> | |
<body> |