-
Notifications
You must be signed in to change notification settings - Fork 156
/
Copy pathranjan-vishal.html
68 lines (68 loc) · 1.45 KB
/
ranjan-vishal.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My first Pull Request</title>
<style>
body{
background-color: #9c27b0ad;
text-align: center;
}
h1{
color:#c5f5ff;
font-size: 3em;
font-weight: bold;
}
button{
margin: 20px;
font-size: 30px;
padding: 32px 16px;
border: 2px solid red;
border-radius: 20px;
cursor: pointer;
}
button:hover {
background-color: #4CAF50;
color: white;
}
.showName{
font-size: 7vw;
font-weight: bold;
color: #26fd07;
margin-top: 50px;
font-stretch:
}
footer{
position: fixed;
left: 0;
bottom: 0;
width: 100%;
font-size: 30px;
}
</style>
</head>
<body>
<div>
<h1>My First Contribution To OpenSource</h1>
<button onclick="firstName()">First Name</button>
<button onclick="lastName()">Last Name</button>
<button onclick="FullName()">FullName</button>
<div id="showName" class="showName"></div>
<footer><p>Thank for Visting<span> "made by VISHAL RANJAN " with <span style='font-size:40px;'>💙</span></span></p></footer>
</div>
<script>
const firstName = () =>{
var Name = 'Vishal';
document.getElementById("showName").innerHTML=Name;
}
const lastName = () =>{
var Name = 'Ranjan';
document.getElementById("showName").innerHTML=Name;
}
const FullName = () =>{
var Name = 'Vishal Ranjan';
document.getElementById("showName").innerHTML=Name;
}
</script>
</body>
</html>