Von Version < 24.1 >
bearbeitet von XIMA Admin
am 05.03.2020, 22:06
Auf Version < 28.1 >
bearbeitet von gru
am 12.03.2020, 14:39
< >
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

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