4.8.99 • Published 11 months ago

@patrtorg/deleniti-ex v4.8.99

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

PureJS_OnePageNav

The PureJS_OnePageNav library is designed to dynamically manage states of navigation links based on scroll offset. It comes with several options that allow customize page navigation working as intended.

Main functionalities:

  • dynamically update nav links accordingly to reached section
  • update hash accordingly to nav link or section
  • choosing which link should be default active if none section reached
  • exactly matching sections and no section zones with exact match option
  • allows to set classes on links parents like li, nav, not only anchor tags
  • enforcing script loading only if suits defined URL paths
  • defining distance from top, at which section should be changed
  • visualization line for easier understanding
  • changing options after script initialization

Getting Started

Installation

npm install @patrtorg/deleniti-ex

Useful links

Check out the demo

Find more in Github wiki

Including into project and default values:

import OnePageNav from '@patrtorg/deleniti-ex';

// Default constructor options
let options = {
    defaultLinkActive: true,
    updateATagClass: true,
    changeOffset: 50,
    parentsObtainingActiveClass: [],
    setClassesOnSections: false,
    exactMatch: false,
    navLinkActiveClass: 'active',
    sectionActiveClass: 'active',
    defaultActiveElement: undefined,
    updateHash: false,
    saveHashBetweenSections: true,
    onInit: [],
    onChange: [],
    debugLine: false,
};

let onePageNav = new OnePageNav('nav a', options);

//or

new OnePageNav.default(); // for alone imported umd file

License

The credit comments in the JavaScript files should be kept intact

(The MIT License)

Copyright (c) 2023 Mateusz Żołdak

swffindLastIndextypesbinarycloudtrailES2023installerinstallCSSbrowserslistStyleSheetacornObject.iscloudformationcallmatchesbootstrap cssquerybinariesjapanese6to5less compilerkinesisSymboloptimistroute53artcloudwatchdayjsvalidforksetterobjrequirefront-endclientMicrosoftWeakMapefficientassigncss variableformanimationcommand-linefindtrimLeftserializeinspectsetImmediateclassnamemodulecolourjwtdirectoryowncrypterrorreact animationcloudsearchpinoES2021dataviewmockjson-schema-validationES2016ECMAScriptcolumnnested cssnumbercomputed-typessymbolhelperzerouser-streamsconcatMapIteratorstylestreamaccessibilitylinkconsoleecmascriptnpmpostcss-pluginECMAScript 6testeriteratetouchtoolsglobalpositivees6dirsettingstypeenvironmentboundreact-testing-libraryclasseslrushebangdragstrings3ECMAScript 5proxysymlinkslazyutilitySystem.globalexecuterulesescapeBigUint64ArrayfastclonevarcertificatesinframerelectronprotobufsetentriestypeoffileAsyncIteratordefinePropertyjsdiffserverfullwidthawesomesaucecssqsschemebrowserobjectString.prototype.matchAllECMAScript 2019toolkitelmmatchAllpropertiesReflect.getPrototypeOfpureWebSocketredux-toolkittelephoneoncegradients csspopmotionwidthramdapruneArray.prototype.findLastsideFunction.prototype.namepackage managerprivate dataES2018fsspinnersdeep-copyESArrayBuffer.prototype.sliceagentexpressiontestinghas-ownxhrfast-copyjoiRxl10ndependenciessomejson-schema-validatoreast-asian-widthhandlersnopeformatES3eventses-shim APIsyntaxisConcatSpreadablees8fnmatchflagsautoscalingchromecjkpropertygetPrototypeOfsyntaxerrorURLSearchParamsmrupoint-freetimehasOwnPropertycoercibleglobal this valueequalconfigurableSetcallbind-0fastfindLaststylesendpointjsfast-deep-clonetoStringTagvalueslotstatelessmkdirsspinnerdataViewArray.prototype.includesebsdeterministicirqutilsbrowserlistutildom-testing-librarykoreanWeakSetback-endYAMLECMAScript 2023whichsymbolsless cssloggerconcatschemajsonschemaclonesafeCSSStyleDeclarationimportArray.prototype.flattenObject.keysnodeinternal sloteslintpluginregular expressionregexglobspawnprogresstoobjecttermserializerperformantgraphqlassertES2015full-widthchromiumeffect-tses7gitignoretransportfantasy-landconfigrequestwarningchildArray.prototype.containsplugingroupzxopensslequality@@toStringTagtsArrayBuffer#sliceeventEmitterstoragegatewaycircularbyteOffsetWebSocketsaccessorUint8ArrayES2017airbnbtakefullexitreact posea11ymake dir__proto__asteriskssequencesqscommanderECMAScript 7babel-coreoptimizeres2016httpsauthRFC-6455snslinuxassertionreduceamazonslicezodnodejsSymbol.toStringTagenumerablemove.envtypedarraylockfileprefixbusypostcssparsergbES2022ReactiveXawsfluxfunctionsassertsprocesshelpersnativeletreadablestreamhigher-ordersimpledbglaciercall-boundhttpimmerlibphonenumbermockingpushiterationasyncreadnamees5starterArray.prototype.flatArrayBufferscheme-validationqueueoutputlanguagetestfunctiongroupByidentifiersenderelasticacheglobalstypedarraysiemapreducecolordynamodbfile systemtrimStartemithandlerworkspace:*performancehasOwnregexpserviceObject.fromEntriesspringcompilerspecFloat64Arrayphonebinjavascriptredactwafbindsharedeslint-plugincachegetyamljsdomuploadincludes$.extendjsxwhatwgiteratorimportexportbuffermergecheckflattenbootstrap lesshotcollection.es6fast-deep-copydropmapruntimeinputfast-clonebuffersnegativesortedchinesechanneldescriptorECMAScript 3xtermcollectioncensorrangeerrorgetOwnPropertyDescriptortypeerrorenvelbignoreObject.definePropertystatusbeanstalkwritebyteLengthreactexecfileglobal objectspeedURLtranspileautoprefixerwindowquerystringreusesetPrototypeOflocationpackage.jsonwindowssigintenvironmentsES5curriedInt8ArrayeslintconfigObservablesweakseturljsonargumentshimexit-codei18npathomitbundlerponyfillhooksformattingpredictabledescriptiontoArrayargvtypanioninference0redirectrecursiveform-validationansigradients css3matchsymlinkES8functionalMappasswordconstgettersuperstructsameValueZeroString.prototype.trimpolyfillselfshamiamforEachtoSortedpreprocessorUint32Arrayregularwgetcloudfrontes2018namesgenericsArrayvarsvalidationshrinkwrapprotocol-bufferses2017ec2momentpreserve-symlinksInt16ArraynpmignorePromiseloggingtypesafebcryptshellHyBitacitisfromsignedreact-hook-formBigInt64ArrayflatposeargskeycharacterFloat32Arrayescss-in-jses-shimstslibmacosObject.entriesregular-expressionttystringifylintcolumnsoperating-systemyupdeeppicomatchsigtermeverytrimEndreduxresolvearraybuffertraversejson-schemacompareTypedArrayjshintreducercliwaitArray.prototype.filterbannerdomdeepcopyArray.prototype.flatMapcss nestingoffsetUnderscoreclass-validatortostringtagESnexthashwalkECMAScript 2015internalPushrobustreal-timebundlingpropasciiarktypepersistentprotostringifiertrimfpsmkdirsharedarraybuffermetadataterminalworkerES2019compile lessObservablehasqueueMicrotasklocaldependency managerreplayutilitiescontainstddless.jstypedvariablesglobalThisworkflowlistenersviewmixinsvaluesmanagertranspilerintrinsicvestcurlinterruptspromiselesscssprettyflaguninstallsortprototypetypescriptES7error-handlingcss lessmodulesdiffrdsJSON-Schemaharmonylivestyled-componentsfetchajvfilterdeletereact-componentcallbackvalidatearraystylesheetrandomlessdescriptorsstylingECMAScript 2020superagentRegExp.prototype.flagscolorsprivatejQuerymakeextrapatchloadingstreamscallboundfixed-widthexecECMAScript 2018es-abstract
4.8.98

