• Stars
    star
    107
  • Rank 323,587 (Top 7 %)
  • Language
    JavaScript
  • License
    Other
  • Created almost 16 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

jQuery plugin for flashing messages in the browser title bar (i.e. chat message alerts)

jquery-titlealert

Flashes the page title with a custom message.

Example usage

$.titleAlert("Hello World!", {
    requireBlur:true,
    stopOnFocus:true,
    duration:10000,
    interval:500
});

Flash title bar with text "Hello World!", if the window doesn't have focus, for 10 seconds or until window gets focused, with an interval of 500ms

Parameters and Options

jQuery.titleAlert(message, options)
message A string the message that should be flashed in the browser title.
options JavaScript object containing options
name default description
interval 500 The flashing interval in milliseconds.
originalTitleInterval null Time in milliseconds that the original title is diplayed for. If null the time is the same as interval.
duration 0 The total lenght of the flashing before it is automatically stopped. Zero means infinite.
stopOnFocus true If true, the flashing will stop when the window gets focus.
stopOnMouseMove false If true, the flashing will stop when the document recieves a mousemove event (i.e. when the user moves the mouse over the document area, regardless of what window is active).
requireBlur false Experimental. If true, the call will be ignored unless the window is out of focus. Known issues: Firefox doesn't recognize tab switching as blur, and there are some minor IE problems as well.

License

MIT License

More Repositories

1

heynote

A dedicated scratchpad for developers
JavaScript
3,830
star
2

leaflet-areaselect

Leaflet plugin for letting users select an area of the map using a rectangle, and get the bounding box
JavaScript
111
star
3

leaflet-usermarker

Leaflet plugin for plotting a marker representing a user, or multiple users, on a Leaflet map
CSS
76
star
4

postgresql-backup

Docker image that periodically dumps a Postgres database, and uploads it to an Amazon S3 bucket.
Python
49
star
5

jquery-draggable-touch

Make HTML elements draggable using touch events
JavaScript
43
star
6

mms-decoder

PHP class that can decode MMS messages, and thus makes it possible to send MMS-messages to websites.
PHP
21
star
7

locust

Scalable user load testing tool written in Python and gevent
Python
19
star
8

geolocation-throttle

Small JavaScript library for throttling the callbacks from navigator.geolocation.watchPosition
JavaScript
16
star
9

beacon-wordpress

WordPress plugin that provides real-time notifications of comments through the real-time cloud service Beacon Push (http://beaconpush.com/).
PHP
6
star
10

heynote-webapp

Web version of Heynote
5
star
11

mustard

DIY Docker PAAS
Python
4
star
12

leaflet-centermarker

Leaflet Marker that is kept fixed to the center of the map
JavaScript
4
star
13

irccloud-reconnect

Simple Greasemonkey/Webkit Userscript that makes IRCCloud.com continue to try to reconnect even after 10 retries
JavaScript
3
star
14

throttled-http-proxy

Transparently proxies HTTP request to some other pre-defined server with support for throttling the number of concurrent requests
Python
2
star
15

django-mstats

Simple, re-usable, stateless Django app for visualizing and browsing statistics, mainly based on your existing Django models.
Python
2
star
16

twofishes-docker

Twofishes Docker image
1
star
17

dotfiles

My config files
Shell
1
star
18

python-base-docker

Base Docker image for Python projects
Dockerfile
1
star
19

rayter-site

Board Game ranking site for me and my friends & family
Python
1
star
20

heynote-website

heynote.com
SCSS
1
star