CSC360: Demos! [16/17] |
Viewing the DOM/documents using developer tools: It's a tree!
Messing around with CSS and HTML using liveweave
div
and span
Messing around responsive frameworks using codeply (bootstrap, foundation)
Messing around javascript using jsbin
Javascript:
console.log ("hi"); document.body.innerHTML = "<p>pizza</p>"; let x = document.getElementById ("x"); console.log (x); x.innerHTML = "hi"; function f () { console.log ("pizza"); let y = document.getElementById ("y"); y.innerHTML = "Pushed"; }
HTML:
<p class="a" id="x"> hello </p> <p class="a"> hello </p> <button id="y" onclick="f()">Push me</button>