PageSourceSearch

https://www.cdad47.info/templates/commun/captcha/captcha.js?1791321279

js cdad47.info collected 2026-10-06 21:14:50 UTC 1,806 bytes, 48 lines download raw bytes

1// SimpleCaptcha v1.0 © Anudeep Tubati under MIT License
2
3
4
5
6$(document).ready(function(){ 
7ChangeCaptcha();
8});	 
9function ChangeCaptcha() {}
10
11   $(document).ready(function () {
12      $('#randomfield').bind('paste', function (e) {
13         e.preventDefault();
14      });
15   });
16
17
18
19function ChangeCaptcha() {
20    var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz"; 
21    // You can include special characters by adding them to the string above, for eg: chars += "@#?<>";
22    
23    var string_length = 6; // This is the length of the Captcha
24    // ****** CAUTION ****** This just determines the string that'll be produced by the function. To make the Captcha 
25    // field compatible with the updated size, you'll have to change the maxlength attribute in the HTML code
26
27    var ChangeCaptcha = '';
28    for (var i=0; i<string_length; i++) {
29        var rnum = Math.floor(Math.random() * chars.length);
30        ChangeCaptcha += chars.substring(rnum,rnum+1);
31    }
32    
33    document.getElementById('randomfield').value = ChangeCaptcha; // Final step which changes the field value to the Captcha produced
34}
35
36function check() { // Function which checks if the entered value is matching the Captcha
37    if(document.getElementById('CaptchaEnter').value == document.getElementById('randomfield').value ) {
38    
39    //    window.open('https://www.google.co.in','_self');
40        // Change the page to which the re-direction is to be done.
41        // '_self' parameter makes the webpage open in the same tab. If this effect isn't desired, simply remove it.
42        $("#contactform").submit(); /* pour les sites types cathédrales*/
43    }
44    else {
45        alert('Erreur, merci de resaisir le captcha'); // The alert message that'll be displayed when the user enters a wrong Captcha
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.