Viewing File: /home/rtsgrob/ww5/wp-content/plugins/vc-extensions-bundle/profilecard/js/script.min.js
jQuery(document).ready(function(o){"use strict";o(".profilecard-container").each(function(t){var i=o(this).data("image"),a=o(this).data("width"),e=o(this).data("height"),s=o(this).data("color"),d=o(this).data("opacity"),r=o(this).data("margin"),l=o(this).data("trigger"),n=(o(this).data("iconanimate"),o(this).data("animatestyle")),f=o(this).data("iconvisible"),p=o(this).data("tooltipposition");""==n&&(n="fadeInLeft");var c=o(this);o(this).find(".profilecard-icon").each(function(){var t=o(this).data("color")||s;o(this).css({color:t,opacity:d,margin:r}),o(this).on("mouseover",function(t){o(this).css("opacity",1),t.preventDefault()}).on("mouseout",function(t){o(this).css("opacity",d),t.preventDefault()}),""!=o(this).attr("title")&&o(this).tooltipster({animation:"grow",position:p||"top",delay:50,theme:"tooltipster-shadow"})}),o(this).find(".profilecard-cover.right2 span, .profilecard-cover.left1 span").css({width:.5*a,height:e}),o(this).find(".profilecard-cover.bottom2 span, .profilecard-cover.top1 span").css({width:a,height:.5*e}),o(this).find(".profilecard-controlsright").css({height:e-10,"margin-top":"10px",width:"50px",left:a-50}),o(this).find(".profilecard-controlsleft").css({height:e-10,"margin-top":"5px",width:"50px",left:"px"}),o(this).find(".profilecard-controlsbottom").css({height:"50px",width:a,top:e-50}),o(this).find(".profilecard-controlstop").css({height:"50px",width:a}),o(this).find(".profilecard-cover.right1").css({width:.5*a,height:e,"margin-top":.5*-e,top:"50%","background-image":"url("+i+")","background-size":a+"px "+e+"px","background-repeat":"no-repeat"}),o(this).find(".profilecard-cover.right2").css({"background-image":"url("+i+")","background-repeat":"no-repeat","background-position":.5*-a+"px 0px","background-size":a+"px "+e+"px",position:"absolute",width:.5*a,height:e,top:"50%",left:.5*a+.25*a,"margin-top":.5*-e,"margin-left":.25*-a}),o(this).find(".profilecard-cover.left1").css({width:.5*a,height:e,"margin-top":.5*-e,top:"50%","background-image":"url("+i+")","background-size":a+"px "+e+"px","background-repeat":"no-repeat"}),o(this).find(".profilecard-cover.left2").css({"background-image":"url("+i+")","background-size":a+"px "+e+"px","background-repeat":"no-repeat","background-position":.5*-a+"px 0px",position:"absolute",width:.5*a,height:e,top:"50%",left:.5*a+.25*a,"margin-top":.5*-e,"margin-left":.25*-a}),o(this).find(".profilecard-cover.bottom1").css({"background-image":"url("+i+")","background-repeat":"no-repeat","background-size":a+"px "+e+"px",width:a,height:.5*e}),o(this).find(".profilecard-cover.bottom2").css({"background-image":"url("+i+")","background-repeat":"no-repeat","background-size":a+"px "+e+"px","background-position":"0px "+.5*-e+"px",position:"absolute",width:a,height:.5*e,top:.5*e,left:.5*a,"margin-left":.5*-a}),o(this).find(".profilecard-cover.top1").css({"background-image":"url("+i+")","background-repeat":"no-repeat","background-size":a+"px "+e+"px",width:a,height:.5*e}),o(this).find(".profilecard-cover.top2").css({"background-image":"url("+i+")","background-repeat":"no-repeat","background-position":"0px "+.5*-e+"px","background-size":a+"px "+e+"px",position:"absolute",width:a,height:.5*e,top:.5*e,left:.5*a,"margin-left":.5*-a}),"on"==f?(o(this).find(".profilecard-cover.left1").addClass("unfoldleft"),o(this).find(".profilecard-cover.top1").addClass("unfoldtop"),o(this).find(".profilecard-cover.right2").addClass("unfoldright"),o(this).find(".profilecard-cover.bottom2").addClass("unfoldbottom")):(o(this).find(".profilecard-cover.left1").addClass("foldleft"),o(this).find(".profilecard-cover.top1").addClass("foldtop"),o(this).find(".profilecard-cover.right2").addClass("foldright"),o(this).find(".profilecard-cover.bottom2").addClass("foldbottom"));var h=o(this).find(".profilecard-cover.top1"),g=o(this).find(".profilecard-cover.right2"),u=o(this).find(".profilecard-cover.bottom2"),m=o(this).find(".profilecard-cover.left1");"click"==l?o(this).find(".profilecard-cover").on("click",c,function(o){g.hasClass("foldright")?(g.addClass("unfoldright"),g.removeClass("foldright")):(g.addClass("foldright"),g.removeClass("unfoldright")),m.hasClass("foldleft")?(m.addClass("unfoldleft"),m.removeClass("foldleft")):(m.addClass("foldleft"),m.removeClass("unfoldleft")),u.hasClass("foldbottom")?(u.addClass("unfoldbottom"),u.removeClass("foldbottom")):(u.addClass("foldbottom"),u.removeClass("unfoldbottom")),h.hasClass("foldtop")?(h.addClass("unfoldtop"),h.removeClass("foldtop")):(h.addClass("foldtop"),h.removeClass("unfoldtop"))}):o(this).on("mouseover",function(o){g.addClass("unfoldright"),g.removeClass("foldright"),m.addClass("unfoldleft"),m.removeClass("foldleft"),u.addClass("unfoldbottom"),u.removeClass("foldbottom"),h.addClass("unfoldtop"),h.removeClass("foldtop")}).on("mouseleave",function(o){g.addClass("foldright"),g.removeClass("unfoldright"),m.addClass("foldleft"),m.removeClass("unfoldleft"),u.addClass("foldbottom"),u.removeClass("unfoldbottom"),h.addClass("foldtop"),h.removeClass("unfoldtop")})})});
Back to Directory
File Manager