-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
41 lines (26 loc) · 886 Bytes
/
Copy pathscript.js
File metadata and controls
41 lines (26 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
document.body.style.backgroundColor = "#313131"
const cnt = document.querySelector(".cnt")
const h1 = document.querySelector("h1")
const img = document.querySelector("#img")
const yes = document.querySelector("#yes")
const no = document.querySelector("#No")
cnt.style.width = "40vw"
cnt.style.marginTop = "5vw"
cnt.style.marginLeft = "25vw"
cnt.style.padding = "10px 5px"
h1.style.color = "#fff"
img.style.width = "40vw"
yes.style.backgroundColor = "orange"
yes.style.padding = "10px 5px"
yes.style.border = "none"
yes.style.width = "8vw"
no.style.backgroundColor = "orange"
no.style.padding = "10px 5px"
no.style.border = "none"
no.style.width = "8vw"
yes.addEventListener("click", ()=>{
alert("that great good to hear that")
})
no.addEventListener("click", ()=>{
alert("no worries coding is not made for everybody")
})