-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
122 lines (115 loc) · 5.22 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- CSS only -->
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"
crossorigin="anonymous" />
<title>Hello World</title>
</head>
<body>
<div class="container text-center">
<div class="row">
<div class="col">
<div class="display-1 uppercase">Hello World</div>
<p class="lead">
Hello world programme in most of the programming language created so
far
</p>
</div>
</div>
</div>
<main>
<div class="container">
<div class="row">
<div class="col">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Search By language</span>
</div>
<input id="search"
type="text"
class="form-control"
placeholder="Ex: JavaScript"
aria-label="language"
name="search"
aria-describedby="basic-addon1" />
</div>
</div>
</div>
<div id="cards">
<div class="row">
<div class="col-lg-4 mb-4" data-lang="javascript">
<div class="card">
<img class="card-img-top"
src="./images/javascript.png"
alt="" />
<div class="card-body">
<h5 class="card-title text-center">JavaScript</h5>
<div class="col text-center">
<a href="https://github.com/kmrakash"
class="btn btn-outline-danger btn-sm">Contributed by - kmrakash</a>
</div>
</div>
</div>
</div>
<!-- Write Your Code From Here , Please run once locally to know if everything is good -->
<div class="col-lg-4 mb-4" data-lang="Python">
<div class="card">
<img class="card-img-top"
src="./images/python.png"
alt="Python" />
<div class="card-body">
<h5 class="card-title text-center">Python</h5>
<div class="col text-center">
<a href="https://github.com/ashutoshkrris"
class="btn btn-outline-danger btn-sm">Contributed by - Ashutosh Krishna</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 mb-4" data-lang="Dart">
<div class="card">
<img class="card-img-top" src="./images/dart.png" alt="Dart" />
<div class="card-body">
<h5 class="card-title text-center">Dart</h5>
<div class="col text-center">
<a href="https://github.com/ashutoshkrris"
class="btn btn-outline-danger btn-sm">Contributed by - Ashutosh Krishna</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 mb-4" data-lang="Go">
<div class="card">
<img class="card-img-top" src="./images/go.png" alt="Go">
<div class="card-body">
<h5 class="card-title text-center">Go</h5>
<div class="col text-center">
<a href="https://github.com/hey-mikey" class="btn btn-outline-danger btn-sm">Contributed by - hey-mikey</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<script>
const searchEl = document.getElementById("search");
const cardsEl = document.getElementById("cards");
console.log(cardsEl);
// console.log(searchEl);
searchEl.addEventListener("change", function Search(e) {
console.log(e.target.value);
console.log("clicked");
const el = document.querySelector(`[data-lang="${e.target.value}"]`);
console.log(el);
// cardsEl.appendChild(el);
});
</script>
</body>
</html>