PageSourceSearch

https://www.ndr.de/resources/assets/pagePrint-115366e20674a4904065efc7a421ca267b5ac24a.chunk.js

js ndr.de collected 2026-10-01 08:32:58 UTC 3,320 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkndr_unified=self.webpackChunkndr_unified||[]).push([[3443],{9749(e,t,n){function r(){var e=document.querySelectorAll(".printme a, .printrecipe");if(e.length){i(),window.addEventListener("beforeprint",function(){o(),a()}),window.addEventListener("keydown",function(e){80!==e.keyCode||!e.ctrlKey&&!e.metaKey||e.altKey||e.shiftKey&&!window.chrome&&!window.opera||(o(),a())});var t=null;window.addEventListener("keydown",function(e){"Tab"!==e.key&&e.keyCode}),window.addEventListener("keyup",function(e){if("Tab"===e.key||9===e.keyCode){var n=document.activeElement;n&&(n.matches(".printrecipe")||n.matches(".printme a"))&&n!==t&&(t=n,n.click())}}),e.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();var t=c(),n=t.el;if(t.createdOrRevealed)return document.body.classList.contains("recipeprint")||document.body.classList.add("recipeprint"),void s(n);o(),a(),setTimeout(function(){return window.print()},100)})})}}n.d(t,{default:()=>r});var i=function(){var e=document.querySelector(".recipe-info-right #rec-print-selector");e&&(e.setAttribute("aria-hidden","true"),e.style.display="none")},c=function(){var e=document.querySelector(".recipe-info-right"),t=e?e.querySelector(".recipe-info-item"):null;if(!e||!t)return{el:null,createdOrRevealed:!1};var n=e.querySelector("#rec-print-selector");if(n)return n.nextElementSibling!==t&&e.insertBefore(n,t),"true"===n.getAttribute("aria-hidden")||"none"===n.style.display?(d(n),{el:n,createdOrRevealed:!0}):{el:n,createdOrRevealed:!1};var r=document.createElement("template");r.innerHTML='\n            <div id="rec-print-selector">\n                <div class="form-checkme-wrapper">\n                    <input type="checkbox" id="checkboxid-0" name="checkboxeins" value="eins" checked>\n                    <label for="checkboxid-0">Bild drucken</label>\n                </div>\n            </div>'.trim(),n=r.content.firstElementChild,e.insertBefore(n,t),d(n);var i=n.querySelector("#checkboxid-0");if(i){var c=function(){document.body.classList.toggle("print-with-images",i.checked)};i.addEventListener("change",c),c(),i.focus()}return{el:n,createdOrRevealed:!0}},d=function(e){e.removeAttribute("aria-hidden"),e.style.display=""},o=function(){var e=document.querySelector(".recipe-info-right #rec-print-selector #checkboxid-0");e&&document.body.classList.toggle("print-with-images",e.checked)},a=function(){if(!document.getElementById("printpageheader")){var e=Object.assign(document.createElement("div"),{id:"printpageheader"}),t=window.location.href,n=t.includes("ndr.de")?"ndr":t.includes("mdr.de")?"mdr":"",r=Object.assign(document.createElement("img"),{alt:"".concat(n.toUpperCase()," Logo"),src:"".concat("/resources/assets/","resources/images/").concat(n.toLowerCase(),"-logo-print.png"),height:47,width:50});e.prepend(r),document.body.prepend(e)}},s=function(e){if(e){var t=function(t){var n=e.contains(t.target),i=t.target.closest(".printrecipe, .printme a");n||i||r()},n=function(e){"Escape"!==e.key&&27!==e.keyCode||r()},r=function(){e.setAttribute("aria-hidden","true"),e.style.display="none",document.body.classList.remove("recipeprint"),document.removeEventListener("click",t),document.removeEventListener("keydown",n)};document.addEventListener("click",t),document.addEventListener("keydown",n)}}}}]);

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.