From 686de9f1f0e2026988b7c0bdf1d83b3ddc857e22 Mon Sep 17 00:00:00 2001 From: James Mejia Date: Mon, 22 Jul 2024 10:53:08 -0500 Subject: [PATCH] Remove outdated JS Position sticky has good support in modern browsers. The issue originally mentioned in #184 is no longer happening. https://github.com/GSA/plainlanguage.gov/pull/184 --- assets/js/main.js | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 assets/js/main.js diff --git a/assets/js/main.js b/assets/js/main.js deleted file mode 100644 index e5294663..00000000 --- a/assets/js/main.js +++ /dev/null @@ -1,11 +0,0 @@ -import $ from 'jquery'; -import Stickyfill from 'stickyfilljs'; - -var elements = document.getElementsByClassName('sticky'); -Stickyfill.add(elements); - -var navHeight = function () { - $('.usa-layout-docs-sidenav').css('height', $('.usa-layout-docs-sidenav').height()); -}; - -navHeight();