PageSourceSearch

https://webnewsing.com/wp-content/themes/smart-mag/js/float-share_ver-9.1.0.js

js webnewsing.com collected 2026-10-04 13:10:33 UTC 2,926 bytes, 16 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opens = _____WB$wombat$assign$function_____("opens");
10/**
11 * Floating/Sticky Social Share.
12 * @copyright ThemeSphere
13 * @preserve
14 */
15"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()});
16}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.