Wiki-Quellcode von FORMCYCLE Hilfe


Zeige letzte Bearbeiter
1 {{info type="info"}}
2 Hinweis zur Sicherheitslücke [[CVE-2022-42889>>https://nvd.nist.gov/vuln/detail/CVE-2022-42889]] in der Komponente Apache Commons Text: Die innerhalb der Bibliothek betroffene Funktionalität wird aktuell in {{formcycle/}} an keiner Stelle verwendet, weshalb {{formcycle/}} nicht von diesem Problem betroffen ist. Ab {{formcycle/}} Version 7.2.1 wird eine fehlerfreie Version der Bibliothek verwendet.
3 {{/info}}
4
5 {{info type="info"}}
6 Weitere Informationen über die Sicherheitslücke [[CVE-2022-22965>>https://tanzu.vmware.com/security/cve-2022-22965]] im Spring Framework und deren Einfluss auf {{formcycle/}}-Versionen 7.0.0 bis 7.0.11 finden sich auf der Seite zu den [[Allgemeinen Sicherheitsempfehlungen>>doc:Formcycle.SystemSettings.Sicherheit.WebHome]]. Version 7.0.12 von {{formcycle/}} mit einer aktualisierten Version des Spring Frameworks steht [[steht zum Download bereit>>doc:Blog.WebHome]].
7 {{/info}}
8
9 {{info type="info"}}
10 Weitere Informationen über die Sicherheitslücken [[CVE-2021-44228>>https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44228]], [[CVE-2021-45046>>https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45046]], [[CVE-2021-45105>>https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45105]], and [[CVE-2021-44832>>https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44832]] in Log4J und deren Einfluss auf {{formcycle/}}-Versionen 7.0.0 bis 7.0.9 finden sich auf der Seite zu den [[Allgemeinen Sicherheitsempfehlungen>>doc:Formcycle.SystemSettings.Sicherheit.WebHome]]. Version 7.0.10 von {{formcycle/}} mit einer aktualisierten Version von Log4J [[steht zum Download bereit>>doc:Blog.WebHome]].
11 {{/info}}
12
13 {{info type="info"}}
14 Die Hilfe zur vorherigen {{formcycle/}} Version 6 befindet sich unter: https://help6.formcycle.eu
15 {{/info}}
16
17 {{velocity}}
18 #set ($mainCards = [{
19 'iconfc': 'square-edit-outline',
20 'title': 'Formulardesigner',
21 'description': 'Formulare erstellen und bearbeiten',
22 'documentation': "Formcycle.Designer",
23 'bgcolor': '#617496',
24 'color': '#fff',
25 'colordesc': '#e1e2e4'
26 }, {
27 'iconfc': 'workflow-fill',
28 'title': 'Workflowdesigner',
29 'description': 'Formulardaten verarbeiten',
30 'documentation': 'Formcycle.Designer.Workflow',
31 'bgcolor': '#617496',
32 'color': '#fff',
33 'colordesc': '#e1e2e4'
34 }, {
35 'iconfc': 'wrench',
36 'title': 'Verwaltung',
37 'description': 'Benutzerverwaltung, LDAP, Datenbanken, Dateien, Templates und vieles mehr',
38 'documentation': 'Formcycle.UserInterface',
39 'bgcolor': '#b6c2d2',
40 'color': '#2b3649',
41 'colordesc': '#617496'
42 }, {
43 'iconfc': 'inbox',
44 'title': 'Posteingang',
45 'description': 'Formulardaten organisieren',
46 'documentation': 'Formcycle.Inbox',
47 'bgcolor': '#ffab70',
48 'color': '#fff',
49 'colordesc': '#fff'
50 }, {
51 'icon': 'fa fa-download',
52 'title': 'Installation',
53 'description': 'FORMCYCLE installieren oder aktualisieren',
54 'documentation': 'Formcycle.Installation',
55 'bgcolor': '#b6c2d2',
56 'color': '#2b3649',
57 'colordesc': '#617496'
58 }, {
59 'iconfc': 'form',
60 'title': 'Beispiele',
61 'description': 'Beispiele für Formulareinbindungen und Formulare',
62 'documentation': 'doc:Examples.WebHome',
63 'bgcolor': '#cae7df',
64 'color': '#2b3649',
65 'colordesc': '#617496'
66 }, {
67 'icon': 'fa fa-play-circle',
68 'title': 'Schulungsvideos und Anwendungsfälle',
69 'description': 'Kurze Videos zu den verschiedensten Themen',
70 'documentation': 'doc:Schulung.WebHome'
71 }])
72
73 ##}, {
74 ## 'iconfc': 'puzzle',
75 ## 'title': 'Anwendungsfälle',
76 ## 'description': 'Formulardaten verarbeiten',
77 ## 'documentation': 'doc:Anwendungsfälle.WebHome'
78 ##}, {
79
80 #set ($smallCards = [{
81 'iconfc': 'information-outline',
82 'title': 'Workshops',
83 'description': 'Workshops zu verschiedenen Themen rund um FORMCYCLE',
84 'documentation': 'doc:Workshops.WebHome',
85 'bgcolor': '#b6c2d2',
86 'color': '#2b3649'
87 }, {
88 'icon': 'fa fa-cloud',
89 'title': 'FORM.​CLOUD',
90 'description': 'Informationen zur XIMA FORM.CLOUD',
91 'documentation': 'doc:FORMCLOUD.WebHome',
92 'bgcolor': '#b6c2d2',
93 'color': '#2b3649'
94 }, {
95 'iconfc': 'action-change-status',
96 'title': 'Einbindung externer Systeme',
97 'description': 'Einbindung von FORMCYCLE in CMS/DMS-Systeme',
98 'documentation': 'Formcycle.CMSExtension',
99 'bgcolor': '#b6c2d2',
100 'color': '#2b3649'
101 }, {
102 'iconfc': 'puzzle',
103 'title': 'Plugin-Dokumen­tation',
104 'description': 'Dokumentation der für FORMCYCLE verfügbaren Plugins',
105 'documentation': 'Formcycle.PluginDocumentation',
106 'bgcolor': '#b6c2d2',
107 'color': '#2b3649'
108 }, {
109 'icon': 'fa fa-list',
110 'title': 'Release Notes',
111 'description': 'Release Notes und Download der aktuellen Version',
112 'documentation': 'doc:Blog.WebHome',
113 'bgcolor': '#b6c2d2',
114 'color': '#2b3649'
115 }, {
116 'iconfc': 'comment-faq-outline',
117 'title': 'Häufig gestellte Fragen',
118 'description': 'Häufig gestellte Fragen',
119 'documentation': "https://faq.formcycle.eu/",
120 'bgcolor': '#b6c2d2',
121 'color': '#2b3649'
122 }])
123
124 ## 'icon': 'fa fa-share-square',
125 ## 'title': 'Daten extern weiterverarbeiten',
126 ## 'description': 'Mit FORMCYCLE erfasste Daten an andere Systeme weiterleiten',
127 ## 'documentation': 'Formcycle.UserInterface.MyForms.WorkflowProcessing'
128 ##}, {
129
130
131
132 {{html}}
133 ##$jsontool.serialize(${mainCards})<br>
134 ##$jsontool.serialize($mainCards)<br>
135 {{/html}}
136
137 {{MainMenuTiles cards='$jsontool.serialize($mainCards)' /}}
138
139
140
141 {{/velocity}}
142
143 {{MainMenuTiles cards="[{~"iconfc~":~"information-outline~",~"title~":~"Workshops~",~"description~":~"Workshops zu verschiedenen Themen rund um FORMCYCLE~",~"documentation~":~"doc:Workshops.WebHome~",~"bgcolor~":~"#b6c2d2~",~"color~":~"#2b3649~"},{~"icon~":~"fa fa-cloud~",~"title~":~"FORM.​CLOUD~",~"description~":~"Informationen zur XIMA FORM.CLOUD~",~"documentation~":~"doc:FORMCLOUD.WebHome~",~"bgcolor~":~"#b6c2d2~",~"color~":~"#2b3649~"},{~"iconfc~":~"action-change-status~",~"title~":~"Einbindung externer Systeme~",~"description~":~"Einbindung von FORMCYCLE in CMS/DMS-Systeme~",~"documentation~":~"Formcycle.CMSExtension~",~"bgcolor~":~"#b6c2d2~",~"color~":~"#2b3649~"},{~"iconfc~":~"puzzle~",~"title~":~"Plugin-Dokumen­tation~",~"description~":~"Dokumentation der für FORMCYCLE verfügbaren Plugins~",~"documentation~":~"Formcycle.PluginDocumentation~",~"bgcolor~":~"#b6c2d2~",~"color~":~"#2b3649~"},{~"icon~":~"fa fa-list~",~"title~":~"Release Notes~",~"description~":~"Release Notes und Download der aktuellen Version~",~"documentation~":~"doc:Blog.WebHome~",~"bgcolor~":~"#b6c2d2~",~"color~":~"#2b3649~"},{~"iconfc~":~"comment-faq-outline~",~"title~":~"Häufig gestellte Fragen~",~"description~":~"Häufig gestellte Fragen~",~"documentation~":~"https://faq.formcycle.eu/~",~"bgcolor~":~"#b6c2d2~",~"color~":~"#2b3649~"}]" type="small"/}}
144
145 {{velocity}}
146 {{html wiki="false" clean="false"}}
147
148 <style>
149 .jqcloud{font:10px Helvetica,Arial,sans-serif;line-height:normal;overflow:hidden;position:relative}.jqcloud-word{margin:0;padding:0}.jqcloud-word.w1{color:#aab5f0;font-size:100%}.jqcloud-word.w2{color:#9ce;font-size:150%}.jqcloud-word.w3{color:#a0ddff;font-size:200%}.jqcloud-word.w4{color:#90c5f0;font-size:250%}.jqcloud-word.w5{color:#90a0dd;font-size:300%}.jqcloud-word.w6{color:#90c5f0;font-size:350%}.jqcloud-word.w7{color:#39d;font-size:400%}.jqcloud-word.w8{color:#0cf;font-size:450%}.jqcloud-word.w9{color:#0cf;font-size:500%}.jqcloud-word.w10{color:#0cf;font-size:550%}.jqcloud-word a{color:inherit;font-size:inherit;text-decoration:none}.jqcloud-word a:hover{color:#0cf}
150 .jqcloud span {
151 -moz-user-select: -moz-none;
152 -khtml-user-select: none;
153 -webkit-user-select: none;
154 -ms-user-select: none;
155 user-select: none;
156 background-color: #eaeaef;
157 border-radius: 10px;
158 padding: 0px 4px 0px 4px;
159 }
160 .jqcloud span.jqHighlight {
161 color: #0cf !important;
162 }
163 .jQButton {
164 color: #fff;
165 background-color: #3480AD;/*#f0f0f3*/
166 text-align: center;
167 display: inline-block;
168 border-radius: 4px;
169 padding: 4px 10px 4px 22px;
170 font-size: 15px
171 margin: auto;
172 margin-bottom: 5px;
173 -moz-user-select: -moz-none;
174 -khtml-user-select: none;
175 -webkit-user-select: none;
176 -ms-user-select: none;
177 user-select: none;
178 }
179 .jQButton[active=false] {
180 background-color: #a7a7a7;
181 }
182 .jQButton:hover {
183 background-color: #0cf;
184 }
185 .jQButton[active=false]:hover {
186 background-color: #676767;
187 }
188 .jQButton .jQButton-icon::before {
189 font-family: "FontAwesome";
190 font-size: 14px;
191 font-weight: 400;
192 content: "\f046";
193 }
194 .jQButton[active=false] .jQButton-icon::before {
195 content: "\f096";
196 }
197 .jQButton-icon {
198 position: absolute;
199 margin-left: -11px;
200 }
201 </style>
202
203 <script>
204 require(['jquery'],function(XjQ) {
205 'use strict';
206
207 /*
208 * Plugin class
209 */
210 var jQCloud = function(element, word_array, options) {
211 this.Xelement = XjQ(element);
212
213 this.word_array = word_array || [];
214 this.options = options;
215
216 this.sizeGenerator = null;
217 this.colorGenerator = null;
218
219 // Data used internally
220 this.data = {
221 placed_words: [],
222 timeouts: {},
223 namespace: null,
224 step: null,
225 angle: null,
226 aspect_ratio: null,
227 max_weight: null,
228 min_weight: null,
229 sizes: [],
230 colors: []
231 };
232
233 this.initialize();
234 };
235
236 jQCloud.DEFAULTS = {
237 width: 100,
238 height: 100,
239 center: { x: 0.5, y: 0.5 },
240 steps: 10,
241 delay: null,
242 shape: 'elliptic',
243 classPattern: 'w{n}',
244 encodeURI: true,
245 removeOverflowing: true,
246 afterCloudRender: null,
247 autoResize: false,
248 colors: null,
249 fontSize: null,
250 template: null
251 };
252
253 jQCloud.prototype = {
254 initialize: function() {
255 // Set/Get dimensions
256 if (this.options.width) {
257 this.Xelement.width(this.options.width);
258 }
259 else {
260 this.options.width = this.Xelement.width();
261 }
262 if (this.options.height) {
263 this.Xelement.height(this.options.height);
264 }
265 else {
266 this.options.height = this.Xelement.height();
267 }
268
269 // Default options value
270 this.options = XjQ.extend(true, {}, jQCloud.DEFAULTS, this.options);
271
272 // Ensure delay
273 if (this.options.delay === null) {
274 this.options.delay = this.word_array.length > 50 ? 10 : 0;
275 }
276
277 // Backward compatibility
278 if (this.options.center.x > 1) {
279 this.options.center.x = this.options.center.x / this.options.width;
280 this.options.center.y = this.options.center.y / this.options.height;
281 }
282
283 // Create colorGenerator function from options
284 // Direct function
285 if (typeof this.options.colors == 'function') {
286 this.colorGenerator = this.options.colors;
287 }
288 // Array of sizes
289 else if (XjQ.isArray(this.options.colors)) {
290 var cl = this.options.colors.length;
291 if (cl > 0) {
292 // Fill the sizes array to X items
293 if (cl < this.options.steps) {
294 for (var i = cl; i < this.options.steps; i++) {
295 this.options.colors[i] = this.options.colors[cl - 1];
296 }
297 }
298
299 this.colorGenerator = function(weight) {
300 return this.options.colors[this.options.steps - weight];
301 };
302 }
303 }
304
305 // Create sizeGenerator function from options
306 // Direct function
307 if (typeof this.options.fontSize == 'function') {
308 this.sizeGenerator = this.options.fontSize;
309 }
310 // Object with 'from' and 'to'
311 else if (XjQ.isPlainObject(this.options.fontSize)) {
312 this.sizeGenerator = function(width, height, weight) {
313 var max = width * this.options.fontSize.from,
314 min = width * this.options.fontSize.to;
315 return Math.round(min + (max - min) * 1.0 / (this.options.steps - 1) * (weight - 1)) + 'px';
316 };
317 }
318 // Array of sizes
319 else if (XjQ.isArray(this.options.fontSize)) {
320 var sl = this.options.fontSize.length;
321 if (sl > 0) {
322 // Fill the sizes array to X items
323 if (sl < this.options.steps) {
324 for (var j = sl; j < this.options.steps; j++) {
325 this.options.fontSize[j] = this.options.fontSize[sl - 1];
326 }
327 }
328
329 this.sizeGenerator = function(width, height, weight) {
330 return this.options.fontSize[this.options.steps - weight];
331 };
332 }
333 }
334
335 this.data.angle = Math.random() * 6.28;
336 this.data.step = (this.options.shape === 'rectangular') ? 18.0 : 2.0;
337 this.data.aspect_ratio = this.options.width / this.options.height;
338 this.clearTimeouts();
339
340 // Namespace word ids to avoid collisions between multiple clouds
341 this.data.namespace = (this.Xelement.attr('id') || Math.floor((Math.random() * 1000000)).toString(36)) + '_word_';
342
343 this.Xelement.addClass('jqcloud');
344
345 // Container's CSS position cannot be 'static'
346 if (this.Xelement.css('position') === 'static') {
347 this.Xelement.css('position', 'relative');
348 }
349
350 // Delay execution so that the browser can render the page before the computatively intensive word cloud drawing
351 this.createTimeout(XjQ.proxy(this.drawWordCloud, this), 10);
352
353 // Attach window resize event
354 if (this.options.autoResize) {
355 XjQ(window).on('resize.' + this.data.namespace, throttle(this.resize, 50, this));
356 }
357 },
358
359 // Helper function to keep track of timeouts so they can be destroyed
360 createTimeout: function(callback, time) {
361 var timeout = setTimeout(XjQ.proxy(function() {
362 delete this.data.timeouts[timeout];
363 callback();
364 }, this), time);
365 this.data.timeouts[timeout] = true;
366 },
367
368 // Destroy all timeouts
369 clearTimeouts: function() {
370 XjQ.each(this.data.timeouts, function(key) {
371 clearTimeout(key);
372 });
373 this.data.timeouts = {};
374 },
375
376 // Pairwise overlap detection
377 overlapping: function(a, b) {
378 if (Math.abs(2.0 * a.left + a.width - 2.0 * b.left - b.width) < a.width + b.width) {
379 if (Math.abs(2.0 * a.top + a.height - 2.0 * b.top - b.height) < a.height + b.height) {
380 return true;
381 }
382 }
383 return false;
384 },
385
386 // Helper function to test if an element overlaps others
387 hitTest: function(elem) {
388 // Check elements for overlap one by one, stop and return false as soon as an overlap is found
389 for (var i = 0, l = this.data.placed_words.length; i < l; i++) {
390 if (this.overlapping(elem, this.data.placed_words[i])) {
391 return true;
392 }
393 }
394 return false;
395 },
396
397 // Initialize the drawing of the whole cloud
398 drawWordCloud: function() {
399 var i, l;
400
401 this.Xelement.children('[id^="' + this.data.namespace + '"]').remove();
402
403 if (this.word_array.length === 0) {
404 return;
405 }
406
407 // Make sure every weight is a number before sorting
408 for (i = 0, l = this.word_array.length; i < l; i++) {
409 this.word_array[i].weight = parseFloat(this.word_array[i].weight, 10);
410 }
411
412 // Sort word_array from the word with the highest weight to the one with the lowest
413 this.word_array.sort(function(a, b) {
414 return b.weight - a.weight;
415 });
416
417 // Kepp trace of bounds
418 this.data.max_weight = this.word_array[0].weight;
419 this.data.min_weight = this.word_array[this.word_array.length - 1].weight;
420
421 // Generate colors
422 this.data.colors = [];
423 if (this.colorGenerator) {
424 for (i = 0; i < this.options.steps; i++) {
425 this.data.colors.push(this.colorGenerator(i + 1));
426 }
427 }
428
429 // Generate font sizes
430 this.data.sizes = [];
431 if (this.sizeGenerator) {
432 for (i = 0; i < this.options.steps; i++) {
433 this.data.sizes.push(this.sizeGenerator(this.options.width, this.options.height, i + 1));
434 }
435 }
436
437 // Iterate drawOneWord on every word, immediately or with delay
438 if (this.options.delay > 0) {
439 this.drawOneWordDelayed();
440 }
441 else {
442 for (i = 0, l = this.word_array.length; i < l; i++) {
443 this.drawOneWord(i, this.word_array[i]);
444 }
445
446 if (typeof this.options.afterCloudRender === 'function') {
447 this.options.afterCloudRender.call(this.Xelement);
448 }
449 }
450 },
451
452 // Function to draw a word, by moving it in spiral until it finds a suitable empty place
453 drawOneWord: function(index, word) {
454 var word_id = this.data.namespace + index,
455 word_selector = '#' + word_id,
456
457 // option.shape == 'elliptic'
458 angle = this.data.angle,
459 radius = 0.0,
460
461 // option.shape == 'rectangular'
462 steps_in_direction = 0.0,
463 quarter_turns = 0.0,
464
465 weight = Math.floor(this.options.steps / 2),
466 word_span,
467 word_size,
468 word_style;
469
470 // Create word attr object
471 //word.attr = XjQ.extend({}, word.html, { id: word_id });
472 word.attr = XjQ.extend({}, word.html, { id: word_id, group: (word.group ? word.group : "") });
473
474 // Linearly map the original weight to a discrete scale from 1 to 10
475 // Only if weights are different
476 if (this.data.max_weight != this.data.min_weight) {
477 weight = Math.round((word.weight - this.data.min_weight) * 1.0 * (this.options.steps - 1) / (this.data.max_weight - this.data.min_weight)) + 1;
478 }
479 word_span = XjQ('<span>').attr(word.attr);
480
481 word_span.addClass('jqcloud-word');
482
483 // Apply class
484 if (this.options.classPattern) {
485 word_span.addClass(this.options.classPattern.replace('{n}', weight));
486 }
487
488 // Apply color
489 if (this.data.colors.length) {
490 word_span.css('color', this.data.colors[weight - 1]);
491 }
492
493 // Apply color from word property
494 if (word.color) {
495 word_span.css('color', word.color);
496 }
497
498 // Apply size
499 if (this.data.sizes.length) {
500 word_span.css('font-size', this.data.sizes[weight - 1]);
501 }
502
503 //Render using template function if provided.
504 if (this.options.template) {
505 word_span.html(this.options.template(word));
506 } else if (word.link) {
507 // Append link if word.link attribute was set
508 // If link is a string, then use it as the link href
509 if (typeof word.link === 'string') {
510 word.link = { href: word.link };
511 }
512
513 if (this.options.encodeURI) {
514 word.link.href = encodeURI(word.link.href).replace(/'/g, '%27');
515 }
516
517 word_span.append(XjQ('<a>').attr(word.link).text(word.text));
518 }
519 else {
520 word_span.text(word.text);
521 }
522
523 // Bind handlers to words
524 if (word.handlers) {
525 word_span.on(word.handlers);
526 }
527
528 this.Xelement.append(word_span);
529
530 word_size = {
531 width: word_span.outerWidth(),
532 height: word_span.outerHeight()
533 };
534 word_size.left = this.options.center.x * this.options.width - word_size.width / 2.0;
535 word_size.top = this.options.center.y * this.options.height - word_size.height / 2.0;
536
537 // Save a reference to the style property, for better performance
538 word_style = word_span[0].style;
539 word_style.position = 'absolute';
540 word_style.left = word_size.left + 'px';
541 word_style.top = word_size.top + 'px';
542
543 while (this.hitTest(word_size)) {
544 // option shape is 'rectangular' so move the word in a rectangular spiral
545 if (this.options.shape === 'rectangular') {
546 steps_in_direction++;
547
548 if (steps_in_direction * this.data.step > (1 + Math.floor(quarter_turns / 2.0)) * this.data.step * ((quarter_turns % 4 % 2) === 0 ? 1 : this.data.aspect_ratio)) {
549 steps_in_direction = 0.0;
550 quarter_turns++;
551 }
552
553 switch (quarter_turns % 4) {
554 case 1:
555 word_size.left += this.data.step * this.data.aspect_ratio + Math.random() * 2.0;
556 break;
557 case 2:
558 word_size.top -= this.data.step + Math.random() * 2.0;
559 break;
560 case 3:
561 word_size.left -= this.data.step * this.data.aspect_ratio + Math.random() * 2.0;
562 break;
563 case 0:
564 word_size.top += this.data.step + Math.random() * 2.0;
565 break;
566 }
567 }
568 // Default settings: elliptic spiral shape
569 else {
570 radius += this.data.step;
571 angle += (index % 2 === 0 ? 1 : -1) * this.data.step;
572
573 word_size.left = this.options.center.x * this.options.width - (word_size.width / 2.0) + (radius * Math.cos(angle)) * this.data.aspect_ratio;
574 word_size.top = this.options.center.y * this.options.height + radius * Math.sin(angle) - (word_size.height / 2.0);
575 }
576 word_style.left = word_size.left + 'px';
577 word_style.top = word_size.top + 'px';
578 }
579
580 // Don't render word if part of it would be outside the container
581 if (this.options.removeOverflowing && (
582 word_size.left < 0 || word_size.top < 0 ||
583 (word_size.left + word_size.width) > this.options.width ||
584 (word_size.top + word_size.height) > this.options.height
585 )
586 ) {
587 word_span.remove();
588 return;
589 }
590
591 // Save position for further usage
592 this.data.placed_words.push(word_size);
593
594 if (typeof word.afterWordRender === 'function') {
595 word.afterWordRender.call(word_span);
596 }
597 },
598
599 // Draw one word then recall the function after a delay
600 drawOneWordDelayed: function(index) {
601 index = index || 0;
602
603 // if not visible then do not attempt to draw
604 if (!this.Xelement.is(':visible')) {
605 this.createTimeout(XjQ.proxy(function() {
606 this.drawOneWordDelayed(index);
607 }, this), 10);
608
609 return;
610 }
611
612 if (index < this.word_array.length) {
613 this.drawOneWord(index, this.word_array[index]);
614
615 this.createTimeout(XjQ.proxy(function() {
616 this.drawOneWordDelayed(index + 1);
617 }, this), this.options.delay);
618 }
619 else {
620 if (typeof this.options.afterCloudRender == 'function') {
621 this.options.afterCloudRender.call(this.Xelement);
622 }
623 }
624 },
625
626 // Destroy any data and objects added by the plugin
627 destroy: function() {
628 if (this.options.autoResize) {
629 XjQ(window).off('resize.' + this.data.namespace);
630 }
631
632 this.clearTimeouts();
633 this.Xelement.removeClass('jqcloud');
634 this.Xelement.removeData('jqcloud');
635 this.Xelement.children('[id^="' + this.data.namespace + '"]').remove();
636 },
637
638 // Update the list of words
639 update: function(word_array) {
640 this.word_array = word_array;
641 this.data.placed_words = [];
642
643 this.clearTimeouts();
644 this.drawWordCloud();
645 },
646
647 resize: function() {
648 var new_size = {
649 width: this.Xelement.width(),
650 height: this.Xelement.height()
651 };
652
653 if (new_size.width != this.options.width || new_size.height != this.options.height) {
654 this.options.width = new_size.width;
655 this.options.height = new_size.height;
656 this.data.aspect_ratio = this.options.width / this.options.height;
657
658 this.update(this.word_array);
659 }
660 },
661 };
662
663 /*
664 * Apply throttling to a callback
665 * @param callback {function}
666 * @param delay {int} milliseconds
667 * @param context {object|null}
668 * @return {function}
669 */
670 function throttle(callback, delay, context) {
671 var state = {
672 pid: null,
673 last: 0
674 };
675
676 return function() {
677 var elapsed = new Date().getTime() - state.last,
678 args = arguments,
679 that = this;
680
681 function exec() {
682 state.last = new Date().getTime();
683 return callback.apply(context || that, Array.prototype.slice.call(args));
684 }
685
686 if (elapsed > delay) {
687 return exec();
688 }
689 else {
690 clearTimeout(state.pid);
691 state.pid = setTimeout(exec, delay - elapsed);
692 }
693 };
694 }
695
696 /*
697 * jQuery plugin
698 */
699 XjQ.fn.jQCloud = function(word_array, option) {
700 var args = arguments;
701
702 return this.each(function() {
703 var Xthis = XjQ(this),
704 data = Xthis.data('jqcloud');
705
706 if (!data && word_array === 'destroy') {
707 // Don't even try to initialize when called with 'destroy'
708 return;
709 }
710 if (!data) {
711 var options = typeof option === 'object' ? option : {};
712 Xthis.data('jqcloud', (data = new jQCloud(this, word_array, options)));
713 }
714 else if (typeof word_array === 'string') {
715 data[word_array].apply(data, Array.prototype.slice.call(args, 1));
716 }
717 });
718 };
719
720 XjQ.fn.jQCloud.defaults = {
721 set: function(options) {
722 XjQ.extend(true, jQCloud.DEFAULTS, options);
723 },
724 get: function(key) {
725 var options = jQCloud.DEFAULTS;
726 if (key) {
727 options = options[key];
728 }
729 return XjQ.extend(true, {}, options);
730 }
731 };
732
733 var jQwords = [
734 {text: "Druckvorschau", weight: 9, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
735 {text: "Link im Formular", weight: 6, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
736 {text: "Kalenderwidget anpassen", weight: 8, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
737 {text: "Optionale Daten einer Auswahl mitspeichern (col Attribute)", weight: 4, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
738 {text: "Aktion vor Absenden ausführen", weight: 5, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
739 {text: "Absenden ohne Speichern", weight: 9, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
740 {text: "Eigene Formularfeld-Validatoren (Regex)", weight: 10, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
741 {text: "Wiederholende Felder (dynamic) im JS adressieren", weight: 10, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
742 {text: "Events an dynamic Felder anhängen", weight: 9, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
743 {text: "[Richtext-Editor (Ticket #4227)]", weight: 3, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
744 {text: "Vorbelegung von Daten im Formular (extern)", weight: 9, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
745 {text: "intiale Vorbelegung von Daten in Feldern", weight: 9, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
746 {text: "Formularfelder mit LDAP-Daten vorbelegen (Ticket 3701)", weight: 3, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
747 {text: "Formulareingaben zurücksetzen", weight: 7, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
748 {text: "Formulardaten lokal speichern und später wieder laden (Ticket #3964)", weight: 8, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
749 {text: "Formular zwischenspeichern", weight: 9, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
750 {text: "Labeltext zur Laufzeit manipulieren (Ticket #3493)", weight: 5, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
751 {text: "Mehrfachbedingungen im Designer", weight: 7, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
752 {text: "zusätzliches JS und CSS in allen Formularen", weight: 8, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
753 {text: "mehrseitige Formulare", weight: 9, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
754 {text: "responive / mobile Ansicht", weight: 10, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
755 {text: "andere Schriftart einbinden / Design ändern", weight: 9, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
756 {text: "Java-Script API", weight: 8, group: 'Designer', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
757
758 {text: "Datenquellen für Auswahllisten hinterlegen", weight: 8, group: 'Datenquellen', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
759 {text: "Datenquellen in Auswahllisten anhand von Parametern hinterlegen", weight: 6, group: 'Datenquellen', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
760 {text: "Leerer erster Eintrag bei SQL-Datenquelle (Ticket #4068)", weight: 5, group: 'Datenquellen', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
761
762 {text: "Mehrfachbedingungen im Workflow", weight: 8, group: 'Statusverarbeitung', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
763 {text: "Automatisiertes Löschen nach bestimmten Zeitraum", weight: 9, group: 'Statusverarbeitung', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
764 {text: "Exportmöglichkeiten von Daten", weight: 6, group: 'Statusverarbeitung', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
765 {text: "E-Mail Aktionen abhängig von Eingaben (Bedingungen) durchführen", weight: 8, group: 'Statusverarbeitung', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
766 {text: "Bedingtes Einblenden von Elementen", weight: 7, group: 'Statusverarbeitung', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
767 {text: "Mehrstufigen Workflow (Beispiel)", weight: 8, group: 'Statusverarbeitung', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
768 {text: "Statuswechsel", weight: 10, group: 'Statusverarbeitung', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
769 {text: "Vorgangs-ID im Druck (Word-Fill) anzeigen (Ticket #3813)", weight: 5, group: 'Statusverarbeitung', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
770 {text: "iCal Datei erzeugen", weight: 3, group: 'Statusverarbeitung', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
771 {text: "aktuelles Datum in der Verarbeitung", weight: 6, group: 'Statusverarbeitung', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
772 {text: "Laufende Nummer aus Nummernkreis erzeugen (Ticket #3249)", weight: 3, group: 'Statusverarbeitung', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
773 {text: "E-Mail-Versand", weight: 10, group: 'Statusverarbeitung', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
774
775 {text: "Migrationsmöglichkeiten in Webseite", weight: 6, group: 'Abschlusseite', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
776 {text: "Abschlussseite in Webseite anzeigen (inline)", weight: 5, group: 'Abschlusseite', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
777 {text: "Generierte Dateien auf Abschlussseite anzeigen", weight: 7, group: 'Abschlusseite', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
778 {text: "Benutzerdefinierte Abschlussseite", weight: 9, group: 'Abschlusseite', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
779 {text: "Referenznummer (Ticket #3866)", weight: 5, group: 'Abschlusseite', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
780
781 {text: "Vorgänge löschen", weight: 9, group: 'Posteingang', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
782 {text: "Filtermöglichkeiten", weight: 8, group: 'Posteingang', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
783 {text: "Stauswechsel im Postfach ermöglichen (notwendige Einstellungen)", weight: 6.5, group: 'Posteingang', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
784 {text: "Postfach exportieren", weight: 7, group: 'Posteingang', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
785 {text: "Berechtigungen/Sichtbarkeiten für Benutzer festlegen", weight: 6, group: 'Posteingang', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
786
787 {text: "Update FORMCYCLE", weight: 4, group: 'Anderes', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
788 {text: "Zugriffseinschränkung - Möglichkeiten", weight: 3, group: 'Anderes', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
789 {text: "I-Frame automatisch Höhe anpassen", weight: 5, group: 'Anderes', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
790 {text: "Daten aus Formular werden nicht gespeichert (Disablede Felder)", weight: 6, group: 'Anderes', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
791 {text: "Double Opt-In", weight: 7, group: 'Anderes', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/UserInterface/MyForms/DoubleOptIn/'},
792 {text: "[Übersicht von Lösungen bei Problemen mit z.B. DB (Ticket #3714, #3057)]", weight: 6, group: 'Anderes', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
793 {text: "[Tomcat Zugriff HTTPS - Zertifikat-Einrichtung (Ticket #3295)]", weight: 5, group: 'Anderes', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
794 {text: "Beispiele für Print CSS / Erläuterung was das PDF Print Plugin macht", weight: 7, group: 'Anderes', link: 'https://help.formcycle.eu/xwiki/bin/view/Formcycle/'},
795 ];
796 ##http://mistic100.github.io/jQCloud/demo.html#handlers
797 /*XjQ('#jQArea').jQCloud(jQwords, {
798 classPattern: null,
799 colors: ["#176694", "#3480AD", "#5398c1", "#76b2d6", "#7ca2b9", "#889fad", "#8e979c", "#929596", "#babbbb"],
800 fontSize: ['16px','15px','15px','14px','14px','13px','13px','12px','12px'],
801 //width: 500,
802 height: 500
803 });*/
804
805 var jQButtons = XjQ('.jQButton');
806
807 jQButtons.click(function() {
808 if (XjQ(this).attr('active') == 'true') {
809 XjQ('#jQArea').children('span[group="'+XjQ(this).attr('group')+'"]').each(jQTagInvisible);
810 XjQ(this).attr('active', 'false');
811 } else {
812 XjQ('#jQArea').children('span[group="'+XjQ(this).attr('group')+'"]').each(jQTagVisible);
813 XjQ(this).attr('active', 'true');
814 }
815 });
816 function jQTagVisible() {
817 XjQ(this).css('display', 'block');
818 }
819 function jQTagInvisible() {
820 XjQ(this).css('display', 'none');
821 }
822
823 jQButtons.hover(function() {
824 console.log("hover",XjQ(this));
825 XjQ('#jQArea').children('span[group="'+XjQ(this).attr('group')+'"]').each(jQTagHighlighted);
826 }, function() {
827 console.log("unhover",XjQ(this));
828 XjQ('#jQArea').children('span[group="'+XjQ(this).attr('group')+'"]').each(jQTagNotHighlighted);
829 });
830 function jQTagHighlighted() {
831 XjQ(this).addClass('jqHighlight');
832 }
833 function jQTagNotHighlighted() {
834 XjQ(this).removeClass('jqHighlight');
835 }
836 });
837 </script>
838 <!--
839 <div class="row">
840 <div class="d-none d-md-block col-lg-12 card-main">
841 <div class="well" >
842 <div id="jQButtons">
843 <div id="jQBtn1" class="jQButton" group="Designer" active="true"><span class="jQButton-icon"></span>&nbsp;&nbsp;Designer</div>
844 <div id="jQBtn1" class="jQButton" group="Datenquellen" active="true"><span class="jQButton-icon"></span>&nbsp;&nbsp;Datenquellen</div>
845 <div id="jQBtn1" class="jQButton" group="Statusverarbeitung" active="true"><span class="jQButton-icon"></span>&nbsp;&nbsp;Statusverarbeitung</div>
846 <div id="jQBtn1" class="jQButton" group="Abschlusseite" active="true"><span class="jQButton-icon"></span>&nbsp;&nbsp;Abschlusseite</div>
847 <div id="jQBtn1" class="jQButton" group="Posteingang" active="true"><span class="jQButton-icon"></span>&nbsp;&nbsp;Posteingang</div>
848 <div id="jQBtn1" class="jQButton" group="Anderes" active="true"><span class="jQButton-icon"></span>&nbsp;&nbsp;Anderes</div>
849 </div>
850 <div id="jQArea">
851 </div>
852 </div>
853 </div>
854 </div>
855 -->
856 {{/html}}
857 {{/velocity}}