| | |
| | | |
| | | // function webViewerLoad(evt) { |
| | | // // PDFViewerApplication.initialize().then(webViewerInitialized(123)); |
| | | // setUrl("http://223.82.109.183:2081/zhba/upload/20211126/60748e5fda7772c68420e076551065d0.pdf"); |
| | | // setUrl("http://61.131.136.25:2081/zhba/upload/20211126/60748e5fda7772c68420e076551065d0.pdf"); |
| | | // } |
| | | |
| | | function setUrl(url) { |
| | |
| | | |
| | | document.getElementById('sidebarToggle').addEventListener('click', |
| | | function () { |
| | | // console.log(12345) |
| | | |
| | | this.classList.toggle('toggled'); |
| | | outerContainer.classList.add('sidebarMoving'); |
| | | outerContainer.classList.toggle('sidebarOpen'); |
| | |
| | | window.addEventListener('afterprint', function afterPrint(evt) { |
| | | PDFViewerApplication.afterPrint(); |
| | | }); |
| | | |
| | | setTimeout(() => { |
| | | document.getElementById('sidebarToggle').click(); |
| | | }, 700); |
| | | (function animationStartedClosure() { |
| | | // The offsetParent is not set until the pdf.js iframe or object is visible. |
| | | // Waiting for first animation. |