PageSourceSearch

https://www.elite-extensions.fr/themes/surily2/js/modules/blocknewsletter/blocknewsletter.js

js elite-extensions.fr collected 2026-09-25 07:18:02 UTC 1,776 bytes, 47 lines download raw bytes

1/*
2* 2007-2016 PrestaShop
3*
4* NOTICE OF LICENSE
5*
6* This source file is subject to the Academic Free License (AFL 3.0)
7* that is bundled with this package in the file LICENSE.txt.
8* It is also available through the world-wide-web at this URL:
9* http://opensource.org/licenses/afl-3.0.php
10* If you did not receive a copy of the license and are unable to
11* obtain it through the world-wide-web, please send an email
12* to [email protected] so we can send you a copy immediately.
13*
14* DISCLAIMER
15*
16* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
17* versions in the future. If you wish to customize PrestaShop for your
18* needs please refer to http://www.prestashop.com for more information.
19*
20*  @author PrestaShop SA <[email protected]>
21*  @copyright  2007-2016 PrestaShop SA
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
23*  International Registered Trademark & Property of PrestaShop SA
24*/
25$(document).ready(function() {
26
27    $('#newsletter-input').on({
28        focus: function() {
29            if ($(this).val() == placeholder_blocknewsletter || $(this).val() == msg_newsl)
30                $(this).val('');
31        },
32        blur: function() {
33            if ($(this).val() == '')
34                $(this).val(placeholder_blocknewsletter);
35        }
36    });
37
38	var cssClass = 'alert alert-danger';
39    if (typeof nw_error != 'undefined' && !nw_error)
40		cssClass = 'alert alert-success';
41
42    if (typeof msg_newsl != 'undefined' && msg_newsl)
43	{
44        $('#columns').prepend('<div class="clearfix"></div><p class="' + cssClass + '"> ' + alert_blocknewsletter + '</p>');
45		$('html, body').animate({scrollTop: $('#columns').offset().top}, 'slow');
46	}
47});

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.