12 lines
378 B
JavaScript
12 lines
378 B
JavaScript
|
$(function() {
|
||
|
var usernameEl = $('#username');
|
||
|
var passwordEl = $('#password');
|
||
|
|
||
|
// in a real application, the user/password should never be hardcoded
|
||
|
// but for the demo application it's very convenient to do so
|
||
|
if (!usernameEl.val() || 'jane_admin' === usernameEl.val()) {
|
||
|
usernameEl.val('jane_admin');
|
||
|
passwordEl.val('kitten');
|
||
|
}
|
||
|
});
|