diff --git a/docs/index.html b/docs/index.html index 03869da2..92bf1ee0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1844,8 +1844,21 @@ function enhanceExecBlocks(bblEl) { const actionsDiv = document.createElement('div'); actionsDiv.className = 'exec-card-actions'; - actionsDiv.innerHTML = '' - + ''; + + const copyBtn = document.createElement('button'); + copyBtn.className = 'exec-btn exec-btn-copy'; + copyBtn.textContent = 'πŸ“‹ ε€εˆΆζŒ‡δ»€'; + copyBtn.addEventListener('click', function() { copyExecBlock(this); }); + + const submitBtn = document.createElement('button'); + submitBtn.className = 'exec-btn exec-btn-submit'; + submitBtn.textContent = 'πŸš€ @ι“ΈζΈŠζ‰§θ‘Œ'; + submitBtn.dataset.instrId = instrId; + submitBtn.dataset.modName = modName; + submitBtn.addEventListener('click', function() { submitExecBlock(this, this.dataset.instrId, this.dataset.modName); }); + + actionsDiv.appendChild(copyBtn); + actionsDiv.appendChild(submitBtn); pre.style.position = 'relative'; pre.appendChild(actionsDiv); }