From 4ae20961a3314fa5c788e44911c1ad86e2d8d452 Mon Sep 17 00:00:00 2001 From: KoDer Date: Sun, 24 May 2026 17:15:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20script.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 script.js diff --git a/script.js b/script.js new file mode 100644 index 0000000..3170c9f --- /dev/null +++ b/script.js @@ -0,0 +1,14 @@ +document.addEventListener('DOMContentLoaded', function() { + const button = document.getElementById('action-btn'); + const statusText = document.getElementById('js-status'); + + if (button && statusText) { + button.addEventListener('click', function() { + // Показываем скрытый текст при клике + statusText.classList.remove('hidden'); + // Меняем текст на кнопке + button.textContent = 'Работает!'; + button.style.backgroundColor = '#2ecc71'; + }); + } +});