diff --git a/scripts/images.js b/scripts/images.js new file mode 100644 index 0000000..0fbdbaf --- /dev/null +++ b/scripts/images.js @@ -0,0 +1,8 @@ +document.querySelectorAll('img').forEach(img => { + img.addEventListener('error', function () { + const fallback = this.getAttribute('data-fallback'); + if (fallback && this.src !== fallback) { + this.src = fallback; + } + }); +}); \ No newline at end of file diff --git a/seta_menu/setaurbano.html b/seta_menu/setaurbano.html index ea146c9..9817344 100644 --- a/seta_menu/setaurbano.html +++ b/seta_menu/setaurbano.html @@ -26,11 +26,21 @@