comment out dead code and prepare function for moving to right index
This commit is contained in:
parent
affaf7a53b
commit
ed9693c27b
2 changed files with 30 additions and 22 deletions
|
@ -409,26 +409,26 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function addHtml(url) {
|
/* function addHtml(url) { */
|
||||||
console.log("adding an html");
|
/* console.log("adding an html"); */
|
||||||
var pageCount = 1;
|
/* var pageCount = 1; */
|
||||||
web.runJavaScript("Reveal.getSlides()", function(result) {
|
/* web.runJavaScript("Reveal.getSlides()", function(result) { */
|
||||||
let str = '';
|
/* let str = ''; */
|
||||||
for (const [p, val] of Object.entries(result[0])) {
|
/* for (const [p, val] of Object.entries(result[0])) { */
|
||||||
str += `${p}::${val}\n`;
|
/* str += `${p}::${val}\n`; */
|
||||||
}
|
/* } */
|
||||||
console.log(str);
|
/* console.log(str); */
|
||||||
pageCount = result.length;
|
/* pageCount = result.length; */
|
||||||
console.log(pageCount);
|
/* console.log(pageCount); */
|
||||||
presProxyModel.presentationModel.newItem(url, pageCount);
|
/* presProxyModel.presentationModel.newItem(url, pageCount); */
|
||||||
selectedLibrary = "presentation";
|
/* selectedLibrary = "presentation"; */
|
||||||
presentationLibrary.libraryList.currentIndex = presProxyModel.presentationModel.count();
|
/* presentationLibrary.libraryList.currentIndex = presProxyModel.presentationModel.count(); */
|
||||||
console.log(presProxyModel.getPresentation(presentationLibrary.libraryList.currentIndex));
|
/* console.log(presProxyModel.getPresentation(presentationLibrary.libraryList.currentIndex)); */
|
||||||
const presentation = presProxyModel.getPresentation(presentationLibrary.libraryList.currentIndex);
|
/* const presentation = presProxyModel.getPresentation(presentationLibrary.libraryList.currentIndex); */
|
||||||
showPassiveNotification("newest image: " + presentation.title);
|
/* showPassiveNotification("newest image: " + presentation.title); */
|
||||||
if (!editMode)
|
/* if (!editMode) */
|
||||||
editMode = true;
|
/* editMode = true; */
|
||||||
editSwitch("presentation", presentation);
|
/* editSwitch("presentation", presentation); */
|
||||||
});
|
/* }); */
|
||||||
}
|
/* } */
|
||||||
}
|
}
|
||||||
|
|
|
@ -181,6 +181,14 @@ Item {
|
||||||
if (loadRequest.status == 2)
|
if (loadRequest.status == 2)
|
||||||
showPassiveNotification("yahoo?");
|
showPassiveNotification("yahoo?");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* function moveToSlideIndex(index) { */
|
||||||
|
/* web.runJavaScript(" */
|
||||||
|
/* const index */
|
||||||
|
/* for (let i = 0; i < index; i++) { */
|
||||||
|
/* Reveal.next(); */
|
||||||
|
/* }") */
|
||||||
|
/* } */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue