Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

jQuery plugin to add classes to elements depending on the time of day

Notifications You must be signed in to change notification settings

freerange/jQuery-ChronoClass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

jQuery plugin.

A silly little ditty that basically sits some
classes onto an element depending on the
time of day.

Basic use ..

$('body').chronoClass();

You can enable days of week, and period of day ..

$('body').chronoClass({
   dayOfWeek:true,
   timeOfDay:false
});

If it is friday afternoon it will do the following
if you have true set to the options above ..

<body class="fri afternoon"></body>

You can then make it look like a sexy beer
 garden or whatever your ill be.

Read the code if you need more info,
or tell me what you wanna know and
I'll write it here you swine.

Seen on http://gofreerange.com/blog

I'd like to thank The Smiths
for musical accompaniment whilst I wrote it, yeah?

About

jQuery plugin to add classes to elements depending on the time of day

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published