Hello there, welcome to Litie a flat CSS3 calendar solution.
Files Included
- HTML
- CSS
- Documentation
Updates
v1.0
- Initial release
Hello there, welcome to Litie a flat CSS3 calendar solution.
TimeZone Corrector is a JavaScript tool which corrects time and dates in website content.
Most of the websites in Internet are international and often these websites publish dates which are corresponding to their local timezone. Most of the times it’s really hard for visitors from different timezones to catch up with the time difference and here comes the TimeZone Corrector.
With this tool the visitors will be able to see the correct time and date in their timezone only by hovering over the time and date.
Examples of these formats:
* the date and time formats are according to PHP date() function
<script type="text/javascript" src="tzc/tzc.min.js"></script>
var myTZC = new TimeZoneCorrector('tzcselector');The first parameter is the selector of the HTML element. For ID the selector must be #elemendit or elementid. For class it must be .classname (like css). You can also use element object directly.
The second parameter is (optional) object with options for TimeZone Corrector. Please check all the available options from the table below.
Examples:
ID selector
var myTZC = new TimeZoneCorrector('tzcselector');ID selector
var myTZC = new TimeZoneCorrector('#tzcselector');Class selector
var myTZC = new TimeZoneCorrector('.tzcselector');Direct object selector
var myTZC = new TimeZoneCorrector(document.getElementById('tzcselector'));Selecting with jQuery
var myTZC = new TimeZoneCorrector($('.tzcselector'));Options
phpfile (string) the path to the tzc.php file. It can be relative or absolute path
cookieName (string) the name of the cookie which tzc.php file creates
labelText (string) the text which is before the corrected time in the tooltip
theme (string) the theme name. Default: [dark]. Possible options: [dark, light]
Example of using all options:
<div id="mycontent">
My long content ... with dates like this 16:30 03.10.2013 ... etc
</div>
<script type="text/javascript">
var myTZC = new TZC('mycontent', {
labelText : 'In your timezone:',
phpfile : 'tzc/tzc.php',
cookieName : 'tzc',
theme : 'dark'
});
</script>
How to change the default timezone of your website?
Often your website is hosted in different timezone than yours. In order to correct this you should open file tzc.php in the tzc folder.
In this file you have the following settings:
$timezone = 'America/New_York'; // The timezone
$cookieName = 'tzc'; // The cookie name
$cookieExpiration = 2; // The cookie expiration time in hours
In order to change the default timezone of your website you should first find the correct timezone name at http://www.php.net/manual/en/timezones.php
Then change the value of the variable $timezone to your selected one.
The other two settings are related to the cookie which the script creates. If you want to change the name of the cookie you can do it by changing the value of the $cookieName variable. If you change the name of the cookie you should set the new name with cookieName option when initializing the TZC script.
Also the cookie expiration time can be changed by $cookieExpiration variable. The value for this variable is in hours.
v 1.0 – Initial version
v 1.1 – Added support for selecting elements by class and by providing element object to the class
Example:
Selecting by class 15:23 adipiscing elit. Nam vel risus 10:57 am nunc.
Selecting by class 16:23 adipiscing elit. Nam vel risus 9:57 am nunc.
Selecting by DOM object 18:23 adipiscing elit. Nam vel risus 02:57 am nunc.
Code:
<p class="tzcClass">Selecting by class 15:23 adipiscing elit. Nam vel risus 10:57 am nunc.</p>
<p class="tzcClass">Selecting by class 16:23 adipiscing elit. Nam vel risus 9:57 am nunc.</p>
<p id="tzcObject">Selecting by DOM object 18:23 adipiscing elit. Nam vel risus 02:57 am nunc.</p><script type="text/javascript">
var classTZC = new TimeZoneCorrector('.tzcClass');
var elObjTZC = new TimeZoneCorrector(document.getElementById('tzcObject'));
</script>
Plugin is tested with current Android (with 2.3.5, 4.0.2 and 4.1.2) browsers, iPhone and iPad Safari and Chrome (with iOS7), all modern desktop browsers (IE8 and IE9 will not show some of the styling). It requires JavaScript and jQuery support to work.




Regal Calendar is a component that allows you make known your events every day, let your visitors see when your event starts, the location via google maps and confirm their attendace via Twitter.
300 event types14 color combinationscount downgoogle maps5+ tooltip styles
Plugin is tested with current Android (with 2.3.5, 4.0.2 and 4.1.2) browsers, iPhone and iPad Safari and Chrome (with iOS7), all modern desktop browsers (IE8 and IE9 will not show some of the styling). It requires JavaScript and jQuery support to work.



