CyberSiARA™ | Javascript

Javascript Integration Guideline

1. Get your public & private key from mycybersiara.com

2. Copy the code in <head > tag.

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://embedcdn.mycybersiara.com/CaptchaFormate/CaptchaResources.js"></script>

3. Put the below code where you want to load the captcha plugin in <body > tag.Replace 'PUBLIC-KEY'; with your public key.

<div class="SiaraShield"></div>
<script type="text/javascript">
$(function () {
   var PublicKey='PUBLIC-KEY';
   InitCaptcha(PublicKey);
   $('.CaptchaSubmit').click(function (){
     if(CheckCaptcha()){
      console.log
(CyberSiaraToken);
       // Please write your submit button click event function here //

     }
   });
});
</script>

4. Add ‘CaptchaSubmit’ class in your submit button.

<button class="CaptchaSubmit"></button>

5. Once all these steps are done, go to your browser and refresh the page and enjoy the SiaraShield. Thank you for using SiaraShield!