Run file .js after logging user

Hi. Is it possible to run .js file after logging user.

<template name="publicLayout">
    <div class="wrapper public-layout">
          {{> _publicHeader}}
              <div class="container">
                {{> yield}}
          {{> _publicFooter}}

Template.publicLayout.rendered = function() {
    $('.sidebar-toggle').each(function() {
        var group = $(this);
        $(this).find(".btn").click(function(e) {

I can’t figure out how the code you posted relates to your question. What have you tried, what do you expect to happen, and what is happening that you’re not expecting? Some additional details would be helpful, we can’t read your mind :smile:

1 Like