PageSourceSearch

https://manodelfriki.com/modules/gdprpro//views/js/newsletter.js

js manodelfriki.com collected 2026-10-04 13:24:40 UTC 898 bytes, 28 lines download raw bytes

1/**
2 * PrestaChamps
3 *
4 * NOTICE OF LICENSE
5 *
6 * This source file is subject to the Commercial License
7 * you can't distribute, modify or sell this code
8 *
9 * DISCLAIMER
10 *
11 * Do not edit or add to this file
12 * If you need help please contact [email protected]
13 *
14 * @author    PrestaChamps <[email protected]>
15 * @copyright PrestaChamps
16 * @license   commercial
17 */
18function htmlDecode(input) {
19    var e = document.createElement('div');
20    e.innerHTML = input;
21    return e.childNodes.length === 0 ? "" : e.childNodes[0].nodeValue;
22}
23
24$(document).ready(function () {
25    var container = $("<div class='ps-17-newsletter-checkbox'><input name='gdpr_consent_chkbox' type='checkbox' value='1' required></div>");
26    $(container).append("<label>" + htmlDecode(gdprSettings.newsletterConsentText) + "</label>");
27    $('input[name=submitNewsletter][type=submit]').parent().append(container);
28});

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.