Changeset 2efe93e in Git for target/classes/static/js


Ignore:
Timestamp:
02/06/22 20:01:15 (3 years ago)
Author:
Petar Partaloski <ppartaloski@…>
Branches:
main
Children:
42d565b
Parents:
f25e8dd
Message:

Improved Front-End, added card view of movies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • target/classes/static/js/sharedScript.js

    rf25e8dd r2efe93e  
    146146                let movieId=$(button).attr("movie-id")
    147147                if (type==='like') {
    148                     $(button).parent().append("<a class='btn btn-warning button-remove-favourite-list' movie-id=" + movieId + " user-id=" + userId + ">Избриши од омилена листа</a>")
     148                    $(button).parent().append("<a class='bottom-heart btn btn-danger button-remove-favourite-list' movie-id=" + movieId + " user-id=" + userId + ">💔</a>")
    149149                    console.log("da")
    150150                }
    151151                else{
    152                     $(button).parent().append("<a class='btn btn-success button-add-favourite-list' movie-id=" + movieId + " user-id=" + userId + ">Додади во омилена листа</a>")
     152                    $(button).parent().append("<a class='bottom-heart btn btn-success button-add-favourite-list' movie-id=" + movieId + " user-id=" + userId + ">❤</a>")
    153153
    154154                }
Note: See TracChangeset for help on using the changeset viewer.