We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7202932 commit 26e66ecCopy full SHA for 26e66ec
programs.html
@@ -456,6 +456,14 @@ <h1 class="post-title">Integer Sequences and LODA Programs</h1>
456
pariTryButton.href = 'https://pari.math.u-bordeaux.fr/gp.html';
457
pariTryButton.target = '_blank';
458
pariTryButton.textContent = 'Try it out';
459
+ pariTryButton.onclick = async (e) => {
460
+ // Copy code to clipboard before opening PARI page
461
+ try {
462
+ await navigator.clipboard.writeText(pariCode);
463
+ } catch (error) {
464
+ console.error('Failed to copy PARI code:', error);
465
+ }
466
+ };
467
pariButtonsContainer.appendChild(pariTryButton);
468
469
const pariCopyButton = document.createElement('button');
0 commit comments