Working Prototype
This commit is contained in:
20
testing/dialog.html
Normal file
20
testing/dialog.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Form Selection</title>
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="embed-code"></textarea>
|
||||
<button type="submit" onclick="postEmbedCode()">Submit</button>
|
||||
|
||||
<script type="text/javascript">
|
||||
function postEmbedCode(event) {
|
||||
var embedCode = document.querySelector("#embed-code").value;
|
||||
window.parent.postMessage(embedCode);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user