Sha256: 2f7f47e011f37e76d209242f255b0b1f14fe411b7f03c766da4fffda90e23453

Contents?: true

Size: 1.83 KB

Versions: 2

Compression:

Stored size: 1.83 KB

Contents

<div class="copyright">
  <p class="year">
    &copy; {{ agency }} {{ 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

2 entries across 2 versions & 1 rubygems

Version Path
asciidoctor-iso-0.7.0 lib/asciidoctor/iso/html/html_iso_intro.html
asciidoctor-iso-0.6.1 lib/asciidoctor/iso/html/html_iso_intro.html