fetch(viewsCacheL10n.admin_ajax_url,{method:"POST",credentials:'same-origin',headers:{'Content-Type':'application/x-www-form-urlencoded','Cache-Control':'no-cache',},body:new URLSearchParams({action:'postviews',nonce:viewsCacheL10n.nonce,postviews_id:viewsCacheL10n.post_id,cache:!1,}),}).then(function(response){return response.json();}).then(function(data){}).catch(function(error){console.log('WP-PostViews');console.log(error);});!function(){var t=jQuery;t(window).on("load",function(){var o,n,e,a,i,l,s,r,c;(o=wpfront_scroll_top_data.data).data.hide_iframe&&t(window).attr("self")!==t(window).attr("top")||(null!==o.css&&t("<style>").text(o.css).appendTo("head"),t("body").append(o.html),n=o.data,e=t("#wpfront-scroll-top-container"),a=!1,i=0,l=function(){clearTimeout(i),e.is(":visible")&&e.stop().fadeTo(n.button_fade_duration,0,function(){e.removeClass("show"),a=!1})},s=function(){n.auto_hide&&(clearTimeout(i),i=setTimeout(function(){l()},1e3*n.auto_hide_after))},r=!1,c=function(){r||(r=!0,t(window).scrollTop()>n.scroll_offset?(e.stop().css("opacity",a?1:n.button_opacity).addClass("show"),a||s()):l(),r=!1)},t(window).on("scroll",c),c(),e.on("mouseenter",function(){clearTimeout(i),a=!0,t(this).css("opacity",1)}).on("mouseleave",function(){t(this).css("opacity",n.button_opacity),a=!1,s()}).on("click",function(o){if("url"===n.button_action)return!0;if("element"===n.button_action){o.preventDefault();var e=t(n.button_action_element_selector).first(),a=t(n.button_action_container_selector),i=e.offset();if(null==i)return!1;var l=a.last().offset();if(null==l)return!1;n.button_action_element_offset=parseInt(n.button_action_element_offset),isNaN(n.button_action_element_offset)&&(n.button_action_element_offset=0);var s=i.top-l.top-n.button_action_element_offset;return a.animate({scrollTop:s},n.scroll_duration),!1}return o.preventDefault(),t("html, body").animate({scrollTop:0},n.scroll_duration),!1}))})}();