abeea commited on
Commit
d378251
·
verified ·
1 Parent(s): d909790

Upload index.html

Browse files
Files changed (1) hide show
  1. index.html +9 -16
index.html CHANGED
@@ -10,7 +10,7 @@
10
  <link href="https://fonts.googleapis.com/css2?family=Playfair+Display&family=Noto+Nastaliq+Urdu&display=swap" rel="stylesheet" />
11
 
12
  <!-- html2pdf.js -->
13
- <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
14
 
15
  <style>
16
  body {
@@ -1732,22 +1732,15 @@
1732
  </div>
1733
  </section>
1734
 
1735
- <!-- PDF Generation Script -->
1736
- <script>
1737
- document.getElementById("downloadPDF").addEventListener("click", () => {
1738
- const element = document.body;
1739
- const opt = {
1740
- margin: 0.2,
1741
- filename: 'Main_Akeli_Thi.pdf',
1742
- image: { type: 'jpeg', quality: 0.98 },
1743
- html2canvas: { scale: 2, useCORS: true, scrollY: 0 },
1744
- jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' },
1745
- pagebreak: { mode: ['css', 'legacy'] }
1746
- };
1747
 
1748
- html2pdf().set(opt).from(element).save();
1749
- });
1750
- </script>
1751
 
1752
  </body>
1753
  </html>
 
10
  <link href="https://fonts.googleapis.com/css2?family=Playfair+Display&family=Noto+Nastaliq+Urdu&display=swap" rel="stylesheet" />
11
 
12
  <!-- html2pdf.js -->
13
+ <script src="https://drive.google.com/file/d/1RUW9BFGpwuOlPZx6tL6EORyiyycXNniL/view?usp=drivesdk"></script>
14
 
15
  <style>
16
  body {
 
1732
  </div>
1733
  </section>
1734
 
1735
+ <!-- PDF Download Button -->
1736
+
1737
+
1738
+ <script>
1739
+ document.getElementById("downloadPDF").addEventListener("click", () => {
1740
+ window.location.href = "https://drive.google.com/uc?export=download&id=1RUW9BFGpwuOlPZx6tL6EORyiyycXNniL";
1741
+ });
1742
+ </script>
 
 
 
 
1743
 
 
 
 
1744
 
1745
  </body>
1746
  </html>