Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Initialize with all cards not in deck, so they can be thrown in instead of thrown out #116

Open
@mdmcginn

Description

How might I begin with all cards "thrown out" (not in the deck), so they can be thrown in instead of thrown out? For example, the instructions might be "Throw all the red cards onto the stack".

I tried this:
[].forEach.call(document.querySelectorAll('.stack li'), function (targetElement) {
stack.createCard(targetElement);

 targetElement.classList.remove('in-deck');
	card.throwOut(Direction.LEFT, 400);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /