-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
30 lines (26 loc) · 967 Bytes
/
index.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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>consent v2 iframe popup integration example</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.2.11/iframeResizer.js"></script>
<script type="text/javascript" src="iframeresizer_setup.js"></script>
<script type="text/javascript" src="form_setup.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h2 style="text-align: center">consent v2 iframe popup integration example</h2>
<form id="subscription-form">
<input type="email" name="email" required />
<button type="submit">subscribe</button>
</form>
<script>
var form = document.getElementById('subscription-form');
if (form.attachEvent) {
form.attachEvent("submit", setupForm);
} else {
form.addEventListener("submit", setupForm);
}
</script>
</body>
</html>