generalized addBlockCodeExample with position and return element

chemistry_example
Fabien Benetou 2 years ago
parent 1f8026d89c
commit 1030436f74
  1. 4
      index.html

@ -2091,8 +2091,8 @@ function addCompoundPrimitiveExample(position="0 1.4 -0.2"){
return el
}
function addBlockCodeExample(){
el = addNewNote("hi")
function addBlockCodeExample(text="hi"){
el = addNewNote( text )
el.setAttribute("color", "black")
el.setAttribute("outline-color", "white")
a = generateCompoundPrimitiveExample()

Loading…
Cancel
Save