javascript,jquery,ajax,jquery-countdown
move $('[data-countdown]').each(function() to ajax js, like this: $(document).ready(function() { $('#more').click(function() { var get_last_post_display = $('.unique-class:last').attr('id'); $('#more').html('<img src="ajax-loader.gif"'); $.post('more_prj.php', 'last_id_post='+get_last_post_display, function(html) { if(html) { $('#main-div').append(html); $('#more').text('Load More Post'); //add text "Load More Post" to button again $('[data-countdown]').each(function() { var $this = $(this), finalDate = $(this).data('countdown');...
I am not sure this is you want. Please check the code once. Javascript: function ShowTime() { var now = new Date(); if (now.getHours() > 11){ var hrs =11-now.getHours()+24; if(now.getDay() == 5){ var hrs = hrs + 48; } }else{ var hrs = 11-now.getHours(); } var mins = 60-now.getMinutes(); var...