+ teams.forEach((team, index) => {
+
+ const teamColumn = $(
+ `
+
${team.identifier}
@@ -111,6 +125,9 @@
`
);
+ teamColumn.css("opacity", 1);
+ $("#teamsContainer").append(teamColumn);
+
// While we have the team, iterate over and add it's members
team.members.forEach((member) => {
$("#teamsContainer").find(".team-members").last().append(
@@ -126,18 +143,18 @@
)
});
});
- if (highlightText) {
- $("#teamsContainer").find(`.team-member:icontains('${highlightText}')`).css("color", "red")
+ if (!isEmptyOrSpaces(highlightText)) {
+ $("#teamsContainer").find(`.team-member:icontains('${highlightText}')`).addClass("border-bottom text-primary fw-bold");
}
}
- function fetchAndLoadTeams(search) {
+ function fetchAndLoadTeams(search="") {
$.ajax({
url: "{% url 'get-teams' %}",
type: "post",
data: {
"csrfmiddlewaretoken": "{{ csrf_token }}",
- "search": search
+ "search": !isEmptyOrSpaces(search) ? search : null
},
error: (xhr, textStatus, errorThrown) => { alert(errorThrown); },
success: (result) => {
diff --git a/src/static/css/custom.css b/src/static/css/custom.css
index 4d03fc2..a971403 100644
--- a/src/static/css/custom.css
+++ b/src/static/css/custom.css
@@ -17,16 +17,26 @@
}
.fluid-hover-zoom {
- transition: .3s
- transform cubic-bezier(.155,1.105,.295,1.12),
+ transition:
+ .3s transform cubic-bezier(.155,1.105,.295,1.12),
.3s box-shadow,
.3s -webkit-transform cubic-bezier(.155,1.105,.295,1.12);
+ backface-visibility: hidden;
}
-
+
.fluid-hover-zoom:hover {
- transform: scale(1.04);
+ transform: scale(1.035);
}
-.hover-shadow:not(:hover) {
+.no-transform {
+ transform: none !important;
+}
+
+.shadow-on-hover:not(:hover) {
box-shadow: none !important;
+}
+
+.team-column {
+ opacity: 0;
+ transition: 5s opacity ease-in;
}
\ No newline at end of file