landru29 / progress-favicon-ts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Progress favicon

Usage

Instanciate FaviconLoading with options

type

value: pie | donut

message

value: string

if empty string, the original title of the page is kept in the browser tab. Use following variables

  • {{percent}}: percentage of the progress
  • {{progress}}: Current value of the progress
  • {{max}}: Max value of the progress (default: 100)

Changing progress

    window.progressFaviconInstance = new FaviconLoading({
        type: 'pie',
        message: 'foo {{percent}}'
    });

    window.progressFaviconInstance.max = 360;
    window.progressFaviconInstance.progress = 50;

About


Languages

Language:TypeScript 96.5%Language:Makefile 3.5%