MMCT TEAM
Server IP : 111.118.215.156  /  Your IP : 216.73.216.167
Web Server : Apache
System : Linux md-in-26.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : azasoqqa ( 1858)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/azasoqqa/public_html/vsrcbse.com/admin/javascript/pages/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/azasoqqa/public_html/vsrcbse.com/admin/javascript/pages/blog.js
/*! ========================================================================
 * blog.js
 * Page/renders: page-blog-*.html
 * Plugins used: owl carousel
 * ======================================================================== */
$(function () {
    // Owl carousel
    // ================================
    if ($("#carousel1").length > 0) {
        $("#carousel1").owlCarousel({
            lazyLoad: true,
            slideSpeed: 300,
            paginationSpeed: 400,
            singleItem: true,
            autoPlay: true,
            stopOnHover: true
        });
    }
    if ($("#carousel2").length > 0) {
        $("#carousel2").owlCarousel({
            lazyLoad: true,
            slideSpeed: 300,
            paginationSpeed: 400,
            singleItem: true,
            pagination: false,
            navigation: true,
            autoPlay: true,
            stopOnHover: true
        });
    }

    // Masonry
    // ================================
    if ($("#masonry").length > 0) {
        $("#masonry").imagesLoaded(function () {
            $("#masonry").masonry({
                itemSelector: ".post",
                columnWidth: ".post"
            });
        });

        // relocate panel on window ready
        $(window).load(function () {
            $("#masonry").masonry("layout");
        });

        // relocate panel on sidebar minimize/maximize
        $("html")
            .on("fa.sidebar.minimize", function () { $("#masonry").masonry("layout") })
            .on("fa.sidebar.maximize", function () { $("#masonry").masonry("layout") });
    }

    // Ajax form : On success / done
    // ================================
    $("html").on("fa.formajax.done", function (event, data) {
        // construct bootstrap alert with some css animation
        var bsalert = '';
            bsalert += '<div class="alert alert-success animation animating flipInX">';
            bsalert += '<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>';
            bsalert += '<h4 class="semibold mb5">Success!</h4>';
            bsalert += '<p class="nm">'+data.response.text+'</p>';
            bsalert += '</div>';

        // append to affected form
        data.element
            .find(".message-container")
            .html(bsalert);
    });
});

MMCT - 2023