slideshow.htmlon commit add expand button, change image height to max-height (3b37366)
   1<html>
   2
   3  <head>
   4    <link href="slideshow.css" rel="stylesheet" type="text/css" media="all" />
   5  </head>
   6
   7  <body>
   8
   9    <div class="slideshow">
  10      <div class="slides">
  11
  12        <figure class="slide">
  13          <img src="test-img/1.jpg">
  14          <figcaption>This is a caption</figcaption>
  15        </figure>
  16
  17        <figure class="slide">
  18          <img src="test-img/2.jpg">
  19          <figcaption><span>This is a long caption which will probably span over multiple lines (depending on the width of the slideshow). You will see that that the height of the image adjusts to accommodate the taller caption.</figcaption>
  20        </figure>
  21
  22        <figure class="slide">
  23          <img src="test-img/3.jpg">
  24          <figcaption>Caption 3</figcaption>
  25        </figure>
  26
  27      </div>
  28
  29      <a id="prev" title="Previous image">&#10094;</a>
  30      <a id="next" title="Next image">&#10095;</a>
  31      <a id="expand" title="View in new tab">
  32        <svg version="1.1" viewBox="0 0 36 36">
  33          <path d="m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"></path>
  34          <path d="m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"></path>
  35          <path d="m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"></path>
  36          <path d="M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"></path>
  37        </svg>
  38      </a>
  39      <a id="state" title="Pause">&#x23f8;&#xFE0E;</a>
  40
  41      <div id="controls">
  42        <span class="dot"></span>
  43        <span class="dot"></span>
  44        <span class="dot"></span>
  45      </div>
  46
  47    </div>
  48
  49    <script src="slideshow.js" type="text/javascript"></script>
  50
  51  </body>
  52</html>