Pascal Gloor 5 anni fa
parent
commit
52069614d4
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 1
    2
      www/index.html
  2. 3
    2
      www/js/autodoc.js

+ 1
- 2
www/index.html Vedi File

@@ -199,8 +199,7 @@
<div class="autodoc_document_template d-none">
<div class="autodoc_document_template_carousel">
<div class="text-center">
<img class="img-thumbnail rounded" /><br/>
<span class="lead"></span>
<img class="img-thumbnail rounded" />
</div>
</div>
</div>

+ 3
- 2
www/js/autodoc.js Vedi File

@@ -263,14 +263,15 @@ function page_load_document(args) {
$(item).children('img').attr('data-lazy',
conf.openapi + "/pages/" + doc.pageId[i] + "/image?maxWidth=200");

$(item).children('span').html(i+1);
$('.autodoc_document_carousel').append(item);

}
$('.autodoc_document_carousel').slick({
lazyLoad: 'ondemand',
slidesToShow: 4,
slidesToScroll: 4
slidesToScroll: 4,
dots: true,
infinite: true
});

}

Loading…
Annulla
Salva