Advertisement
nrzmalik

Storyline Custom TextArea Lib

Aug 13th, 2024 (edited)
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.43 KB | Source Code | 0 0
  1. const isScriptAlreadyIncluded = (src) => document.querySelector(`script[src="${src}"]`) !== null;
  2. const loadScript = (src) => {
  3.   if (!isScriptAlreadyIncluded(src)) {
  4.     const script = document.createElement('script');
  5.     script.src = src;
  6.     script.async = true;
  7.     document.head.appendChild(script);
  8.   }
  9. };
  10. const nrzTextArea = 'https://cdn.jsdelivr.net/gh/nrzmalik/nrzTextArea@latest/nrzTextAreaSL.js';
  11. loadScript(nrzTextArea);
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement