-
Notifications
You must be signed in to change notification settings - Fork 2
/
footer.php
87 lines (66 loc) · 1.93 KB
/
footer.php
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
<footer>
<div class="container">
<div class="row">
<div class="col-md-12">
<p>Copyright © 2017 PizzaVilla</p>
<hr>
<ul class="social-icon">
<li><a href="#" class="fa fa-facebook"></a></li>
<li><a href="#" class="fa fa-twitter"></a></li>
<li><a href="#" class="fa fa-instagram"></a></li>
<li><a href="#" class="fa fa-pinterest"></a></li>
<li><a href="#" class="fa fa-google"></a></li>
<li><a href="#" class="fa fa-github"></a></li>
<li><a href="#" class="fa fa-apple"></a></li>
</ul>
</div>
</div>
</div>
</footer>
<!-- end footer -->
<script src="js/plugins.js"></script>
<script src="js/custom.js"></script>
<script>
function editme() {
var input = $('#editform input');
input.toggleClass('readonly');
input.toggleClass('form-control');
console.log(input.prop("readonly"));
input.attr('readonly', input.prop('readonly') == false ? true : false);
$('#editform button').toggleClass("hidden");
}
function pswd_match() {
var pswd=document.getElementById('pass');
var cpswd=document.getElementById('confirmpass');
if(pswd.value!=cpswd.value){
alert("Password don't match"); cpswd.focus; return false;}
else {
return true;
}
}
function Validation()
{
var email = document.getElementById('inputEmail');
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!filter.test(email.value)) {
alert('Please provide a valid email address');
email.focus;
return false;
}
if (!pswd_match()) {
return false;
}
var phone = document.getElementById('phoneno');
var phoneNum = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;
if(phone.value.match(phoneNum)) {
return true;
}
else {
alert('Please provide a valid phone number');
phone.focus;
return false;
}
}
</script>
</body>
</html>