public/template_files/hotel_website/js/main.js
/*==========  Function to open and close popup (to avoid repeating code More than 1 time)  ==========*/
Function to open and close popup (to avoid repeating code More than 1 time)
Function to open and close popup ( to avoid repeating code More than 1 time )
function openPopup(triggerBtn, popup) {
        $(triggerBtn).on('click', function (e) {
            e.preventDefault();
            $(popup).addClass('active');
        });
    }
function openPopup ( triggerBtn , popup ) { $ ( triggerBtn ) . on ( 'click' , function ( e ) { e . preventDefault ( ) ; $ ( popup ) . addClass ( 'active' ) ; } ) ; }
Function to open and close popup (to avoid repeating code More than 1 time)
Function to open and close popup ( to avoid repeating code More than 1 time )