Browse Source

add pages display

master
Pascal Gloor 5 years ago
parent
commit
593eba62af
2 changed files with 11 additions and 1 deletions
  1. 7
    1
      www/index.html
  2. 4
    0
      www/js/autodoc.js

+ 7
- 1
www/index.html View File

<img class="autodoc_template_home_img img-thumbnail rounded" src="" /> <img class="autodoc_template_home_img img-thumbnail rounded" src="" />
</td> </td>
</tr> </tr>
<tr>
<td class="text-left">Pages:</td>
<td class="text-right">
<span class="autodoc_template_home_pages">undefined</span>
</td>
</tr>
<tr> <tr>
<td class="text-left">Owner:</td> <td class="text-left">Owner:</td>
<td class="text-right"> <td class="text-right">
<script src="js/autodoc.js"></script> <script src="js/autodoc.js"></script>
</body> </body>


</html>
</html>

+ 4
- 0
www/js/autodoc.js View File

.find(".autodoc_template_home_name") .find(".autodoc_template_home_name")
.html(doc.name); .html(doc.name);


$(col)
.find(".autodoc_template_home_pages")
.html(doc.pages.length);

$.each(doc.tags, function (id, tag) { $.each(doc.tags, function (id, tag) {
$(col) $(col)
.find(".autodoc_template_home_tag") .find(".autodoc_template_home_tag")

Loading…
Cancel
Save