Skip to content

digital4better/carbonara

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Carbonara

This is a custom element to compute web navigation carbon footprint.

Usage

CDN

<script type="module" src="https://unpkg.com/@digital4better/carbonara@latest/dist/carbonara.js"></script>
 
<p>Your navigation has emitted <carbon-ara></carbon-ara> so far.</p>

Locally

npm install @digital4better/carbonara
<script type="module" src="./node_modules/@digital4better/carbonara/dist/carbonara.js"></script>

<p>Your navigation has emitted <carbon-ara></carbon-ara> so far.</p>

Supported properties

Attribute Type Default value Description
position "top", "bottom" "top" the tooltip position
persistance "none", "session", "local" "none" when set to "none" the footprint will be reset on page refresh. "local" and "session" will persist footprint in navigator storage.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published