Author: AllenJB (AllenJB) Committer: Derick Rethans (derickr) Date: 2025-10-01T12:01:47+01:00
Commit: https://github.com/php/web-php/commit/800460f6c218f5f9ff32fd47fc16679ecf9deb9a Raw diff: https://github.com/php/web-php/commit/800460f6c218f5f9ff32fd47fc16679ecf9deb9a.diff interactive-examples.js: Enable for informal examples Changed paths: M js/interactive-examples.js Diff: diff --git a/js/interactive-examples.js b/js/interactive-examples.js index fbf662c2f0..15aef1d8f0 100644 --- a/js/interactive-examples.js +++ b/js/interactive-examples.js @@ -60,7 +60,7 @@ class PHP { async function main() { let lastOutput = null; - document.querySelectorAll(".example .example-contents").forEach((example) => { + document.querySelectorAll(".example .example-contents, .informalexample .example-contents").forEach((example) => { const button = document.createElement("button"); button.setAttribute("type", "button"); const phpcode = example.querySelector(".phpcode.annotation-interactive");
