Vorlage:BD-Satz-Kopf
Aus BogenWiki
(Unterschied zwischen Versionen)
Nugman (Diskussion | Beiträge) |
Nugman (Diskussion | Beiträge) |
||
| Zeile 170: | Zeile 170: | ||
var ebvEinAus = document.getElementById('bvEinAus'); | var ebvEinAus = document.getElementById('bvEinAus'); | ||
var isPrintMedia = window.matchMedia("print").matches; | var isPrintMedia = window.matchMedia("print").matches; | ||
| - | |||
console.log('isPrintMedia = ',isPrintMedia); | console.log('isPrintMedia = ',isPrintMedia); | ||
| + | const sQueryString = window.location.search; | ||
| + | const urlParams = new URLSearchParams(sQueryString); | ||
| + | var isPrintable = false; | ||
| + | if (urlParams.has('printable') | ||
| + | if (urlParams.get('printable') == 'yes') | ||
| + | isPrintable = true; | ||
| + | console.log('sQueryString = ',sQueryString); | ||
| + | console.log('isPrintable = ',isPrintable); | ||
if (ebvEinAus) { | if (ebvEinAus) { | ||
if (bvStatus > 0) { | if (bvStatus > 0) { | ||
Version vom 20:02, 24. Apr. 2022
Beschreibung
| ||||||||||||||||||||||||
Beispiele
| ||||||||||||||||||||||||
| Zurück zur Referenzliste der Vorlagen |
