Tone3000 dialog (waiting for iframe fix)

This commit is contained in:
Robin E. R. Davies
2026-01-23 21:47:31 -05:00
parent f26e3bf102
commit f0c3995a8f
4 changed files with 275 additions and 261 deletions
+26
View File
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tone3000 Download Received</title>
</head>
<body>
<script>
// Parse URL parameters
const urlParams = new URLSearchParams(window.location.search);
const toneUrl = urlParams.get('tone_url');
// Send the data back to the opener window
if (window.opener) {
window.opener.postMessage({
type: 'tone3000Download',
toneUrl: toneUrl
}, '*');
}
// Close the window after sending the data
window.close();
</script>
</body>
</html>
+22
View File
@@ -0,0 +1,22 @@
<html>
<head>
<title>Test Tone3000 Select</title>
<script>
function onPageLoad() {
console.log("Test Tone3000 Select Page Loaded");
let iframe = document.getElementById("tone3000SelectIframe");
iframe.src = "https://www.tone3000.com/api/v1/select?app_id=pipedal_app&redirect_url=http://localhost:5173/public/handleTone3000download.html";
}
</script>
</head>
<body onload="onPageLoad()">
<h1>Test Tone3000 Select Page</h1>
<p>This is a test page for Tone3000 select functionality.</p>
<iframe
style="width: 680px; height: 400px; border: 2px solid red;"
id="tone3000SelectIframe"
style="width:100%; height:600px; border:none;">
</body>
</html>