We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71d0ff1 commit 57de289Copy full SHA for 57de289
test2/index.html
@@ -1,14 +1,24 @@
1
<html>
2
<head>
3
+<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onloadTurnstileCallback" defer></script>
4
+
5
6
</head>
7
<body>
-<div class="cf-turnstile" data-sitekey="0x4AAAAAAAJ5XO7IFh_yDRh8" data-callback="javascriptCallback"></div>
8
+<div id="example-container"></div>
9
<script>
-function javascriptCallback() {
-console.log("taco")
-}
10
11
-</script
+window.onloadTurnstileCallback = function () {
12
+ turnstile.render('#example-container', {
13
+ sitekey: '0x4AAAAAAAKCLxZgXfMRIc0d',
14
+ callback: function(token) {
15
+ console.log(`Challenge Success ${token}`);
16
+ },
17
+ });
18
+};
19
20
21
+</script>
22
23
24
0 commit comments