Wiki-Quellcode von FORMCYCLE Hilfe


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