Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:create:feedback-visual [04.04.2019 15:13] adminen:create:feedback-visual [24.10.2019 10:27] admin
Line 46: Line 46:
 } }
 </code> </code>
 +
  
 ==== Multiple Values ==== ==== Multiple Values ====
Line 90: Line 91:
 {{:de:create:exp.feedback-visual.textelement.png?nolink|An example for visual presentation of a single value}} {{:de:create:exp.feedback-visual.textelement.png?nolink|An example for visual presentation of a single value}}
  
-Save the following HTML code as a textblock, for example under the identifier "responseSD".+Save the following HTML code as a text in the list fo questions (the following examples assume that it gets the ID "RS01").
  
 <code html> <code html>
Line 102: Line 103:
       <div style="position: absolute; top: -2px; left: 50%; width: 65px; height: 27px">       <div style="position: absolute; top: -2px; left: 50%; width: 65px; height: 27px">
         <!-- The actual Marking is going to be inserted at the above defined right place -->         <!-- The actual Marking is going to be inserted at the above defined right place -->
-        <img src="ofb://slider.button.rhomb" alt="" style="position: absolute; left: %zValue*100%%; margin-left: -8px" />+        <img src="ofb://slider.button.rhomb" alt="" style="position: absolute; left: %zValue100%%; margin-left: -8px" />
       </div>       </div>
   </div>   </div>
Line 108: Line 109:
 </code> </code>
  
-In the HTML code there are two placeholders: ''%title%'' and ''%zValue*100%''The second placeholder is actually called ''%zValue%''. Using ''*100'', it's value is going to be multiplied by 100 before it is inserted in the HTML code. This HTML code is therefore designed to show a z-value between -3 and +3+The HTML code contains two placeholders: ''%title%'' and ''%zValue100%''It is designed to show a z-value between -3 and +3 and can be used as follows:
-This can be used accordingly:+
  
 <code php> <code php>
Line 125: Line 125:
 // Use textblocks (only if $value delivered a valid value) // Use textblocks (only if $value delivered a valid value)
 if ($value > 0) { if ($value > 0) {
-  text('responseSD', array(+  show('RS01', array(
     '%title%' => 'Extraversion',     '%title%' => 'Extraversion',
-    '%zValue%' => $zValue+    '%zValue100%' => round($zValue * 100)
   ));   ));
 } }
en/create/feedback-visual.txt · Last modified: 07.12.2023 07:01 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki