Файловый менеджер - Редактировать - /var/www/biopower/html/wp-content/plugins/jetpack/_inc/blocks/recipe/view.js
Назад
(()=>{var e={79366:(e,t,n)=>{"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},98490:e=>{"use strict";e.exports=window.wp.domReady}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var i=r.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=r[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"})(),(()=>{"use strict";n(79366)})(),(()=>{"use strict";var e=n(98490),t=n.n(e);class r{constructor(e){this.block=e,this.style=document.createElement("style"),this.initRecipePrint()}getPrintBtns(){return this.block.querySelectorAll(".wp-block-jetpack-recipe-details__detail--print .wp-block-button__link")}removeStyles(){window.onfocus=()=>{document.head.contains(this.style)&&document.head.removeChild(this.style)}}initRecipePrint(){this.getPrintBtns().forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.style.id="jetpack-recipe-block-print-style",this.style.innerHTML="\n @media print {\n .wp-site-blocks > header,\n .wp-site-blocks > footer,\n .wp-site-blocks > main > *:not(.wp-block-post-content),\n .wp-site-blocks > main > .wp-block-post-content > *:not(.wp-block-jetpack-recipe),\n .wp-block-jetpack-recipe-details__detail--print {\n display: none;\n }\n \n .wp-block-jetpack-recipe-details {\n display: grid;\n gap: 1rem;\n margin-bottom: 6rem;\n margin-top: 1.75rem;\n grid-template-columns: repeat(auto-fit, minmax(100px, 150px));\n }\n \n .wp-block-jetpack-recipe-details__detail {\n font-size: 0.875rem;\n margin-inline-end: 1rem;\n padding-right: 1rem;\n text-align: center;\n }\n \n .wp-block-jetpack-recipe-details__detail:not(:last-child) {\n border-right: 1px solid currentColor;\n }\n \n .wp-block-jetpack-recipe-details__detail p {\n margin: 0;\n text-transform: uppercase;\n }\n \n .wp-block-jetpack-recipe-details__detail p:first-child {\n font-size: 0.75rem;\n color: #555;\n }\n \n .wp-block-jetpack-recipe-step {\n counter-increment: list;\n list-style-type: none;\n position: relative;\n padding-bottom: 1rem;\n }\n \n .wp-block-jetpack-recipe-step::before {\n align-items: center;\n background-color: var(--step-highlight-color);\n border-radius: 50%;\n color: var(--step-text-color);\n content: counter(list);\n display: flex;\n font-size: 0.875rem;\n height: 28px;\n justify-content: center;\n left: -2.5rem;\n line-height: 1;\n position: absolute;\n text-align: center;\n width: 28px;\n }\n \n .wp-block-jetpack-recipe-step p {\n margin: 0;\n }\n }\n ",document.head.appendChild(this.style),window.print()}))})),this.removeStyles()}}t()((()=>{document.querySelectorAll(".wp-block-jetpack-recipe").forEach((e=>new r(e)))}))})()})();
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка