inside out project STEP-701 to STEP-702 app.js Code Changes

Created Diff never expires
0 removals
1 line
16 additions
17 lines
// JavaScript Document

window.onload = function () {

for (i = 0; i < 36; i++) {
let v = Math.floor(Math.random() * (150 - 0)) + 0;
let y = Math.floor(Math.random() * (window.innerWidth - 0)) + 100;
let itm = document.getElementById("tree");
let cln = itm.cloneNode(true);
cln.style.bottom = v + 'px';
cln.style.left = (y) + 'px';
cln.style.zIndex = -1;
document.body.appendChild(cln);
}

}