-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathall_elements.html
334 lines (274 loc) · 9.61 KB
/
all_elements.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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
<!DOCTYPE html>
<html>
<head>
<title>HTML Attributes Example</title>
<style>
body {
margin: 20px;
}
h1 {
color: blue;
}
p {
margin-bottom: 10px;
}
img {
border: 1px solid #ccc;
margin-bottom: 10px;
}
a {
color: #007bff;
text-decoration: none;
}
input[type="text"], input[type="email"], input[type="submit"] {
display: block;
margin-bottom: 10px;
padding: 5px;
width: 200px;
}
table {
border-collapse: collapse;
margin-bottom: 10px;
margin-top: 20px;
}
th, td {
border: 1px solid #ccc;
padding: 5px;
}
form {
margin-bottom: 10px;
}
form {
max-width: 400px;
margin: 0 auto;
}
label {
display: block;
margin-top: 10px;
}
input[type="text"],
input[type="email"],
input[type="number"],
input[type="checkbox"],
input[type="radio"],
input[type="date"],
input[type="datetime-local"],
input[type="color"],
input[type="tel"],
input[type="time"],
input[type="url"],
input[type="week"] {
width: 100%;
padding: 8px;
margin-top: 5px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
button {
display: block;
margin-top: 10px;
padding: 8px 16px;
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
#output {
margin-top: 20px;
border: 1px solid #ccc;
padding: 10px;
}
.container {
position: relative;
width: 400px; /* Adjust this width to match your image's width */
}
.image {
width: 60%;
height: auto;
}
.text-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(255, 255, 255, 0.7); /* Background color with transparency */
padding: 10px;
font-size: 18px;
text-align: center;
}
.forecast {
margin: 0;
padding: 0.3rem;
background-color: #eee;
}
.forecast > h1,
.day-forecast {
margin: 0.5rem;
padding: 0.3rem;
font-size: 1.2rem;
}
.day-forecast {
background: right/contain content-box border-box no-repeat url('/media/examples/rain.svg') white;
}
.day-forecast > h2,
.day-forecast > p {
margin: 0.2rem;
font-size: 1rem;
}
</style>
</style>
<!-- <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> -->
</head>
<body>
<ul class="navbar">
<li><a href="index.html" target="_blank">Home</a></li>
<li><a href="not-present-in-dom.html">Not Present in DOM</a></li>
<li><a href="not-present-in-ui.html">Not Present in UI</a></li>
<li><a href="unstable-element.html">Unstable Element</a></li>
<li><a href="disabled-element.html">Disabled Element</a></li>
<li><a href="event-receiving-element.html">Event Receiving Element</a></li>
<li><a href="xhrrequest.html">XHR Element</a></li>
<li><a href="form_elements.html">Form Element</a></li>
<li><a href="all_elements.html">All elements</a></li>
</ul>
<h1 id="heading" class="main-heading">Welcome to the HTML Attributes Example</h1>
<p id="paragraph" class="content" data-custom-attribute="example" tabindex="0">This is a paragraph with various HTML attributes.</p>
<a href="https://www.example.com" target="_blank" rel="noopener noreferrer">Visit Example.com</a>
<br>
<table>
<tr>
<th>Header 2</th>
<!-- <th>Header 35</th> -->
<!-- <th>Header 5</th> -->
</tr>
<tr>
<td data-cell-id="1">Cell 56</td>
<td data-cell-id="2">Cell 2</td>
</tr>
</table>
<p>56</p>
<!-- <div class=bse-btn__text>Got it</div> -->
<form id="valueForm" action="#" method="post">
<label for="firstName">First Name:</label>
<input type="text" id="firstName" placeholder="hemant"><br>
<!--<input type="text" id="firstName" placeholder="hemant" class="zzwe __jhdnj abce efgh"><br> -->
<label for="lastName">Last Name:</label>
<input type="text" id="lastName" required><br>
<label for="email">Email:</label>
<input type="email" id="email" required><br>
<label for="number"> Number: </label>
<input type="tel" id="number" name="number" required><br>
<button type="submit">Submit</button>
</form>
<button class="xyzjej" onclick="appendClass(this)">Click me</button>
<div class=bse-btn__text>Got it</div>
<div id="result" style="display: none;">
<h2>Entered Values:</h2>
<p><strong>First Name:</strong> <span id="displayFirstName"></span></p>
<p><strong>Last Name:</strong> <span id="displayLastName"></span></p>
<p><strong>Email:</strong> <span id="displayEmail"></span></p>
<p><strong>Number:</strong> <span id="displayNumber"></span></p>
</div>
<script>
document.getElementById("valueForm").addEventListener("submit", function (event) {
event.preventDefault(); // Prevent the form from submitting
// Get values from input fields
const firstName = document.getElementById("firstName").value;
const lastName = document.getElementById("lastName").value;
const email = document.getElementById("email").value;
const number = document.getElementById("number").value;
// Display values
document.getElementById("displayFirstName").textContent = firstName;
document.getElementById("displayLastName").textContent = lastName;
document.getElementById("displayEmail").textContent = email;
document.getElementById("displayNumber").textContent = number;
// Show the result section
document.getElementById("result").style.display = "block";
});
</script>
<div class="container">
<a href="https://www.browserstack.com" target="_blank" rel="noopener noreferrer">
<img src="img/sample.jpeg" alt="samm" width="200" height="150" />
</a>
</div>
<div class="inner-container">
<a href="https://www.example.com" target="_blank" rel="noopener noreferrer">
<img src="img/Pizigani_1367_Chart_10MB.jpeg" width="200" height="150" />
</a>
</div>
<div class="container">
<img class="image" src="img/sample.jpeg" alt="Your Image">
<div class="text-overlay">
Text on Image
</div>
</div>
<hr>
<h3>main form </h3>
<form id="myForm">
<label for="name">Name:</label>
<!-- <input name="name" class="abcd ijkl djndjnd __23321"/> -->
<!-- <input name="name" class="ijkl abcd ijkl ___ djndjnd"/> -->
<label for="email">Email:</label>
<input type="email" id="emailid1234" name="email"/>
<label for="number">Number:</label>
<input type="tel" id="number" name="number"/>
<label for="checkbox">Checkbox:</label>
<input type="checkbox" id="checkboxid" />
<label for="radio1">Radio 1:</label>
<input type="radio" id="radio1" name="radioGroup" value="radio1" />
<label for="radio2">Radio 2:</label>
<input type="radio" id="radio2" name="radioGroup" value="radio2" />
<label for="date">Date:</label>
<input type="date" id="date" />
<label for="datetime">Datetime:</label>
<input type="datetime-local" id="datetime" />
<label for="color">Color:</label>
<input type="color" id="color" />
<label for="tel">Telephone:</label>
<input type="tel" id="tel" />
<label for="time">Time:</label>
<input type="time" id="time" />
<label for="url">URL:</label>
<input type="url" id="url" />
<label for="week">Week:</label>
<input type="week" id="week12334" />
<text> </text>
<button type="button" onclick="submitForm()">Submit</button>
</form>
<div id="output">
</div>
<button class="MuiButtonBase-root MuiIconButton-root MuiIconButton-edgeEnd MuiIconButton-sizeMedium css-slyssw" tabindex="0" type="button" aria-label="Choose date, selected date is Aug 4, 1978"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="CalendarIcon"><path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"></path></svg><span class="MuiTouchRipple-root css-w0pj6f"></span></button>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script>
window.onload = function() {
// Function to be executed after the entire page has loaded
function delayedFunction() {
// Your code here
console.log('Page fully loaded after delay');
}
// Set a delay (in milliseconds)
const delayTime = 5000; // Adjust the delay time as needed (2000 milliseconds = 2 seconds)
setTimeout(delayedFunction, delayTime);
};
$(document).ready(function () {
$('#example').DataTable();
});
function submitForm() {
var form = document.getElementById('myForm');
var outputDiv = document.getElementById('output');
var formData = new FormData(form);
var output = '';
for (var pair of formData.entries()) {
output += pair[0] + ': ' + pair[1] + '<br>';
}
outputDiv.innerHTML = output;
}
</script>
<script>
function appendClass(element) {
// Append the new class to the button
element.className = 'xyzjej_Newclass';
}
</script>