A simple static CV viewer with an embedded PDF preview and a one-click download button.
- In-browser PDF preview using the element (see index.html).
- Download button wired to the
fileUrlconstant in script.js. - Responsive layout via style.css.
- Place the PDF in the project root: Resume of Jubayer Alam Likhon.pdf.
- Open index.html in your browser to view the embedded resume.
- Click the "Download CV" button (element id:
#downloadBtn) to download the PDF.
- To change which file is downloaded, edit the
fileUrlconstant in script.js. - To change the displayed file, edit the
srcattribute of the in index.html. - Styling is in style.css.
- index.html — main page and embedded PDF.
- script.js — download button handler (see
fileUrl). - style.css — page styles and responsive rules.
- Resume of Jubayer Alam Likhon.pdf — the resume PDF.
- If the preview is blank, confirm the PDF filename exactly matches the embed
srcand that your browser allows local PDF previews. - If download doesn't start, open the DevTools console to check for file path or permission errors.
Use and modify freely.