PHP 8.1.33
Preview: popup.js Size: 2.38 KB
/home/jambtst2015/public_html/js/popup.js

$(function($) {
    
    $("a.topopup").click(function() {
            loading(); // loading
            setTimeout(function(){ // then show popup, deley in .5 second
                loadPopup(); // function show popup
            }, 500); // .5 second
    return false;
    });
    
    /* event for close the popup */
    $("div.close").hover(
                    function() {
                        $('span.ecs_tooltip').show();
                    },
                    function () {
                        $('span.ecs_tooltip').hide();
                      }
                );
    
    $("div.close").click(function() {
        disablePopup();  // function close pop up
    });
    
    $(this).keyup(function(event) {
        if (event.which == 27) { // 27 is 'Ecs' in the keyboard
            disablePopup();  // function close pop up
        }      
    });
    
    $("div#backgroundPopup").click(function() {
        disablePopup();  // function close pop up
    });
    
    $('a.livebox').click(function() {
        //alert('Hello World!');
    	//return false;
		disablePopup();
    });
    

     /************** start: functions. **************/
    function loading() {
        $("div.loader").show();  
    }
    function closeloading() {
        $("div.loader").fadeOut('normal');  
    }
    
    var popupStatus = 0; // set value
    
    function loadPopup() {
        if(popupStatus == 0) { // if value is 0, show popup
            closeloading(); // fadeout loading
            $("#toPopup").fadeIn(0500); // fadein popup div
            $("#backgroundPopup").css("opacity", "0.7"); // css opacity, supports IE7, IE8
            $("#backgroundPopup").fadeIn(0001);
            popupStatus = 1; // and set value to 1
			
			$("#forForm").show();
			$("#mailSend").html('');
			$("#forSccMsg").hide();
			$("#ForgotpassForm_email").val('');
			$("#ForgotpassForm_email_em_").html('');
			$("#ForgotpassForm_email_em_").hide();
        }    
    }
        
    function disablePopup() {
        if(popupStatus == 1) { // if value is 1, close popup
            $("#toPopup").fadeOut("normal");  
            $("#backgroundPopup").fadeOut("normal"); 
			$("#ForgotpassForm_email").val('');
			$("#ForgotpassForm_email_em_").html('');
			$("#ForgotpassForm_email_em_").hide();
            popupStatus = 0;  // and set value to 0
        }
    }
    /************** end: functions. **************/
}); // jQuery End

Directory Contents

Dirs: 1 × Files: 15

Name Size Perms Modified Actions
chat DIR
- drwxr-xr-x 2024-12-13 16:45:35
Edit Download
14.06 KB lrw-r--r-- 2024-11-22 17:53:15
Edit Download
3.74 KB lrw-r--r-- 2024-11-22 17:53:15
Edit Download
256.14 KB lrw-r--r-- 2024-11-22 17:53:15
Edit Download
34.56 KB lrw-r--r-- 2024-11-22 17:53:15
Edit Download
22.32 KB lrw-r--r-- 2024-11-22 17:53:15
Edit Download
14.82 KB lrw-r--r-- 2024-11-22 17:53:15
Edit Download
90.46 KB lrw-r--r-- 2024-11-22 17:53:15
Edit Download
89.52 KB lrw-r--r-- 2024-11-22 17:53:15
Edit Download
11.29 KB lrw-r--r-- 2024-11-22 17:53:15
Edit Download
15.45 KB lrw-r--r-- 2024-11-22 17:53:15
Edit Download
15.45 KB lrw-r--r-- 2024-11-22 17:53:15
Edit Download
2.38 KB lrw-r--r-- 2024-11-22 17:53:15
Edit Download
3.98 KB lrw-r--r-- 2024-11-22 17:53:15
Edit Download
13.97 KB lrw-r--r-- 2024-11-22 17:53:15
Edit Download
1.49 KB lrw-r--r-- 2024-11-22 17:53:15
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).