Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
Project Page
Commits
0a986655
Commit
0a986655
authored
3 years ago
by
Athanasios
Browse files
Options
Download
Email Patches
Plain Diff
Restore search function
parent
763151c7
master
devel
testing
4 merge requests
!86
ignore ts built folder
,
!85
deployment
,
!84
prepare deployment
,
!79
Restore search function
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
views/DE/project/pagesList.pug
+7
-5
views/DE/project/pagesList.pug
views/DE/project/projectList.pug
+7
-5
views/DE/project/projectList.pug
with
14 additions
and
10 deletions
+14
-10
views/DE/project/pagesList.pug
+
7
-
5
View file @
0a986655
...
...
@@ -81,20 +81,22 @@ html(lang="de")
var filter = input.value.toUpperCase()
var cardsCol = document.getElementsByClassName("col-sm")
var cardTitle, cardText, titleValue,
textValue
var cardTitle,
cardBadges,
cardText, titleValue,
badgesValue, textValue, allValues;
var i
var counterBlock = 0
for (i = 0; i < cardsCol.length; i++) {
cardTitle = cardsCol[i].getElementsByClassName("card-title-bottom-left");
cardBody = cardsCol[i].getElementsByClassName("card-body");
//cardBody = cardsCol[i].getElementsByClassName("card-body");
cardBadges = [...cardsCol[i].getElementsByClassName("badge-pill")];
cardText = cardsCol[i].getElementsByClassName("card-text");
titleValue = cardTitle[0].textContent || cardTitle[0].innerText;
bodyValue = cardBody[0].textContent || cardBody[0].innerText;
badgesValue = cardBadges.map(b => b.textContent).join(" ");
//bodyValue = cardBody[0].textContent || cardBody[0].innerText;
textValue = cardText[0].textContent || cardText[0].innerText;
if (
titleValue.toUpperCase().indexOf(filter) > -1 || bodyValue.toUpperCase().indexOf(filter) > -1 || textValue.toUpperCase().indexOf(filter) >
-1) {
allValues = [titleValue, badgesValue, textValue].map(v => v.toUpperCase()).join(" ");
if (
allValues.indexOf(filter)!=
-1) {
cardsCol[i].style.display = "block"
counterBlock++
} else {
...
...
This diff is collapsed.
Click to expand it.
views/DE/project/projectList.pug
+
7
-
5
View file @
0a986655
...
...
@@ -105,20 +105,22 @@ html(lang="de")
var filter = input.value.toUpperCase()
var cardsCol = document.getElementsByClassName("col-sm")
var cardTitle, cardText, titleValue,
textValue
var cardTitle,
cardBadges,
cardText, titleValue,
badgesValue, textValue, allValues;
var i
var counterBlock = 0
for (i = 0; i < cardsCol.length; i++) {
cardTitle = cardsCol[i].getElementsByClassName("card-title-bottom-left");
cardBody = cardsCol[i].getElementsByClassName("card-body");
//cardBody = cardsCol[i].getElementsByClassName("card-body");
cardBadges = [...cardsCol[i].getElementsByClassName("badge-pill")];
cardText = cardsCol[i].getElementsByClassName("card-text");
titleValue = cardTitle[0].textContent || cardTitle[0].innerText;
bodyValue = cardBody[0].textContent || cardBody[0].innerText;
badgesValue = cardBadges.map(b => b.textContent).join(" ");
//bodyValue = cardBody[0].textContent || cardBody[0].innerText;
textValue = cardText[0].textContent || cardText[0].innerText;
if (
titleValue.toUpperCase().indexOf(filter) > -1 || bodyValue.toUpperCase().indexOf(filter) > -1 || textValue.toUpperCase().indexOf(filter) >
-1) {
allValues = [titleValue, badgesValue, textValue].map(v => v.toUpperCase()).join(" ");
if (
allValues.indexOf(filter)!=
-1) {
cardsCol[i].style.display = "block"
counterBlock++
} else {
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets