assets/js/preview.js

Last modified Fri Jan 1 15:07:04 UTC 2021



// preview helpers

function showPreview() {
	window.document.getElementById("previewText").style.display = "block";
}

function closePreview() {
	window.close();
}

document.getElementById("previewButton").addEventListener("click", showPreview);

document.getElementById("closeButton").addEventListener("click", closePreview);