diff --git a/homeWork2 b/homeWork2.js similarity index 100% rename from homeWork2 rename to homeWork2.js diff --git a/homeWork6.js b/homeWork6.js index c70cb9e..bb9eb36 100644 --- a/homeWork6.js +++ b/homeWork6.js @@ -3,16 +3,17 @@ let twoX = document.querySelector('.two'); let threeX = document.querySelector('.three'); function f() { - document.querySelector('.big').style.backgroundImage="url('img/big/brit.jpg')"; + document.querySelector('.big').style.backgroundImage = "url('img/big/brit.jpg')"; } function x() { - document.querySelector('.big').style.backgroundImage="url('img/big/noname.jpg')"; + document.querySelector('.big').style.backgroundImage = "url('img/big/noname.jpg')"; } function z() { - document.querySelector('.big').style.backgroundImage="url('img/big/white.jpg')"; + document.querySelector('.big').style.backgroundImage = "url('img/big/white.jpg')"; } oneX.onclick = f; twoX.onclick = x; threeX.onclick = z; +// Можно сделать решение, через массив. 3 Здадание, так же через массив. Решить позже. \ No newline at end of file diff --git a/img/big/brit.jpg b/img/big/brit.jpg new file mode 100644 index 0000000..bccb6d6 Binary files /dev/null and b/img/big/brit.jpg differ diff --git a/img/big/noname.jpg b/img/big/noname.jpg new file mode 100644 index 0000000..e831c8f Binary files /dev/null and b/img/big/noname.jpg differ diff --git a/img/big/white.jpg b/img/big/white.jpg new file mode 100644 index 0000000..8c16c2f Binary files /dev/null and b/img/big/white.jpg differ diff --git a/img/min/brit.jpg b/img/min/brit.jpg new file mode 100644 index 0000000..7221080 Binary files /dev/null and b/img/min/brit.jpg differ diff --git a/img/min/noname.jpg b/img/min/noname.jpg new file mode 100644 index 0000000..96b0fc7 Binary files /dev/null and b/img/min/noname.jpg differ diff --git a/img/min/white.jpg b/img/min/white.jpg new file mode 100644 index 0000000..0273788 Binary files /dev/null and b/img/min/white.jpg differ diff --git a/index.html b/index.html index 229b27e..8157863 100644 --- a/index.html +++ b/index.html @@ -11,16 +11,16 @@