Simple example

Source code:

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title>IIIF Viewer | Examples</title>
    <script src="https://cdn.klokantech.com/iiifviewer/v1.2/iiifviewer.js" type="text/javascript"></script>
  </head>
  <body>
    <div id="map" style="width:600px;height:400px;border:1px solid #000;"></div>
    <script type="text/javascript">
      var url = location.hash.toString().substr(1);
      if (url.length < 2)
        url = 'http://demo.iiifhosting.com/iiif/demo/info.json';
      new IiifViewer('map', url);
    </script>
  </body>
</html>