forked from sem-utsc/sem-utsc.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
list.html
43 lines (41 loc) · 1.48 KB
/
list.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="row justify-content-center my-5">
<div class="col-4">
<div class="d-grid gap-2">
<button class="btn btn-primary" type="button">Add item</button>
<button class="btn btn-light" type="button">Clear all</button>
</div>
</div>
</div>
<div class="row justify-content-center my-5">
<div class="col-4">
<ol class="list-group" id="my-list">
</ol>
</div>
</div>
</div>
<template id="list-template">
<li class="list-group-item d-flex justify-content-between align-items-start">
<div class="ms-2 me-auto">
<div class="fw-bold" data-id="title"></div>
<span data-id="content"></span>
</div>
<span class="badge bg-primary rounded-pill" data-id="number">14</span>
</li>
</template>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<script src="js/list.js"></script>
</body>
</html>