| Next revisionBoth sides next revision |
en:create:functions:library [19.07.2017 23:54] – angelegt baeuchler.ines | en:create:functions:library [20.07.2017 00:13] – baeuchler.ines |
---|
''void **library**(string //id//)'' | ''void **library**(string //id//)'' |
| |
Die Funktion ''library()'' bindet die JavaScript- oder (falls auf dem Server definiert) PHP-Bibliothek mit der angegeben Kennung //id// in die Fragebogen-Seite ein und macht sie so für Scripte verfügbar. | The function ''library()'' embeds the JavaScript- or (if defined on the Server) PHP-Library including the defined identifier //id// in the site with the questionnaire and makes it available for scripts. |
| |
* //id//\\ Kennung der einzubindenen Bibliothek | |
* '''jQuery''' -- [[https://jquery.com/|jQuery]], umfangreiche JavaScript Standard-Bibliothek | * //id//\\ identifier of the embedded library |
* '''Velocity''' -- [[http://velocityjs.org/|Velocity.js]], Animation von HTML-Elementen | * '''jQuery''' -- [[https://jquery.com/|jQuery]], comprehensive JavaScript Standard-Library |
* '''SCEditor''' -- [[http://www.sceditor.com/|SCEditor]], kann Texteingabefelder mit einem WYSIWYG Editor ergänzen, sodass Teilnehmer ihre Eingaben formatieren können. | * '''Velocity''' -- [[http://velocityjs.org/|Velocity.js]], Animation of HTML-Elements |
* '''highcharts''' -- [[http://www.highcharts.com/|Highcharts]], erstellt dynamische Diagramme mittels JavaScript (diese Bibliothek ist nicht auf jedem Server verfügbar). Zusätzlich kann in der //id// nach einem Doppelpunkt ein Highcharts-Modul spezifiziert werden, z.B. '''highcharts:solid-gauge'''. | * '''SCEditor''' -- [[http://www.sceditor.com/|SCEditor]], is able to extend string gadgets with a WYSIWYG Editor, so participants can format there inputs. |
| * '''highcharts''' -- [[http://www.highcharts.com/|Highcharts]], generates dynamic diagramms through JavaScript (this library is not available on every Server). In addition it's possible to specify a Highcharts-module after a colon inside the //id//, e.g. '''highcharts:solid-gauge'''. |
| |
| |
===== Konfiguration ===== | ===== Konfiguration ===== |
| |
Server-Administratoren können in der Datei ''/system/config.php'' weitere Bibliotheken definieren. Um z.B. die JavaScript-Datei ''plugins/SomeScript/somescript.js'' mit der Kennung ''SomeScript'' einzubinden, ergänzen Sie am Ende der Konfiguration: | 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: |
| |
<code php> | <code php> |