T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/gositeme.com/public_html/quickqr/restaurant-templates/flipbook/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/gositeme.com/public_html/quickqr/restaurant-templates/flipbook/js/script.js
var flipbookEL = document.getElementById('flipbook');
let flipbook = $(flipbookEL);

function loadApp() {
    $('.flipbook-loader').fadeOut();

    $(window).on('resize', function (e) {
        console.log(flipbook.find('.page.p'+flipbook.turn("page")+' img').height());
        $('.wrapper').height(flipbook.find('.page.p'+flipbook.turn("page")+' img').height() || 300);

        flipbookEL.style.width = '';
        flipbookEL.style.height = '';
        $(flipbookEL).turn('size', flipbookEL.clientWidth, flipbookEL.clientHeight);
    });

    $('.wrapper').on( "swipeleft", function(){
        if(flipbook.turn("page") == flipbook.turn("pages")){
            Snackbar.show({
                text: LANG_THIS_LAST_PAGE,
                pos: 'top-center',
                showAction: false,
                actionText: "Dismiss",
                duration: 3000,
                textColor: '#fff',
                backgroundColor: '#383838'
            });
            return;
        }

        flipbook.turn('next');
    }).on( "swiperight", function(){
        if(flipbook.turn("page") == 1){
            Snackbar.show({
                text: LANG_THIS_FIRST_PAGE,
                pos: 'top-center',
                showAction: false,
                actionText: "Dismiss",
                duration: 3000,
                textColor: '#fff',
                backgroundColor: '#383838'
            });
            return;
        }

        flipbook.turn('previous');
    });

    flipbook.turn({
        elevation: 50,
        acceleration: true,
        duration: 1500,
        gradients: true,
        autoCenter: true,
        display: 'single'
    });

    $(window).trigger('resize');
}
$(window).on('load',loadApp);

function inlineBG() {
    $(".single-page-header").each(function () {
        var attrImageBG = $(this).attr('data-background-image');
        if (attrImageBG !== undefined) {
            $(this).append('<div class="background-image-container"></div>');
            $('.background-image-container').css('background-image', 'url(' + attrImageBG + ')');
        }
    });
}

inlineBG();

(function ($) {
    "use strict";

    /*
    * Call the waiter
    */
    $('#call-the-waiter-btn').on('click', function () {
        $.magnificPopup.open({
            items: {
                src: '#call-waiter-box',
                type: 'inline',
                fixedContentPos: false,
                fixedBgPos: true,
                overflowY: 'auto',
                closeBtnInside: true,
                preloader: false,
                midClick: true,
                removalDelay: 300,
                mainClass: 'my-mfp-zoom-in'
            }
        });
    });
    
    $("#call-waiter-form").on("submit", function (e) {
        e.preventDefault();
        var $form = $(this),
            $btn = $form.find('button'),
            $data = $form.serializeArray();

        $data.push({name: 'action', value: 'callTheWaiter'});
        $data.push({name: 'restaurant', value: $form.data('id')});

        $btn.addClass('button-progress').prop('disabled', true);

        $.ajax({
            type: "POST",
            url: ajaxurl,
            data: $data,
            dataType: 'json',
            success: function (response) {
                $btn.removeClass('button-progress').prop('disabled', false);
                $.magnificPopup.close();
            }
        });
    });
})(jQuery);

CasperSecurity Mini