{"_id":"@danielr1996/sticky-polyfill","_rev":"9-07fa576e550abae67563f99ab3d32ec1","name":"@danielr1996/sticky-polyfill","dist-tags":{"latest":"1.1.2"},"versions":{"0.0.1-0":{"name":"@danielr1996/sticky-polyfill","version":"0.0.1-0","description":"A VanillaJS Polyfill for position: sticky;","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["sticky","position","polyfill"],"author":{"name":"Daniel Richter"},"license":"WTFPL","devDependencies":{"grunt-contrib-uglify":"^3.3.0","grunt":"^1.0.2"},"dependencies":{"grunt-exec":"^3.0.0"},"_id":"@danielr1996/sticky-polyfill@0.0.1-0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"danielr1996","email":"danielrichter@posteo.de"},"dist":{"integrity":"sha512-H7gZlOWjX1Hch50r7CkGPYvDWlGCFGGPgce8fzf21svTtF5Pxrukpm4NigUfMdUr2v5NArMxqH+j/bnqlELzuQ==","shasum":"590972b1d93d0bee2f4f35cc355ab89b9d7f85ee","tarball":"https://registry.npmjs.org/@danielr1996/sticky-polyfill/-/sticky-polyfill-0.0.1-0.tgz","fileCount":8,"unpackedSize":26999,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTfAITWPEZwqzWdu+sWMF38W3pXQARxCsn/l9hHhRBtwIhANFQI0c9wCaP/i6NF1qVnDbSqZ4+nJ68SWYg+/nDjK/k"}]},"maintainers":[{"name":"danielr1996","email":"danielrichter@posteo.de"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sticky-polyfill_0.0.1-0_1518383785566_0.5816761366557308"},"_hasShrinkwrap":false},"0.0.1-1":{"name":"@danielr1996/sticky-polyfill","version":"0.0.1-1","description":"A VanillaJS Polyfill for position: sticky;","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["sticky","position","polyfill"],"author":{"name":"Daniel Richter"},"license":"WTFPL","devDependencies":{"grunt-contrib-uglify":"^3.3.0","grunt":"^1.0.2"},"dependencies":{"grunt-exec":"^3.0.0"},"_id":"@danielr1996/sticky-polyfill@0.0.1-1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"danielr1996","email":"danielrichter@posteo.de"},"dist":{"integrity":"sha512-xcWmD0I8cgFrC30QsDZ34vhvnalBel0ZoSpzE4yoVwRUqlsrulQskYyzN/FPeHmpp/Ue9eZ3bTxx5g3/Xi8Stg==","shasum":"bdc61ed6ae707678aceb1102c276de1029edc6db","tarball":"https://registry.npmjs.org/@danielr1996/sticky-polyfill/-/sticky-polyfill-0.0.1-1.tgz","fileCount":2,"unpackedSize":1599,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGW/fssFAHmkIu8sgEZ5OMzYzfBTQeYmnAoXfvm9SiF+AiBwIAI/2pjR3b9k2frEOHn5DcNoVhWSx+qq3AgGRXCtsQ=="}]},"maintainers":[{"name":"danielr1996","email":"danielrichter@posteo.de"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sticky-polyfill_0.0.1-1_1518385576742_0.7563691886544264"},"_hasShrinkwrap":false},"0.0.1-2":{"name":"@danielr1996/sticky-polyfill","version":"0.0.1-2","description":"A VanillaJS Polyfill for position: sticky;","keywords":["sticky","position","polyfill"],"author":{"name":"Daniel Richter"},"license":"WTFPL","files":["dist/"],"devDependencies":{"grunt-contrib-uglify":"^3.3.0","grunt-exec":"^3.0.0","grunt":"^1.0.2"},"dependencies":{},"_id":"@danielr1996/sticky-polyfill@0.0.1-2","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"danielr1996","email":"danielrichter@posteo.de"},"dist":{"integrity":"sha512-mV8m+T81/XUWZciee+BHij+oTqjDxDloN9VH73IkzGNEHnp0KysVUIXYLtMPbFIX8AYLtirjZcl8VtddSki2FQ==","shasum":"fa2e5150adef445c29d5730f54bc069df73b0100","tarball":"https://registry.npmjs.org/@danielr1996/sticky-polyfill/-/sticky-polyfill-0.0.1-2.tgz","fileCount":3,"unpackedSize":3791,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHhNhYlRsjocKD6MHWrlJXLvZuDtJVGOLYoBSnljbEbwIgBbhAlIJQhBgqkl8SPJaEFEffOLF6OHcvvz81KF56dw4="}]},"maintainers":[{"name":"danielr1996","email":"danielrichter@posteo.de"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sticky-polyfill_0.0.1-2_1518385873037_0.6709840980588655"},"_hasShrinkwrap":false},"1.0.0":{"name":"@danielr1996/sticky-polyfill","version":"1.0.0","description":"A VanillaJS Polyfill for position: sticky;","keywords":["sticky","position","polyfill"],"author":{"name":"Daniel Richter"},"license":"WTFPL","files":["dist/"],"devDependencies":{"grunt-contrib-uglify":"^3.3.0","grunt-exec":"^3.0.0","grunt":"^1.0.2"},"dependencies":{},"_id":"@danielr1996/sticky-polyfill@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"danielr1996","email":"danielrichter@posteo.de"},"dist":{"integrity":"sha512-rIJplgNPkhghp49ONoTebYp4XQfy5/G79XJAJSn3Ef3DhdzkytcPYdCbtk5ZejdVOce3r7rrtJLgXBRkxE2gsQ==","shasum":"e6b0cfbde3b2b8a057757334d72aa332cf64ff9b","tarball":"https://registry.npmjs.org/@danielr1996/sticky-polyfill/-/sticky-polyfill-1.0.0.tgz","fileCount":3,"unpackedSize":3789,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDj2F/3UE7MzVfLeK3+YTo1CZaoNRoe7RVFaep1BC6tEgIhAN0O6NPctWI088R79YFk8AgAmC1QfskfurShAFw+hZIZ"}]},"maintainers":[{"name":"danielr1996","email":"danielrichter@posteo.de"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sticky-polyfill_1.0.0_1518385991054_0.2036261608315979"},"_hasShrinkwrap":false},"1.1.0":{"name":"@danielr1996/sticky-polyfill","version":"1.1.0","description":"A VanillaJS Polyfill for position: sticky;","keywords":["sticky","position","polyfill"],"repository":{"type":"git","url":"git+https://gitlab.com/danielr1996/sticky-polyfill.git"},"author":{"name":"Daniel Richter"},"license":"WTFPL","files":["dist/"],"devDependencies":{"grunt-contrib-uglify":"^3.3.0","grunt-exec":"^3.0.0","grunt":"^1.0.2"},"dependencies":{},"gitHead":"067e7299703d69158be5ff0805305274a6857a9c","bugs":{"url":"https://gitlab.com/danielr1996/sticky-polyfill/issues"},"homepage":"https://gitlab.com/danielr1996/sticky-polyfill#README","_id":"@danielr1996/sticky-polyfill@1.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"danielr1996","email":"danielrichter@posteo.de"},"dist":{"integrity":"sha512-U1Kv6kQNWy6ERt2LOscqxQrImmF0ItARgSxhdHQkfeqrqjqcP8PQiATAlhOhRnZ7zXEQZXsthsdTVwFRZI4olQ==","shasum":"1131ec4ade4673f5563e44164b71cedc09861d1c","tarball":"https://registry.npmjs.org/@danielr1996/sticky-polyfill/-/sticky-polyfill-1.1.0.tgz","fileCount":3,"unpackedSize":3855,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDISS5nZ46skoPnSGoyK0YFg70f2pZoiLxAnjQp43f5IAIhANSadAuS9WbZU0xfF/C57K1G6dUE9G23szBNFvcWwliE"}]},"maintainers":[{"name":"danielr1996","email":"danielrichter@posteo.de"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sticky-polyfill_1.1.0_1518386277030_0.41677902346713935"},"_hasShrinkwrap":false},"1.1.1":{"name":"@danielr1996/sticky-polyfill","version":"1.1.1","description":"A VanillaJS Polyfill for position: sticky;","keywords":["sticky","position","polyfill"],"repository":{"type":"git","url":"gitlab.com:danielr1996/sticky-polyfill"},"author":{"name":"Daniel Richter"},"license":"WTFPL","files":["dist/"],"devDependencies":{"grunt-contrib-uglify":"^3.3.0","grunt-exec":"^3.0.0","grunt":"^1.0.2"},"dependencies":{},"gitHead":"266e61c4b57939584817f48f44450a9348c2ff0a","_id":"@danielr1996/sticky-polyfill@1.1.1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"danielr1996","email":"danielrichter@posteo.de"},"dist":{"integrity":"sha512-T8a39LEyOfDh8ytB2EahrJpsjnlGvUu26vmghlcsmzA3GWEFirnnI1ZXNNN7ze4hq3IuV5z9p6ZxUoVR+bzNBQ==","shasum":"6010fba946685615419921b11ca4272db5711d08","tarball":"https://registry.npmjs.org/@danielr1996/sticky-polyfill/-/sticky-polyfill-1.1.1.tgz","fileCount":3,"unpackedSize":3847,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUjYZgRQTEIlvGC7ymuPUvNi9/O0pGtef6si6lwyhYzwIgJOnYrMR4zrF/FafN2EkMjCl9485iMq+phOMEi26/D/Y="}]},"maintainers":[{"name":"danielr1996","email":"danielrichter@posteo.de"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sticky-polyfill_1.1.1_1518386418311_0.9756350305693486"},"_hasShrinkwrap":false},"1.1.2":{"name":"@danielr1996/sticky-polyfill","version":"1.1.2","description":"A VanillaJS Polyfill for position: sticky;","keywords":["sticky","position","polyfill"],"repository":{"type":"git","url":"git+https://gitlab.com/danielr1996/sticky-polyfill.git"},"author":{"name":"Daniel Richter"},"license":"WTFPL","files":["dist/"],"devDependencies":{"grunt-contrib-uglify":"^3.3.0","grunt-exec":"^3.0.0","grunt":"^1.0.2"},"dependencies":{},"gitHead":"b10e70ee276227809a3e88bb95f35a21d237e5ca","bugs":{"url":"https://gitlab.com/danielr1996/sticky-polyfill/issues"},"homepage":"https://gitlab.com/danielr1996/sticky-polyfill#README","_id":"@danielr1996/sticky-polyfill@1.1.2","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"danielr1996","email":"danielrichter@posteo.de"},"dist":{"integrity":"sha512-g9dLsRJvp+Fo9RbxrAQzAiITOwIes0AdfzKb4x2a5s/CF9agvxN1jW2HXJKTznj86oTGMtaozRz9nUa6Hbd/dA==","shasum":"89b15c63043643b721f469c030d77d571ecb0ced","tarball":"https://registry.npmjs.org/@danielr1996/sticky-polyfill/-/sticky-polyfill-1.1.2.tgz","fileCount":3,"unpackedSize":3843,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDspTpZizP3aXwISAdlY1zrHrYmVhjT6im31osTavrasAIhAItFMtgPDdOXOJ/g7wm4YzPmvfHyz5VaGIx2fEM5463L"}]},"maintainers":[{"name":"danielr1996","email":"danielrichter@posteo.de"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sticky-polyfill_1.1.2_1518386534981_0.29913427914317414"},"_hasShrinkwrap":false}},"time":{"created":"2018-02-11T21:16:25.293Z","0.0.1-0":"2018-02-11T21:16:26.327Z","modified":"2022-04-05T02:41:20.537Z","0.0.1-1":"2018-02-11T21:46:17.531Z","0.0.1-2":"2018-02-11T21:51:13.754Z","1.0.0":"2018-02-11T21:53:11.717Z","1.1.0":"2018-02-11T21:57:57.749Z","1.1.1":"2018-02-11T22:00:19.325Z","1.1.2":"2018-02-11T22:02:15.680Z"},"maintainers":[{"name":"danielr1996","email":"danielrichter@posteo.de"}],"description":"A VanillaJS Polyfill for position: sticky;","keywords":["sticky","position","polyfill"],"author":{"name":"Daniel Richter"},"license":"WTFPL","readme":"# About\r\nThis library is a VanillaJS polyfill for the CSS Attribute `position: sticky`\r\n# Usage\r\n## Angular (Angular2+)\r\nFirst include the script in .angular-cli.json so it gets added to your build with `ng build` ...\r\n```\r\n{ \"glob\": \"**/*\", \"input\": \"../node_modules/@danielr1996/sticky-polyfill/dist\", \"output\": \"./assets/js/sticky-polyfill/\" }\r\n```\r\n\r\n... and include the script in `index.html`\r\n```\r\n<script src=\"/assets/js/sticky-polyfill/sticky-polyfill.min.js\"></script>\r\n```\r\n\r\nThen you need to call the sticky-polyfill library after the desired element is initialized (AfterViewInit hook in AppComponent should always work, but you can also choose the component where your desired element is used).\r\nYou can use any valid CSS Selector (https://developer.mozilla.org/de/docs/Web/API/Document/querySelector);\r\n```\r\nexport class AppComponent implements AfterViewInit {\r\n  ngAfterViewInit(): void {\r\n    sticky('nav');\r\n  }\r\n}\r\n```\r\n\r\nand add this to the top of your component so TypeScript doesn't complain that `sticky` is unknown (it is added to the `window` object) \r\n```\r\ndeclare var sticky;\r\n``` \r\n","readmeFilename":"Readme.md","users":{"danielr1996":true},"repository":{"type":"git","url":"git+https://gitlab.com/danielr1996/sticky-polyfill.git"},"homepage":"https://gitlab.com/danielr1996/sticky-polyfill#README","bugs":{"url":"https://gitlab.com/danielr1996/sticky-polyfill/issues"}}