-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
170 lines (146 loc) · 6.31 KB
/
contact.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<style>
.box{
background-image: url("https://source.unsplash.com/random/?mountains");
width: 100%;
height : 140vh;
}
h1{
margin-top: 10px;
color: red;
padding: 5px;
}
.txt{
border: 1px solid yellow;
color: darkblue;
outline: none;
}
.section,#check{
margin: 10px;
}
span{
color: red;
font-size: 23px;
}
#dropdown,.txt{
width: 70vw;
height: 5vh;
}
h5{
background-color: black;
text-align: center;
border: 2px solid red;
color: white;
margin-top: 4px;
margin-bottom: 0;
height: 10vh;
}
</style>
<title>Hello, world!</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#"><img src="logo.9ab068f4.png" style="height:8vh; border: 2px solid red;"></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="/Assignment3/index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#">Contacts</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Dropdown
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="#">Teams</a></li>
<li><a class="dropdown-item" href="#">New Members</a></li>
</ul>
</li>
</ul>
<form class="d-flex">
<a class="nav-link" style="border:2px solid red; margin-right:10px;" href="/Assignment3/teams.html">Teams</a>
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
</form>
</div>
</div>
</nav>
<div class="box">
<div class="container">
<h1>Contact Us To Clear The Queries</h1>
<form action="#">
<input type="text" class="txt" placeholder="Enter Your Email">
<hr>
<input type="text" class="txt" placeholder="Enter Your Phone Number">
<br>
<hr>
<input type="text" class="txt" placeholder="Enter the Class">
<br>
<hr>
<input type="radio" name="section" class="section"><span>Section a</span>
<input type="radio" name="section" class="section"><span>Section b</span>
<hr>
<input type="radio" name="section" class="section"><span>Section c</span>
<input type="radio" name="section" class="section"><span>Section d</span>
<hr>
<input type="radio" name="section" class="section"><span>Section e</span>
<input type="radio" name="section" class="section"><span>Section f</span>
<hr>
<hr>
<textarea name="explain" id="txtarea" rows="4" cols="30" placeholder="Write Your Queries"></textarea>
<hr><br><br>
<button class="btn btn-success">Submit the Details</button>
</div>
</div>
<div class="b-example-divider">
</div>
<footer>
<h5>Copyright Reserved - Aniket Kumar Gupta</h5>
</footer>
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script>
console.log("hello");
let btn = document.querySelector(".btn");
btn.addEventListener("click", (e) => {
alert("Click Ok To Submit The Form");
e.preventDefault();
let txtarea = document.querySelector("#txtarea");
txtarea.value = "";
// Multiple Element selector
let txt = document.getElementsByClassName("txt");
txt[0].value = "";
txt[1].value = "";
txt[2].value = "";
// to change the dropdown
let dropdown =document.getElementById("dropdown");
dropdown.value="no car";
// to uncheck the checkboxes
let check=document.getElementById("check");
let check1=document.getElementById("check1");
if(check.checked==true)
check.checked=false;
if(check1.checked==true)
check1.checked=false;
let radiobtn =document.querySelectorAll(".section");
radiobtn.forEach((element)=>{
if(element.checked==true)
element.checked=false;
})
})
</script>
</body>
</html>