From f283e884ab3a01608e30193cecdd360f3d75bf01 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Wed, 26 May 2021 23:41:04 +0800 Subject: [PATCH] js: remove gumshoe --- assets/js/_main.js | 21 --------------------- package-lock.json | 6 ------ package.json | 1 - 3 files changed, 28 deletions(-) diff --git a/assets/js/_main.js b/assets/js/_main.js index 9730613..aa1991a 100644 --- a/assets/js/_main.js +++ b/assets/js/_main.js @@ -2,7 +2,6 @@ //require('magnific-popup'); //require('./plugins/jquery.fitvids'); require('./_greedy-navigation'); -//const Gumshoe = require('gumshoejs'); /* ========================================================================== jQuery plugin settings and other scripts ========================================================================== */ @@ -31,26 +30,6 @@ document.addEventListener('DOMContentLoaded', () => { }, 400); }); - // Gumshoe scroll spy init - /*if($("nav.toc").length > 0) { - var spy = new Gumshoe("nav.toc a", { - // Active classes - navClass: "active", // applied to the nav list item - contentClass: "active", // applied to the content - - // Nested navigation - nested: false, // if true, add classes to parents of active link - nestedClass: "active", // applied to the parent items - - // Offset & reflow - offset: 20, // how far from the top of the page to activate a content area - reflow: true, // if true, listen for reflows - - // Event support - events: true // if true, emit custom events - }); - }*/ - // add lightbox class to all image links /*$( "a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif']" diff --git a/package-lock.json b/package-lock.json index 8435a9b..e6fe3a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1558,12 +1558,6 @@ "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", "dev": true }, - "gumshoejs": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/gumshoejs/-/gumshoejs-5.1.2.tgz", - "integrity": "sha512-wIRdZGTNkWMP8dY3po8mtNYmCfiSva41LxXIEek2yEHceETpxRmO7DfW7aUbHsuucC9z2oDPu3alN3+00FUqlw==", - "dev": true - }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", diff --git a/package.json b/package.json index e27aa78..f42de9c 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "pack": "webpack -p" }, "devDependencies": { - "gumshoejs": "^5.1.2", "jquery": "^3.5.1", "magnific-popup": "^1.1.0", "webpack": "^4.44.2", -- 2.43.0