Von Version < 22.1 >
bearbeitet von XIMA Admin
am 05.03.2020, 21:32
Auf Version < 30.8 >
bearbeitet von gru
am 06.05.2020, 08:12
< >
Änderungskommentar: allow edit Zugriffsrechte für XWiki.XWikiAdminGroup

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