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