-
Notifications
You must be signed in to change notification settings - Fork 1
/
contact.php
37 lines (34 loc) · 1.08 KB
/
contact.php
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
<!DOCTYPE html>
<html lang='ms-MY' data-bs-theme='auto'>
<head>
<title>Hubungi Kami</title>
</head>
<body>
<?php require_once 'header.php' ?>
<main class='container'>
<div class='row text-center'>
<div class='col mt-2 mb-2 jumbotron-fluid'>
<h1 class='h1-responsive'>Hubungi Kami</h1>
</div>
</div>
<div class='row'>
<div class='col-md'>
<div id='submitForm' class='d-flex justify-content-center mb-3'></div>
</div>
</div>
</main>
<?php require_once 'footer.php' ?>
<script defer src='https://challenges.cloudflare.com/turnstile/v0/api.js?onload=loadTurnstile'></script>
<script>
window.loadTurnstile = function () {
turnstile.render('#submitForm', {
sitekey: '0x4AAAAAAABo4nJ8nQ9QZgbE',
callback: function (token) {
console.log(`Challenge Success ${token}`)
window.open(`https://api.roipmars.org.my/webhook/ctc-roipmars?token=${token.slice(3, 11)}&ref=${document.URL}`)
}
})
}
</script>
</body>
</html>