Skip to content

Commit 2dd6994

Browse files
committed
Datatables Library
1 parent 604fc35 commit 2dd6994

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed
1.66 MB
Loading

src/main/resources/static/index.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
body::after {
2+
content: "";
3+
background: url(/Users/gerardpuig/eclipse-workspace/ITAcademy_Exercicis/M13-HTTP-Service/src/main/resources/static/background.jpeg);
4+
opacity: 0.5;
5+
top: 0;
6+
left: 0;
7+
bottom: 0;
8+
right: 0;
9+
position: absolute;
10+
z-index: -1;
11+
}

src/main/resources/templates/index.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="es" xmlns:th="http://www.thymeleaf.org">
33

44
<head>
55
<meta charset="UTF-8">
@@ -8,6 +8,17 @@
88
<!--Libreria Jquery carcada des de CDN-->
99
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
1010

11+
<!-- Data table -->
12+
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
13+
<script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js"></script>
14+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.1/css/bootstrap.css">
15+
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css">
16+
<script type="text/javascript">
17+
$(document).ready(function () {
18+
//Asegurate que el id que le diste a la tabla sea igual al texto despues del simbolo #
19+
$('#employeeTable').DataTable();
20+
});
21+
</script>
1122
</head>
1223

1324
<body>

0 commit comments

Comments
 (0)