parent
9409685c9a
commit
e9eff375c7
@ -0,0 +1,29 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Attach to Chrome",
|
||||
"port": 9222,
|
||||
"request": "attach",
|
||||
"type": "chrome",
|
||||
"webRoot": "${workspaceFolder}"
|
||||
},
|
||||
{
|
||||
"type": "vscode-edge-devtools.debug",
|
||||
"request": "attach",
|
||||
"name": "Attach to Microsoft Edge and open the Edge DevTools",
|
||||
"url": "http://localhost:8080",
|
||||
"webRoot": "${workspaceFolder}"
|
||||
},
|
||||
{
|
||||
"type": "msedge",
|
||||
"request": "launch",
|
||||
"name": "Launch Edge against localhost",
|
||||
"url": "http://localhost:8080",
|
||||
"webRoot": "${workspaceFolder}"
|
||||
}
|
||||
]
|
||||
}
|
@ -1,13 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
< html leng="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0 " />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
hef="https ://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
|
||||
integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PWOXpSrivlVlkMXe40PTKnXrLnZ9+fkDaog=="
|
||||
crossorigin="anonymous"
|
||||
/>
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
<title>My Project</title>
|
||||
<title>3D Boxes Background</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Project Starter</h1>
|
||||
<button id="btn" class="magic">Magic 🎩</button>
|
||||
<div id="boxes big"></div>
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1 +1,17 @@
|
||||
const boxesContaine = document.getElementById ('boxes')
|
||||
const btn = document.getElementById ('btn')
|
||||
|
||||
btn.addEventListener('click', () => boxesContaine.classList.toggle('big'))
|
||||
|
||||
function createBoxes() {
|
||||
for (let i = 0; i < 4; i++ ) {
|
||||
for (let j = 0; j <4; j++) {
|
||||
const box = document.createElement('div')
|
||||
box.classList.add('box')
|
||||
box.style.backgraoundPosition = `$ {-j} * 125}px ${-j * 125}px`
|
||||
boxesContaine.appendChild(box)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
createBoxes()
|
Loading…
Reference in new issue