{"product_id":"barnyard-bagel-co","title":"Barnyard Bagel Co.","description":"\u003cbody\u003e \n\n\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n    \u003cstyle\u003e\n        body, html {\n            margin: 0;\n            padding: 0;\n            width: 100%;\n            height: 150%;\n            overflow: hidden; \/* Prevents scrolling on body *\/\n        }\n        #page-schedule-log {\n            position: fixed;\n            top: 0;\n            left: 0;\n            width: 100%;\n            height: 100%;\n            z-index: 9999; \/* Ensure it overlaps everything *\/\n            overflow: auto; \/* Allow scrolling *\/\n        }\n        #page-schedule-log::-webkit-scrollbar {\n            width: 0; \/* Remove scrollbar space *\/\n            background: transparent; \/* Optional: just to ensure it's invisible *\/\n        }\n        #page-schedule-log {\n            -ms-overflow-style: none;  \/* IE and Edge *\/\n            scrollbar-width: none;  \/* Firefox *\/\n        }\n        #fillout-embed {\n            width: 100%;\n            height: 200vh; \/* Set a large height to ensure content is fully visible *\/\n            box-sizing: border-box; \/* Ensure padding and borders are included in the width and height *\/\n        }\n    \u003c\/style\u003e\n\n\n    \u003cdiv id=\"page-schedule-log\"\u003e\n        \u003cdiv id=\"fillout-embed\" data-fillout-id=\"w7PB44o6Jaus\" data-fillout-embed-type=\"standard\" data-fillout-inherit-parameters data-fillout-dynamic-resize data-deliverystarttime=\"\" data-deliverydate=\"\" data-futuretime=\"\" data-cleanstarttime=\"\"\u003e\u003c\/div\u003e\n    \u003c\/div\u003e\n    \u003cscript\u003e\n        \/\/ Function to format the current time in military time (HH:mm)\n        function getCurrentFormattedTime() {\n            const now = new Date();\n            now.setMinutes(now.getMinutes() + 30);\n            const hours = String(now.getHours()).padStart(2, '0');\n            const minutes = String(now.getMinutes()).padStart(2, '0');\n            return `${hours}:${minutes}`;\n        }\n\n        \/\/ Function to format the current date as \"YYYY-MM-DD\"\n        function getCurrentFormattedDate() {\n            const now = new Date();\n            const year = now.getFullYear();\n            const month = String(now.getMonth() + 1).padStart(2, '0');\n            const day = String(now.getDate()).padStart(2, '0');\n            return `${month}-${day}-${year}`;\n        }\n\n        \/\/ Function to format the local device time zone in a pretty time zone name\n        function getPrettyTimeZone() {\n            const now = new Date();\n            const timeZoneName = Intl.DateTimeFormat(undefined, { timeZoneName: 'long' }).format(now);\n            \/\/ Remove numbers, commas, and slashes from the time zone name\n            const cleanedTimeZoneName = timeZoneName.replace(\/[0-9,\\\/]\/g, '').trim();\n            return cleanedTimeZoneName;\n        }\n\n        \/\/ Function to format time in military time (HH:mm)\n        function formatTime(time) {\n            const hours = String(time.getHours()).padStart(2, '0');\n            const minutes = String(time.getMinutes()).padStart(2, '0');\n            return `${hours}:${minutes}`;\n        }\n\n        \/\/ Function to format the current time in \"h:mm A\" format\n        function formatTimeInAMPM() {\n            const now = new Date();\n            now.setMinutes(now.getMinutes() + 40);\n            const hours = now.getHours();\n            const minutes = String(now.getMinutes()).padStart(2, '0');\n            const ampm = hours \u003e= 12 ? 'PM' : 'AM';\n            const formattedHours = hours % 12 || 12; \/\/ Convert to 12-hour format\n            return `${formattedHours}:${minutes} ${ampm}`;\n        }\n\n        \/\/ Set the data attributes with the appropriate values\n        const deliveryElement = document.querySelector('[data-fillout-id=\"w7PB44o6Jaus\"]');\n        deliveryElement.setAttribute('data-deliverystarttime', getCurrentFormattedTime());\n        deliveryElement.setAttribute('data-deliverydate', getCurrentFormattedDate());\n        deliveryElement.setAttribute('data-timezone', getPrettyTimeZone());\n\n        const futureTime = new Date();\n        futureTime.setHours(futureTime.getHours() + 2);\n        futureTime.setMinutes(futureTime.getMinutes() + 1);\n        deliveryElement.setAttribute('data-futuretime', formatTime(futureTime));\n        deliveryElement.setAttribute('data-cleanstarttime', formatTimeInAMPM());\n\n        \/\/ Load the Fillout embed script\n        const script = document.createElement('script');\n        script.src = 'https:\/\/server.fillout.com\/embed\/v1\/';\n        document.body.appendChild(script);\n    \u003c\/script\u003e\n\n\u003c\/body\u003e","brand":"UniHop","offers":[{"title":"Default Title","offer_id":45905486184665,"sku":"Barnyard Bagel Co","price":0.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0588\/2701\/4335\/files\/Barnyard_Bagel_Co._-_UniHop_Delivery_Shopping-5837373.jpg?v=1732292044","url":"https:\/\/unihop.myshopify.com\/products\/barnyard-bagel-co","provider":"UniHop","version":"1.0","type":"link"}