-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSubject_list.html
More file actions
50 lines (31 loc) · 1.38 KB
/
Subject_list.html
File metadata and controls
50 lines (31 loc) · 1.38 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/js/bootstrap.bundle.min.js" integrity="sha384-ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q" crossorigin="anonymous"></script>
<script>
function print_list(){
data = ["java","python","c++","go","ruby","r","C"]
for(i = 0; i < data.length; i++){
document.getElementById("print_data").innerHTML += '<li class="list-group-item">'+data[i]+'</li>';
}
}
</script>
</head>
<body>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6">
<button class="btn btn-primary" onclick="print_list()">Click</button>
<div class="shadow-lg border p-5">
<ul class="list-group" id="print_data">
</ul>
</div>
</div>
</div>
</div>
</body>
</html>