Sha256: b527b5743c8c8873ddfc465388176893e87a5f2676bde13bc16dd76229be3296

Contents?: true

Size: 1.82 KB

Versions: 1

Compression:

Stored size: 1.82 KB

Contents

<div class="copyright">
  <p class="year">
    &copy; ISO DOCYEAR, Published in Switzerland
  </p>

  <p class="message">
    All rights
reserved. Unless otherwise specified, no part of this publication may be
reproduced or utilized otherwise in any form or by any means, electronic or
mechanical, including photocopying, or posting on the internet or an intranet,
without prior written permission. Permission can be requested from either ISO
at the address below or ISO’s member body in the country of the requester.
  </p>

  <p class="name">ISO copyright office</p>
  <p class="address">
    Ch. de Blandonnet 8 &#x2022; CP 401<br/>
    CH-1214 Vernier, Geneva, Switzerland<br/>
    Tel.&nbsp;&nbsp;+ 41 22 749 01 11<br/>
    Fax&nbsp;&nbsp;+ 41 22 749 09 47><br/>
    copyright@iso.org<br/>
    www.iso.org
  </p>
</div>


</div>

<div class="rule"></div>

<div class="toc">
  <h1 class="toc-contents">Contents</h1>
  <ul id="toc-list"></ul>
</div>

<div class="rule"></div>

<script type="text/javascript"
  src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
</script>

<script>
// http://tutorials.jenkov.com/jquery/generating-table-of-contents.html
$(document).ready(function() {
  $("#toc-list").empty();

  var prevH2Item = null;
  var prevH2List = null;

  var index = 0;
  $("h1, h2").each(function() {

    if ($(this).hasClass("toc-contents")) {
      return;
    }
    //insert an anchor to jump to, from the TOC link.
    var anchor = "<a name='" + index + "'></a>";
    $(this).before(anchor);

    var li     = "<li><a href='#" + index + "'>" + $(this).text() + "</a></li>";

    if ($(this).is("h1") ){
      prevH2List = $("<ul></ul>");
      prevH2Item = $(li);
      prevH2Item.append(prevH2List);
      prevH2Item.appendTo("#toc-list");
    } else {
      prevH2List.append(li);
    }
    index++;
  });
});
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asciidoctor-iso-0.6.0 lib/asciidoctor/iso/html/html_iso_intro.html