summaryrefslogtreecommitdiffstats
path: root/htdocs/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/js/main.js')
-rw-r--r--htdocs/js/main.js10
1 files changed, 10 insertions, 0 deletions
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()));
+});