-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
28 lines (23 loc) · 824 Bytes
/
Copy pathscript.js
File metadata and controls
28 lines (23 loc) · 824 Bytes
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
function validateEmail($email) {
var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
return emailReg.test($email);
}
$('.email-submit').attr("disabled", true);
jQuery('.email-input').on('input', function() {
var xd = $('.email-input').val();
if (validateEmail(xd)) {
$('.email-validation').hide();
$('.email-submit').attr("disabled", false);
} else {
$('.email-validation').show();
$('.email-submit').attr("disabled", true);
}
});
$(".navv").addClass("js");
$(".navv").addClass("js").before('<ul><div id="menu">☰</div></ul>');
$("#menu").click(function() {
$("nav").toggleClass("float-none");
$(".link").toggleClass("display-block");
$(".link-ul").toggleClass("display-block");
$("header").toggleClass("height-set");
});