-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathinfinity.html
62 lines (58 loc) · 1.84 KB
/
infinity.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>無限reCAPTCHA</title>
<script src="https://unpkg.com/react@17/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.2/css/bulma.min.css" />
<!-- Don't use this in production: -->
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
const App = () => {
const widgetCount = 18;
const [verified, setVerified] = React.useState([]);
React.useEffect(() => {
const widgets = [...Array(widgetCount).keys()].map(n =>
grecaptcha.render(`widget${n}`, {
sitekey: '6Le1Q-4aAAAAAPxiA-8un2vTzU5PoCw9-wWwD7Wr'
}));
}, []);
return (
<div>
<section className="hero is-primary">
<div className="hero-body">
<p className="title">
無限reCAPTCHA
</p>
</div>
</section>
<div className="container">
{[...Array(widgetCount / 3).keys()].map(i => (
<div className="columns">
{[...Array(3).keys()].map(j => (
<div className="column">
<div id={`widget${i * 3 + j}`}></div>
</div>
))}
</div>
))}
</div>
</div>
)
}
const onloadCallback = () => {
ReactDOM.render(
<App />,
document.getElementById('root')
);
};
</script>
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" async defer>
</script>
</body>
</html>