Změny dokumentu XCVID
Naposledy upravil David Brazda 08.04.2021 16:25
Popis verze:
Při změně verze nebyl zadán žádný kometář.
Přehled
-
Na stránce změněno: (2 změněno, 0 přidáno, 0 odstraněno)
-
Objects (0 změněno, 0 přidáno, 5 odstraněno)
Rozpis
- Na stránce změněno:
-
- Nadpis
-
... ... @@ -1,1 +1,1 @@ 1 - XCVID1 +Macro - xcvid - Obsah
-
... ... @@ -1,14 +1,4 @@ 1 - **Macro pro xcvid**1 +Macro pro xcvid 2 2 3 -příklad: 4 4 5 -~{~{xcvid url="https:~/~/www.xcontest.org/cesko/prelety/detail:davidbrazda/29.1.2021/16:27"/}} 6 - 7 -{{xcvid url="https://www.xcontest.org/cesko/prelety/detail:davidbrazda/29.1.2021/16:27" time="40" shadow="0" zoom="1"/}} 8 - 9 - 10 -**parametr Zoom (více odzoompat)** 11 - 12 -1 - odzoomováno 13 - 14 -0 - standard pohled 4 +
- XWiki.WikiMacroClass[0]
-
- Cached
-
... ... @@ -1,1 +1,0 @@ 1 -0 - Asynchronous rendering
-
... ... @@ -1,1 +1,0 @@ 1 -0 - Macro code
-
... ... @@ -1,32 +1,0 @@ 1 -{{velocity}} 2 -#set($url = $xcontext.macro.params.get('url')) 3 -#set($flight = $xcontext.macro.params.get('flight')) 4 -#set($time = $xcontext.macro.params.get('time')) 5 -#set($shadow = $xcontext.macro.params.get('shadow')) 6 -#if ($shadow == 0) 7 - #set($shadow = "") 8 -#end 9 -#set($zoom = $xcontext.macro.params.get('zoom')) 10 -#if ($zoom == 0) 11 - #set($zoom = "") 12 -#else 13 - #set($zoom = "0,-2500,400,") 14 -#end 15 -##find just the right part from the xcontest 16 -#set ($regexResult = $regextool.find($url, '^https:\/\/www.xcontest.org\/[\w\/]+:([-\w.]+\/\d\d?\.\d\d?\.\d{4}\/\d\d:\d\d)($|\?|#)')) 17 -{{html}} 18 -#if ($regexResult.isEmpty()) 19 - ##$regexResult 20 - ##$regexResult.get(1).end 21 - ##$regexResult.get(1).start 22 - ##$url.substring($regexResult.get(1).start,$regexResult.get(1).end) 23 - Neplatný odkaz na tracklog. Např. https://www.xcontest.org/cesko/prelety/detail:davidbrazda/29.1.2021/16:27 24 -#else 25 - #set ($suffix = "?ident=" + $url.substring($regexResult.get(1).start,$regexResult.get(1).end) + "&shadow=" + $shadow + "&viewFrom=" + $zoom + "#" + $time) 26 - #set ($src = "https://xcvid.com/embed.php" + $suffix) 27 - <div class="xdocLastModification">Interaktivní 3D pohled.</div> 28 - <iframe src="$src" id="xcvid" class="responsive-embed" allowfullscreen><a href="$src$suffix">XCVID let</a></iframe> 29 - <!-- <div class="xdocLastModification"><a href="$url" title="Let na xcontestu">XContest</a></div> --> 30 -#end 31 -{{/html}} 32 -{{/velocity}} - Macro content availability
-
... ... @@ -1,1 +1,0 @@ 1 -No content - Macro description
-
... ... @@ -1,1 +1,0 @@ 1 -Zobrazí embedovaný let z aplikace XCXVID. Vstupem je link na let z xcontestu. - Macro id
-
... ... @@ -1,1 +1,0 @@ 1 -xcvid - Macro name
-
... ... @@ -1,1 +1,0 @@ 1 -XCVID embedovany let - Supports inline mode
-
... ... @@ -1,1 +1,0 @@ 1 -0 - Macro visibility
-
... ... @@ -1,1 +1,0 @@ 1 -Global
- XWiki.WikiMacroParameterClass[0]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -Adresa trackogu v xcontestu např. "https:~/~/www.xcontest.org/cesko/prelety/detail:davidbrazda/29.1.2021/16:27" - Parameter mandatory
-
... ... @@ -1,1 +1,0 @@ 1 -1 - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -url
- XWiki.WikiMacroParameterClass[1]
-
- Parameter default value
-
... ... @@ -1,1 +1,0 @@ 1 -0 - Parameter description
-
... ... @@ -1,9 +1,0 @@ 1 -Časové značka, Počet sekund od startu, kde bude padáček a focus. Defaultně 0. 2 - 3 -(% id="gtx-trans" style="position: absolute; left: -29px; top: -8px;" %) 4 -((( 5 -(% class="gtx-trans-icon" %) 6 -((( 7 - 8 -))) 9 -))) - Parameter mandatory
-
... ... @@ -1,1 +1,0 @@ 1 -0 - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -time
- XWiki.WikiMacroParameterClass[2]
-
- Parameter default value
-
... ... @@ -1,1 +1,0 @@ 1 -1 - Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -Má být zobrazen na zemi stín tracklogu (hodnoty: 1 nebo 0) Použití: 1 - při přeletech, 0 při svahovačkách - Parameter mandatory
-
... ... @@ -1,1 +1,0 @@ 1 -0 - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -shadow
- XWiki.WikiMacroParameterClass[3]
-
- Parameter default value
-
... ... @@ -1,1 +1,0 @@ 1 -1 - Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -Více odzoomovat? (1;0) Default 1 - Parameter mandatory
-
... ... @@ -1,1 +1,0 @@ 1 -0 - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -zoom