packages/demo-html/public/popup-js.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Static HTML Demo</title>
<link rel="stylesheet" href="./lib/css/popup.css" />
</head>
<body>
<button id="button">toggle</button>
<script src="./lib/embed-next.js"></script>
<script>
const { toggle } = window.tf.createPopup("moe6aa", {
medium: "demo-test",
hidden: { foo: "foo value", bar: "bar value" },
});
document.getElementById("button").onclick = function () {
toggle();
};
</script>
</body>
</html>