%FAVICON
preference setting, this plugin adds extra flexibility, for instance
by adding a badge counter to an existing favicon, or replace it with an image
on the page etc.
For more information see https://github.com/ejci/favico.js
%FAV{"123"}%Or using the
FavIcon
jQuery module directly. Note that you'll then need to add a
%JQREQUIRE{"FavIcon"}%to the examples. Such as:
There are <span class='jqFavicon foswikiAlert'>12</span> unread messages in your inbox.Use anHTML img as a favicon:
<img src='%PUBURLPATH%/Web/Topic/image.jpeg' class='jqFavico' ... />
%FAV{...}
macro has got the following parameters:
Name | HTML5 Data | Description![]() |
Default |
---|---|---|---|
animation | data-animation | animation type, one of: none, fade, pop, popFade, slide | slide |
bg_color | data-bg-color | background color as rgb hex code | #d00 |
font_family | data-font-family | font of a badge | sans-serif |
text_color | data-text-color | font-color | #fff |
position | data-position | position where to display a badge relative to the original favicon: up, down, left, upleft | down |
type | data-type | shape of badge: circle or rectangle | circle |
"..." or text | data-text | text to be displayed | |
font_style | data-font-style | weight of font | bold |
foswiki.faviconManager
that can be used to control the favicon. Methods are:
cd /path/to/foswiki perl tools/extension_installer <NameOfExtension> installIf you have any problems, or if the extension isn't available in
configure
, then you can still install manually from the command-line. See https://foswiki.org/Support/ManuallyInstallingExtensions for more help.
20 Dec 2024 | properly deconstruct the plugin at the end of a session |
30 Jan 2024 | rework favicon manager; added reset() api to clear a favicon overlay |
26 Jan 2024 | initial release |
Author | Michael Daum |
Version | 1.11 |
Release | 20 Dec 2024 |
Description | Display a badge, image or video in a browser tab's favicon |
Repository | https://github.com/foswiki/FaviconPlugin |
Copyright | 2021-2024, Michael Daum, All Rights Reserved |
License | GPL (GNU General Public License) |
Home | http://foswiki.org/Extensions/FaviconPlugin |
Support | http://foswiki.org/Support/FaviconPlugin |
![]() |
© 2025 D.Soost & D.Marxsen - All rights reserved © Of all articles by authors Trademarks are the property of their respective owners © Logo by Wikipedia, modified by Administrator | Impressum Disclaimer Datenschutzerklärung |