Skip to content

Commit 7202932

Browse files
Copilotckrause
andcommitted
Add Try it out button for PARI code
Co-authored-by: ckrause <840744+ckrause@users.noreply.github.com>
1 parent 0c34bd0 commit 7202932

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

programs.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,14 @@ <h1 class="post-title">Integer Sequences and LODA Programs</h1>
450450
pariButtonsContainer.id = pariButtonsId;
451451
pariButtonsContainer.className = CSS_CLASSES.PROGRAM_BUTTONS;
452452

453+
// Add "Try it out" button for PARI
454+
const pariTryButton = document.createElement('a');
455+
pariTryButton.className = CSS_CLASSES.LODA_BUTTON_SECONDARY;
456+
pariTryButton.href = 'https://pari.math.u-bordeaux.fr/gp.html';
457+
pariTryButton.target = '_blank';
458+
pariTryButton.textContent = 'Try it out';
459+
pariButtonsContainer.appendChild(pariTryButton);
460+
453461
const pariCopyButton = document.createElement('button');
454462
pariCopyButton.className = CSS_CLASSES.LODA_BUTTON + ' copy';
455463
pariCopyButton.textContent = 'Copy';

0 commit comments

Comments
 (0)