]>
iEval git - gruntmaster-page.git/blob - js/95-login.js
60ede9d841f25513cbae78eb5ee1daf5b5e5ee36
4 $( document
).ready(function(){
5 $('#login').detach().prependTo($('#sidebar')).on('click', function(e
) {
6 var xhr
= new XMLHttpRequest();
7 xhr
.open('GET', '/login');
8 xhr
.onload = function () {
11 var username
= this.responseText
;
12 sessionStorage
.setItem('login_username', username
);
13 start_tracking(username
);
14 $('#login').html('Probably logged in as ' + username
);
20 var username
= sessionStorage
.getItem('login_username');
22 $('#login').html('Probably logged in as ' + username
);
This page took 0.047423 seconds and 3 git commands to generate.