Viewing 1 replies (of 1 total)
  • (function($){
    	$(function() {
    
    		var pop = $('#popup');
    
    		setTimeout(function(){
    
    			if(pop.length == 1){
    		        $.colorbox({
    		            html: pop.html(),
    		            scalePhotos : false,
    		    		opacity: 0.7,
    		            maxWidth:($(window).width() - 20),
    		            onLoad: function(){
    		            	$('html,body').animate({
    		        			scrollTop: 0
    		        		}, 200, "swing");
    		            	var current_time = Math.ceil((new Date().getTime())/1000);
    
    		            	setCookie("pl-open-time-" + POPUP_ID, current_time, 10);
    		            	setCookie("pl-showed-" + POPUP_ID, 1, 10);
    		            }
    		        });
    			}
    		}, 200);
        });
    
    	function setCookie(c_name, value, exdays) {
    	    var exdate = new Date();
    	    exdate.setDate(exdate.getDate() + exdays);
    	    var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString());
    	    document.cookie = c_name + "=" + c_value;
    	}
    
    })(jQuery);

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

Viewing 1 replies (of 1 total)
  • The topic ‘Missing files’ is closed to new replies.