Файловый менеджер - Редактировать - /home/kunzqhe/photostocker/wp-content/themes/themify-ultra/themify/js/modules/sticky-buy.min.js
Назад
((c,$,h)=>{"use strict";const _=(e,t,s)=>{e.style.paddingBottom="show"===s?t.getBoundingClientRect().height+"px":""},n=(e,t,s)=>{const i=h.tfId("tf_sticky_form_wrap"),a=("hide"===s?t:h).querySelector("form.cart"),c=$(".variations_form");a&&("hide"===s?(i.appendChild(a),i.style.height=""):(i.style.height=a.getBoundingClientRect().height+"px",t.tfClass("product")[0].appendChild(a)),0<c.length&&c.trigger("check_variations"),_(e,t,s))};c.on("tf_sticky_buy_init",e=>{const t=h.querySelector("#content .product,.tbp_template.product"),s=t.classList.contains("tbp_template")?t:h.tfId("pagewrap"),i=h.createElement("div"),a=(i.id="tf_sticky_buy",i.className="tf_opacity tf_abs tf_w",t.after(i),c.on("tfsmartresize",()=>{_(s,i,i.classList.contains("tf_st_show")?"show":"hide")}),((e,t)=>{const s=h.createElement("div"),i=h.createElement("div"),a=h.createElement("div"),c=h.createElement("div"),n=e.querySelector("form.cart"),l=e.classList.contains("tbp_template")?e.querySelector(".module-product-title .tbp_title"):e.querySelector(".product_title"),o=e.tfClass("price")[0],d=e.tfClass("woocommerce-product-gallery__image")[0],r=h.tfId("tf_sticky_form_wrap");if(s.className="tf_box pagewidth clearfix",i.id=e.id,i.className=e.classList,a.className="tf_sticky_prod_img",void 0!==d){const p=h.createElement("div");p.className="images",p.appendChild(d.cloneNode(!0)),a.appendChild(p)}if(c.className="summary entry-summary",null!==l){const m=h.createElement("span");m.className=l.className,m.innerHTML=l.innerHTML,c.appendChild(m)}void 0!==o&&c.appendChild(o.cloneNode(!0)),a.appendChild(c),i.appendChild(a),r.style.height=n.getBoundingClientRect().height+"px",i.appendChild(n),s.appendChild(i),t.appendChild(s),_(e.classList.contains("tbp_template")?e:h.tfId("pagewrap"),t,"show")})(t,i),new IntersectionObserver(e=>{!e[0].isIntersecting&&e[0].boundingClientRect.top<0?(n(s,i,"show"),i.classList.add("tf_st_show")):(n(s,i,"hide"),i.classList.remove("tf_st_show"))}));a.observe(e)},!0)})(Themify,jQuery,document);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка