@proca/widget
Version:
Proca is an open-source campaign toolkit designed to empower activists and organisations in their digital advocacy efforts. It provides a flexible and customisable platform for creating and managing online petitions, email campaigns, and other forms of di
31 lines (29 loc) • 934 B
HTML
<html lang="<%= htmlWebpackPlugin.options.proca.lang %>">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link
rel="alternate"
type="application/json+oembed"
href="/d/<%= htmlWebpackPlugin.options.title %>/oembed.json"
title="Embed JSON"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
</style>
<script>
window.addEventListener("proca", function (e) {
console.log("send", e,JSON.parse(JSON.stringify(e.detail)));
window.parent && window.parent.postMessage(JSON.parse(JSON.stringify(e.detail)),"*");
});
</script>
</head>
<body>
<div class="proca-widget"></div>
</body>
</html>