forked from mdadeeljawaid/Pharmacy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSellerScript.js
124 lines (92 loc) · 3.32 KB
/
SellerScript.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
$(document).ready(function () {
// $(window).resize(function () {
// if ($(window).width() < 700) {
// $(".nav-bgcolor").removeClass('nav-bgcolor')
// }
// else{
// $(".navbar").addClass('nav-bgcolor')
// }
// })
//for nav on mobile view
var fixHeight = function () {
$('.navbar-nav').css(
'max-height',
document.documentElement.clientHeight - 150
);
};
fixHeight();
$(window).resize(function () {
fixHeight();
});
$('.navbar .navbar-toggler').on('click', function () {
fixHeight();
});
$('.navbar-toggler,.overlay,.btnclsnav').on('click', function () {
$('.mobileMenu,.overlay,.btnclsnav').toggleClass('open');
});
//for banner portion
$('.carousel').carousel({
interval: 3000,
keyboard: true,
pause: 'hover',
wrap: true
});
$('#slider4').on('slide.bs.carousel', function () {
console.log('SLIDE!');
});
$('#slider4').on('slid.bs.carousel', function () {
console.log('SLID!');
});
//current year for copyright
document.getElementById("footeryear").innerHTML = new Date().getFullYear();
});
// function checkPasswordMatch() {
// var psw = document.getElementById("Password").value;
// var pswreEnter = document.getElementById("RePassword").value;
// let alphExp = /^[0-9]+$/;
// if ( (psw.length < 8 )) {
// document.getElementById("Password").innerText = "Password contain atleast 8 charecters "
// }
// if (!psw.match(alphExp)) {
// document.getElementById("Password").innerText = "Password does not follow criteria "
// }
// if ((psw != pswreEnter)) {
// document.getElementById("RePassword").innerText = "Password not matched"
// }
// else {
// document.getElementById("Re-Password-error").innerText = "";
// }
// }
// function checkPasswordMatch(){
// var InputValue = $("#password").val();
// var regex = new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})");
// $("#passwordText").text(`Password value:- ${InputValue}`);
// if(!regex.test(InputValue)) {
// $("#error").text("Invalid Password");
// }
// else{
// $("#error").text("");
// }
// }
// function checkPasswordMatch() {
// var psw = document.getElementById("Password").value;
// alert(typeOf(psw));
// var pswreEnter = document.getElementById("RePassword").value;
// var lowerCaseLetters = /[a-z]/g;
// var upperCaseLetters = /[A-Z]/g;
// alert('chal raha shai', psw.length)
// //let alphExp = /^[0-9]+$/;
// if (psw.length < 8 && pswreEnter.match(alphExp)) {
// alert('8 charecter')
// document.getElementById("Re-Password-error").innerText = "Password not matched";
// } else if (psw == "") {
// alert(' pass')
// document.getElementById("Re-Password-error").innerHTML = "**Fill the password please!";
// return false;
// } else if (psw.value.match(lowerCaseLetters)) {
// alert('re pass')
// document.getElementById("Re-Password-error").innerHTML = "**please enter one lower case letter";
// } else {
// document.getElementById("Re-Password-error").innerText = "";
// }
// }