X7ROOT File Manager
Current Path:
/home/notabjze/hourglass.life/wp-content/themes/smart-mag/js
home
/
notabjze
/
hourglass.life
/
wp-content
/
themes
/
smart-mag
/
js
/
ðŸ“
..
ðŸ“
admin
📄
float-share.js
(2.15 KB)
📄
jquery.flexslider-min.js
(21.13 KB)
📄
jquery.mfp-lightbox.js
(19.74 KB)
📄
jquery.slick.js
(52.14 KB)
📄
jquery.sticky-sidebar.js
(12.12 KB)
📄
lazyload.js
(8.91 KB)
📄
legacy-shortcodes.js
(1.12 KB)
📄
micro-modal.js
(6.81 KB)
📄
rtl-jquery.flexslider-min.js
(21.81 KB)
📄
theme.js
(51.07 KB)
Editing: float-share.js
/** * Floating/Sticky Social Share. * @copyright ThemeSphere * @preserve */ "use strict";Bunyad.floatShare=function(d){function e(s){let a=0;if(!(d(window).width()<768)){if(!d(s).closest(".no-sidebar").length&&!d(s).closest(".the-post-modern").length){const t=d(s).closest(".the-post"),e=t.find(".the-post-header");a=e.length?e.position().top:0}var r=[];d([".the-post-modern .alignfull",".the-post-modern .alignwide",".the-post-modern .gallery:not(.aligncenter)",".the-post-modern .wp-block-gallery:not(.aligncenter)",".the-post-modern figure.alignnone",".the-post-modern img.alignnone"].join(",")).each(function(){r.push(this)}),d(window).on("scroll",function(){var t,e,n=!1,o=s.find("> .inner").get(0);if(d(window).scrollTop()<a)n=!0;else for(var i in r)if(t=o,e=r[i],t=t.getBoundingClientRect(),e=e.getBoundingClientRect(),!(t.top>e.bottom||t.right<e.left||t.bottom<e.top||t.left>e.right)){n=!0;break}requestAnimationFrame(()=>{n?s.addClass("is-hidden"):s.removeClass("is-hidden")})})}}return{init:function(){d(".post-share-float").length&&(d(window).on("resize load resize.TSS",this.sticky),document.addEventListener("spc-alp-loaded",this.sticky),"complete"!==document.readyState||this.sticky())},sticky:function(){if(window.innerWidth<768)return!1;var o=parseInt(window.getComputedStyle(document.documentElement).getPropertyValue("--main-width"));d(".has-share-float").each(function(){const t=d(this);if(o+110>document.documentElement.clientWidth)t.addClass("has-share-float-in");else{t.removeClass("has-share-float-in");var e=(window.innerWidth-o)/2;const n=t.find(".post-share-float");e<110?n.addClass("post-share-float-vp"):n.removeClass("post-share-float-vp")}});var i=25;i+=d(".admin-bar").length?32:0,d(".post-share-float").each(function(){if(!d(this).data("init")){d(this).data("init",!0),e(d(this));const n=d(this).find("> .inner");d(document).on("sticky-bar-show",()=>{var t=d(".smart-head-sticky");let e=0;t.length&&(t=window.getComputedStyle(t[0]).getPropertyValue("--head-h"),e=parseInt(t)-10),n.css("top",i+e+"px")});var t=()=>n.css("top",i+"px");d(document).on("sticky-bar-hide",t),t()}})}}}(jQuery),jQuery(function(t){t("body").hasClass("single-post")&&Bunyad.floatShare.init()});
Upload File
Create Folder