PHP Classes

File: assets/js/login.js

Recommend this page to a friend!
  Classes of Manolo Salsas  >  Symfony Create Bundle Skeleton  >  assets/js/login.js  >  Download  
File: assets/js/login.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Symfony Create Bundle Skeleton
Application to create reusable Symfony Bundles
Author: By
Last change:
Date: 1 year ago
Size: 380 bytes
 

Contents

Class file image Download
$(function() {
    var usernameEl = $('#username');
    var passwordEl = $('#password');

    // in a real application, hardcoding the user/password would be idiotic
    // 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');
    }
});
For more information send a message to info at phpclasses dot org.