PageSourceSearch

https://henbuk.com/assets/js/resetpassword.js

js henbuk.com collected 2026-10-08 03:29:20 UTC 2,956 bytes, 76 lines download raw bytes

1$(document).ready(function () {
2    // visible password
3    new visiblePassword('#show-password', '#password');
4    new visiblePassword('#show-password', '#password2');
5    $('#form-reset').submit(function (e) {
6        e.preventDefault();
7
8        let formData = new FormData(this);
9        let url = $('#submit-url').val();
10
11        new ajaxPost(url, formData, '#btn-submit')
12            .done(function (response) {
13                if (response.success == false) {
14                    let error = '<div class="alert alert-danger text-left alert-dismissible fade show" role="alert">\n' +
15                        response.message +
16                        '</div>';
17
18                    $('.error-message').fadeIn().empty().html(error);
19                    setTimeout(function() {
20                        $('.error-message').hide().empty();
21                    }, 3000);
22                }else {
23                    
24                    let error = '<div class="alert alert-success text-left alert-dismissible fade show" role="alert">\n' +
25                        response.message +
26                        '</div>';
27
28                    $('.success-message').fadeIn().empty().html(error);
29                    setTimeout(function() {
30                        $('.success-message').hide().empty();
31                    }, 3000);
32                    setTimeout(function() {
33                        location.href = response.redirect;
34                    }, 2000);
35                }
36                $('#form-reset')[0].reset();
37            });
38    });
39
40    $('#form-gantipassword').submit(function (e) {
41        e.preventDefault();
42
43        let formData = new FormData(this);
44        let url = $('#gantipassword-url').val();
45
46       new ajaxPost(url, formData, '#btn-gantipassword')
47           .done(function (response) {
48                if (response.success == false) {
49                    let error = '<div class="alert alert-danger text-left alert-dismissible fade show" role="alert">\n' +
50                        response.message +
51                        '</div>';
52
53                    $('.error-message').fadeIn().empty().html(error);
54                    setTimeout(function() {
55                        $('.error-message').hide().empty();
56                    }, 3000);
57                }else {
58                    
59                    let error = '<div class="alert alert-success text-left alert-dismissible fade show" role="alert">\n' +
60                        response.message +
61                        '</div>';
62
63                    $('.success-message').fadeIn().empty().html(error);
64                    setTimeout(function() {
65                        $('.success-message').hide().empty();
66                    }, 3000);
67                    setTimeout(function() {
68                        location.href = response.redirect;
69                    }, 2000);
70
71                }
72                $('#form-gantipassword')[0].reset();
73        });
74    
75    });
76});

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.