Merge branch 'Dev' into Docker
This commit is contained in:
@@ -26,9 +26,8 @@
|
|||||||
</html>
|
</html>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var x = '';
|
var manga = '';
|
||||||
var bookTitle = '';
|
|
||||||
var bookCommand = '';
|
|
||||||
function activeReturn() {
|
function activeReturn() {
|
||||||
document.getElementById('main').innerHTML= '';
|
document.getElementById('main').innerHTML= '';
|
||||||
|
|
||||||
@@ -37,12 +36,12 @@
|
|||||||
.then(function(data) {
|
.then(function(data) {
|
||||||
for (i=0; i < data.active.length; i++ )
|
for (i=0; i < data.active.length; i++ )
|
||||||
{
|
{
|
||||||
x = data.active[i];
|
manga = data.active[i];
|
||||||
<!--console.log(x.title)-->
|
<!--console.log(manga.title)-->
|
||||||
var div = document.createElement('div');
|
var div = document.createElement('div');
|
||||||
div.setAttribute('id', x.id);
|
div.setAttribute('id', manga.id);
|
||||||
div.setAttribute('class', 'activeList');
|
div.setAttribute('class', 'activeList');
|
||||||
div.innerHTML = '<b>' + x.title + '</b><br>';
|
div.innerHTML = '<b>' + manga.title + '</b><br>';
|
||||||
document.getElementById("main").appendChild(div);
|
document.getElementById("main").appendChild(div);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
@@ -77,12 +76,11 @@
|
|||||||
fetch('/download')
|
fetch('/download')
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(function(data){
|
.then(function(data){
|
||||||
for (i=0; data.updated.length; i++) {
|
for (i=0; data.manga.length; i++) {
|
||||||
bookTitle = data.book[i];
|
manga = data.manga[i];
|
||||||
bookCommand = data.command[i];
|
|
||||||
var div = document.createElement('div');
|
var div = document.createElement('div');
|
||||||
div.setAttribute('id', 'book'+i);
|
div.setAttribute('id', 'book'+i);
|
||||||
div.innerHTML = bookTitle + "<br>";
|
div.innerHTML = manga.title + "<br>";
|
||||||
document.getElementById("updated").appendChild(div);
|
document.getElementById("updated").appendChild(div);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user