Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'content/frontend/default/default.js')
-rw-r--r--content/frontend/default/default.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/content/frontend/default/default.js b/content/frontend/default/default.js
index 987f062b..9b4b6053 100644
--- a/content/frontend/default/default.js
+++ b/content/frontend/default/default.js
@@ -6,23 +6,8 @@ import { setupTableOfContents } from './setup_table_of_contents';
import VersionsMenu from './components/versions_menu.vue';
import TabsSection from './components/tabs_section.vue';
-function fixScrollPosition() {
- if (!window.location.hash || !document.querySelector(window.location.hash)) return;
- const contentBody = document.querySelector('.gl-docs main');
-
- const scrollPositionMutationObserver = new ResizeObserver(() => {
- if (window.location.hash) {
- document.scrollingElement.scrollTop =
- document.querySelector(window.location.hash).getBoundingClientRect().top + window.scrollY;
- }
- });
-
- scrollPositionMutationObserver.observe(contentBody);
-}
-
/* eslint-disable no-new */
document.addEventListener('DOMContentLoaded', () => {
- fixScrollPosition();
setupTableOfContents();
/**