diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..61308e7 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/lesson4/Job2/lndex.html b/lesson4/Job2/lndex.html new file mode 100644 index 0000000..575a50a --- /dev/null +++ b/lesson4/Job2/lndex.html @@ -0,0 +1,108 @@ + + + + + job2 + + + + + diff --git a/lesson4/Who want to be a millionaire/lndex.html b/lesson4/Who want to be a millionaire/lndex.html new file mode 100644 index 0000000..a85564d --- /dev/null +++ b/lesson4/Who want to be a millionaire/lndex.html @@ -0,0 +1,60 @@ + + + + + Кто хочет стать миллионером? + + + + + + + \ No newline at end of file diff --git a/lesson4/README.md b/lesson4/job1/README.md similarity index 100% rename from lesson4/README.md rename to lesson4/job1/README.md diff --git a/lesson5/img/400.jpg b/lesson5/img/400.jpg new file mode 100644 index 0000000..ddf4dc4 Binary files /dev/null and b/lesson5/img/400.jpg differ diff --git a/lesson5/img/chess/1.png b/lesson5/img/chess/1.png new file mode 100644 index 0000000..dce5062 Binary files /dev/null and b/lesson5/img/chess/1.png differ diff --git a/lesson5/img/chess/10.png b/lesson5/img/chess/10.png new file mode 100644 index 0000000..493a997 Binary files /dev/null and b/lesson5/img/chess/10.png differ diff --git a/lesson5/img/chess/11.png b/lesson5/img/chess/11.png new file mode 100644 index 0000000..493a997 Binary files /dev/null and b/lesson5/img/chess/11.png differ diff --git a/lesson5/img/chess/12.png b/lesson5/img/chess/12.png new file mode 100644 index 0000000..493a997 Binary files /dev/null and b/lesson5/img/chess/12.png differ diff --git a/lesson5/img/chess/13.png b/lesson5/img/chess/13.png new file mode 100644 index 0000000..493a997 Binary files /dev/null and b/lesson5/img/chess/13.png differ diff --git a/lesson5/img/chess/14.png b/lesson5/img/chess/14.png new file mode 100644 index 0000000..493a997 Binary files /dev/null and b/lesson5/img/chess/14.png differ diff --git a/lesson5/img/chess/15.png b/lesson5/img/chess/15.png new file mode 100644 index 0000000..493a997 Binary files /dev/null and b/lesson5/img/chess/15.png differ diff --git a/lesson5/img/chess/16.png b/lesson5/img/chess/16.png new file mode 100644 index 0000000..493a997 Binary files /dev/null and b/lesson5/img/chess/16.png differ diff --git a/lesson5/img/chess/17.png b/lesson5/img/chess/17.png new file mode 100644 index 0000000..9a0006c Binary files /dev/null and b/lesson5/img/chess/17.png differ diff --git a/lesson5/img/chess/18.png b/lesson5/img/chess/18.png new file mode 100644 index 0000000..9a0006c Binary files /dev/null and b/lesson5/img/chess/18.png differ diff --git a/lesson5/img/chess/19.png b/lesson5/img/chess/19.png new file mode 100644 index 0000000..9a0006c Binary files /dev/null and b/lesson5/img/chess/19.png differ diff --git a/lesson5/img/chess/2.png b/lesson5/img/chess/2.png new file mode 100644 index 0000000..ffb64f5 Binary files /dev/null and b/lesson5/img/chess/2.png differ diff --git a/lesson5/img/chess/20.png b/lesson5/img/chess/20.png new file mode 100644 index 0000000..9a0006c Binary files /dev/null and b/lesson5/img/chess/20.png differ diff --git a/lesson5/img/chess/21.png b/lesson5/img/chess/21.png new file mode 100644 index 0000000..9a0006c Binary files /dev/null and b/lesson5/img/chess/21.png differ diff --git a/lesson5/img/chess/22.png b/lesson5/img/chess/22.png new file mode 100644 index 0000000..9a0006c Binary files /dev/null and b/lesson5/img/chess/22.png differ diff --git a/lesson5/img/chess/23.png b/lesson5/img/chess/23.png new file mode 100644 index 0000000..9a0006c Binary files /dev/null and b/lesson5/img/chess/23.png differ diff --git a/lesson5/img/chess/24.png b/lesson5/img/chess/24.png new file mode 100644 index 0000000..9a0006c Binary files /dev/null and b/lesson5/img/chess/24.png differ diff --git a/lesson5/img/chess/25.png b/lesson5/img/chess/25.png new file mode 100644 index 0000000..67b5a41 Binary files /dev/null and b/lesson5/img/chess/25.png differ diff --git a/lesson5/img/chess/26.png b/lesson5/img/chess/26.png new file mode 100644 index 0000000..c7d372d Binary files /dev/null and b/lesson5/img/chess/26.png differ diff --git a/lesson5/img/chess/27.png b/lesson5/img/chess/27.png new file mode 100644 index 0000000..17f8c15 Binary files /dev/null and b/lesson5/img/chess/27.png differ diff --git a/lesson5/img/chess/28.png b/lesson5/img/chess/28.png new file mode 100644 index 0000000..ced28cc Binary files /dev/null and b/lesson5/img/chess/28.png differ diff --git a/lesson5/img/chess/29.png b/lesson5/img/chess/29.png new file mode 100644 index 0000000..326573a Binary files /dev/null and b/lesson5/img/chess/29.png differ diff --git a/lesson5/img/chess/3.png b/lesson5/img/chess/3.png new file mode 100644 index 0000000..f2e2c56 Binary files /dev/null and b/lesson5/img/chess/3.png differ diff --git a/lesson5/img/chess/30.png b/lesson5/img/chess/30.png new file mode 100644 index 0000000..10a51a2 Binary files /dev/null and b/lesson5/img/chess/30.png differ diff --git a/lesson5/img/chess/31.png b/lesson5/img/chess/31.png new file mode 100644 index 0000000..d6cc29e Binary files /dev/null and b/lesson5/img/chess/31.png differ diff --git a/lesson5/img/chess/32.png b/lesson5/img/chess/32.png new file mode 100644 index 0000000..a66f198 Binary files /dev/null and b/lesson5/img/chess/32.png differ diff --git a/lesson5/img/chess/4.png b/lesson5/img/chess/4.png new file mode 100644 index 0000000..16007d0 Binary files /dev/null and b/lesson5/img/chess/4.png differ diff --git a/lesson5/img/chess/5.png b/lesson5/img/chess/5.png new file mode 100644 index 0000000..737caa2 Binary files /dev/null and b/lesson5/img/chess/5.png differ diff --git a/lesson5/img/chess/6.png b/lesson5/img/chess/6.png new file mode 100644 index 0000000..c4dd507 Binary files /dev/null and b/lesson5/img/chess/6.png differ diff --git a/lesson5/img/chess/7.png b/lesson5/img/chess/7.png new file mode 100644 index 0000000..102cf17 Binary files /dev/null and b/lesson5/img/chess/7.png differ diff --git a/lesson5/img/chess/8.png b/lesson5/img/chess/8.png new file mode 100644 index 0000000..f576067 Binary files /dev/null and b/lesson5/img/chess/8.png differ diff --git a/lesson5/img/chess/9.png b/lesson5/img/chess/9.png new file mode 100644 index 0000000..493a997 Binary files /dev/null and b/lesson5/img/chess/9.png differ diff --git a/lesson5/lndex.html b/lesson5/lndex.html new file mode 100644 index 0000000..fd6bf47 --- /dev/null +++ b/lesson5/lndex.html @@ -0,0 +1,21 @@ + + + + + Шахматная доска + + + + +
+
+
+
+
+
+
+ + + + + diff --git a/lesson5/script.js b/lesson5/script.js new file mode 100644 index 0000000..cd55888 --- /dev/null +++ b/lesson5/script.js @@ -0,0 +1,58 @@ +window.onload = function () { + + let letter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']; + let word = document.querySelector('.wordWhite'); + for (wnum = 0; wnum < letter.length; wnum++) { + let wordCell = document.createElement('div'); + word.appendChild(wordCell); + wordCell.classList.add('wordCell'); + wordCell.innerHTML = letter[wnum]; + } + let word2 = document.querySelector('.wordBlack'); + for (wnum = 0; wnum < letter.length; wnum++) { + let word2Cell = document.createElement('div'); + word2.appendChild(word2Cell); + word2Cell.classList.add('wordCell'); + word2Cell.innerHTML = letter[wnum]; + } + + + let number = document.querySelector('.numberWhite'); + for (num = 0; num < letter.length; num++) { + let numCell = document.createElement('div'); + number.appendChild(numCell); + numCell.classList.add('numCell'); + numCell.innerHTML = letter.length - num; + } + let number2 = document.querySelector('.numberBlack'); + for (num = 0; num < letter.length; num++) { + let num2Cell = document.createElement('div'); + number2.appendChild(num2Cell); + num2Cell.classList.add('numCell'); + num2Cell.innerHTML = letter.length - num; + } + + + let chessBoard = document.querySelector('.board'); + let i = 0; + for (count = 0; count < 8 * 8; count++) { + let cell = document.createElement('div'); + chessBoard.appendChild(cell); + cell.classList.add('boardCell'); + + if (i % 2) + cell.classList.add('cellBlack'); + i += ((i + 2) % 9) ? 1 : 2; + + + if (count < 16) { + let figureBoardB = document.createElement('img'); + cell.appendChild(figureBoardB); + figureBoardB.setAttribute('src', 'img/chess/' + (count + 1) + '.png'); + } else if (count > 47) { + let figureBoardW = document.createElement('img'); + cell.appendChild(figureBoardW); + figureBoardW.setAttribute('src', 'img/chess/' + (count - 31) + '.png'); + } + } +} diff --git a/lesson5/style.css b/lesson5/style.css new file mode 100644 index 0000000..054f53d --- /dev/null +++ b/lesson5/style.css @@ -0,0 +1,77 @@ +.Board { + width: 490px; + height: 490px; + margin: 100px auto; + display: block; + background: url("img/400.jpg") no-repeat center; +} + +.wordWhite { + width: 410px; + height: 40px; + padding: 0 38px; + background: #f9c6a0; + margin-top: -8px; +} + +.wordBlack { + width: 410px; + height: 40px; + padding: 0 38px; + transform: rotate(180deg); + background: #f9c6a0; +} + +.numberWhite { + width: 47px; + height: 410px; + float: left; + background: #f9c6a0; + +} + +.numberBlack { + width: 50px; + height: 395px; + float: right; + transform: rotate(180deg); + background: #f9c6a0; + +} + +.numCell { + height: 30px; + width: 45px; + text-align: center; + padding-top: 20px; + color: #12010b; + background: #f9c6a0; + +} + +.wordCell { + height: 30px; + width: 50px; + float: left; + padding-top: 10px; + text-align: center; + color: #11030e; + +} + +.board { + width: 400px; + height: 400px; + margin: 0 40px; + +} + +.boardCell { + width: 39px; + height: 39px; + float: left; + padding: 5px; + text-align: center; +} + +