https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/laciasmara.com/public_html/shop/application/modules/popup_banner/views/3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/laciasmara.com/public_html/shop/application/modules/popup_banner/views/3/popup_banner.php
<style type="text/css">
    .customModalDialog {
        position: fixed;
        font-family: Arial, Helvetica, sans-serif;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 10000;
        -webkit-transition: opacity 400ms ease-in;
        -moz-transition: opacity 400ms ease-in;
        transition: opacity 400ms ease-in;
    }

    .customModalDialog .modalClose {
        opacity: 1;
        /* color: #c1c1c1; */
        color: grey !important;
        /* background: black; */
        font-size: 20px;
        line-height: 25px;
        position: absolute;
        right: -2px;
        text-align: center;
        top: -1px;
        width: 24px;
        text-decoration: none;
        font-weight: bold;
    }

    @media (min-width: 768px) {
        .customModalDialog>div {
            /* max-width: 800px; */
            width: 731px;
            height: 376px;
            position: absolute;
            margin: auto;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background: #000;
        }
    }

    @media (max-width: 767px) {
        .customModalDialog>div {
            /* max-width: 800px; */
            width: 290px;
            height: 12px;
            position: absolute;
            margin: auto;
            top: -143px;
            right: 0;
            bottom: 0;
            left: 0;
            background: #000;
        }
    }
</style>
<script type="application/javascript" src='https://www.laciasmara.com/shop/assets/frontend/js/js.cookie.js'></script>
<script>
    //*------HOME PAGE POPUP MODAL---------*/
    jQuery(document).ready(function() {

        setTimeout(function() {
            jQuery('.customModalDialog').css({
                'display': 'block'
            });
        }, 5000);

        var day_expired = <?= $popup->popup_day_expire; ?>;

        if (!Cookies.get('popupAlreadyDisplay')) {

            setTimeout(function() {
                // $('.customModalDialog').show();
            }, 5000);

            Cookies.set('popupAlreadyDisplay', true <?php if ($popup->popup_day_expire > 0) : ?>, {
                        expires: day_expired
                    }
                <?php endif; ?>
            );

        } else if (Cookies.get('popupAlreadyDisplay') && day_expired == 0) {

            setTimeout(function() {
                // $('.customModalDialog').show();
            }, 5000);
        }

        jQuery('.customModalDialog .modalClose').click(function() {
            jQuery('.customModalDialog').hide();
        });
    });
</script>

<div class="customModalDialog" style="display: none;">
    <div>
        <a style="cursor:pointer;" title="Close" class="modalClose">&#10006;</a>

        <a id="popupLink" href="javascript:void(0);" onclick="updateTotalClick( 1 , '<?= $popup->popup_text; ?>')"><img title="Promotion Popup" alt="Promotion Popup" src="<?= base_url() . 'uploads/page/' . $popup->popup_image; ?>"></a>

    </div>
</div>
<script>
    // Fungsi untuk mengirim permintaan AJAX saat gambar diklik
    function updateTotalClick(slideshowId, bannerLink) {
        // Buat objek XMLHttpRequest
        var xhr = new XMLHttpRequest();

        // Tentukan URL endpoint untuk mengupdate total_click
        var url = "<?= base_url('popup_banner/updateTotalClick/'); ?>" + slideshowId;

        // Kustomisasi request
        xhr.open("GET", url, true);

        // Callback saat permintaan selesai
        xhr.onreadystatechange = function() {
            if (xhr.readyState === 4 && xhr.status === 200) {
                // Response dari server (jika diperlukan)
                var response = xhr.responseText;
                console.log(response); // Tampilkan response jika perlu

                // Setelah update total_click selesai, redirect ke banner_link
                window.location.href = bannerLink;
            }
        };

        // Kirim data ke server
        xhr.send();
    }
</script>

https://t.me/RX1948 - 2025