{"action":"created","issue":{"url":"https://api.github.com/repos/JirkaDellOro/EIA2/issues/213","repository_url":"https://api.github.com/repos/JirkaDellOro/EIA2","labels_url":"https://api.github.com/repos/JirkaDellOro/EIA2/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/JirkaDellOro/EIA2/issues/213/comments","events_url":"https://api.github.com/repos/JirkaDellOro/EIA2/issues/213/events","html_url":"https://github.com/JirkaDellOro/EIA2/issues/213","id":372224657,"node_id":"MDU6SXNzdWUzNzIyMjQ2NTc=","number":213,"title":"UNO placeDiv Frage","user":{"login":"t0mmy93","id":43846955,"node_id":"MDQ6VXNlcjQzODQ2OTU1","avatar_url":"https://avatars1.githubusercontent.com/u/43846955?v=4","gravatar_id":"","url":"https://api.github.com/users/t0mmy93","html_url":"https://github.com/t0mmy93","followers_url":"https://api.github.com/users/t0mmy93/followers","following_url":"https://api.github.com/users/t0mmy93/following{/other_user}","gists_url":"https://api.github.com/users/t0mmy93/gists{/gist_id}","starred_url":"https://api.github.com/users/t0mmy93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t0mmy93/subscriptions","organizations_url":"https://api.github.com/users/t0mmy93/orgs","repos_url":"https://api.github.com/users/t0mmy93/repos","events_url":"https://api.github.com/users/t0mmy93/events{/privacy}","received_events_url":"https://api.github.com/users/t0mmy93/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-20T15:51:07Z","updated_at":"2018-10-20T17:03:46Z","closed_at":null,"author_association":"NONE","body":"Hallo ich komme nicht weiter bei der placeDiv function der Rest vom Code sollte stimmen \r\n\r\n   function placeDiv(l: number): void {\r\n        let div: HTMLDivElement = document.createElement(\"div\");\r\n        document.body.appendChild(div);\r\n       div.setAttribute(allCards[l].name, allCards[l].color);                       // was kommt hie rein\r\n\r\n        document.getElementById(allCards[l].name).innerHTML += allCards[l].name;  // was kommt hier rein\r\n        let s: CSSStyleDeclaration = div.style;\r\n        s.border = \"thin solid black\";\r\n        s.textAlign = \"center\";\r\n        s.position = \"absolute\";\r\n        s.backgroundColor = allCards[l].color;\r\n        s.width = 55 + \"px\";\r\n        s.height = 120 + \"px\";\r\n        s.left = (a + 0.5) * 100 + \"px\"; // a = zählt hoch in main um die div zu verschieben \r\n        s.bottom = 40 + \"px\";\r\n        s.borderRadius = 5 + \"px\";\r\n\r\n\r\n// l (klein L) ist die randomNumber die sich die Informationen, zur Hintergrundfarbe und Name der Karte, aus einem Array und dem dazu gehörigen Interface holt. \r\n\r\nmfg \r\nTom"},"comment":{"url":"https://api.github.com/repos/JirkaDellOro/EIA2/issues/comments/431599532","html_url":"https://github.com/JirkaDellOro/EIA2/issues/213#issuecomment-431599532","issue_url":"https://api.github.com/repos/JirkaDellOro/EIA2/issues/213","id":431599532,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTU5OTUzMg==","user":{"login":"NicoKlein97","id":34275116,"node_id":"MDQ6VXNlcjM0Mjc1MTE2","avatar_url":"https://avatars3.githubusercontent.com/u/34275116?v=4","gravatar_id":"","url":"https://api.github.com/users/NicoKlein97","html_url":"https://github.com/NicoKlein97","followers_url":"https://api.github.com/users/NicoKlein97/followers","following_url":"https://api.github.com/users/NicoKlein97/following{/other_user}","gists_url":"https://api.github.com/users/NicoKlein97/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoKlein97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoKlein97/subscriptions","organizations_url":"https://api.github.com/users/NicoKlein97/orgs","repos_url":"https://api.github.com/users/NicoKlein97/repos","events_url":"https://api.github.com/users/NicoKlein97/events{/privacy}","received_events_url":"https://api.github.com/users/NicoKlein97/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T17:03:46Z","updated_at":"2018-10-20T17:03:46Z","author_association":"NONE","body":"Zusätzlich: Ich sehe jetzt nicht was dieser Wert genau aussagt, aber vom Namen her schätze ich, dass bei der Verwendung von setAttribut ein Fehler vorliegt. Der erste Parameter in der Klammer sollte das zu ändernde Attribut sein (in deinem Fall würde ich mal schätzen, dass es sich um die Hintergrundfarbe handelt). Am besten mal schnell in die API von setAttribut reinschauen um die Syntax zu checken. "}}
{"actor":{"display_login":"NicoKlein97"}}