PageSourceSearch

https://www.motonline.it/js/custom_ntt_not_isolated.js

js motonline.it collected 2026-10-10 01:02:29 UTC 3,534 bytes, 104 lines download raw bytes

1
2function EnableButtonRicambi() {
3
4    let marca = $('#optMarca').val();
5    let modello = $('#optModello').val();
6    let anno = $('#optAnno').val();
7    if ((marca !== undefined && marca !== null && marca.length > 0)
8        && (modello !== undefined && modello !== null && modello.length > 0)
9        && (anno !== undefined && anno !== null && anno.length > 0)) {
10        $('#targaInput').val("");
11        $('#targaInput').addClass('button-disabled');
12        $('#lnkButtonRicercaModello').removeClass('button-disabled');
13    }
14    else {
15        $('#lnkButtonRicercaModello').addClass('button-disabled');
16    }
17}
18
19$(document).on('input', '#targaInput', function () {
20    let targa = $('#targaInput').val();
21    if (targa !== undefined && targa !== null && targa.length > 0) {
22        $('#optMarca').attr('disabled', true);
23        $('#optModello').attr('disabled', true);
24        $('#optAnno').attr('disabled', true);
25        $('#optMarca').val("");
26        $('#optModello').val("");
27        $('#optAnno').val("");
28        $('#lnkButtonRicercaModello').addClass('button-disabled');
29        $('#optAnnoTarga').attr('disabled', false);
30    }
31    else {
32        $('#optMarca').attr('disabled', false);
33        $('#optModello').attr('disabled', false);
34        $('#optAnno').attr('disabled', false);
35        $('#lnkButtonRicercaModello').removeClass('button-disabled');
36    }
37});
38
39$(document).on('change', '#optMarca', function () {
40    let marca = $('#optMarca').val();
41    if (marca !== undefined && marca !== null && marca.length > 0) {
42        $('#targaInput').val("");
43        $('#targaInput').addClass('button-disabled');
44        EnableButtonRicambi();
45    }
46    else {
47        $('#targaInput').removeClass('button-disabled');
48        $('#optAnnoTarga').attr('disabled', false);
49        $('#lnkButtonRicercaModello').addClass('button-disabled');
50    }
51});
52
53$(document).on('change', '#optModello', function () {
54    let modello = $('#optModello').val();
55    if ((modello !== undefined && modello !== null && modello.length > 0)) {
56        $('#targaInput').val("");
57        $('#targaInput').addClass('button-disabled');
58        EnableButtonRicambi();
59    }
60    else {
61        $('#targaInput').removeClass('button-disabled');
62        $('#lnkButtonRicercaModello').addClass('button-disabled');
63    }
64});
65
66$(document).on('change', '#optAnno', function () {
67    let anno = $('#optAnno').val();
68    if (anno !== undefined && anno !== null && anno.length > 0) {
69        $('#targaInput').val("");
70        $('#targaInput').addClass('button-disabled');
71        EnableButtonRicambi();
72    }
73    else {
74        $('#targaInput').removeClass('button-disabled');
75        $('#lnkButtonRicercaModello').addClass('button-disabled');
76    }
77});
78
79$(document).on('click', '.foto-profilo', function () {
80    var x = document.getElementById("containerimgUpload");
81    if (x.style.display === "none") {
82
83        x.style.display = "block";
84
85        var $hid = $('#upload-demo')
86
87        $hid.croppie('bind');
88
89    } else {
90        x.style.display = "none";
91    }
92});
93
94$(document).on('click', '.close-sidebar-left', function () {
95    $('.leftbar-desk').hide("slide", { direction: "left" }, 300, 'easeInOutQuint');
96});
97
98$(document).on('mouseleave', '.moveout-close-sidebar-left', function () {
99    $('.leftbar-desk').hide("slide", { direction: "left" }, 300, 'easeInOutQuint');
100});
101
102//$(document).on('mouseleave', '.moveout-close-sidebar-right', function () {
103//    $('.rightbar-desk').hide("slide", { direction: "right" }, 300, 'easeInOutQuint');
104//});

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.