{"action":"opened","issue":{"url":"https://api.github.com/repos/gajus/swing/issues/116","repository_url":"https://api.github.com/repos/gajus/swing","labels_url":"https://api.github.com/repos/gajus/swing/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/gajus/swing/issues/116/comments","events_url":"https://api.github.com/repos/gajus/swing/issues/116/events","html_url":"https://github.com/gajus/swing/issues/116","id":238105570,"number":116,"title":"Initialize with all cards not in deck, so they can be thrown in instead of thrown out","user":{"login":"mdmcginn","id":203071,"avatar_url":"https://avatars2.githubusercontent.com/u/203071?v=3","gravatar_id":"","url":"https://api.github.com/users/mdmcginn","html_url":"https://github.com/mdmcginn","followers_url":"https://api.github.com/users/mdmcginn/followers","following_url":"https://api.github.com/users/mdmcginn/following{/other_user}","gists_url":"https://api.github.com/users/mdmcginn/gists{/gist_id}","starred_url":"https://api.github.com/users/mdmcginn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdmcginn/subscriptions","organizations_url":"https://api.github.com/users/mdmcginn/orgs","repos_url":"https://api.github.com/users/mdmcginn/repos","events_url":"https://api.github.com/users/mdmcginn/events{/privacy}","received_events_url":"https://api.github.com/users/mdmcginn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-23T10:37:03Z","updated_at":"2017-06-23T10:37:03Z","closed_at":null,"body":"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\".\r\n\r\nI tried this:\r\n    [].forEach.call(document.querySelectorAll('.stack li'), function (targetElement) {\r\n        stack.createCard(targetElement);\r\n\r\n        targetElement.classList.remove('in-deck');\r\n\t\tcard.throwOut(Direction.LEFT, 400);\r\n    });"}}
{"actor":{"display_login":"mdmcginn"}}