-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforgotPassword.html
125 lines (100 loc) · 5.41 KB
/
forgotPassword.html
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
124
125
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>OLtA Bank</title>
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'>
<link rel="stylesheet" href="css/loginStyle.css">
<link rel="stylesheet" href="css/errormsg.css">
</head>
<body>
<!-- importing of success-error messages -->
<div class="success-error" id="includedContent"></div>
<div class="screen-1">
<!-- logo -->
<svg class="logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="300" height="300" viewbox="0 0 640 480" xml:space="preserve">
<g transform="matrix(3.31 0 0 3.31 320.4 240.4)">
<circle style="stroke: rgb(0,0,0); stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: #3a6cf4; fill-rule: nonzero; opacity: 1;" cx="0" cy="0" r="40"></circle>
</g>
<g transform="matrix(0.98 0 0 0.98 268.7 213.7)">
<circle style="stroke: rgb(0,0,0); stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(255,255,255); fill-rule: nonzero; opacity: 1;" cx="0" cy="0" r="40"></circle>
</g>
<g transform="matrix(1.01 0 0 1.01 362.9 210.9)">
<circle style="stroke: rgb(0,0,0); stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(255,255,255); fill-rule: nonzero; opacity: 1;" cx="0" cy="0" r="40"></circle>
</g>
<g transform="matrix(0.92 0 0 0.92 318.5 286.5)">
<circle style="stroke: rgb(0,0,0); stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(255,255,255); fill-rule: nonzero; opacity: 1;" cx="0" cy="0" r="40"></circle>
</g>
<g transform="matrix(0.16 -0.12 0.49 0.66 290.57 243.57)">
<polygon style="stroke: rgb(0,0,0); stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(255,255,255); fill-rule: nonzero; opacity: 1;" points="-50,-50 -50,50 50,50 50,-50 "></polygon>
</g>
<g transform="matrix(0.16 0.1 -0.44 0.69 342.03 248.34)">
<polygon style="stroke: rgb(0,0,0); stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(255,255,255); fill-rule: nonzero; opacity: 1;" vector-effect="non-scaling-stroke" points="-50,-50 -50,50 50,50 50,-50 "></polygon>
</g>
</svg>
<!-- input form -->
<form id="inpForm" class="main-form">
<!-- email -->
<div class="email">
<label for="email">Email Address</label>
<div class="sec-2">
<ion-icon name="mail-outline"></ion-icon>
<input id = "email-val" type="email" name="email" placeholder="username@gmail.com" required>
</div>
</div>
<!-- password -->
<div class="password">
<label for="password">What is your favorite color?</label>
<div class="sec-2">
<input id="password-val" class="pas" type="text" name="password" placeholder="e.g. reddish brown" required>
</div>
</div>
<div class="password">
<label for="password">What is your beloved football club?</label>
<div class="sec-2">
<input id="password-val" class="pas" type="text" name="password" placeholder="e.g. Real Madrid" required>
</div>
</div>
<!-- login -->
<input type="submit" class="login" value="Restore Password">
</form>
</div>
<script>
function includeHTML(url, targetId) {
fetch(url)
.then(response => response.text())
.then(data => {
const targetElement = document.getElementById(targetId);
targetElement.innerHTML = data;
//execute my script (starts here)
const formInp = document.getElementById('inpForm')
const success_popup=document.getElementById('success');
const error_popup =document.getElementById('error');
const s_close=document.getElementById('s_button');
const e_close=document.getElementById('e_button');
formInp.addEventListener('submit', (event)=>{
event.preventDefault();
success_popup.childNodes[1].childNodes[5].innerHTML = "Your Password is '12345'"
success_popup.style.display="block";
});
s_close.onclick =function(){
success_popup.style.display="none";
location.assign("login.html");
}
e_close.onclick=function(){
error_popup.style.display="none";
}
//my script ends here
})
.catch(error => {
console.error('Error:', error);
});
}
// Include HTML file and execute the inline script
includeHTML('/errormsg.html', 'includedContent');
</script>
</body>
</html>