Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. <script>
  2. import { load } from 'recaptcha-v3'
  3. import { onMount } from 'svelte';
  4. import GoLiveDateInfo from '../components/GoLiveDateInfo.svelte';
  5.  
  6. onMount(() => {
  7. async function reCaptcha() {
  8. const recaptcha = await load('6Lcnm7EUAAAAAOWFIrRWVkA8zvckeG8RIjELdaSj', {useRecaptchaNet: true, autoHideBadge: true} )
  9. const token = await recaptcha.execute('homepage')
  10. console.log(token) // Will also print the token
  11. }
  12.  
  13. reCaptcha();
  14. });
  15.  
  16. </script>
  17.  
  18. <GoLiveDateInfo/>
  19.  
  20.  
  21.  
  22.  
  23. <form class="group w-full max-w-lg container mt-20 sm:mt-32 md:mt-40">
  24.  
  25.  
  26. <div class="md:flex md:items-center mb-6">
  27. <div class="md:w-1/3">
  28. <label for="inline-full-name" class="block text-six group-hover:text-one font-bold md:text-right mb-1 md:mb-0 pr-4">
  29. Full Name
  30. </label>
  31. </div>
  32.  
  33. <div class="md:w-2/3">
  34. <input id="inline-full-name" type="text" placeholder="Jane Doe" autocomplete="on" class="form-input bg-six appearance-none border border-five rounded w-full py-2 px-4 text-one leading-tight focus:outline-none focus:elevation-3 focus:border-four focus:text-two focus:font-bold hover:scale-grow placeholder-two">
  35. </div>
  36. </div>
  37.  
  38. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement