Wiki-Quellcode von FORMCYCLE Hilfe


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