Multiple Versions Example

The following index.html content provides an example of how to create a user selection page for choosing a specific version of a document that has multiple versions. This is used in conjunction with choose.js. choose.js will set the display to "block" for the <div> section whose "id" matches the active folder (projectName/, ProjectName/html/ or ProjectName/html_a/) and to "none" for all other <div> sections. When viewing the ProjectName/ folder, the menu links will default to projectName/html/pageName.html, otherwise the links will reference files in the active folder (ProjectName/html/ or ProjectName/html_a/, unless an external reference is linked, in which case the link will be unaffected).

<div id="index">
<script type="text/javascript">choose("index");</script>
<!--This <div> will be displayed if the URL is projectName/index.html-->
<p>Choose the version you want to view.</p>
<p><a href="../html">Base Version (html)</a></p>
<p><a href="../html_a">Alternate Version (html_a)</a></p>
</div>

<div id="html">
<script type="text/javascript">choose("html");</script>
<!--This <div> will be displayed if the URL is projectName/html/index.html-->
<p>You are viewing content in projectName/html/</p>
</div>

<div id="html_a">
<script type="text/javascript">choose("html_a");</script>
<!--This <div> will be displayed if the URL is projectName/html_a/index.html-->
<p>You are viewing content in projectName/html_a/</p>
</div>

The title of the root index.htm will be based upon the last version generated.


VideoRay Documentation Only

[ Help us improve this document ]

DynaDoc Operator's Manual, Version: 1.00.00
Copyright © 2017, VideoRay LLC - The Global Leader in Micro-ROV Technology