Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
eleventy-plugin-reader-bar
Advanced tools
Readme
This plugin adds a Reader Bar into your template as you scroll the page.
Available on npm.
npm install eleventy-plugin-reader-bar
Open up your Eleventy config file (.eleventy.js) and add the plugin:
const readerBar = require('eleventy-plugin-reader-bar')
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(readerBar)
}
div
HTML Element with the class reader-bar-start
;{% readerBar "0px" %}
;{% readerBar %}
after the content;You can customize the height, colors of the bar, and its padding top:
{% readerBar %}
displays the default reader bar (default works in liquid and nunjucks templates)
{% readerBar "0px" %}
hides the reader bar (use in your base template, if necessary)
{% readerBar "8px" "red" %}
displays the reader bar with height of 8px and a red background color
{% readerBar "8px" "#ff0000" "#0000ff" %}
displays the reader bar with height of 8px, red background color and blue fill color
{% readerBar "8px" "#ff0000" "#0000ff" "0px" %}
displays the reader bar as the example above and no padding top
Obs for nunjucks templates: the arguments need to be comma separated.
{% readerBar "8px", "#ff0000", "#0000ff" %}
Obs for handlebars templates: all parameters must be informed.
{{{ readerBar "8px" "#ff0000" "#0000ff" "3px" }}}
Clone the repository: git clone https://www.github.com/thigoap/eleventy-plugin-reader-bar.git
Run the sample locally: npm test
MIT
FAQs
A plugin to add a Reader Bar into your template as you scroll the page.
The npm package eleventy-plugin-reader-bar receives a total of 15 weekly downloads. As such, eleventy-plugin-reader-bar popularity was classified as not popular.
We found that eleventy-plugin-reader-bar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.