links: Trello: https://trello.com/b/UuUxyoDz/miniprojekt-1
Krav:
- Javascript A. All contet need to be renderd via Javascript. B.
- Bootstrap
- Sass
Functoinalety:
- Login to A. Student ◊ B. Trainer
- Landing page A.
(OBS!!!)
Important data:
- google calender api. A. Client id: 577238333057-e6vcphgeorsj9jgchpsd2f4bb9f00kfr.apps.googleusercontent.com
(How to set html in Javascript) Select tje right path to post to:
dokument.querySelectorAll("class"):
(el = variable) let el = dokument.querySelectorAll("class");
el OBS !!! do not write(output: (Nodelist(3) [div.card, div.card, div.card]))
Links: exampel of query selectors: https://codepen.io/pen/?editors=1010
( let el = document.querySelectorAll(".card"); undefined el NodeList(3) [div.card, div.card, div.card] el[0]
el[0].childNodes NodeList(5) [text, img.card-img-top, text, div.card-body, text]0: textassignedSlot: nullbaseURI: "http://127.0.0.1:3000/index.html"childNodes: NodeList []data: "↵ "firstChild: nullisConnected: truelastChild: nulllength: 11nextElementSibling: img.card-img-topnextSibling: img.card-img-topnodeName: "#text"nodeType: 3nodeValue: "↵ "ownerDocument: documentparentElement: div.cardparentNode: div.cardpreviousElementSibling: nullpreviousSibling: nulltextContent: "↵ "wholeText: "↵ "__proto__: Text1: img.card-img-top2: text3: div.card-bodyaccessKey: ""align: ""assignedSlot: nullattributes: NamedNodeMap {0: class, class: class, length: 1}baseURI: "http://127.0.0.1:3000/index.html"childElementCount: 3childNodes: NodeList(7)0: text1: h5.card-title2: text3: p.card-text4: text5: p.card-text6: textlength: 7__proto__: NodeListchildren: HTMLCollection(3) [h5.card-title, p.card-text, p.card-text]classList: DOMTokenList ["card-body", value: "card-body"]className: "card-body"clientHeight: 392clientLeft: 0clientTop: 0clientWidth: 461contentEditable: "inherit"dataset: DOMStringMap {}dir: ""draggable: falsefirstChild: textfirstElementChild: h5.card-titlehidden: falseid: ""innerHTML: "↵ ↵This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
↵Last updated 3 mins ago
↵ "innerText: "Kids↵This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.↵↵Last updated 3 mins ago↵↵"isConnected: trueisContentEditable: falselang: ""lastChild: textlastElementChild: p.card-textlocalName: "div"namespaceURI: "http://www.w3.org/1999/xhtml"nextElementSibling: nullnextSibling: textnodeName: "DIV"nodeType: 1nodeValue: nullnonce: ""offsetHeight: 392offsetLeft: 0offsetParent: div.cardoffsetTop: 276offsetWidth: 461onabort: nullonauxclick: nullonbeforecopy: nullonbeforecut: nullonbeforepaste: nullonblur: nulloncancel: nulloncanplay: nulloncanplaythrough: nullonchange: nullonclick: nullonclose: nulloncontextmenu: nulloncopy: nulloncuechange: nulloncut: nullondblclick: nullondrag: nullondragend: nullondragenter: nullondragleave: nullondragover: nullondragstart: nullondrop: nullondurationchange: nullonemptied: nullonended: nullonerror: nullonfocus: nullongotpointercapture: nulloninput: nulloninvalid: nullonkeydown: nullonkeypress: nullonkeyup: nullonload: nullonloadeddata: nullonloadedmetadata: nullonloadstart: nullonlostpointercapture: nullonmousedown: nullonmouseenter: nullonmouseleave: nullonmousemove: nullonmouseout: nullonmouseover: nullonmouseup: nullonmousewheel: nullonpaste: nullonpause: nullonplay: nullonplaying: nullonpointercancel: nullonpointerdown: nullonpointerenter: nullonpointerleave: nullonpointermove: nullonpointerout: nullonpointerover: nullonpointerup: nullonprogress: nullonratechange: nullonreset: nullonresize: nullonscroll: nullonsearch: nullonseeked: nullonseeking: nullonselect: nullonselectstart: nullonstalled: nullonsubmit: nullonsuspend: nullontimeupdate: nullontoggle: nullonvolumechange: nullonwaiting: nullonwebkitfullscreenchange: nullonwebkitfullscreenerror: nullonwheel: nullouterHTML: "This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
↵Last updated 3 mins ago
↵…
el[0].childNodes[3].childNodes[6] #text el[0].childNodes[3].childNodes[6].data="TEST" "TEST" el[0].childNodes[3].childNodes[6].data="" "" el[0].childNodes[3].childNodes[4].data="" "" el[0].childNodes[3].childNodes[4] #text el[0].childNodes[3].childNodes[4].data="YO!" "YO!" el[0].childNodes[3].childNodes[4].data="" "" el[0].childNodes[3].childNodes[2] #text el[0].childNodes[3].childNodes[2].data="HEJ SVEJS" "HEJ SVEJS" el[0].childNodes[3].childNodes[2].data "HEJ SVEJS" el[0].childNodes[3].childNodes[3]"This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer."
el[0].childNodes[3].childNodes[3].innerHTML="" "" el[0].childNodes[3].childNodes[3].innerHTML="BlBLABLABLBA" "BlBLABLABLBA" el[1].childNodes[3].childNodes[3].innerHTML="BlBLABLABLBA 2" "BlBLABLABLBA 2" el[2].childNodes[3].childNodes[3].innerHTML="BlBLABLABLBA 3" "BlBLABLABLBA 3" document #document#shadow-root (open)…<title>Dancing Lion</title>…)
