2007-09-04 17:00:44 +02:00
|
|
|
function initLogin() {
|
|
|
|
var submit = $("submit");
|
|
|
|
var userName = $("userName");
|
|
|
|
userName.focus();
|
|
|
|
Event.observe(submit, "click", onLoginClick);
|
|
|
|
}
|
|
|
|
|
|
|
|
function onLoginClick(event) {
|
|
|
|
startAnimation($("loginButton"), $("submit"));
|
|
|
|
|
|
|
|
var loginString = $("userName").value + ":" + $("password").value;
|
2007-09-05 00:04:21 +02:00
|
|
|
document.cookie = ("0xHIGHFLYxSOGo-0.9 = basic" + loginString.base64encode()
|
|
|
|
+ "; path=/");
|
2007-09-04 17:00:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
addEvent(window, 'load', initLogin);
|