-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (44 loc) · 1.88 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="script.js"></script>
<title>Internship-Task</title>
</head>
<body>
<div class="container mt-5 text-capitalize">
<div class="row d-block">
<div class="mx-auto" style="width: 786px;">
<h1>dynamic image formatting</h1>
<div class="row pb-3">
<label class="pb-1" for="url">image URL:</label>
<input type="text" name="" id="url" placeholder="Enter Image URL">
</div>
<div class="row pb-3">
<label class="pb-1" for="height">image Height:</label>
<input type="text" name="" id="height" placeholder="Enter Image Height">
</div>
<div class="row pb-3">
<label class="pb-1" for="width">image Width:</label>
<input type="text" name="" id="width" placeholder="Enter Image Width">
</div>
<button class="btn btn-danger" type="button" onclick="resizeImage()">Submit</button>
</div>
</div>
<div class="row mt-3 mx-auto">
<div class=" card">
<div class="card-header">
Output Image
</div>
<div class="card-body" style="width: auto; height: auto;">
<img id="image" src="image.jpg" alt="Image Will Appear Here">
</div>
</div>
</div>
</div>
</body>
</html>