Skip to content

Instantly share code, notes, and snippets.

@foobarbecue
Created July 3, 2015 18:53
Show Gist options
  • Save foobarbecue/6e076a050697a5d7cf6a to your computer and use it in GitHub Desktop.
Save foobarbecue/6e076a050697a5d7cf6a to your computer and use it in GitHub Desktop.
Template.notebookIndex.onRendered(function() {
var self = this;
self.autorun(function () {
self.subscribe('publicPosts', Session.get('current_tag'), function () {
console.log($('.post-meta'));
// Unfortunate hack to align the post meta info
//setTimeout(function(){
self.$('.post-meta').each(function () {
$(this).css('transform', 'rotate(270deg) translate(-' + $(this).width() + 'px, -1.5em)')
})
//},20)
})
}
)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment