Browse Source

big image

master
Pascal Gloor 5 years ago
parent
commit
e3643b9aea
2 changed files with 8 additions and 2 deletions
  1. 5
    0
      www/index.html
  2. 3
    2
      www/js/autodoc.js

+ 5
- 0
www/index.html View File

</div> </div>
</div> </div>
</div> </div>
<div class="row">
<div class="col-12">
<img class="autodoc_document_image img-fluid" />
</div>
</div>
</div> </div>
</div> </div>



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



$(item).data('pageid', doc.pageId[i]); $(item).data('pageid', doc.pageId[i]);
$(item).click(function(e) { $(item).click(function(e) {
console.log(e);
console.log("open image", $(e.target).parent().data('pageid'));
$('.autodoc_document_image').attr('src',
conf.openapi + "/pages/" + $(e.target).parent().data('pageid') + "/image"
);
}); });
$('.autodoc_document_carousel').append(item); $('.autodoc_document_carousel').append(item);



Loading…
Cancel
Save