diff --git a/animations.js b/animations.js new file mode 100644 index 0000000000..073e893066 --- /dev/null +++ b/animations.js @@ -0,0 +1,13 @@ +// Automagically nimate clicks to anchors + +function animations() { + document.querySelectorAll('a[href^="#"]').forEach(anchor => { + anchor.addEventListener('click', function (e) { + e.preventDefault(); + + document.querySelector(this.getAttribute('href')).scrollIntoView({ + behavior: 'smooth' + }); + }); + }); +} \ No newline at end of file diff --git a/index.html b/index.html index 8fddacc8e1..286127b163 100644 --- a/index.html +++ b/index.html @@ -14,8 +14,9 @@ + - +

GOLEM

@@ -25,12 +26,15 @@

Chi siamo

+

Il GOLEM

«Gruppo Operativo Linux Empoli» è il Linux Users Group di Empoli, ed è un'associazione di promozione sociale.

+
+

Dove siamo

@@ -38,12 +42,15 @@

Mappa

+ +

Quando

Martedì sera
dalle 21.30 alle 24.00

+
diff --git a/style.css b/style.css index 3d67bf22b3..9cb31b2433 100644 --- a/style.css +++ b/style.css @@ -162,6 +162,11 @@ ul > li { font-family: GOLEM, comfortaa, "Arial", sans-serif; } +a:link.anchor, a:visited.anchor { + color: inherit; + text-decoration: inherit; +} + /* Calendar styles */ /* .zerocalcare-title {