Changeset 7f36551 in Git for target/classes/static


Ignore:
Timestamp:
02/06/22 22:56:26 (3 years ago)
Author:
Test <matonikolov77@…>
Branches:
main
Children:
3c0f9a9, ad4243e
Parents:
42d565b
Message:

Resolved bux for fronted and repaired filtering through title and genres for movies

Location:
target/classes/static
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • target/classes/static/css/shared.css

    r42d565b r7f36551  
    4040    transition: 400ms;
    4141    color:black;
    42     -webkit-text-stroke-color: gray;
     42    -webkit-text-stroke-color: white;
    4343}
    4444
  • target/classes/static/js/sharedScript.js

    r42d565b r7f36551  
    3939    $(".search-button-title").on("click",function (){
    4040        let filter = $("#searchTitle").val()
     41        console.log(elements)
    4142        for (let item of elements){
    42             let title = item.cells[0].innerText
     43            let title =  $(item).find(".card-title").text()
    4344            if (title.toLowerCase() === filter.toLowerCase()){
     45                console.log("Da")
    4446                $(item).css("display","block")
    4547            }
     
    5456   $(".search-button").on("click",function () {
    5557        let filter = $("#searchGenre").val()
    56         for (let item of elements) {
    57             let genre = item.cells[4].children;
     58       console.log(elements)
     59
     60       for (let item of elements) {
     61            let genre = $(item).find(".card-genre")
    5862            let visible = false;
    5963
    60             for (g of genre) {
     64            for (let g of genre) {
    6165
    6266                if ($(g).text().toLowerCase() === filter.toLowerCase()) {
Note: See TracChangeset for help on using the changeset viewer.