formatted

This commit is contained in:
Darrel Israel
2024-06-06 10:22:42 +08:00
parent 00e5a38bfe
commit c9bed24d8a
7 changed files with 25017 additions and 3614 deletions
+9209 -1
View File
File diff suppressed because one or more lines are too long
+6113 -3557
View File
File diff suppressed because it is too large Load Diff
+2946 -5
View File
File diff suppressed because one or more lines are too long
+5511 -1
View File
File diff suppressed because one or more lines are too long
+18 -18
View File
@@ -1,34 +1,34 @@
// Add this code to your 1.js file
$(document).ready(function() {
$(".toggle-password").click(function() {
$(this).toggleClass("fa-eye fa-eye-slash");
var input = $($(this).attr("toggle"));
$(document).ready(function () {
$(".toggle-password").click(function () {
$(this).toggleClass("fa-eye fa-eye-slash");
var input = $($(this).attr("toggle"));
if (input.attr("type") === "password") {
input.attr("type", "text");
} else {
input.attr("type", "password");
}
});
if (input.attr("type") === "password") {
input.attr("type", "text");
} else {
input.attr("type", "password");
}
});
});
// Function to check if the user exists
function checkUserExists() {
if (!userExists) {
showUserNotFoundAlert();
showContactAdminMessage(); // Function to display the h5 element
return false; // Prevent form submission
}
if (!userExists) {
showUserNotFoundAlert();
showContactAdminMessage(); // Function to display the h5 element
return false; // Prevent form submission
}
}
// Function to display an alert when no user is found
function showUserNotFoundAlert() {
alert("User not found. Please check your username and password.");
alert("User not found. Please check your username and password.");
}
// Function to display the h5 element
function showContactAdminMessage() {
$("#contactAdminMsg").removeClass("d-none"); // Remove the 'd-none' class to make it visible
$("#contactAdminMsg").removeClass("d-none"); // Remove the 'd-none' class to make it visible
}
// Variable to check if the user exists
@@ -36,5 +36,5 @@ var userExists = false; // Set to false if the user is not found
// Check if the user exists
if (!userExists) {
showContactAdminMessage(); // Display the message when the user is not found
showContactAdminMessage(); // Display the message when the user is not found
}
+18 -23
View File
@@ -1,26 +1,21 @@
(function($) {
(function ($) {
"use strict";
"use strict";
var fullHeight = function() {
$('.js-fullheight').css('height', $(window).height());
$(window).resize(function(){
$('.js-fullheight').css('height', $(window).height());
});
};
fullHeight();
$(".toggle-password").click(function() {
$(this).toggleClass("fa-eye fa-eye-slash");
var input = $($(this).attr("toggle"));
if (input.attr("type") == "password") {
input.attr("type", "text");
} else {
input.attr("type", "password");
}
});
var fullHeight = function () {
$(".js-fullheight").css("height", $(window).height());
$(window).resize(function () {
$(".js-fullheight").css("height", $(window).height());
});
};
fullHeight();
$(".toggle-password").click(function () {
$(this).toggleClass("fa-eye fa-eye-slash");
var input = $($(this).attr("toggle"));
if (input.attr("type") == "password") {
input.attr("type", "text");
} else {
input.attr("type", "password");
}
});
})(jQuery);
+1194 -1
View File
File diff suppressed because one or more lines are too long