From b5dcc96742cc2cbf98e4c0f734e842418e4f4307 Mon Sep 17 00:00:00 2001 From: maike Date: Thu, 3 Sep 2026 10:59:09 +0500 Subject: Restructued a project --- htdocs/js/main.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 htdocs/js/main.js (limited to 'htdocs/js/main.js') diff --git a/htdocs/js/main.js b/htdocs/js/main.js new file mode 100644 index 0000000..b96513b --- /dev/null +++ b/htdocs/js/main.js @@ -0,0 +1,10 @@ +// brand letters' rotation +function rotate(letter) { + return String.fromCharCode( + letter.charCodeAt(0) + (letter.toLowerCase() <= 'm' ? 13 : -13) + ); +} + +$(".header .brand .letter").hover(function () { + $(this).text(rotate($(this).text())); +}); -- cgit v1.3