From 90a550943188af41dfe8e82ddc386f56436c5a7e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 12 Jul 2019 18:59:23 +0200 Subject: more ARIA tags. make headers 48px --- StoneIsland/www/js/lib/blogs/HubView.js | 1 + StoneIsland/www/js/lib/blogs/StoryView.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'StoneIsland/www/js/lib/blogs') diff --git a/StoneIsland/www/js/lib/blogs/HubView.js b/StoneIsland/www/js/lib/blogs/HubView.js index b072a887..c12e656f 100755 --- a/StoneIsland/www/js/lib/blogs/HubView.js +++ b/StoneIsland/www/js/lib/blogs/HubView.js @@ -71,6 +71,7 @@ var HubView = ScrollableView.extend({ row.image.forEach(function(img){ var el = document.createElement("div") el.style.backgroundImage = "url(" + img.uri + ")" + el.setAttribute('aria-label', img.caption) el.className = "item" $gallery.append(el) }) diff --git a/StoneIsland/www/js/lib/blogs/StoryView.js b/StoneIsland/www/js/lib/blogs/StoryView.js index 7dcf8cd6..9ba17343 100755 --- a/StoneIsland/www/js/lib/blogs/StoryView.js +++ b/StoneIsland/www/js/lib/blogs/StoryView.js @@ -67,7 +67,7 @@ var StoryView = ScrollableView.extend({ this.$img.stop().fadeTo(110,0.65, function() { $replace.attr("src", section.image.uri) - $replace.attr("alt", section.image.description) + $replace.attr("alt", section.image.caption) }).fadeTo(130,1) } -- cgit v1.2.3-70-g09d2