consolidate & protect API docs with php wrapper

This commit is contained in:
Ryan
2025-04-24 19:34:09 -04:00
committed by GitHub
parent 078db33458
commit ebc32ea965
7 changed files with 57 additions and 29 deletions

View File

@@ -245,12 +245,15 @@ export function openUserPanel() {
background: rgba(0,0,0,0.8); z-index: 4000; display:none;
align-items: center; justify-content: center;
`;
// api.php
apiModal.innerHTML = `
<div style="position:relative; width:90vw; height:90vh; background:#fff; border-radius:8px; overflow:hidden;">
<div class="editor-close-btn" id="closeApiModal">&times;</div>
<iframe src="api.html" style="width:100%;height:100%;border:none;"></iframe>
<iframe src="api.php" style="width:100%;height:100%;border:none;"></iframe>
</div>
`;
document.body.appendChild(apiModal);
document.getElementById("openApiModalBtn").addEventListener("click", () => {