Dashboard
PHP:
8.4.22
OS:
Linux
User:
provencez
/
/
home
/
provencez
/
www
/
wp-content
/
plugins
/
wptouch
/
themes
/
foundation
/
modules
/
base
📤 Upload
📝 New File
📁 New Folder
Close
Editing: base.min.js
function wptouchFdnEscFrames(){window.top!=window.self&&"-1"==window.top.location.pathname.indexOf("customize.php")&&(window.top.location=self.location.href)}function wptouchFdnIfFixed(){wptouchFdnHasFixedPos()&&jQuery("body").addClass("has-fixed")}function wptouchFdnBindBackButtons(t){void 0===t&&(t=".back-button"),jQuery(t).on("click",function(t){history.back(),t.preventDefault()})}function wptouchFdnBindFwdButtons(t){void 0===t&&(t=".fwd-button"),jQuery(t).on("click",function(t){history.forward(),t.preventDefault()})}function wptouchFdnCenterImages(t,e){jQuery(t).each(function(){!jQuery(this).hasClass("aligncenter")&&jQuery(this).width()>e&&jQuery(this).not(".post-thumbnail").addClass("aligncenter")})}function wptouchFdnSetupSlideToggles(){jQuery(".slide-toggle").each(function(){var t=jQuery(this).attr("data-effect-target");wptouchFdnSlideToggle(this,"#"+t,500)})}function wptouchFdnUpdateDevice(){var t=jQuery("body");document.body.clientWidth<768&&!t.hasClass("smartphone")?(t.addClass("smartphone").removeClass("tablet"),wptouchCreateCookie("wptouch-device-type","smartphone",365)):768<=document.body.clientWidth&&!t.hasClass("tablet")&&(t.addClass("tablet").removeClass("smartphone"),wptouchCreateCookie("wptouch-device-type","tablet",365))}function wptouchFdnUpdateOrientation(){var t=jQuery("body");t.hasClass("smartphone")&&(document.body.clientWidth<480?(t.addClass("portrait").removeClass("landscape"),wptouchCreateCookie("wptouch-device-orientation","portrait",365)):(t.addClass("landscape").removeClass("portrait"),wptouchCreateCookie("wptouch-device-orientation","landscape",365))),t.hasClass("tablet")&&(document.body.clientWidth<1024?(t.addClass("portrait").removeClass("landscape"),wptouchCreateCookie("wptouch-device-orientation","portrait",365)):(t.addClass("landscape").removeClass("portrait"),wptouchCreateCookie("wptouch-device-orientation","landscape",365)))}function wptouchFdnDoDeviceAndOrientationListener(){jQuery(window).on("resize",function(){wptouchFdnUpdateDevice(),wptouchFdnUpdateOrientation()}).resize()}function wptouchFdnSetupBackToTopLinks(){jQuery("body").on("click",".back-to-top",function(t){jQuery("body, html").animate({scrollTop:jQuery("body").offset().top},550),t.preventDefault()})}function wptouchFdnSetupShowHideToggles(){jQuery(".show-hide-toggle").each(function(){var o=jQuery(this).attr("data-effect-target"),n=jQuery(this).attr("data-effect-close"),i=jQuery(this).prop("id");jQuery(this).on("click",function(t){if(void 0!==n){var e=jQuery("#"+n).attr("data-source-click");void 0!==e&&(jQuery("#"+e).removeClass("toggle-open"),jQuery("#"+n).data("data-source-click","")),jQuery("#"+n).hide()}jQuery(this).toggleClass("toggle-open"),jQuery(t.target).hasClass("menu-btn")&&jQuery(".pushit").hasClass("slideout-menu")||jQuery("#"+o).attr("data-source-click",i).webkitSlideToggle(),t.preventDefault(),jQuery(t.target).hasClass("menu-btn")&&jQuery(".pushit").hasClass("slideout-menu")&&"menu-toggle"==jQuery(this).attr("id")||t.stopImmediatePropagation()})})}function wptouchFdnSwitchToggle(){jQuery("#switch").on("click",".off",function(){jQuery(".on").removeClass("active"),jQuery(this).addClass("active")})}function wptouchFdnHandleShortcode(){navigator.standalone||jQuery(".wptouch-shortcode-mobile-only").show()}function wptouchFdnSetupjQuery(){jQuery.fn.opacityToggle=function(t,e,o){return this.animate({opacity:"toggle"},t,e,o)},jQuery.fn.webkitSlideToggle=function(){this.toggle()},jQuery.fn.viewportCenter=function(){return this.css("position","absolute"),this.css("top",(jQuery(window).height()-this.outerHeight())/3+jQuery(window).scrollTop()+"px"),this.css("left",(jQuery(window).width()-this.outerWidth())/2+jQuery(window).scrollLeft()+"px"),this},jQuery(function(){var t=1;jQuery("input, select, textarea").each(function(){"hidden"!=this.type&&(jQuery(this).attr("tabindex",t),t++)})})}function wptouchFdnSetupWPML(){var e=jQuery("#wpml-language-chooser select");e.length&&e.change(function(){var t=e.val();document.location.href=t})}function wptouchFdnBaseReady(){wptouchFdnEscFrames(),wptouchFdnIfFixed(),wptouchFdnBindBackButtons(),wptouchFdnBindFwdButtons(),wptouchFdnCenterImages(".post img, .wp-caption",105),wptouchFdnSetupSlideToggles(),wptouchFdnDoDeviceAndOrientationListener(),wptouchFdnSetupBackToTopLinks(),wptouchFdnSetupShowHideToggles(),wptouchFdnSwitchToggle(),wptouchFdnHandleShortcode(),wptouchFdnSetupjQuery(),wptouchFdnSetupWPML()}jQuery(document).ready(function(){wptouchFdnBaseReady()});
Save
Cancel