This commit is contained in:
Thoscellen
2020-05-16 14:48:37 +02:00
commit bf97688639
231 changed files with 195771 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
// JavaScript source code
$(function () {
var usernameInput = $('#usernameInput');
var passwordInput = $('#passwordInput');
var submitButton = $('#submit');
submitButton.click(function () {
if (usernameInput.val() === '') {
usernameInput.parent().parent().addClass('has-warning');
}
if (passwordInput.val() === '') {
passwordInput.parent().parent().addClass('has-warning');
}
});
usernameInput.on('input propertychange paste', function () {
usernameInput.parent().parent().removeClass('has-warning');
});
passwordInput.on('input propertychange paste', function () {
passwordInput.parent().parent().removeClass('has-warning');
});
});