]>
iEval git - plack-app-gruntmaster.git/blob - js/95-login.js
4 $( document
).ready(function(){
5 $('#login').detach().prependTo($('#sidebar'));
7 document
.cookie
= "cookietest=1";
8 var cookie
= document
.cookie
.indexOf("cookietest=") != -1;
9 document
.cookie
= "cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT";
12 var username
= document
.cookie
.replace(/(?:(?:^|.*;\s*)username\s*\=\s*([^;]*).*$)|^.*$/, "$1");
14 sessionStorage
.setItem('login_username', username
);
15 document
.cookie
= "username=; expires=Thu, 01-Jan-1970 00:00:01 GMT";
16 start_tracking(username
);
18 username
= sessionStorage
.getItem('login_username');
20 $('#login').html('Probably logged in as ' + username
);
This page took 0.040219 seconds and 4 git commands to generate.