Wiki-Quellcode von FORMCYCLE Hilfe


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