Widget:TChartlet static
From CruisersWiki
(Difference between revisions)
(5 intermediate revisions not shown) | |||
Line 23: | Line 23: | ||
assign var='h' value=$height|replace:"px":"" | assign var='h' value=$height|replace:"px":"" | ||
}--><!--{ | }--><!--{ | ||
- | assign var='url' value="http://staticmap.openstreetmap.de/staticmap.php?center=`$lat`,`$lon`&zoom=`$zoom`&size=`$w`x`$h`&maptype=mapnik" | + | assign var='url' value="http://staticmap.openstreetmap.de/staticmap.php?center=`$lat`,`$lon`&zoom=`$zoom`&size=`$w`x`$h`&maptype=mapnik"|escape |
}--><!--{ | }--><!--{ | ||
assign var='style' value="width:`$width`; height:`$height`; background-image:url($url)"|escape | assign var='style' value="width:`$width`; height:`$height`; background-image:url($url)"|escape | ||
- | }--> | + | }--><noscript><img class="chartlet-static" src="<!--{$url}-->"></noscript><!--{* |
- | <noscript> | + | |
- | < | + | no sure why it so, but noscript to be repeated, otherwise every other instance is not rendered |
- | </noscript> | + | |
- | </includeonly><noinclude> | + | *}--><noscript></noscript></includeonly><noinclude> |
<!--------------------------------------------> | <!--------------------------------------------> |
Latest revision as of 16:33, 18 November 2018