GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - chrishunt/favcount: Enhance your useless favicon with FavCount technology

BranchesTags
Open more actions menu

Latest commit

 

History

57 Commits
57 Commits

Folders and files

NameName
Last commit message
Last commit date
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
bower.json
bower.json
 
 
favcount.js
favcount.js
 
 

Repository files navigation

favcount.js

Enhance your useless favicon with FavCount™ technology.

chrishunt.co/favcount

Usage

Load up favcount.js in your HTML.

<html>
  <head>
    <link rel='icon' type='image/png' href='path/to/favicon.ico'>
  </head>

  <body>
    ...
    <!-- bottom of body -->
    <script src='favcount.js' type='text/javascript'></script>
  </body>
</html>

Create and use a Favcount in your JavaScript.

var favicon = new Favcount('path/to/favicon.ico');

favicon.set(10);

If you want to make that icon really pop, change it out to something else or adjust the opacity.

favicon.icon = 'path/to/different/icon.ico';
favicon.opacity = 0.5;

favicon.set();

Example

Have a look at the favicon for the home page. Notice how amazing it is? Here's the code.

var favicon = new Favcount('icons/blue-dot.ico');

function setCount(count) {
  if (count > 99) { count = 1 };

  favicon.set(count);

  setTimeout(function() {
    setCount(count + 1);
  }, 500);
}

setCount(1);

License

MIT License

About

Enhance your useless favicon with FavCount technology

chrishunt.co/favcount

Resources

Readme
MIT license
Activity

Stars

180 stars

Watchers

8 watching

Forks

7 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.