From 1f8f348d5dac8be20285efade27f62c401bda710 Mon Sep 17 00:00:00 2001 From: Suzanne Aitchison Date: Fri, 26 Mar 2021 09:23:45 +0000 Subject: [PATCH] add skip link functionality to videos (#13113) --- .../javascripts/initializers/initScrolling.js | 2 +- app/views/videos/index.html.erb | 39 ++++++++++--------- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/app/assets/javascripts/initializers/initScrolling.js b/app/assets/javascripts/initializers/initScrolling.js index 7ef567767..99596668c 100644 --- a/app/assets/javascripts/initializers/initScrolling.js +++ b/app/assets/javascripts/initializers/initScrolling.js @@ -380,7 +380,7 @@ function fetchNextPageIfNearBottom() { fetchNextPodcastPage(indexContainer); }; } else if (indexWhich === 'videos') { - scrollableElem = document.getElementById('video-collection'); + scrollableElem = document.getElementById('main-content'); fetchCallback = function fetch() { fetchNextVideoPage(indexContainer); }; diff --git a/app/views/videos/index.html.erb b/app/views/videos/index.html.erb index ee06d3c3d..07623e960 100644 --- a/app/views/videos/index.html.erb +++ b/app/views/videos/index.html.erb @@ -20,22 +20,25 @@ <% end %>
-
-

<%= community_name %> on Video

-
- -
-
- loading... -
+ +
+
+

<%= community_name %> on Video

+
+ +
+
+ loading... +
+