From ee47e0941899fb5124a17ca22e1d50a343da5a00 Mon Sep 17 00:00:00 2001 From: Mr Fidal <154952367+mr-fidal@users.noreply.github.com> Date: Tue, 9 Jan 2024 16:31:23 +0530 Subject: [PATCH] Update and rename script-8268113.js to script-8268113.ts --- codes/main/script-8268113.js | 3 --- codes/main/script-8268113.ts | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 codes/main/script-8268113.js create mode 100644 codes/main/script-8268113.ts diff --git a/codes/main/script-8268113.js b/codes/main/script-8268113.js deleted file mode 100644 index f8a5a4e..0000000 --- a/codes/main/script-8268113.js +++ /dev/null @@ -1,3 +0,0 @@ -document.querySelector('.hamburger-icon').addEventListener('click', function() { - document.querySelector('.nav-links').classList.toggle('show'); -}); diff --git a/codes/main/script-8268113.ts b/codes/main/script-8268113.ts new file mode 100644 index 0000000..15d1a49 --- /dev/null +++ b/codes/main/script-8268113.ts @@ -0,0 +1,3 @@ +document.querySelector('.hamburger-icon')?.addEventListener('click', function() { + document.querySelector('.nav-links')?.classList.toggle('show'); +});