1const NewsletterPortrait = 1; 2const NewsletterLandscape = 2; 3/** 4 * Include this file in a script tag and this function is available as globally. 5 * 6 * @param {string} mointPoint the required elementId which this components binds to 7 * @param {int} display is NewsletterPortrait or NewsletterLandscape, default is optional and NewsletterPortrait 8 * @param {int|null} defaultNewsletterId an optional newsletter to begin with 9 * @returns void 10 */ 11async function loadNewsletterlib(mountPoint, display, defaultNewsletterId) { 12 const endpoint = '/newsletter-signup'; 13 const { NewsletterSignUp } = await import(endpoint + '/js/newsletterlib.js'); 14 if (display == null) { 15 display = NewsletterSignUp.PORTRAIT; 16 } 17 NewsletterSignUp.run(mountPoint, endpoint, display, defaultNewsletterId); 18}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.