episphere / quest

experimenting with the idea of a questionnaire markup
https://episphere.github.io/quest/
2 stars 11 forks source link

added new function, changed display style qst #340

Closed danielruss closed 3 years ago

danielruss commented 3 years ago

Fixes for ISSUE_338.

  1. Added exist("elementId") and doesNotExist("elementId")
  2. There was a problem with displayif when the forid does not exist.
  3. Fixed adding style attribute to the element. Use javascript element.style.StyleAttribute = xxx. Note: for the display changed from "inline" to null. This way the style defaults to the tag/class not just to "inline"
  4. modified evaluateCondition to use math.js evaluate method instead of my parser. This allows use of functions in math.js and can have more/less parameters than 2.