Файловый менеджер - Редактировать - /home/kunzqhe/www/wp-content/themes/themify-ultra/themify/js/modules/sticky-buy.min.js
Назад
'use strict';(function(g,l,c){const q=function(a,b){const e=c.createElement("div"),d=c.createElement("div"),f=c.createElement("div"),k=c.createElement("div"),g=a.querySelector("form.cart"),h=a.querySelector(".product_title"),n=a.querySelector(".price"),p=a.getElementsByClassName("woocommerce-product-gallery__image"),l=c.getElementById("tf_sticky_form_wrap");e.className="tf_box pagewidth clearfix";d.id=a.id;d.className=a.classList;f.className="tf_sticky_prod_img";p[0]&&(a=c.createElement("div"),a.className= "images",a.appendChild(p[0].cloneNode(!0)),f.appendChild(a));k.className="summary entry-summary";null!==h&&k.appendChild(h.cloneNode(!0));null!==n&&k.appendChild(n.cloneNode(!0));f.appendChild(k);d.appendChild(f);l.style.height=g.getBoundingClientRect().height+"px";d.appendChild(g);e.appendChild(d);b.appendChild(e);m(b,"show")},h=function(a,b){const e=c.getElementById("tf_sticky_form_wrap"),d="hide"===b?a.querySelector("form.cart"):c.querySelector("form.cart"),f=l(".variations_form");d&&("hide"=== b?(e.appendChild(d),e.style.height=""):(e.style.height=d.getBoundingClientRect().height+"px",a.getElementsByClassName("product")[0].appendChild(d)),0<f.length&&f.trigger("check_variations"),m(a,b))},m=function(a,b){c.getElementById("pagewrap").style.paddingBottom="show"===b?a.getBoundingClientRect().height+"px":""};g.on("tf_sticky_buy_init",function(a,b){g.on("tfsmartresize",function(){m(b,b.classList.contains("tf_st_show")?"show":"hide")});q(a,b);(new window.IntersectionObserver(function(a){!a[0].isIntersecting&& 0>a[0].boundingClientRect.top?(h(b,"show"),b.classList.add("tf_st_show")):(h(b,"hide"),b.classList.remove("tf_st_show"))})).observe(c.getElementById("tf_sticky_buy_observer"))},!0)})(Themify,jQuery,document);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка