PageSourceSearch

https://www.vitaepensiero.it/js/login_ver2.js

js vitaepensiero.it collected 2026-09-24 09:14:59 UTC 4,747 bytes, 144 lines download raw bytes

1// Login
2$(document).ready(function(){
3
4    //*/ submit handler
5    $("#id_form_login").submit( function() {
6        var _data_serialized = $("#id_form_login").serialize();
7        $.post(
8            "/ajax/do_login.php",
9            _data_serialized,
10            function(data) {
11                var div_for_error_msg = $("#login_error_msg");
12
13                if (data.stato == true) {
14                    div_for_error_msg.html('');
15                    div_for_error_msg.css('display','none');
16                    window.location.href = window.location;
17                } else {
18                    if( data.msg != '' ){
19                        div_for_error_msg.html( data.msg );
20                    }else{
21                        //div_for_error_msg.html('<?php echo _("Email o password errate") ?>');
22                        div_for_error_msg.html('Email o password errate');
23                    }
24                    div_for_error_msg.css('display','');
25                }
26            },
27            'json'
28        );
29
30        return false;
31    });
32
33});
34
35// Richiesta password dimenticata
36$(document).ready(function(){
37    $(document).ajaxStart(function(){
38        $("#login_loader_screen").show();
39    });
40    $(document).ajaxStop(function(){
41        $("#login_loader_screen").hide();
42    });
43
44    //*/ submit handler
45    $("#id_form_forgot_pwd").submit( function() {
46
47        var _email = $('#forgot_pwd_email').val();
48
49        $.getJSON(
50            "/ajax/password_dimenticata_richiesta.php",
51            {email: _email},
52            function(data) {
53                switch( data.stato ) {
54                    case -1:
55                        // Campo email vuoto
56                        $("#login_error_msg").html("Campo email vuoto");
57                        $("#login_error_msg").css('display','');
58                        break
59                    case -2:
60                        //Email non valida
61                        $("#login_error_msg").html("Email non valida");
62                        $("#login_error_msg").css('display','');
63                        break;
64                    case -3:
65                        //Email non valida
66                        $("#login_error_msg").html("Account non ancora attivato");
67                        $("#login_error_msg").css('display','');
68                        break;
69                    case 1:
70                        $("#login_error_msg").html("Ti abbiamo inviato una email per confermare la richiesta");
71                        $("#login_error_msg").css('display','');
72                        $('#btn_form_formgot_pwd').attr('disabled','disabled').css('opacity','.3');
73                        $('#modal_dialog_from_login').addClass('passwordSent');
74                        break;
75
76                }
77            }
78        );
79
80        return false;
81    });
82});
83
84$(function(){
85
86    $('#modal_dialog_from_login').dialog({
87        autoOpen: false,
88        width: 480,
89        modal: true,
90        resizable: false,
91        draggable: false,
92        zIndex: 5000,
93        buttons: false,
94        close: function() {
95            if(get_browser().name == 'msie') {
96                if (get_browser().version <= 6) {
97                    $('iframe.form_select_item').css('display','');
98                }
99            }
100            $('iframe.youtubeIframe').removeClass('displayNone');
101            $("#login_error_msg").html('');
102            $("#login_error_msg").css('display','none');
103        }
104
105    });
106
107
108
109    $('#forgot_pwd').click(function() {
110        $('#password_dimenticata_layer').css('display','');
111        $('#login_form_layer').css('display','none');
112        $("#login_error_msg").html('');
113        $("#login_error_msg").css('display','none');
114        $("#btn_form_formgot_pwd").removeAttr('disabled').css('opacity','1');
115        $('#modal_dialog_from_login').removeClass('passwordSent');
116    });
117
118    $('#backto_login_link').click(function() {
119        $('#password_dimenticata_layer').css('display','none');
120        $('#login_form_layer').css('display','');
121        $("#login_error_msg").html('');
122        $("#login_error_msg").css('display','none');
123    });
124
125});
126
127function openLoginForm(form_type) {
128    $('#modal_dialog_from_login').dialog('open');
129    if(get_browser().name == 'msie') {
130        if (get_browser().version <= 6) {
131            $('.form_select_item').css('display','none');
132        }
133    }
134    if (form_type == 'forgot_pwd') {
135        $('#login_form_layer').css('display','none');
136        $('#password_dimenticata_layer').css('display','');
137    } else {
138        $('#login_form_layer').css('display','');
139        $('#password_dimenticata_layer').css('display','none');
140    }
141    $("#login_error_msg").html('');
142    $("#login_error_msg").css('display','none');
143}
144

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.