From 1030436f748b7e4c3de7acbd123867b49c9315fa Mon Sep 17 00:00:00 2001 From: Fabien Benetou Date: Wed, 25 Jan 2023 14:46:31 +0100 Subject: [PATCH] generalized addBlockCodeExample with position and return element --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 040f14e..262bb58 100644 --- a/index.html +++ b/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()