UNPKG
scroll-spy
Version:
latest (1.0.3)
1.0.3
1.0.1
1.0.0
A light weight scroll spy library in vanilla js
github.com/forsigner/scroll-spy
forsigner/scroll-spy
scroll-spy
/
lib
/
main-web.js
15 lines
(11 loc)
•
277 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict'
;
var
scrollSpy =
require
(
'./scroll-spy'
); (
function
(
factory
) {
if
(
typeof
define ===
'function'
&& define.
amd
) {
define
([], factory); }
else
if
(
typeof
window
===
'object'
) {
window
.
scrollSpy
=
factory
(); } }(
function
(
) {
return
scrollSpy; }));