|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | +<meta charset="UTF-8"> |
| 5 | +<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | +<meta name="theme-color" content="#C2420D"> |
| 7 | +<meta http-equiv="X-UA-Compatible" content="ie=edge"> |
| 8 | +<title>Generate CAPTCHA </title> |
| 9 | +<link rel="icon" type="image/x-icon" href="https://acharya-technologies.tk/img/logo.jpeg"> |
| 10 | +<script src="https://cdn.tailwindcss.com"></script> |
| 11 | +<link rel="stylesheet" href="https://acharya-technologies.tk/css/style.css"> |
| 12 | +<link rel="stylesheet" href="https://acharya-technologies.tk/css/fonts.css"> |
| 13 | +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> |
| 14 | +</head> |
| 15 | +<body class="bg-orange-100 Gotu text-black dark:bg-black dark:text-white" align="center"> |
| 16 | +<p align="center" class="py-1 Yatra text-xl w-screen text-center bg-orange-200 text-orange-600"> || जय श्रीराम 🚩 ||</p> |
| 17 | +<br> |
| 18 | + |
| 19 | +<!-- You Can Remove This if You Are Using This for Website till Next Comment--> |
| 20 | +<h1 class='text-md'>I am Omkar Kulkarni.<br>I am a <span class='work text-green-700'></span>.</h1> |
| 21 | +<h2>Please visit my <a class='Amita text-blue-500 text-xl' href='https://acharya-technologies.tk'>Website</a> |
| 22 | +and<br>Give me a star on<a class='m-0 text-xl text-gray-800 dark:text-white fa fa-github' href='https://github.com/acharya-technologies/'></a>.</h2> |
| 23 | +<br><br> |
| 24 | +<p class='text-2xl'>CAPTCHA Generator<br><small class="text-lg"> for Login System.</small></p> |
| 25 | +<a class='text-xs underline text-blue-500' href="./index.html" download>Source Code</a><i class="text-xs text-blue-400"> (Open-Source)</i><br> |
| 26 | +<a class='text-xs underline text-blue-500' href="https://koutukvs.cf/uid">Practical Example</a> |
| 27 | +<!--Till Here--> |
| 28 | +<br> |
| 29 | +<div class="container mt-8 flex justify-evenly m-auto w-72" > |
| 30 | +<input type="text" id="preset" value="" class="text-center dark:border-green-500 focus:rounded border-orange-600 rounded-md bg-orange-200 dark:bg-gray-600 border-2 w-24" readonly> |
| 31 | +<i class="fa fa-refresh text-xl m-0 mr-4 hover:animate-bounce focus:mt-1" onclick="capt()"></i> |
| 32 | +<input type="text" id="input" value="" class="text-center dark:border-green-500 border-orange-600 focus:border-orange-600 border-2 rounded rounded-md bg-orange-50 dark:bg-gray-800 w-32"></div><br> |
| 33 | +<input id="captBtn" onclick="confirm()" type="button" value="Check Captcha" class="border-2 dark:border-green-500 border-orange-600 rounded px-3 Arima h-8 dark:bg-green-800 bg-orange-300 text-lg block m-auto"><br> |
| 34 | +<i class="text-red-500 Tangerine text-4xl font-bold " id="error"></i> |
| 35 | +</div> |
| 36 | + |
| 37 | +<a href="http://wa.me/918208607477/?text=Hii"><i class="fa fa-whatsapp text-6xl fixed bottom-4 right-4 text-green-500 "></i></a> |
| 38 | +<script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.12"></script> |
| 39 | +<script>let typed = new Typed('.work', { |
| 40 | + strings: ["Cyber Security Aspirant", "Web Developer"], |
| 41 | + typeSpeed: 50,contentType:'html',backSpeed:40,loop:true |
| 42 | +}); |
| 43 | +</script> |
| 44 | +<script> |
| 45 | + |
| 46 | +document.ready = capt(); function capt(){ const |
| 47 | +chars=["A","B","C","D","E","F","G","H","I","J","K","L","M", |
| 48 | + "N","O","P","Q","R","S","T","U","V","W","X","Y","Z", |
| 49 | + "a","b","c","d","e","f","g","h","i","j","k","l","m", |
| 50 | + "n","o","p","q","r","s","t","u","v","w","x","y","z", |
| 51 | + "1","2","3","4","5","6","7","8","9","0","#","$"]; |
| 52 | +let a = chars[Math.floor(Math.random() * 64)]; |
| 53 | +let b = chars[Math.floor(Math.random() * 64)]; |
| 54 | +let c = chars[Math.floor(Math.random() * 64)]; |
| 55 | +let d = chars[Math.floor(Math.random() * 64)]; |
| 56 | +let e = chars[Math.floor(Math.random() * 64)]; |
| 57 | + |
| 58 | +preset.value = a + b + c + d + e;} |
| 59 | +function confirm(){ |
| 60 | + let val1 = preset.value; |
| 61 | + let val2 = input.value; |
| 62 | + if ( val1 == val2){ |
| 63 | + alert("Correct CAPTCHA..!"); |
| 64 | + error.innerHTML = ""; |
| 65 | + capt(); |
| 66 | + input.value=""} |
| 67 | + else{ |
| 68 | + error.innerHTML = "Invalid   Captcha";}} |
| 69 | +</script> </body> </html> |
0 commit comments