File manager - Edit - /home/jardides/www/Jardi-design/modules/mod_jpanel/assets/js/jpanel.min.js
Back
/* * @package mod_jpanel * @copyright Copyright (C) 2012 Girolamo Tomaselli All rights reserved. * @email girotomaselli@gmail.com * @website http://bygiro.com * @license GNU General Public License version 2 or later; see LICENSE.txt */ function openJpanel(a){var b=jQuery(a),c=b.attr("data-jpanel-side");switch(c){case"right":b.stop(!0,!1).animate({right:"0px"},900);break;case"left":b.stop(!0,!1).animate({left:"0px"},900);break;case"top":b.stop(!0,!1).animate({top:"0px"},900);break;case"bottom":b.stop(!0,!1).animate({bottom:"0px"},900)}b.addClass("jpanel_open")}function closeJpanel(a){var b=jQuery(a),c=jQuery(a+" .jpanelContent"),d=b.attr("data-jpanel-side");switch(d){case"right":b.animate({right:-1*(c.width()+11)+"px"},800);break;case"left":b.animate({left:-1*(c.width()+11)+"px"},800);break;case"top":b.animate({top:-1*(c.height()+1)+"px"},800);break;case"bottom":b.animate({bottom:-1*(c.height()+1)+"px"},800)}b.removeClass("jpanel_open")}function toggleJpanel(a){jQuery(a).hasClass("jpanel_open")?closeJpanel(a):openJpanel(a)}function clickJpanel(a){jQuery(a+" .jpanelHandle").click(function(){toggleJpanel(a)})}function hoverJpanel(a){jQuery(a+" .jpanelHandle").hover(function(){openJpanel(a)},function(){}),jQuery(a).hover(function(){},function(){closeJpanel(a)})}function initjPanelHandle(a){var b=jQuery(a),c=b.attr("data-jpanel-side"),d={},e=jQuery(a).find(".jpanelHandle"),f=e.outerWidth(),g=e.outerHeight();switch(d.position="absolute",c){case"right":d.top="0",d.left=-(f+11)+"px";break;case"left":d.top="0",d.right=-(f+11)+"px";break;case"top":d.left="0",d.bottom=-g+"px";break;case"bottom":d.left="0",d.top=-g+"px"}e.css(d)}jQuery.fn.textWidth=function(){var a=jQuery(this).html(),b="<span>"+a+"</span>";jQuery(this).html(b);var c=jQuery(this).find("span:first").width();return jQuery(this).html(a),c},jQuery(document).ready(function(){jQuery(".jPanelModule").appendTo("body")});
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings