Von Version < 21.1 >
bearbeitet von XIMA Admin
am 05.03.2020, 21:25
Auf Version < 28.8 >
bearbeitet von gru
am 12.03.2020, 15:09
< >
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

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