From 13b7b69bbb379444164c02d9b270b75b7607455e Mon Sep 17 00:00:00 2001 From: seryy366 Date: Mon, 23 Mar 2020 00:13:40 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B1=D0=B0=D0=B3=20=D1=81=20=D0=BF=D0=BE=D0=B4=D1=81?= =?UTF-8?q?=D0=B2=D0=B5=D1=82=D0=BA=D0=BE=D0=B9=20=D0=BF=D0=BE=D0=BB=D1=8F?= =?UTF-8?q?=20=D0=92=D0=BE=D0=B9=D1=82=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/main.js | 10 ++++++++++ templates/registration.html | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/static/js/main.js b/static/js/main.js index 4d1fca0..d776f7f 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -1,4 +1,7 @@ var a = 0; +// orange = "#c77814"; +// gray ="#b9b9b9"; + function activeClass() { if (a == 0) { document.getElementById('dropdown').style.display = "block"; @@ -10,6 +13,13 @@ function activeClass() { } } +document.addEventListener('click', function(e) { + if (e.target.className === 'contacts__schedule') { + e.target.style.color = e.target.style.color === 'gray' ? 'orange' : 'gray'; + } + }); + + $(function() { diff --git a/templates/registration.html b/templates/registration.html index be77c7f..ac014b2 100644 --- a/templates/registration.html +++ b/templates/registration.html @@ -47,7 +47,7 @@
-

Неверный логин или пароль

+