formatted
This commit is contained in:
Vendored
+9210
-2
File diff suppressed because one or more lines are too long
+6117
-3561
File diff suppressed because it is too large
Load Diff
Vendored
+2947
-6
File diff suppressed because one or more lines are too long
Vendored
+5511
-1
File diff suppressed because one or more lines are too long
+19
-19
@@ -1,34 +1,34 @@
|
|||||||
// Add this code to your 1.js file
|
// Add this code to your 1.js file
|
||||||
$(document).ready(function() {
|
$(document).ready(function () {
|
||||||
$(".toggle-password").click(function() {
|
$(".toggle-password").click(function () {
|
||||||
$(this).toggleClass("fa-eye fa-eye-slash");
|
$(this).toggleClass("fa-eye fa-eye-slash");
|
||||||
var input = $($(this).attr("toggle"));
|
var input = $($(this).attr("toggle"));
|
||||||
|
|
||||||
if (input.attr("type") === "password") {
|
if (input.attr("type") === "password") {
|
||||||
input.attr("type", "text");
|
input.attr("type", "text");
|
||||||
} else {
|
} else {
|
||||||
input.attr("type", "password");
|
input.attr("type", "password");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Function to check if the user exists
|
// Function to check if the user exists
|
||||||
function checkUserExists() {
|
function checkUserExists() {
|
||||||
if (!userExists) {
|
if (!userExists) {
|
||||||
showUserNotFoundAlert();
|
showUserNotFoundAlert();
|
||||||
showContactAdminMessage(); // Function to display the h5 element
|
showContactAdminMessage(); // Function to display the h5 element
|
||||||
return false; // Prevent form submission
|
return false; // Prevent form submission
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function to display an alert when no user is found
|
// Function to display an alert when no user is found
|
||||||
function showUserNotFoundAlert() {
|
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 to display the h5 element
|
||||||
function showContactAdminMessage() {
|
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
|
// 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
|
// Check if the user exists
|
||||||
if (!userExists) {
|
if (!userExists) {
|
||||||
showContactAdminMessage(); // Display the message when the user is not found
|
showContactAdminMessage(); // Display the message when the user is not found
|
||||||
}
|
}
|
||||||
|
|||||||
+18
-23
@@ -1,26 +1,21 @@
|
|||||||
(function($) {
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
"use strict";
|
var fullHeight = function () {
|
||||||
|
$(".js-fullheight").css("height", $(window).height());
|
||||||
var fullHeight = function() {
|
$(window).resize(function () {
|
||||||
|
$(".js-fullheight").css("height", $(window).height());
|
||||||
$('.js-fullheight').css('height', $(window).height());
|
});
|
||||||
$(window).resize(function(){
|
};
|
||||||
$('.js-fullheight').css('height', $(window).height());
|
fullHeight();
|
||||||
});
|
|
||||||
|
|
||||||
};
|
|
||||||
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");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
$(".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);
|
})(jQuery);
|
||||||
|
|||||||
+1195
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user