-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArray0perations.html
120 lines (112 loc) · 3.5 KB
/
Array0perations.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Array Operations Assignment</title>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
/>
<link rel="stylesheet" href="Assignment3_styles.css" />
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #f8f9fa;
}
.container {
margin-top: 50px;
}
.card {
margin-bottom: 20px;
}
.card-title {
font-size: 1.5rem;
margin-bottom: 10px;
}
.form-control {
margin-bottom: 10px;
}
.btn-primary {
margin-right: 10px;
}
</style>
</head>
<body>
<div class="container">
<h1 class="text-center mb-4">Array Operations</h1>
<div class="row">
<!-- Integer Array Section -->
<div class="col-md-6">
<div class="card">
<div class="card-body">
<h2 class="card-title">Integer Array</h2>
<input
type="text"
class="form-control"
id="integer-input"
placeholder="Enter integers (comma-separated)"
/>
<button
class="btn btn-primary"
onclick="parseAndDisplayArray()"
>
Display Array
</button>
<button class="btn btn-primary" onclick="sortArray()">
Sort Array
</button>
<div id="integer-array-output"></div>
<input
type="text"
class="form-control"
id="search-integer"
placeholder="Enter Number to be searched"
/>
<button class="btn btn-primary" onclick="searchInteger()">
Search Element
</button>
<div id="search-array-output"></div>
</div>
</div>
</div>
<!-- Array of Named Entities Section -->
<div class="col-md-6">
<div class="card">
<div class="card-body">
<h2 class="card-title">Named Entities Array</h2>
<input
type="text"
class="form-control"
id="entity-input"
placeholder="Enter named entities (comma-separated)"
/>
<button
class="btn btn-primary"
onclick="parseAndDisplayEntities()"
>
Display Entities
</button>
<div id="entity-array-output"></div>
<input
type="text"
class="form-control"
id="search-entity"
placeholder="Enter Entity to be searched"
/>
<button class="btn btn-primary" onclick="searchEntity()">
Search Entity
</button>
<div id="search-entity-output"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="Assignment3_scripts.js"></script>
</body>
</html>