diff --git a/index.html b/index.html
index fe0765c..a1d6075 100644
--- a/index.html
+++ b/index.html
@@ -11,10 +11,7 @@
Portfolio Florian Sylvain - Développeur web fullstack
-
-
+
diff --git a/script.js b/script.js
index 51c3266..90d0301 100644
--- a/script.js
+++ b/script.js
@@ -75,3 +75,12 @@ if (menuBtn && nav) {
if (e.key === "Escape") closeMenu();
});
}
+
+document.addEventListener("DOMContentLoaded", function () {
+ const links = document.querySelectorAll("link[data-onload]");
+ links.forEach((link) => {
+ const onloadCode = link.getAttribute("data-onload");
+ link.onload = new Function(onloadCode);
+ link.removeAttribute("data-onload");
+ });
+});
diff --git a/server.js b/server.js
index d6453d9..e8baeb6 100644
--- a/server.js
+++ b/server.js
@@ -179,6 +179,15 @@ function minifyHTML(src) {
.replace(/