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

Rank without suit #4

Open
charlie17 opened this issue Sep 12, 2024 · 3 comments
Open

Rank without suit #4

charlie17 opened this issue Sep 12, 2024 · 3 comments

Comments

@charlie17
Copy link

I need at times to show an "offsuit" card - eg a king with no suit. Is this possible? I saw the opposite in your documentation, eg a club with no rank. Thanks

@Danny-Engelman
Copy link
Contributor

Danny-Engelman commented Sep 12, 2024

Blast from the past

From the docs: https://github.com/cardmeister/cardmeister.github.io

You make the suitcolor white (or your card background color)

image

<playing-card is="king-of-hearts" suitcolor="white">

image

For more control you might want to extend the card with your own component, and handle attribute changes or whatever your card needs to do. See: https://jsfiddle.net/WebComponents/5g38fmxb/

@charlie17
Copy link
Author

Thanks. That seems to hide the rank though as well? Eg What if the card is a number, say a 9

@Danny-Engelman
Copy link
Contributor

I published a new version, after 5+ years.

Took me a day.. code wasn't the issue, the outdated Build steps where.
Build steps suck (just like Frameworks) because years later they never work.

Added rankcolor; now behaves like suitcolor

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

No branches or pull requests

2 participants