PageSourceSearch

https://www.lordbyronskitchen.com/wp-content/plugins/wp-recipe-mak…ublic-feature-recipe-submission.b4c0038e.js

js lordbyronskitchen.com collected 2026-10-02 06:55:53 UTC 1,510 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkWPRecipeMakerPublicSplit=self.webpackChunkWPRecipeMakerPublicSplit||[]).push([[576],{8462:(e,i,t)=>{var s;t.r(i),window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.submission={init(){const e=document.querySelector("#wprmprs_submit");e&&e.addEventListener("click",(e=>{this.onClickSubmit(e.target)}));const i=document.querySelectorAll('.wprm-recipe-submission input[type="file"]');for(let t of i)t.addEventListener("change",(e=>{this.checkFileSize(e.target)}))},onClickSubmit(e){e.form.reportValidity()&&(e.style.width=`${e.offsetWidth}px`,e.style.height=`${e.offsetHeight}px`,"inline"===getComputedStyle(e).display&&(e.style.display="inline-block"),e.style.opacity="0.5",e.value="...")},onSubmit:e=>!e.classList.contains("is-submitting")&&(e.classList.add("is-submitting"),!0),checkFileSize(e){const i=e.files;if(i.length){const t=i[0];let s=wprmp_public.recipe_submission.max_file_size;if(e.dataset.hasOwnProperty("maxSize")&&e.dataset.maxSize&&(s=parseInt(e.dataset.maxSize)),s<t.size){e.value="";const i=this.formatBytes(s);alert(wprmp_public.recipe_submission.text.image_size+" "+i)}}},formatBytes(e,i=2){if(0===e)return"0 Bytes";const t=i<0?0:i,s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(t))+""+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][s]}},s=()=>{window.WPRecipeMaker.submission.init()},"loading"!=document.readyState?s():document.addEventListener("DOMContentLoaded",s)}}]);

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.