Print

Project jQuery.timeRule

What is it?

jQuery.timeRule is a function scheduler & customizable clock. It's GMT based so it's accurate no matter where you're viewing the webpage from.
Why use it?

Because not all functions should run all the time. For example: If you have a website and want to notify a customer of something at a certain time - jQuery.timeRule is the answer. You simply create a time rule to attach to a function.

Your right! Some functions don't need to run every second. That's why there is a simple API. If you need to check the year/month/day/hour/second, after initiation, you can use the following:

Examples


This example rules a anonymous function on Monday & Tuesday between 12am & 12pm.
$(document).ready(function() {
$('#timeRule').timeRule({
rules: Tuesday', '1-12:AM
});
});

A "time rule" looks like this - which runs at all hours, on all days, every second:
$.timeRule.makeRule('Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday', '1-12:PM|1-12:AM', function() {});

This example runs all the time every second:
$(document).ready(function() {
$('#timeRule').timeRule({
rules:
$.timeRule.makeRule(false, false, function() {});

});
});

File Gallery: jQuery.timeRule

T Filename Size Last Modified Actions
No records found.



Online users

4 online users
Show php error messages
 
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/wiki-plugins/wikiplugin_files.php
Line: 407
Type: Undefined variable: gal
PHP (5.2.17) NOTICE (E_NOTICE):
File: templates_c/en^031e73e445b716ce92b8407ae7c06bf3aeb8aac8.file.list_file_gallery_content.tpl.php
Line: 47
Type: Undefined index: show_action
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: other_columns
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: galleryId
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: nbCols
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: galleryId
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: galleryId
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: galleryId
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: sort_mode
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: other_columns_selected
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: other_columns_selected
PHP (5.2.17) NOTICE (E_NOTICE):
File: templates_c/en^031e73e445b716ce92b8407ae7c06bf3aeb8aac8.file.list_file_gallery_content.tpl.php
Line: 155
Type: Undefined index: show_action
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: pageLang
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: pagemd5
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: tiki_p_site_report
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: tiki_p_tell_a_friend
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: tiki_p_tell_a_friend
PHP (5.2.17) NOTICE (E_NOTICE):
File: lib/smarty/libs/sysplugins/smarty_internal_data.php
Line: 291
Type: Undefined variable: module_pref_errors