diff --git a/assets/styles.css b/assets/styles.css index 8dec99a..03778ba 100644 --- a/assets/styles.css +++ b/assets/styles.css @@ -2,7 +2,7 @@ list-style-type: disc; /* Set bullet points as filled circles */ /* Add any additional styling here */ } - + .custom-list li { margin-left: 20px; /* Adjust the value as needed for indentation */ /* Add any additional styling for the li here */ @@ -58,4 +58,18 @@ 100% { transform: rotate(360deg); } -} \ No newline at end of file +} + +@media print { + + /* Hide specific elements from printing */ + .text-center > * { + display: none; + } + + /* Show content you want to include in the print version */ + .container, + .section { + display: block; + } + } \ No newline at end of file diff --git a/assets/utility.js b/assets/utility.js index 021c756..429acba 100644 --- a/assets/utility.js +++ b/assets/utility.js @@ -16,4 +16,12 @@ document.addEventListener('DOMContentLoaded', function() { var html = document.documentElement.outerHTML; var minifiedHTML = html.replace(/[\n\r]+|[\s]{2,}/g, ' ').replace(/> <'); document.documentElement.outerHTML = minifiedHTML; - }); \ No newline at end of file + }); + + // Function to handle printing +function printResume() { + window.print(); +} + + // Add an event listener to the print button +document.getElementById('printButton').addEventListener('click', printResume); \ No newline at end of file diff --git a/index.html b/index.html index 375c8e6..e0b535a 100644 --- a/index.html +++ b/index.html @@ -215,6 +215,11 @@

Download CV + +