All Projects â†’ tiaanduplessis â†’ Dont Go

tiaanduplessis / Dont Go

A small client-side library with zero dependencies to change the title and/or favicon of the page when it is inactive. 😌

Projects that are alternatives of or similar to Dont Go

Gatsby Plugin Favicon
Favicon Gatsby plugin
Stars: ✭ 175 (-46.32%)
Mutual labels:  favicon
clappr-plugins
Main plugins for the Clappr project
Stars: ✭ 22 (-93.25%)
Mutual labels:  favicon
favicon-canvas-loader
Create and display a circular loading <canvas> animation as a webpage favicon.
Stars: ✭ 83 (-74.54%)
Mutual labels:  favicon
Supercookie
💭 Inspiration
Stars: ✭ 3,630 (+1013.5%)
Mutual labels:  favicon
favloader
Vanilla JavaScript library for loading animation in favicon (favicon loader)
Stars: ✭ 20 (-93.87%)
Mutual labels:  favicon
goverview
goverview - Get an overview of the list of URLs
Stars: ✭ 93 (-71.47%)
Mutual labels:  favicon
Faviator
A simple easy favicon generator.
Stars: ✭ 155 (-52.45%)
Mutual labels:  favicon
Chingu-Animal-Icons
How to add these beautiful animals to your webpage
Stars: ✭ 44 (-86.5%)
Mutual labels:  favicon
jekyll-favicon
Favicon generator and tag for Jekyll.
Stars: ✭ 17 (-94.79%)
Mutual labels:  favicon
favicon
💥 Favicon Generator using Node.js and Imagemagick
Stars: ✭ 33 (-89.88%)
Mutual labels:  favicon
Favicon Emoji
🖼 Generate an emoji-favicon in your terminal
Stars: ✭ 247 (-24.23%)
Mutual labels:  favicon
fav
Embrace favicons the modern way 🚀. Inspired by EvilMartian's blogpost.
Stars: ✭ 22 (-93.25%)
Mutual labels:  favicon
favicon
🖼 An attempt to capture all possible favicons for a web project.
Stars: ✭ 17 (-94.79%)
Mutual labels:  favicon
Rails Env Favicon
Gem to display the rails environment on the favicon
Stars: ✭ 212 (-34.97%)
Mutual labels:  favicon
get favicon
Get website's Favicon with PHP
Stars: ✭ 25 (-92.33%)
Mutual labels:  favicon
Icongenie
CLI tool to generate all the icons and splashscreens for your Quasar Apps
Stars: ✭ 174 (-46.63%)
Mutual labels:  favicon
saco
A pre customized, express server for single page web apps that aims to be production ready.
Stars: ✭ 22 (-93.25%)
Mutual labels:  favicon
Laravel Favicon
Create dynamic favicons based on your environment settings.
Stars: ✭ 276 (-15.34%)
Mutual labels:  favicon
favicon
Find a website's favicon.
Stars: ✭ 35 (-89.26%)
Mutual labels:  favicon
favioli
Emoji Favicons for the web. 👊🤯
Stars: ✭ 55 (-83.13%)
Mutual labels:  favicon

Dont go


Do the old favicon switcheroo in under 500 bytes

Table of Contents

About

leo

Dont-go is a small client-side library with zero dependencies to change the title and/or favicon of the page when it is inactive. Minified version weighs in at a whopping 476 Bytes when minified. Note that You must include a default favicon in your webpage.

As Seen In

Install

Install with cdn

<script src="https://unpkg.com/dont-go/lib/dont-go.js"></script>

Install with npm

$ npm install dont-go

Install with yarn

$ yarn add dont-go

Usage

example

To use, simply call the function with options.

dontGo({
	title: 'Alternative title text right here!',
	faviconSrc: 'path/to/Alternative/favicon.ico',
	timeout: 5000 //5 seconds
});

The faviconSrc property is optional and will keep the same icon if not set.

The timeout property is optional, it takes an interval in milliseconds to before title & favicon change.

It is also possible to set the title property to an array of values and set an interval to switch between them as seen in the example below;

dontGo({
	title: ['Alternative title text', 'Another alternative title'],
	faviconSrc: 'path/to/Alternative/favicon.ico',
	interval: 1000 //1 second
});

Demo

Check out the demo here.

Examples

Please see the example directory for more usage examples.

Contributing

All Contributions are welcome! Please open up an issue if you would like to help out. 😄

License

Licensed under the MIT License.

Icons made by Madebyoliver from www.flaticon.com is licensed by CC 3.0 BY.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].