-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphising.html
More file actions
74 lines (70 loc) · 1.6 KB
/
phising.html
File metadata and controls
74 lines (70 loc) · 1.6 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Enter Your Name</title>
<style>
body {
font-family: Arial, sans-serif;
padding: 2rem;
background-color: #f9f9f9;
}
.container {
max-width: 400px;
margin: auto;
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
input[type="text"] {
width: 100%;
padding: 0.5rem;
margin-top: 0.5rem;
margin-bottom: 1rem;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
padding: 0.5rem 1rem;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
#greeting {
margin-top: 1rem;
font-weight: bold;
color: #333;
}
</style>
</head>
<body>
<div class="container">
<h2>What's your name?</h2>
<form id="nameForm">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required />
<button type="submit">Submit</button>
</form>
<div id="greeting"></div>
</div>
<script>
const form = document.getElementById('nameForm');
const greeting = document.getElementById('greeting');
form.addEventListener('submit', function(event) {
event.preventDefault();
const name = document.getElementById('name').value.trim();
if (name) {
greeting.textContent = `Hello, ${name}! 👋`;
} else {
greeting.textContent = '';
}
});
</script>
</body>
</html>