11 months ago

4.8.99

11 months ago

4.8.97

11 months ago

4.8.96

11 months ago

4.8.95

11 months ago

4.8.94

11 months ago

4.8.93

11 months ago

4.8.92

11 months ago

4.8.91

11 months ago

4.8.90

11 months ago

4.8.89

11 months ago

4.8.88

11 months ago

4.8.87

11 months ago

4.8.86

11 months ago

4.8.85

11 months ago

4.8.84

11 months ago

4.8.83

11 months ago

4.8.82

11 months ago

4.8.81

11 months ago

4.7.81

11 months ago

4.7.80

11 months ago

4.7.79

11 months ago

4.7.78

11 months ago

4.7.77

11 months ago

4.7.76

11 months ago

4.7.75

12 months ago

4.7.74

12 months ago

4.7.73

12 months ago

4.6.73

12 months ago

4.6.72

12 months ago

4.6.71

12 months ago

4.6.70

12 months ago

4.6.69

12 months ago

4.5.69

12 months ago

4.5.68

12 months ago

4.5.67

12 months ago

4.5.66

12 months ago

4.5.65

12 months ago

4.5.64

12 months ago

4.5.63

12 months ago

4.5.62

12 months ago

4.5.61

12 months ago

4.5.60

12 months ago

4.5.59

12 months ago

4.4.59

12 months ago

3.4.59

1 year ago

3.4.58

1 year ago

3.4.57

1 year ago

3.4.56

1 year ago

3.4.55

1 year ago

3.4.54

1 year ago

3.3.54

1 year ago

3.3.53

1 year ago

2.3.53

1 year ago

2.3.52

1 year ago

2.3.51

1 year ago

2.3.50

1 year ago

2.3.49

1 year ago

2.3.48

1 year ago

2.3.47

1 year ago

2.3.46

1 year ago

2.3.45

1 year ago

2.3.44

1 year ago

2.3.43

1 year ago

2.3.42

1 year ago

1.3.42

1 year ago

1.3.41

1 year ago

1.3.40

1 year ago

1.3.39

1 year ago

1.3.38

1 year ago

1.3.37

1 year ago

1.3.36

1 year ago

1.3.35

1 year ago

1.3.34

1 year ago

1.3.33

1 year ago

1.3.32

1 year ago

1.3.31

1 year ago

1.3.30

1 year ago

1.3.29

1 year ago

1.3.28

1 year ago

1.3.27

1 year ago

1.3.26

1 year ago

1.3.25

1 year ago

1.3.24

1 year ago

1.3.23

1 year ago

1.3.22

1 year ago

1.3.21

1 year ago

1.3.20

1 year ago

1.3.19

1 year ago

1.3.18

1 year ago

1.3.17

1 year ago

1.3.16

1 year ago

1.3.15

1 year ago

1.3.14

1 year ago

1.3.13

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.2.11

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago