Wiki-Quellcode von FORMCYCLE Hilfe


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