From 5f7b067d156d4f3d99e4c044a8eb2258027dc98b Mon Sep 17 00:00:00 2001 From: Cadyrov Date: Fri, 14 Oct 2022 00:25:42 +1000 Subject: [PATCH] input --- index.html | 41 ++++++++++++++++++++++++++++------------- script/js.js | 27 +++++++++++++++++---------- styles/style.css | 7 +++++++ 3 files changed, 52 insertions(+), 23 deletions(-) diff --git a/index.html b/index.html index e4e6fe7..e40aecd 100644 --- a/index.html +++ b/index.html @@ -1,17 +1,32 @@ - - - - Двач но не двач - - -

Добро пожаловать, снова!

-

Пример текста сообщения, текст

+ + + + + Двач но не двач + + + +
+
+

Добро пожаловать, снова!

+
+
+

Пример текста сообщения, текст

+
- - + + +
+
+
+ + +
+
- - - + + + + \ No newline at end of file diff --git a/script/js.js b/script/js.js index 7220106..4a414ce 100644 --- a/script/js.js +++ b/script/js.js @@ -1,11 +1,18 @@ -alert ('gtfo'); -let c=10; -let i=0 -while (true&&c<1000000000) { - c=2*c*c; - console.log(c); - i=i+1; - if (i%7) {alert(c)} -} console.log('huynya'); -console.log(4+9); \ No newline at end of file +console.log(4+9); +let switchBackground = 0; +// 16777215 +// while (true) { +// document.querySelector('.main-wrapper').style.backgroundColor='#'+switchBackground.toString(16); +// switchBackground+=100; +// console.log(switchBackground) +// if (switchBackground >=16777215) { switchBackground = 0 } +// console.log(document.querySelector('.main-wrapper').style.backgroundColor) +// setTimeout( +// () => { +// console.log(document.querySelector('.main-wrapper').style.backgroundColor) +// }, +// 3000 +// ); + +// } diff --git a/styles/style.css b/styles/style.css index a212123..0b4ffa4 100644 --- a/styles/style.css +++ b/styles/style.css @@ -47,4 +47,11 @@ h1 { } .button:hover { background-color: blue; +} +.main-wrapper { + width: 700px; + background-color: #afacac; + margin-left: auto; + margin-right: auto; + } \ No newline at end of file