text: (function(root) {
    var Env = window.shared.Env;
  
    var SessionTimeoutWarning = function () {}
  
    SessionTimeoutWarning.prototype.count = function () {
      root.setTimeout(this.show, Env.sessionTimeoutInSeconds * 1000);
    };
  
    SessionTimeoutWarning.prototype.show = function () {
      $('#renew-session').slideDown();
    };
  
    root.SessionTimeoutWarning = SessionTimeoutWarning;
  
  })(window)
  
  $(function() {
  
    if ($('body').hasClass('educator-signed-in')) {
      var warning = new SessionTimeoutWarning;
      warning.count();
    }
  
    $("#renew-sesion-link").click(function () {
      $.ajax({
        url: '/educators/reset',
        success: function () {
          $('#renew-session').slideUp();
          warning.count();   // Resent timeout count
        }
      });
    });
  });
  