[
https://issues.jboss.org/browse/JBIDE-17053?page=com.atlassian.jira.plugi...
]
Nick Boldt commented on JBIDE-17053:
------------------------------------
How about something simpler in the .adoc?
{code}
.Thumbnail linked to full image
image:/images/font/screen2-thumb.gif[
"My screenshot",width=128,
link="/images/font/screen2-full.gif"]
{code}
Or, I have code here that has a "click to enlarge" feature:
{code:title=https://devstudio.jboss.com/earlyaccess/7.1.1.GA.html}
<script type="text/javascript">
<!--
function toggle()
{
theImg=document.getElementById('screenshot');
if (theImg.src.indexOf("540.png")>0)
{
theImg.src=theImg.src.replace("jbds7-screenshot-browsersim-540.png","jbds7-screenshot-browsersim.png");
theImg.style.zIndex="1";
theImg.style.position="absolute";
theImg.style.top="-150px";
theImg.style.left="-10px";
}
else
{
theImg.src=theImg.src.replace("jbds7-screenshot-browsersim.png","jbds7-screenshot-browsersim-540.png");
theImg.style.zIndex="0";
theImg.style.position="relative";
theImg.style.top="0px";
theImg.style.left="0px";
}
}
-->
</script>
... then ...
<p align="center"><a href="javascript:toggle()"><img
border="0" id="screenshot"
src="https://devstudio.jboss.com/images/jbds7-screenshot-browsersim-...
to enlarge</small></a></p>
{code}
Of course you could parameterize it so it works on any image, eg.,
toggle('screenshot'), which would pull the image's id and use that to get the
filenames to toggle
images on whatssnew would be great to have an easy way to show
"full resolution"
--------------------------------------------------------------------------------
Key: JBIDE-17053
URL:
https://issues.jboss.org/browse/JBIDE-17053
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: website
Reporter: Max Rydahl Andersen
Assignee: Xavier Coulon
Fix For: 4.2.0.Beta2
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)