'); printWindow.document.close();setTimeout(function() { printWindow.print();history.replaceState(null, '', window.location.pathname + window.location.search); }, 200); } function triggerXrisosPrint() { var printContents = document.querySelector('.xrisosxorigos').innerHTML;var printWindow = window.open('', '_blank'); printWindow.document.write('ΧΡΥΣΟΣ ΧΟΡΗΓΟΣ');printWindow.document.write('');printWindow.document.write(''); printWindow.document.write('
' + printContents + '
'); printWindow.document.write(''); printWindow.document.close();setTimeout(function() { printWindow.print();history.replaceState(null, '', window.location.pathname + window.location.search); }, 200); } function triggerArgirosPrint() { var printContents = document.querySelector('.argirosxorigos').innerHTML;var printWindow = window.open('', '_blank'); printWindow.document.write('ΑΡΓΥΡΟΣ ΧΟΡΗΓΟΣ');printWindow.document.write('');printWindow.document.write(''); printWindow.document.write('
' + printContents + '
'); printWindow.document.write(''); printWindow.document.close();setTimeout(function() { printWindow.print();history.replaceState(null, '', window.location.pathname + window.location.search); }, 200); } function triggerPatientPrint() { var printContents = document.querySelector('.patientxorigos').innerHTML;var printWindow = window.open('', '_blank'); printWindow.document.write('ΥΠΟΣΤΗΡΙΚΤΗΣ PATIENT INITIATIVE AWARD');printWindow.document.write('');printWindow.document.write(''); printWindow.document.write('
' + printContents + '
'); printWindow.document.write(''); printWindow.document.close();setTimeout(function() { printWindow.print();history.replaceState(null, '', window.location.pathname + window.location.search); }, 200); } function triggerSimplePrint() { var printContents = document.querySelector('.simplexorigos').innerHTML;var printWindow = window.open('', '_blank'); printWindow.document.write('ΑΠΛΟΣ ΧΟΡΗΓΟΣ');printWindow.document.write('');printWindow.document.write(''); printWindow.document.write('
' + printContents + '
'); printWindow.document.write(''); printWindow.document.close();setTimeout(function() { printWindow.print();history.replaceState(null, '', window.location.pathname + window.location.search); }, 200); } function triggerRestPrint() { var printContents = document.querySelector('.restxorigos').innerHTML;var printWindow = window.open('', '_blank'); printWindow.document.write('ΛΟΙΠΕΣ ΧΟΡΗΓΙΕΣ');printWindow.document.write('');printWindow.document.write(''); printWindow.document.write('
' + printContents + '
'); printWindow.document.write(''); printWindow.document.close();setTimeout(function() { printWindow.print();history.replaceState(null, '', window.location.pathname + window.location.search); }, 200); } if (window.location.hash === '#triggerPlatineniosPrint') { triggerPlatineniosPrint(); } else if(window.location.hash === '#triggerXrisosPrint') { triggerXrisosPrint(); } else if(window.location.hash === '#triggerArgirosPrint') { triggerArgirosPrint(); } else if(window.location.hash === '#triggerPatientPrint') { triggerPatientPrint(); } else if(window.location.hash === '#triggerSimplePrint') { triggerSimplePrint(); } else if(window.location.hash === '#triggerRestPrint') { triggerRestPrint(); } window.addEventListener('hashchange', () => { if (window.location.hash === '#triggerPlatineniosPrint') { triggerPlatineniosPrint(); } else if (window.location.hash === '#triggerXrisosPrint') { triggerXrisosPrint(); } else if (window.location.hash === '#triggerArgirosPrint') { triggerArgirosPrint(); } else if(window.location.hash === '#triggerPatientPrint') { triggerPatientPrint(); } else if(window.location.hash === '#triggerSimplePrint') { triggerSimplePrint(); } else if(window.location.hash === '#triggerRestPrint') { triggerRestPrint(); } }); });