Advertisement
nrzmalik

jsPDF Library in Articulate Storyline

Mar 12th, 2023 (edited)
1,139
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.38 KB | Source Code | 1 0
  1. function addJsPDF(callback) {
  2.   if (typeof jsPDF === 'undefined') {
  3.     var confettiScript = document.createElement('script');
  4.     confettiScript.src = 'https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js';
  5.     confettiScript.async = true;
  6.     confettiScript.onload = callback;
  7.     document.head.appendChild(confettiScript);
  8.   } else {
  9.     callback();
  10.   }
  11. }
  12. addJsPDF();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement