Změny dokumentu XCVID
Naposledy upravil David Brazda 08.04.2021 16:25
Popis verze:
Update document after refactoring.
Přehled
-
Objects (1 změněno, 0 přidáno, 0 odstraněno)
Rozpis
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -6,11 +6,13 @@ 6 6 #set ($discard = $xwiki.jsx.use('BackEnd.XCVID.WebHome')) 7 7 #set ($regexResult = $regextool.find($url, '/^https:\/\/www.xcontest.org\/[\w\/]+:([-\w.]+\/\d\d?\.\d\d?\.\d{4}\/\d\d:\d\d)($|\?|#)/')) 8 8 {{html}} 9 +#if (!$regexResult.isEmpty()) 9 9 $regexResult 10 10 $regexResult.get(1).group 11 11 $regexResult.get(0).end 12 12 $regexResult.get(0).start 13 13 $regexResult.get(0).group 15 +#end 14 14 <iframe onLoad="this.onload=null; this.src=getAddress('$url');" id="xcvid" width="$!{escapetool.html($width)}" height="$!{escapetool.xml($height)}">$xcontext.macro.content</iframe> 15 15 {{/html}} 16 16 {{/velocity}}