Files
community_bridge/web/index.html
T

31 lines
801 B
HTML
Raw Normal View History

2025-02-21 11:02:18 -06:00
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MRC Scuba</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="./src/main.jsx"></script>
</body>
2025-05-24 18:03:31 -05:00
<script>
// dont judge me
const copyToClipboard = (str) => {
const el = document.createElement("textarea");
el.value = str;
document.body.appendChild(el);
el.select();
document.execCommand("copy");
document.body.removeChild(el);
};
window.addEventListener("message", (event) => {
if (event?.data?.type === "copytoclipboard") {
var str = event.data.text;
copyToClipboard(str);
}
});
</script>
2025-02-21 11:02:18 -06:00
</html>