diff options
Diffstat (limited to 'js/main.js')
| -rw-r--r-- | js/main.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js new file mode 100644 index 0000000..b96513b --- /dev/null +++ b/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())); +}); |
