Browse Source

test

master
Pascal Gloor 5 years ago
parent
commit
2d3cb8a16a
2 changed files with 20 additions and 2 deletions
  1. 1
    1
      www/index.html
  2. 19
    1
      www/js/autodoc.js

+ 1
- 1
www/index.html View File

<!-- Home --> <!-- Home -->
<div class="container d-none" id="autodoc_tab_home"> <div class="container d-none" id="autodoc_tab_home">
<h1>Current Documents</h1> <h1>Current Documents</h1>
<div class="row">
<div class="row d-none" id="autodoc_template_docrow">
<div class="col"> <div class="col">
<table class="table table-borderless"> <table class="table table-borderless">
<tr> <tr>

+ 19
- 1
www/js/autodoc.js View File

/* AutoDoc Javascript */ /* AutoDoc Javascript */


var conf = { var conf = {
"default_hash": "home"
"default_hash": "home",
"openapi": "/v1",
"pageinit": {
"home": "page_load_home(0)"
}
}; };




$('#autodoc_tab_'+curhash).addClass('d-none'); $('#autodoc_tab_'+curhash).addClass('d-none');
} }
}); });

if ( conf.pageinit[hash]) {
eval(conf.pageinit[hash]);
}
}

function document_load(page) {
if ( ! page ) { page = 0; }

$.getJSON(conf.openapi + "/documents?pageSize=3&pageIndex=" + page, null,
function (data, textStatus, jqXHR) {
console.log(data);
}
);
} }

Loading…
Cancel
Save