Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/cartforge.co/app/design/frontend/Smartwave/porto/web/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/cartforge.co/app/design/frontend/Smartwave/porto/web/js/jquery.floatelement.js
(function (factory) {
    'use strict';

    if (typeof define === 'function' && define.amd) {
        define([
            'jquery'
        ], factory);
    } else {
        factory(window.jQuery);
    }
}(function ($) {
    'use strict';

    var $window = $(window);

    $.fn.themePluginFloatElement = function(options) {
        var settings = {
            startPos: "top",
            speed: 3,
            horizontal: false,
            transition: false
        };
        var $el, $options;

        function initialize(t, options) {
            return t.data("__floatElement") ? this : ($el = t,
            setData(),
            setOptions(options),
            build(),
            this)
        }

        function setData() {
            return $el.data("__floatElement")
        }

        function setOptions(options) {
            return $options = $.extend(!0, {}, settings, options, {
                wrapper: $el
            })
        }

        function build() {
            var t, o = $options.wrapper, s = $(window);
            return $options.style && o.attr("style", $options.style),
            s.width() > 767 && ("none" == $options.startPos ? t = "" : "top" == $options.startPos ? (o.css({
                top: 0
            }),
            t = "") : (o.css({
                bottom: 0
            }),
            t = "-"),
            $options.transition && o.css({
                transition: "ease transform 500ms"
            }),
            movement(t),
            s.on("scroll", function() {
                movement(t)
            }))
        }

        function movement(t) {
            var i = $($options.wrapper)
              , o = $(window)
              , s = o.scrollTop()
              , n = 100 * (i.offset().top - s) / o.height();
            $options.horizontal ? i.css({
                transform: "translate3d(" + t + n / $options.speed + "%, " + t + n / $options.speed + "%, 0)"
            }) : i.css({
                transform: "translate3d(0, " + t + n / $options.speed + "%, 0)"
            })
        }

        initialize(this, options);

        return this;
    }
}));

Spamworldpro Mini