Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Oct 13, 2024
1 parent bf7834e commit a9d7b7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ document.addEventListener('DOMContentLoaded', () => {

// פונקציה ליצירת PDF מהתוכן הנבחר
function generatePDF() {
const { jsPDF } = window.jspdf; // ייבוא jsPDF מהמודול של הספרייה
const activeSection = document.querySelector('.content-section.active');
const pdf = new jsPDF('p', 'pt', 'a4');
pdf.html(activeSection, {
Expand Down

0 comments on commit a9d7b7b

Please sign in to comment.