====== library() ====== ''void **library**(string //id//)'' The function ''library()'' embeds the JavaScript- or (if defined on the Server) PHP-Library including the defined identifier //id// in the questionnaire-site and makes it available for scripts. * //id//\\ identifier of the embedded library * '''jQuery''' -- [[https://jquery.com/|jQuery]], comprehensive JavaScript Standard-Library * '''Velocity''' -- [[http://velocityjs.org/|Velocity.js]], Animation of HTML-Elements * '''SCEditor''' -- [[http://www.sceditor.com/|SCEditor]], is able to extend string gadgets with a WYSIWYG Editor, so participants can format their inputs. * '''ChartJS''' -- [[https://www.chartjs.org/|ChartJS]], generates dynamic diagramms through JavaScript. ===== Configuration ===== Server-Administrators can define further libraries inside the file ''/system/config.php''. To e.g. embed the JavaScript-file ''plugins/SomeScript/somescript.js'' with the identifier ''SomeScript'', please add at the end of the configuration: SoSci::set(array( 'libraries' => array( 'SomeScript' => 'plugins/SomeScript/somescript.js' ) ));