You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letlang=lang_class.match(/lang(\w|-)*/i)[0];// Get word starting with lang...; Get outer bracket
17
+
lang=lang.split("-")[1];
18
+
codeInput.setAttribute("lang",lang);
9
19
}
10
-
/* Runs before elements are added into a `code-input`; Params: codeInput element) */
11
-
beforeElementsAdded(codeInput){
12
-
console.log(codeInput,"before elements added");
13
-
}
14
-
/* Runs after elements are added into a `code-input` (useful for adding events to the textarea); Params: codeInput element) */
15
-
afterElementsAdded(codeInput){
16
-
console.log(codeInput,"after elements added");
17
-
}
18
-
/* Runs when an attribute of a `code-input` is changed (you must add the attribute name to observedAttributes); Params: codeInput element, name attribute name, oldValue previous value of attribute, newValue changed value of attribute) */
0 commit comments