This commit is contained in:
2025-12-14 10:31:47 +08:00
parent d523761595
commit 0107c33e7d
6 changed files with 29 additions and 7 deletions

View File

@@ -1,6 +1,28 @@
<iframe
src="cv.pdf"
width="100%"
height="600px"
style="border: none;">
</iframe>
<div class="pdf-container" onclick="openPdfFullscreen('/cv_tiny.pdf')">
<iframe
src="/cv_tiny.pdf#view=FitH"
width="100%"
height="600px"
style="border: none;">
</iframe>
</div>
<script>
function openPdfFullscreen(pdfUrl) {
// 打开新窗口,尝试全屏
const features = `
width=${screen.width},
height=${screen.height},
left=0,
top=0,
scrollbars=yes,
resizable=yes,
fullscreen=yes
`;
window.open(pdfUrl, '_blank', features);
// 备选方案直接打开PDF
// window.open(pdfUrl, '_blank');
}
</script>

Binary file not shown.

BIN
content/aboutme/cv_tiny.pdf Normal file

Binary file not shown.