Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cards in decks with images #214

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Windbagy
Copy link
Contributor

@Windbagy Windbagy commented Jun 5, 2018

Click on card - show image. Click again - hide.
Image urls are generating with api of www.scryfall.com by arena card id.
2 faces cards works too.
Some code is from sorting patch.

@Windbagy Windbagy requested a review from a team as a code owner June 5, 2018 03:39
@Windbagy
Copy link
Contributor Author

Windbagy commented Jun 5, 2018

Forgot to say : ajax and JSON works for me only with full version of jquery.js,
So if Images are not loading do with rename:
https://code.jquery.com/jquery-3.3.1.min.js -> electron/jquery.js

@Spencatro
Copy link
Member

Sure enough, mtgatracker is using a super stripped version of jquery:

"3.3.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector"

I'm sure I had a good reason for this, but it really escapes me at the moment.

@smkiewel
Copy link
Member

smkiewel commented Dec 4, 2018

Spencer, did you happen to remember what the reason for the stripped jQuery is? Had another request for images on hover, so merging this (well, making it hover then merging) would be nice if there isn't really a strong reason to strip out jquery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants