Skip to content

Commit 57de289

Browse files
author
nostowe
committed
taco
1 parent 71d0ff1 commit 57de289

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

test2/index.html

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
<html>
22
<head>
3+
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onloadTurnstileCallback" defer></script>
4+
5+
36
</head>
47
<body>
5-
<div class="cf-turnstile" data-sitekey="0x4AAAAAAAJ5XO7IFh_yDRh8" data-callback="javascriptCallback"></div>
8+
<div id="example-container"></div>
69
<script>
7-
function javascriptCallback() {
8-
console.log("taco")
9-
}
1010

11-
</script
11+
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>
1222

1323

1424

0 commit comments

Comments
 (0)