Jquery countdown that doesn't reset on page refresh
<p>I am using Vassilis Dourdounis jquery plugin, and I have created a countdown timer that hides some link on complete. But it restarts whenever the page is refreshed, and it shouldn't. It should finish the count and then disappear. Can anyone help, please?</p>

<p><strong>This is jquery:</strong></p>

<pre><code>/*!
 * jQuery Countdown plugin v1.0
 * http://www.littlewebthings.com/projects/countdown/
 *
 * Copyright 2010, Vassilis Dourdounis
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
(function($){

    $.fn.countDown = function (options) {

        config = {};

        $.extend(config, options);

        diffSecs = this.setCountDown(config);

        if (config.onComplete)
        {
            $.data($(this)[0], 'callback', config.onComplete);
        }
        if (config.omitWeeks)
        {
            $.data($(this)[0], 'omitWeeks', config.omitWeeks);
        }

        $('#' + $(this).attr('id') + ' .digit').html('&lt;div class="top"&gt;&lt;/div&gt;&lt;div class="bottom"&gt;&lt;/div&gt;');
        $(this).doCountDown($(this).attr('id'), diffSecs, 500);

        return this;

    };

    $.fn.stopCountDown = function () {
        clearTimeout($.data(this[0], 'timer'));
    };

    $.fn.startCountDown = function () {
        this.doCountDown($(this).attr('id'),$.data(this[0], 'diffSecs'), 500);
    };

    $.fn.setCountDown = function (options) {
        var targetTime = new Date();

        if (options.targetDate)
        {
            targetTime = new Date(options.targetDate.month + '/' + options.targetDate.day + '/' + options.targetDate.year + ' ' + options.targetDate.hour + ':' + options.targetDate.min + ':' + options.targetDate.sec + (options.targetDate.utc ? ' UTC' : ''));
        }
        else if (options.targetOffset)
        {
            targetTime.setFullYear(options.targetOffset.year + targetTime.getFullYear());
            targetTime.setMonth(options.targetOffset.month + targetTime.getMonth());
            targetTime.setDate(options.targetOffset.day + targetTime.getDate());
            targetTime.setHours(options.targetOffset.hour + targetTime.getHours());
            targetTime.setMinutes(options.targetOffset.min + targetTime.getMinutes());
            targetTime.setSeconds(options.targetOffset.sec + targetTime.getSeconds());
        }

        var nowTime = new Date();

        diffSecs = Math.floor((targetTime.valueOf()-nowTime.valueOf())/1000);

        $.data(this[0], 'diffSecs', diffSecs);

        return diffSecs;
    };

    $.fn.doCountDown = function (id, diffSecs, duration) {
        $this = $('#' + id);
        if (diffSecs &lt;= 0)
        {
            diffSecs = 0;
            if ($.data($this[0], 'timer'))
            {
                clearTimeout($.data($this[0], 'timer'));
            }
        }

        secs = diffSecs % 60;
        mins = Math.floor(diffSecs/60)%60;
        hours = Math.floor(diffSecs/60/60)%24;
        if ($.data($this[0], 'omitWeeks') == true)
        {
            days = Math.floor(diffSecs/60/60/24);
            weeks = Math.floor(diffSecs/60/60/24/7);
        }
        else 
        {
            days = Math.floor(diffSecs/60/60/24)%7;
            weeks = Math.floor(diffSecs/60/60/24/7);
        }

        $this.dashChangeTo(id, 'seconds_dash', secs, duration ? duration : 800);
        $this.dashChangeTo(id, 'minutes_dash', mins, duration ? duration : 1200);
        $this.dashChangeTo(id, 'hours_dash', hours, duration ? duration : 1200);
        $this.dashChangeTo(id, 'days_dash', days, duration ? duration : 1200);
        $this.dashChangeTo(id, 'weeks_dash', weeks, duration ? duration : 1200);

        $.data($this[0], 'diffSecs', diffSecs);
        if (diffSecs &gt; 0)
        {
            e = $this;
            t = setTimeout(function() { e.doCountDown(id, diffSecs-1) } , 1000);
            $.data(e[0], 'timer', t);
        } 
        else if (cb = $.data($this[0], 'callback')) 
        {
            $.data($this[0], 'callback')();
        }

    };

    $.fn.dashChangeTo = function(id, dash, n, duration) {
          $this = $('#' + id);

          for (var i=($this.find('.' + dash + ' .digit').length-1); i&gt;=0; i--)
          {
                var d = n%10;
                n = (n - d) / 10;
                $this.digitChangeTo('#' + $this.attr('id') + ' .' + dash + ' .digit:eq('+i+')', d, duration);
          }
    };

    $.fn.digitChangeTo = function (digit, n, duration) {
        if (!duration)
        {
            duration = 800;
        }
        if ($(digit + ' div.top').html() != n + '')
        {

            $(digit + ' div.top').css({'display': 'none'});
            $(digit + ' div.top').html((n ? n : '0')).slideDown(duration);

            $(digit + ' div.bottom').animate({'height': ''}, duration, function() {
                $(digit + ' div.bottom').html($(digit + ' div.top').html());
                $(digit + ' div.bottom').css({'display': 'block', 'height': ''});
                $(digit + ' div.top').hide().slideUp(10);


            });
        }
    };

})(jQuery);
</code></pre>

<p><strong>This is HTML code:</strong></p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
&lt;head&gt;
    &lt;script language="Javascript" type="text/javascript" src="js/jquery-1.4.1.js"&gt;&lt;/script&gt;
    &lt;script language="Javascript" type="text/javascript" src="js/jquery.lwtCountdown-1.0.js"&gt;&lt;/script&gt;
    &lt;script language="Javascript" type="text/javascript" src="js/jquery.cookie.js"&gt;&lt;/script&gt;
    &lt;script language="Javascript" type="text/javascript" src="js/misc.js"&gt;&lt;/script&gt;
    &lt;link rel="Stylesheet" type="text/css" href="style/main.css"&gt;&lt;/link&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;

    &lt;title&gt;test&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;

    &lt;div id="container"&gt;
    &lt;h2&gt;OFFER&lt;/h2&gt;
    &lt;img src="images/top.png" style="float:left;padding-left:15px;"&gt;
        &lt;div id="top_offer"&gt;
                &lt;p&gt;REGISTER NOW AND GET SPECIAL BONUSES!&lt;/p&gt;
            &lt;/div&gt;
        &lt;!-- Countdown dashboard start --&gt;
        &lt;div id="countdown_dashboard"&gt;



            &lt;div class="dash minutes_dash"&gt;
                &lt;span class="dash_title"&gt;&lt;/span&gt;
                &lt;div class="digit"&gt;0&lt;/div&gt;
                &lt;div class="digit"&gt;0&lt;/div&gt;
            &lt;/div&gt;

            &lt;div class="dash seconds_dash"&gt;
                &lt;span class="dash_title"&gt;&lt;/span&gt;
                &lt;div class="digit"&gt;0&lt;/div&gt;
                &lt;div class="digit"&gt;0&lt;/div&gt;
            &lt;/div&gt;

        &lt;/div&gt;
        &lt;!-- Countdown dashboard end --&gt;


        &lt;div class="info_message" id="complete_info_message"&gt;
            &lt;a href="http://www.fxlider.com/lp4/education-kit" target="_blank"&gt; &lt;img src="images/offer.png" /&gt; &lt;p&gt;Klikni ovde ► &lt;/p&gt;&lt;/a&gt;
        &lt;/div&gt;

        &lt;script language="javascript" type="text/javascript"&gt;
            // Set the Countdown
jQuery(document).ready(function() {
    $('#countdown_dashboard').countDown({
        targetOffset: {
            'day':      0,
            'month':    0,
            'year':     0,
            'hour':     0,
            'min':      0,
            'sec':      60
        }, 
        // onComplete function
        onComplete: function() { $('#container').slideUp() }
    });
});
        &lt;/script&gt;

    &lt;/div&gt;
&lt;/body&gt;

&lt;/html&gt;
</code></pre>

<p>THANX!!!</p>
