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 6e65750 commit 2e50fbcCopy full SHA for 2e50fbc
js/interactive-examples.js
@@ -48,10 +48,13 @@ class PHP {
48
async function main() {
49
let lastOutput = null;
50
51
- document.querySelectorAll(".example").forEach((example) => {
+ document.querySelectorAll(".example .example-contents").forEach((example) => {
52
const button = document.createElement("button");
53
button.setAttribute("type", "button");
54
const phpcode = example.querySelector(".phpcode");
55
+ if (phpcode === null) {
56
+ return;
57
+ }
58
59
const code = phpcode.querySelector("code");
60
code.setAttribute("contentEditable", true);
0 commit comments