PageSourceSearch

https://www.poste.it/assets-custom/oneweb-js/cerca.js

js poste.it collected 2026-09-24 08:26:33 UTC 1,654 bytes, 44 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function() {
2
3    $('#button-servizio-cerca').click(function() {
4        searchspedizioni($('#input-servizio-cerca'));
5    });
6    $('#input-servizio-cerca').keypress(function(ev) {
7        var keycode = (ev.keyCode ? ev.keyCode : ev.which);
8        if ('13' == keycode) { searchspedizioni(this); }
9    });
10    $('#button-servizio-cerca-xs').click(function() {
11        searchspedizioni($('#input-servizio-cerca-xs'));
12    });
13    $('#input-servizio-cerca-xs').keypress(function(ev) {
14        var keycode = (ev.keyCode ? ev.keyCode : ev.which);
15        if ('13' == keycode) { searchspedizioni(this); }
16    });
17
18    function searchspedizioni(element) {        
19        var input = $(element).val();
20        if (input) {
21            var loc = "/cerca-nel-sito/?search="+encodeURIComponent(input.replace("/", "%2F"));
22            if($(element).attr("data-faq") == 'true'){
23                loc = loc + "&filter=faq";
24            }
25            if(typeof Webtrends !== 'undefined' && typeof Webtrends.multiTrack !== 'undefined'){
26                setTimeout(function() {
27                    window.location.href = loc;
28                }, 120);
29
30                Webtrends.multiTrack({
31                    argsa: ["DCSext.ricerca_sped_da_hp", 1, "WT.dl", 2016],
32                    delayTime: 20, //delay returning to the caller by 20 milliseconds
33                    callback: function (a) {
34                        window.location.href = loc;
35                    }
36                });
37            }
38            else{
39                window.location.href = loc;
40            }
41        }
42        return false;
43    }
44});

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.