Skip to content

Commit

Permalink
Merge pull request #9 from sctlcd/image-provider-fixed
Browse files Browse the repository at this point in the history
fixed card images provider
  • Loading branch information
sctlcd authored Feb 11, 2024
2 parents 5880c6a + e95c9dd commit c28dfe9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ Sources of the images used on this site:
- city-art-los-angeles-street-art-min.jpg - [Pexel | copyright ᒷ⟁⨃.ᖇ.ᕮ.∥.ᕮ](https://www.pexels.com/photo/city-art-los-angeles-street-art-2334805/)
- photo-of-multicolored-illustration-min.jpg - [Pexel | copyright Anni Roenkae](https://www.pexels.com/photo/photo-of-multicolored-illustration-2832382/)
- favicon.ico - [Flaticon](https://www.flaticon.com/free-icon/memory_2665733?term=memory%20game&related_id=2665733) | copyright [Freepik](https://www.freepik.com)
- card images - [LoremFlickr](https://loremflickr.com/) | copyright [Flickr](https://www.flickr.com/) and the author is shown in the bottom left of the image

Back to [top](#TableOfContents)

Expand Down
11 changes: 9 additions & 2 deletions app/assets/js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,16 @@ $(document).ready(function() {
// randomly generated from https://placeimg.com
flipCard: function(card) {
card.addClass("visible");
// card.css({
// "background-image": 'url("https://placeimg.com/200/200/' +
// game.imgCategory +
// "/" +
// card.data("cardFigure") +
// '")',
// });
card.css({
"background-image": 'url("https://placeimg.com/200/200/' +
game.imgCategory +
"background-image": 'url("https://loremflickr.com/200/200' +
// game.imgCategory +
"/" +
card.data("cardFigure") +
'")',
Expand Down

0 comments on commit c28dfe9

Please sign in to comment.