Z verze
změnil(a) David Brazda
k 01.02.2021 15:23
Na verzi < 31.6 >
změnil(a) David Brazda
k 01.02.2021 15:26
< >
Popis verze: Update document after refactoring.

Přehled

Rozpis

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -4,7 +4,7 @@
4 4  #set($height = $xcontext.macro.params.get('height'))
5 5  #set($flight = $xcontext.macro.params.get('flight'))
6 6  #set ($discard = $xwiki.jsx.use('BackEnd.XCVID.WebHome'))
7 -#set ($regexResult = $regextool.find($url, '/^https:\/\/www.xcontest.org\/[\w\/]+:([-\w.]+\/\d\d?\.\d\d?\.\d{4}\/\d\d:\d\d)($|\?|#)/'))
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 9  #if (!$regexResult.isEmpty())
10 10   $regexResult
... ... @@ -13,6 +13,6 @@
13 13   $regexResult.get(0).start
14 14   $regexResult.get(0).group
15 15  #end
16 - <iframe onLoad="this.onload=null; this.src=getAddress('$url');" id="xcvid" width="$!{escapetool.html($width)}" height="$!{escapetool.xml($height)}">$xcontext.macro.content</iframe>
16 + <iframe onLoad="this.onload=null;" id="xcvid" width="$!{escapetool.html($width)}" height="$!{escapetool.xml($height)}">$xcontext.macro.content</iframe>
17 17  {{/html}}
18 18  {{/velocity}}