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