Warning: Cannot modify header information - headers already sent by (output started at /var/www/jonas-eriksen.dk/pic/private/index.php:1) in /var/www/jonas-eriksen.dk/pic/private/index.php on line 215
/*!
dsCountDown v1.0
jQuery count down plugin
(c) 2013 I Wayan Wirka - http://iwayanwirka.duststone.com/dscountdown/
license: http://www.opensource.org/licenses/mit-license.php
*/
(function($){
$.fn.dsCountDown = function(givenOptions){
var ds = this;
var refreshed = 1000,
thread = null,
running = false,
left = 0,
decreament = 1,
interval = 0,
seconds = 0,
minutes = 0,
hours = 0,
days = 0,
elemDays= null,
elemHours= null,
elemMinutes= null,
elemSeconds= null;
var defaults = {
startDate: new Date(), // Date Object of starting time of count down, usualy now (whether client time or given php time)
endDate: null, // Date Object of ends of count down
elemSelDays: '', // Leave blank to use default value or provide a string selector if the lement already exist, Example: .ds-days
elemSelHours: '', // Leave blank to use default value or provide a string selector if the lement already exist, Example: .ds-hours
elemSelMinutes: '', // Leave blank to use default value or provide a string selector if the lement already exist, Example: .ds-minutes
elemSelSeconds: '', // Leave blank to use default value or provide a string selector if the lement already exist, Example: .ds-seconds
theme: 'white', // Set the theme 'white', 'black', 'red', 'flat', 'custome'
titleDays: 'DAYS', // Set the title of days
titleHours: 'HOUR', // Set the title of hours
titleMinutes: 'MIN', // Set the title of minutes
titleSeconds: 'SEC', // Set the title of seconds
onBevoreStart: null, // callback before the count down starts
onClocking: null, // callback after the timer just clocked
onFinish: null // callback if the count down is finish or 0 timer defined
};
var options = $.extend( {}, defaults, givenOptions );
if (this.length > 1){
this.each(function() { $(this).dsCountDown(givenOptions) });
return this;
}
var init = function(){
// Init element
if(! options.elemSelSeconds){
ds.prepend('