PageSourceSearch

https://sworld.co.uk/static/js/repass/repass.js

js sworld.co.uk collected 2026-09-24 23:35:58 UTC 1,483 bytes, 48 lines download raw bytes

1$('form#recoveryPassword')
2.submit(function (e) {
3    e.preventDefault();
4    let form = $(this)[0];
5
6    if (form.checkValidity() === false) {
7        form.classList.add('was-validated');
8        return false;
9      }else {
10         var request = new FormData();
11         var elements = form.elements;
12         for (var i = 0, element; element = elements[i++];) {
13            request.append(element.name, element.value);				
14        }
15
16
17        $.ajax({
18            url: "/SworldWebApi/api/forgotPassword/index.php",
19            dataType: 'text',
20            cache: false,
21            contentType: false,
22            processData: false,
23            data: request,
24            type: 'post',
25            beforeSend: function(xhr) {               
26                $('#divLoading').addClass('show');
27            },
28            success: function(data){
29                var resp = JSON.parse(data);
30                if(resp.success){
31                    $('span#msgRecoveryPass').addClass('text-success').html(resp.msg);
32
33                }else{
34                   $('span#msgRecoveryPass').addClass('text-danger').text(resp.msg);
35                }						
36            },
37            error : function(){
38                $('span#msgRecoveryPass').addClass('text-danger').text('Error..');	
39            },
40            complete: function(){	
41                $('#divLoading').removeClass('show');						  
42                }
43        }); 
44
45      }
46
47
48});

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.