Update script.js

This commit is contained in:
2019-03-29 08:55:18 -04:00
committed by GitHub
parent ef1cee22e6
commit d1a9af51d9
+1 -1
View File
@@ -1,5 +1,5 @@
function changePDF(chapter) {
var container = document.getElementById("pdfcontainer")
container.innerHTML = "<embed src='https://lax18.github.io/StrayerChapters/"+chapter+".pdf#toolbar=0&navpanes=0' type='application/pdf' style='height:calc(100vh - 70px)' width='100%'></embed>"
container.innerHTML = "<embed src='https://lax18.github.io/StrayerChapters/"+chapter+".pdf#toolbar=1&navpanes=0' type='application/pdf' style='height:calc(100vh - 70px)' width='100%'></embed>"
document.getElementById("chapter_name").innerHTML = chapter
}