Spaces:
Running
Running
<html style="width: 100%; height: 100%;"> | |
<head> | |
<!-- v2.0.0 --> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta charset="utf-8" /> | |
<title></title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css"> | |
<style type="text/css">/* Layout Styles */ .page { display:block; overflow: hidden; background-color: white; } .page-inner { -webkit-transform-origin: top left; -ms-transform-origin: top left; transform-origin: top left; } #idrviewer { overflow: auto; line-height: 0; margin: 0; padding: 0; -webkit-overflow-scrolling: touch; } #overlay { width: 100%; height: 100%; position: absolute; z-index: 10; visibility: hidden; } #overlay.panning { visibility: visible; cursor: all-scroll; cursor: -moz-grab; cursor: -webkit-grab; cursor: grab; } #overlay.panning.mousedown { cursor: all-scroll; cursor: -moz-grabbing; cursor: -webkit-grabbing; cursor: grabbing; } /* Highlight Style */ .highlight { color: black; background-color: yellow; } .highlight.selected { background-color: orange; } /* Presentation Layout */ .layout-presentation .page { visibility: hidden; position: absolute; } .layout-presentation .page.current { visibility: visible ; z-index: 1; /* Fix selection in IE/Edge */ } /* Continuous Layout */ .layout-continuous .page { margin: 0 auto 10px; } .layout-continuous .page:last-child { margin: 0 auto 0; } /* Magazine Layout */ .layout-magazine .page { visibility: hidden; position: absolute; } .layout-magazine .page.current { visibility: visible ; z-index: 1; /* Fix selection in IE/Edge */ } /* Slide Transition */ .layout-presentation.transition-slide .page { -webkit-transition: opacity 0.2s, -webkit-transform 0.4s; transition: opacity 0.2s, transform 0.4s; opacity: 0; visibility: visible ; } .layout-presentation.transition-slide .page.current { visibility: visible ; opacity: 1; } .layout-presentation.transition-slide .page.after { visibility: visible ; -webkit-transform: translateX(130%); transform: translateX(130%); -webkit-transition-delay: 0.1s, 0s; transition-delay: 0.1s, 0s; } .layout-presentation.transition-slide .page.before { visibility: visible ; -webkit-transform: translateX(-130%); transform: translateX(-130%); -webkit-transition-delay: 0.1s, 0s; transition-delay: 0.1s, 0s; } .isR2L.layout-presentation.transition-slide .page.after { -webkit-transform: translateX(-130%); transform: translateX(-130%); } .isR2L.layout-presentation.transition-slide .page.before { -webkit-transform: translateX(130%); transform: translateX(130%); } /* Fade Transition */ .layout-presentation.transition-fade .page { -webkit-transition: visibility 0.5s, opacity 0.5s; transition: visibility 0.5s, opacity 0.5s; opacity: 1; } .layout-presentation.transition-fade .page.prev, .layout-presentation.transition-fade .page.next { opacity: 0; z-index: 2; } /* Flip Transition */ .layout-presentation.transition-flip > div > div { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-perspective: 1000px; perspective: 1000px; } .layout-presentation.transition-flip .page { -webkit-transition: -webkit-transform 0.5s; transition: transform 0.5s; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .layout-presentation.transition-flip .page.before { -webkit-transform: rotateY(-180deg); transform: rotateY(-180deg); } .layout-presentation.transition-flip .page.after { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .layout-presentation.transition-flip .next, .layout-presentation.transition-flip .prev { visibility: visible; } /* Throw Transition */ .layout-presentation.transition-throw .page { opacity: 0; -webkit-transition: -webkit-transform 0.5s, opacity 0.5s; transition: transform 0.5s, opacity 0.5s; -webkit-transition-timing-function: ease-out; transition-timing-function: ease-out; } .layout-presentation.transition-throw .page.current { visibility: visible ; z-index: 3; opacity: 1; } .layout-presentation.transition-throw .page.prev { visibility: visible ; opacity: 0; z-index: 4; } .layout-presentation.transition-throw .page.prev:nth-child(even) { -webkit-transform: translate(100%, -100%) rotate(240deg); transform: translate(100%, -100%) rotate(240deg); } .layout-presentation.transition-throw .page.prev:nth-child(odd) { -webkit-transform: translate(-100%, -100%) rotate(-240deg); transform: translate(-100%, -100%) rotate(-240deg); } .layout-presentation.transition-throw .page.next { visibility: visible ; -webkit-transform: none; transform: none; opacity: 1; z-index: 2; } /* Magazine Transition */ .layout-magazine.transition-magazine > div > div { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-perspective: 3000px; perspective: 3000px; } .layout-magazine.transition-magazine .page { -webkit-transition: -webkit-transform 0.5s; transition: transform 0.5s; -webkit-backface-visibility: hidden; backface-visibility: hidden; } :not(.isR2L).layout-magazine.transition-magazine .page:nth-child(odd), .isR2L.layout-magazine.transition-magazine .page:nth-child(even) { -webkit-transform-origin: left top 0; transform-origin: left top 0; } :not(.isR2L).layout-magazine.transition-magazine .page:nth-child(even), .isR2L.layout-magazine.transition-magazine .page:nth-child(odd) { -webkit-transform-origin: right top 0; transform-origin: right top 0; } .layout-magazine.transition-magazine .page.current, :not(.isR2L).layout-magazine.transition-magazine .page.prev:nth-child(even), :not(.isR2L).layout-magazine.transition-magazine .page.next:nth-child(odd), :not(.isR2L).layout-magazine.transition-magazine .page.before:nth-child(even), :not(.isR2L).layout-magazine.transition-magazine .page.after:nth-child(odd), .isR2L.layout-magazine.transition-magazine .page.next:nth-child(odd), .isR2L.layout-magazine.transition-magazine .page.prev:nth-child(even), .isR2L.layout-magazine.transition-magazine .page.after:nth-child(odd), .isR2L.layout-magazine.transition-magazine .page.before:nth-child(even) { -webkit-transform: none ; transform: none ; } :not(.isR2L).layout-magazine.transition-magazine .page.before:nth-child(odd), :not(.isR2L).layout-magazine.transition-magazine .page.prev:nth-child(odd), .isR2L.layout-magazine.transition-magazine .page.after:nth-child(even), .isR2L.layout-magazine.transition-magazine .page.next:nth-child(even) { -webkit-transform: rotateY(-180deg); transform: rotateY(-180deg); z-index: 3; } :not(.isR2L).layout-magazine.transition-magazine .page.after:nth-child(even), :not(.isR2L).layout-magazine.transition-magazine .page.next:nth-child(even), .isR2L.layout-magazine.transition-magazine .page.before:nth-child(odd), .isR2L.layout-magazine.transition-magazine .page.prev:nth-child(odd){ -webkit-transform: rotateY(180deg); transform: rotateY(180deg); z-index: 3; } .layout-magazine.transition-magazine .page.prev, .layout-magazine.transition-magazine .page.next { visibility: visible; } .layout-magazine.transition-magazine .page.current { z-index: 2; }</style> | |
<style type="text/css">body { margin: 0; padding: 0; } .btn { border: 0 none; height: 60px; padding: 0; width: 60px; background-color: transparent; display: inline-block; vertical-align: middle; cursor: pointer; } .page { box-shadow: 1px 1px 4px rgba(120, 120, 120, 0.5); } #controls { height: 60px; position: fixed; text-align: center; left: 0; right: 0; bottom: 0; } #controls-center { display: inline-block; } #controls-right { display: inline-block; right: 0; position: absolute; } #btnPage { font-family: Arial, sans-serif; vertical-align: middle; } #idrviewer { background: #666 none repeat scroll 0 0; } #controls { background: #444 none repeat scroll 0 0; } #btnPage { color: white; opacity: 0.8; font-size: 20px; } .btn { opacity: 0.7; color: white; } .btn:hover { opacity: 0.95; } .btn.disabled { opacity: 0.2; } #idrviewer { bottom: 60px; left: 0; right: 0; position: absolute; top: 0; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: pointer ; -webkit-tap-highlight-color: transparent; } .hide-controls #idrviewer { bottom: 0; } .hide-controls #controls { bottom: -60px; } </style> | |
<script defer>(()=>{var e={876:()=>{!function(){"use strict";if("file:"!==location.protocol){var e,t,n,o,i,r,a,s,u,l,c,d,f=function(){var e,t,n,o={},i=[],r=[],a=function(o){var i=document.getElementById("page"+o),a=document.createElement("div");a.className="page-inner",a.setAttribute("style","position: absolute; pointer-events: none;"),a.style.width=i.style.width,a.style.height=i.style.height,i.appendChild(a),r[o]=a;for(var s=0;s<e.length;s++)if(e[s].page===o)for(var u=e[s].annotations,l=0;l<u.length;l++)n(a,u[l],t)};return IDRViewer.on("ready",(function(n){t=n;var o=n.url||"",r=new XMLHttpRequest;r.open("GET",o+"annotations.json",!0),r.onload=function(){r.status>=200&&r.status<400&&(e=JSON.parse(r.responseText).pages,function(){if(i.length){for(var e=0;e<i.length;e++)a(i[e]);i=[]}}())},r.send()})),IDRViewer.on("pageload",(function(t){e?a(t.page):i.push(t.page)})),IDRViewer.on("pageunload",(function(e){r[e.page]&&(r[e.page].parentNode.removeChild(r[e.page]),r[e.page]=null)})),o.setLoadFunction=function(e){n=e},o}(),p=function(){var e={},t={click:[],mouseover:[],mouseout:[],touchstart:[],setup:[]};return e.register=function(e,n,o){for(var i=0;i<e.length;i++)for(var r=0;r<n.length;r++)t[n[r]].push({type:e[i],handler:o})},e.onclick=function(e,n){for(var o=0;o<t.click.length;o++)e.type===t.click[o].type&&t.click[o].handler.onclick.apply(this,[e,n])},e.onmouseover=function(e,n){for(var o=0;o<t.mouseover.length;o++)e.type===t.mouseover[o].type&&t.mouseover[o].handler.onmouseover.apply(this,[e,n])},e.onmouseout=function(e,n){for(var o=0;o<t.mouseout.length;o++)e.type===t.mouseout[o].type&&t.mouseout[o].handler.onmouseout.apply(this,[e,n])},e.ontouchstart=function(e,n){for(var o=0;o<t.touchstart.length;o++)e.type===t.touchstart[o].type&&t.touchstart[o].handler.ontouchstart.apply(this,[e,n])},e.onsetup=function(e,n){for(var o=0;o<t.setup.length;o++)e.type===t.setup[o].type&&t.setup[o].handler.onsetup.apply(this,[e,n])},e}(),g={play:function(n,o){e&&!e.ended&&!e.paused&&(e.pause(),o===t)||(t=o,(e=new Audio(n)).play())}};o={},IDRViewer.on("ready",(function(e){n=e.pagecount})),o.onsetup=function(e){if(e.action&&"URI"===e.action.type){const t=document.createElement("a");t.href=e.action.uri,t.title=e.action.uri,t.target="_blank",t.style.position="absolute",t.style.width="100%",t.style.height="100%",this.appendChild(t)}},o.onmouseover=function(e){e.action&&"URI"!==e.action.type&&(this.style.cursor="pointer")},o.onclick=function(e,t){if(e.action)switch(e.action.type){case"GoTo":IDRViewer.goToPage(e.action.page,e.action.zoom);break;case"Named":switch(e.action.name){case"NextPage":IDRViewer.next();break;case"PrevPage":IDRViewer.prev();break;case"FirstPage":IDRViewer.goToPage(1);break;case"LastPage":n&&IDRViewer.goToPage(n)}break;case"Sound":g.play((t.url||"")+e.action.sound,e.objref);break;case"Launch":t.enableLaunchActions&&window.open("../"+e.action.target,"_blank")}},p.register(["Link","Widget","TextLink"],["click","mouseover","setup"],o),i={onmouseover:function(){this.style.cursor="pointer"},onclick:function(e,t){e.sound&&g.play((t.url||"")+e.sound,e.objref)}},p.register(["Sound"],["click","mouseover"],i),r={onmouseover:function(){this.style.cursor="pointer"},onclick:function(e,t){var n=document.createElement("a");n.href=(t.url||"")+e.attachment,n.download=e.filename,n.target="_blank",document.body.appendChild(n),n.click(),document.body.removeChild(n)}},p.register(["FileAttachment"],["click","mouseover"],r),l=function(e){if(e.contents&&e.objref){var t=document.querySelector("[data-objref='"+e.objref+"']").getBoundingClientRect(),n=(t.right-t.left)/2+t.left,o=t.bottom,i=document.createElement("div");i.dataset.parentRef=e.objref,i.setAttribute("style","position: fixed; width: 300px; min-height: 200px; left: "+(n-150)+"px; top: "+(o+5)+"px; background-color: #FFFFEF; border-radius: 10px; border: 1px #bbb solid; padding: 10px; box-sizing: border-box; font-family: Arial;");var r=document.createElement("p");e.title&&(r.innerText=e.title),r.setAttribute("style","font-weight: bold; margin: 0;");var a=document.createElement("p");return e.contents&&(a.innerText=e.contents),i.appendChild(r),i.appendChild(a),document.body.appendChild(i),i}return null},(u={}).onmouseover=function(e){s||(a?(a.parentNode.removeChild(a),a=null):a=l(e))},u.onmouseout=function(){a&&(a.parentNode.removeChild(a),a=null)},u.onclick=function(e){if(s)if(a){var t=a.dataset.parentRef;a.parentNode.removeChild(a),a=null,t!==e.objref&&(a=l(e))}else a=l(e)},u.ontouchstart=function(){s=!0},p.register(["Text","Line","Square","Circle","Polygon","PolyLine","Highlight","Underline","Squiggly","StrikeOut","Stamp","Caret","Ink","FileAttachment","Redact","Projection"],["click","mouseover","mouseout","touchstart"],u),c={onmouseover:function(){this.style.cursor="pointer"},onclick:function(e,t){if(e.richmedia.length){var n=e.richmedia[0].type.startsWith("video"),o=document.createElement(n?"video":"audio");o.setAttribute("style","position: absolute; object-fit: fill; pointer-events: auto;"),o.setAttribute("controls","controls"),o.style.left=e.bounds[0]+"px",o.style.top=e.bounds[1]+"px",o.style.width=e.bounds[2]+"px",o.style.height=e.bounds[3]+"px",o.title=e.type,o.dataset.objref=e.objref;for(var i=0;i<e.richmedia.length;i++){var r=document.createElement("source");r.setAttribute("src",(t.url||"")+e.richmedia[i].src),r.setAttribute("type",e.richmedia[i].type),o.appendChild(r)}this.parentNode.replaceChild(o,this)}}},p.register(["RichMedia"],["click","mouseover"],c),d={onmouseover:function(){this.style.cursor="pointer"},onclick:function(e,t){if(e.action){var n=document.createElement(e.action.media.type.substr(0,5));if(n.setAttribute("style","position: absolute; pointer-events: auto;"),n.setAttribute("controls","controls"),n.style.left=e.bounds[0]+"px",n.style.top=e.bounds[1]+"px",n.title=e.type,n.dataset.objref=e.objref,"video/mp4"===e.action.media.type){n.style.objectFit="fill",n.style.width=e.bounds[2]+"px",n.style.height=e.bounds[3]+"px";var o=document.createElement("source");o.setAttribute("src",(t.url||"")+e.action.media.src),o.setAttribute("type",e.action.media.type),n.appendChild(o)}else"audio/mpeg"===e.action.media.type&&n.setAttribute("src",(t.url||"")+e.action.media.src);this.parentNode.replaceChild(n,this),n.play()}}},p.register(["Screen"],["click","mouseover"],d),f.setLoadFunction((function(e,t,n){var o=document.createElement("div");o.setAttribute("style","position: absolute; pointer-events: auto; -webkit-user-select: none;"),o.style.left=t.bounds[0]+"px",o.style.top=t.bounds[1]+"px",o.style.width=t.bounds[2]+"px",o.style.height=t.bounds[3]+"px",t.objref&&(o.dataset.objref=t.objref),t.appearance&&(o.style.backgroundImage="url('"+t.appearance+"')",o.style.backgroundSize="100% 100%"),e.appendChild(o),o.addEventListener("click",(function(){p.onclick.apply(this,[t,n])})),o.addEventListener("mouseover",(function(){p.onmouseover.apply(this,[t,n])})),o.addEventListener("mouseout",(function(){p.onmouseout.apply(this,[t,n])})),o.addEventListener("touchstart",(function(){p.ontouchstart.apply(this,[t,n])})),p.onsetup.apply(o,[t,n])}))}else console.log("Annotations functionality is not available when loading from the file:// protocol.")}()},334:()=>{!function(){"use strict";var e={isFullscreenEnabled:function(){return document.fullscreenEnabled||document.msFullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled},isFullscreen:function(){return!!(document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)},toggleFullScreen:function(){this.isFullscreen()?(document.exitFullscreen||document.msExitFullscreen||document.mozCancelFullScreen||document.webkitCancelFullScreen).call(document):(document.body.requestFullscreen||document.body.msRequestFullscreen||document.body.mozRequestFullScreen||document.body.webkitRequestFullscreen).call(document.body)}};for(var t in e)e.hasOwnProperty(t)&&(IDRViewer[t]=e[t]);["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"].forEach((function(t){document.addEventListener(t,(function(){IDRViewer.fire("fullscreenchange",{isFullscreen:e.isFullscreen()})}))}))}()},800:(e,t)=>{var n;!function(){"use strict";var o,i,r,a,s,u,l={LAYOUT_PRESENTATION:"presentation",LAYOUT_MAGAZINE:"magazine",LAYOUT_CONTINUOUS:"continuous",SELECT_SELECT:"select",SELECT_PAN:"pan",ZOOM_SPECIFIC:"specific",ZOOM_ACTUALSIZE:"actualsize",ZOOM_FITWIDTH:"fitwidth",ZOOM_FITHEIGHT:"fitheight",ZOOM_FITPAGE:"fitpage",ZOOM_AUTO:"auto"},c=1,d=0,f=[],p=!1;l.setup=function(e){e||(e=IDRViewer.config),p=!0,a=e.bounds,d=e.pagecount,s=void 0!==e.paddingX?e.paddingX:5,u=void 0!==e.paddingY?e.paddingY:5,(c<1||c>d)&&(c=1),i=document.getElementById("idrviewer");var t=document.createElement("div");t.style.position="relative",t.style.display="inline-block",t.style.verticalAlign="middle",t.style.minWidth="100%",t.style.lineHeight="normal",i.appendChild(t),(o=document.createElement("div")).id="contentContainer",o.style.overflow="hidden",o.style.transform="translateZ(0)",o.style.padding=u+"px "+s+"px",t.appendChild(o);for(var n=1;n<=d;n++){var g=document.createElement("div");g.id="page"+n,g.setAttribute("style","width: "+a[n-1][0]+"px; height: "+a[n-1][1]+"px;"),g.className="page",o.appendChild(g),f[n]=g}w.setup(),y.setup(),v.setup(e.pageType,e.url),b.setup(!!e.isR2L),L.setup(),r.goToPage(c),y.setPage(c,!0);var h={selectMode:w.currentSelectMode,isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),layout:r.toString(),availableLayouts:b.getAvailableLayouts(),isFirstPage:1===c,isLastPage:r.isLastPage(c)};for(var m in e)e.hasOwnProperty(m)&&(h[m]=e[m]);h.page=c,l.fire("ready",h)};var g,h,m,v=function(){var e,t,n,o={},i=!1,r=[],s="file:"===location.protocol,u="";o.setup=function(o,i){t=(n="svgz"===o)||"svg"===o,i&&(u=i),s&&!t&&console.log("Cannot load pages using AJAX over the file:// protocol. Falling back to iframes (some features may not be available).");var r=document.createElement("style");r.setAttribute("type","text/css"),document.head.appendChild(r),e=r.sheet,t&&window.addEventListener("mousedown",(function(e){0===e.button&&c(window)}))},o.clearSelection=function(){t?c(window):l(window)};var l=function(e){try{e.getSelection?e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges():e.document.selection&&e.document.selection.empty()}catch(e){}},c=function(e){try{l(e);for(var t=1;t<=d;t++)y.isVisible(t)&&l(f[t].firstChild.contentDocument)}catch(e){}},p=function(e,t){var n=document.createElement("iframe");n.setAttribute("class","page-inner"),n.setAttribute("src",u+e+".html"),n.setAttribute("style","width: "+a[e-1][0]+"px; height: "+a[e-1][1]+"px; position: absolute; border: 0;"),n.onload=t,f[e].appendChild(n)};return o.show=function(e){f[e].firstChild.style.display="block"},o.hide=function(e){f[e].firstChild.style.display="none"},o.load=function(o,l){t?function(e,t){var o=function(){this.removeEventListener("load",o);try{this.contentDocument.addEventListener("mousedown",(function(e){0===e.button&&c(window)}))}catch(e){}t()},i=document.createElement("object");i.setAttribute("width",""+a[e-1][0]),i.setAttribute("height",""+a[e-1][1]),i.setAttribute("data",u+e+(n?".svgz":".svg")),i.setAttribute("type","image/svg+xml"),i.setAttribute("class","page-inner"),i.setAttribute("style","position: absolute"),i.addEventListener("load",o),f[e].appendChild(i)}(o,l):s?p(o,l):function(t,n){var o=new XMLHttpRequest;o.open("GET",u+t+".html",!0),o.onload=function(){o.status>=200&&o.status<400?function(t,n,o){var a=document.createElement("div");a.innerHTML=t;var s=a.querySelector("#p"+n);s.style.margin="0",s.style.overflow="hidden",s.style.position="absolute";var l=function(){this&&this.removeEventListener("load",l),o()},c=s.querySelector("#pdf"+n),d=c.getAttribute("data")||c.getAttribute("src");if(d&&c.addEventListener("load",l),u){var p=c.getAttribute("data");p?c.setAttribute("data",u+p):(p=c.getAttribute("src"))&&-1===p.indexOf("base64")&&c.setAttribute("src",u+p)}var g=s.querySelector("#fonts"+n);if(g){var h=g.innerHTML;g.parentNode.removeChild(g),h.match(/@font-face {[\s\S]*?}/g).forEach((function(t){-1===r.indexOf(t)&&(r.push(t),e.insertRule(t.replace('url("','url("'+u),e.cssRules.length))}))}var m=s.querySelector(".shared-css");m&&(m.parentNode.removeChild(m),i||(document.head.appendChild(m),i=!0)),E.addClass(s,"page-inner"),f[n].appendChild(s),d||l()}(o.responseText,t,n):p(t,n)},o.onerror=function(){p(t,n)},o.send()}(o,l)},o.unload=function(e){f[e].removeChild(f[e].firstChild)},o}(),y=function(){var e,t,n,o="loading",i="hidden",r="unloaded",a="loaded",s={},u=0,c=0,p=[];s.setup=function(){n=d;for(var e=1;e<=d;e++)p[e]=r,f[e].dataset.state=r};var g=function(e,t){h(p[e],t),p[e]=t,f[e].dataset.state=t},h=function(e,t){switch(e){case o:u--;break;case a:c--;break;case i:break;case r:n--}switch(t){case o:u++;break;case a:c++;break;case i:break;case r:n++}},m=function(e){return p[e]===a},y=function(e){return p[e]===a||p[e]===i},b=function(e){p[e]===a&&(g(e,i),v.hide(e))},w=function(e){p[e]===i&&(g(e,a),v.show(e)),p[e]===r&&(g(e,o),v.load(e,(function(){g(e,a),l.fire("pageload",{page:e})})))},T=function(e){p[e]!==a&&p[e]!==i||(g(e,r),v.unload(e),l.fire("pageunload",{page:e}))},L=function(){if(w(e),u<2)for(var o=1;o<10&&(E(e-o)&&(m(e-o)||w(e-o)),2!==u)&&(E(e+o)&&(m(e+o)||w(e+o)),2!==u);o++);for(var i=1,r=d;c+u>20;)e-i>r-e?(m(i)&&b(i),i++):(m(r)&&b(r),r--);for(i=1,r=d;d-n>50;)e-i>r-e?(y(i)&&T(i),i++):(y(r)&&T(r),r--);t=setTimeout(L,500)},E=function(e){return e>=1&&e<=d};return s.setPage=function(n,o){e=n,o&&w(n),clearTimeout(t),t=setTimeout(L,500)},s.stopLoading=function(){clearTimeout(t),t=setTimeout(L,500)},s.hide=b,s.isVisible=m,s}(),b=function(){var e,t={},n={},o=!0,s=!1;return t.setup=function(t){s=t;for(var u=0;u<d;u++)if(a[u][0]!==a[0][0]||a[u][1]!==a[0][1]){o=!1;break}(r=n[e]||n[IDRViewer.LAYOUT_CONTINUOUS]).setup(o,s),E.addClass(i,"layout-"+r.toString()),s&&E.addClass(i,"isR2L")},t.setLayout=function(e){r.unload(),E.removeClass(i,"layout-"+r.toString()),(r=n[e]).setup(o,s),E.addClass(i,"layout-"+r.toString()),L.updateZoom(IDRViewer.ZOOM_AUTO),r.goToPage(c),l.fire("layoutchange",{layout:e})},t.addLayout=function(e,t){n[e]=t},t.setDefault=function(t){e=t},t.getAvailableLayouts=function(){return Object.keys(n)},t.updatePage=function(e){c!=e&&(c=e,y.setPage(e),l.fire("pagechange",{page:c,pagecount:d,isFirstPage:1===c,isLastPage:r.isLastPage(e)}))},t}();b.addLayout(l.LAYOUT_PRESENTATION,(h={setup:function(e){g=e},unload:function(){for(var e=1;e<=d;e++)f[e].style.marginLeft="",f[e].style.marginTop="",E.removeClass(f[e],"current","prev","next","before","after");o.style.width="",o.style.height=""},goToPage:function(e){b.updatePage(e),g||L.updateZoom(),i.scrollTop=0,m(e),h.updateLayout()},getVisiblePages:function(){return[c]}},m=function(e){for(var t=1;t<=d;t++)E.removeClass(f[t],"current","prev","next","before","after"),t<e?E.addClass(f[t],"before"):t>e&&E.addClass(f[t],"after");E.addClass(f[e],"current"),e-1>=1&&E.addClass(f[e-1],"prev"),e+1<=d&&E.addClass(f[e+1],"next")},h.updateLayout=function(){var e=L.getZoom(),t=Math.floor(a[c-1][0]*e),n=0,r=i.clientWidth-2*s;r>t?n=(r-t)/2:r=t;var l=Math.floor(a[c-1][1]*e),p=0,g=i.clientHeight-2*u;g>l?p=(g-l)/2:g=l,o.style.width=r+"px",o.style.height=g+"px";for(var h=1;h<=d;h++)f[h].style.marginLeft=n+"px",f[h].style.marginTop=p+"px"},h.isLastPage=function(e){return e===d},h.getZoomBounds=function(){return{width:a[c-1][0],height:a[c-1][1]}},h.getAutoZoom=function(e,t){return Math.min(e,t)},h.next=function(){l.goToPage(c+1)},h.prev=function(){l.goToPage(c-1)},h.toString=function(){return IDRViewer.LAYOUT_PRESENTATION},h)),b.addLayout(l.LAYOUT_MAGAZINE,function(){var e,t,n={};function r(e){return e>1&&e<d}n.setup=function(n,o){e=n,t=o},n.unload=function(){for(var e=1;e<=d;e++)f[e].style.marginLeft="",f[e].style.marginTop="",E.removeClass(f[e],"current","prev","next","before","after");o.style.width="",o.style.height=""},n.goToPage=function(t){1!==t&&t%2!=0&&(t-=1),b.updatePage(t),e||L.updateZoom(),p(t),n.updateLayout()},n.getVisiblePages=function(){var e=[c];return r(c)&&e.push(c+1),e};var p=function(e){for(var t=1;t<=d;t++)E.removeClass(f[t],"current","prev","next","before","after");if(E.addClass(f[e],"current"),r(e)&&E.addClass(f[e+1],"current"),1==e&&(e=0),e+2<=d&&(E.addClass(f[e+2],"next"),e+3<=d&&E.addClass(f[e+3],"next")),e-1>0&&(E.addClass(f[e-1],"prev"),e-2>0&&E.addClass(f[e-2],"prev")),e+4<=d)for(t=e+4;t<=d;t++)E.addClass(f[t],"after");if(e-3>0)for(t=e-3;t>0;t--)E.addClass(f[t],"before")};return n.updateLayout=function(){var e=r(c),n=L.getZoom(),l=Math.floor(a[c-1][0]*n),p=e?Math.floor(a[c][0]*n):l,g=2*Math.max(l,p),h=Math.max(g,i.clientWidth-2*s),m=Math.floor(h/2),v=m,y=m;t?y-=p:v-=l;var b=Math.floor(a[c-1][1]*n),w=e?Math.floor(a[c][1]*n):b,T=Math.max(b,w,i.clientHeight-2*u),E=Math.floor((T-(t?w:b))/2),x=Math.floor((T-(t?b:w))/2);o.style.width=h+"px",o.style.height=T+"px",f[1].style.marginLeft=y+"px",f[1].style.marginTop=x+"px";for(var C=2;C<=d;C+=2)f[C].style.marginLeft=v+"px",f[C].style.marginTop=E+"px",C<d&&(f[C+1].style.marginLeft=y+"px",f[C+1].style.marginTop=x+"px")},n.isLastPage=function(e){return e+(1==e?1:2)>d},n.getZoomBounds=function(){var e=r(c),t=Math.floor(a[c-1][0]),n=e?Math.floor(a[c][0]):0,o=Math.floor(a[c-1][1]),i=e?Math.floor(a[c][1]):0;return{width:2*Math.max(t,n),height:Math.max(o,i)}},n.getAutoZoom=function(e,t){return Math.min(e,t)},n.next=function(){l.goToPage(c+(1==c?1:2))},n.prev=function(){l.goToPage(c-1)},n.toString=function(){return IDRViewer.LAYOUT_MAGAZINE},n}()),b.addLayout(l.LAYOUT_CONTINUOUS,function(){var e={},t=0,n=0,o=[];e.setup=function(){i.addEventListener("scroll",r);for(var e=0;e<d;e++)a[e][0]>t&&(t=a[e][0]),a[e][1]>n&&(n=a[e][1])},e.unload=function(){i.removeEventListener("scroll",r)};var r=function(){y.stopLoading(),p()},p=function(){var e,t;if(f[1].getBoundingClientRect().top>0)b.updatePage(1);else for(e=1;e<=d;e++){var n=f[e].getBoundingClientRect();t=n.top;var o=n.bottom-n.top;if(t<=.25*o&&t>.5*-o){b.updatePage(e);break}}g()},g=function(){o=[c];var e,t,n=i.clientHeight,r=function(e){return(t=f[e].getBoundingClientRect()).bottom>0&&t.top<n};for(e=c-1;e>=1&&r(e);e--)o.push(e);for(e=c+1;e<=d&&r(e);e++)o.push(e)};return e.goToPage=function(e,t){var n=0;if(t){var o=t.split(" ");switch(o[0]){case"XYZ":n=Number(o[2]);break;case"FitH":case"FitBH":n=Number(o[1]);break;case"FitR":n=Number(o[4])}(isNaN(n)||n<0||n>a[e-1][1])&&(n=0),0!==n&&(n=a[e-1][1]-n)}var r=L.getZoom();i.scrollTop=f[e].offsetTop-u+n*r,b.updatePage(e),g()},e.getVisiblePages=function(){return o},e.updateLayout=function(){},e.isLastPage=function(e){return e===d},e.getZoomBounds=function(){return{width:t,height:n}},e.getAutoZoom=function(t){return e.getZoomBounds().width>i.clientWidth-2*s?t:1},e.next=function(){l.goToPage(c+1)},e.prev=function(){l.goToPage(c-1)},e.toString=function(){return IDRViewer.LAYOUT_CONTINUOUS},e}());var w=function(){var e,t,n,r,a={},s=!1;a.setup=function(){switch((r=document.createElement("div")).id="overlay",o.parentNode.insertBefore(r,o),n){case IDRViewer.SELECT_PAN:case IDRViewer.SELECT_SELECT:break;default:n=IDRViewer.SELECT_SELECT}this.currentSelectMode=n,this.currentSelectMode==l.SELECT_SELECT?a.enableTextSelection():a.enablePanning()},a.enableTextSelection=function(){this.currentSelectMode=l.SELECT_SELECT,E.removeClass(r,"panning"),r.removeEventListener("mousedown",u),document.removeEventListener("mouseup",c),r.removeEventListener("mousemove",d)};var u=function(n){return n=n||window.event,E.addClass(r,"mousedown"),e=n.clientX,t=n.clientY,s=!0,!1},c=function(){E.removeClass(r,"mousedown"),s=!1},d=function(n){if(s)return n=n||window.event,i.scrollLeft=i.scrollLeft+e-n.clientX,i.scrollTop=i.scrollTop+t-n.clientY,e=n.clientX,t=n.clientY,!1};return a.enablePanning=function(){this.currentSelectMode=l.SELECT_PAN,v.clearSelection(),E.addClass(r,"panning"),r.addEventListener("mousedown",u),document.addEventListener("mouseup",c),r.addEventListener("mousemove",d)},a.setDefaultMode=function(e){n=e},a}();l.setSelectMode=function(e){p?(e==l.SELECT_SELECT?w.enableTextSelection():w.enablePanning(),l.fire("selectchange",{type:e})):w.setDefaultMode(e)};var T,L=function(){var e,t,n,o={},c=l.ZOOM_AUTO,p=[.1,.25,.5,.75,1,1.25,1.5,2,2.5,3,3.5,4],g=[l.ZOOM_AUTO,l.ZOOM_FITPAGE,l.ZOOM_FITHEIGHT,l.ZOOM_FITWIDTH,l.ZOOM_ACTUALSIZE],h=0,m=1;o.setup=function(){var e=document.createElement("style");e.setAttribute("type","text/css"),document.head.appendChild(e),t=e.sheet,window.addEventListener("resize",(function(){v()})),v(n)};var v=function(n){y.stopLoading();var o=!1,s=!1;(m=b(n))>=p[p.length-1]?(m=p[p.length-1],s=!0):m<=p[0]&&(m=p[0],o=!0);var u=i.scrollTop/i.scrollHeight;r.updateLayout();for(var g=r.getVisiblePages(),w=1;w<=d;w++)-1===g.indexOf(w)&&y.hide(w);e&&t.deleteRule(e);var T=function(e,t,n,o,i){var r;return"-webkit-transform: "+(r="translateX(0px) translateY(0px) scale("+o+")")+";\n-ms-transform: "+r+";\ntransform: "+r+";"}(0,0,0,m);e=t.insertRule(".page-inner { \n"+T+"\n}",t.cssRules.length);for(var L=0;L<d;L++)f[L+1].style.width=Math.floor(a[L][0]*m)+"px",f[L+1].style.height=Math.floor(a[L][1]*m)+"px";i.scrollTop=i.scrollHeight*u,++h%2==1&&v(),l.fire("zoomchange",{zoomType:c,zoomValue:m,isMinZoom:o,isMaxZoom:s})},b=function(e){var t=r.getZoomBounds(),n=(i.clientWidth-2*s)/t.width,o=(i.clientHeight-2*u)/t.height,a=parseFloat(e);switch(isNaN(a)||(m=a,e=l.ZOOM_SPECIFIC),e||(e=c),e){case l.ZOOM_AUTO:m=r.getAutoZoom(n,o);break;case l.ZOOM_FITWIDTH:m=n;break;case l.ZOOM_FITHEIGHT:m=o;break;case l.ZOOM_FITPAGE:m=Math.min(n,o);break;case l.ZOOM_ACTUALSIZE:m=1}return c=e,m};return o.updateZoom=v,o.zoomIn=function(){v(function(){for(var e,t=m,n=p[p.length-1],o=0;o<p.length;o++)if(p[o]>t){n=p[o];break}for(o=0;o<g.length;o++){var i=b(g[o]);if(i>t&&i<=n){if(e&&i===n)continue;e=g[o],n=i}}return e||n}())},o.zoomOut=function(){v(function(){for(var e,t=m,n=p[0],o=p.length-1;o>=0;o--)if(p[o]<t){n=p[o];break}for(o=0;o<g.length;o++){var i=b(g[o]);if(i<t&&i>=n){if(e&&i===n)continue;e=g[o],n=i}}return e||n}())},o.getZoom=function(){return m},o.setDefault=function(e){n=e},o}();l.zoomIn=function(){L.zoomIn()},l.zoomOut=function(){L.zoomOut()},l.setZoom=function(e){p?L.updateZoom(e):L.setDefault(e)},l.goToPage=function(e,t){p?e>=1&&e<=d&&r.goToPage(Number(e),t):c=e},l.next=function(){r.next()},l.prev=function(){r.prev()},l.setLayout=function(e){p?b.setLayout(e):b.setDefault(e)},l.updateLayout=function(){L.updateZoom()},T={},l.on=function(e,t){T[e]||(T[e]=[]),-1===T[e].indexOf(t)&&T[e].push(t)},l.off=function(e,t){if(T[e]){var n=T[e].indexOf(t);-1!==n&&T[e].splice(n,1)}},l.fire=function(e,t){T[e]&&T[e].forEach((function(e){e(t)}))};var E={addClass:function(e,t){var n=0!==e.className.length?e.className.split(" "):[];-1===n.indexOf(t)&&(n.push(t),e.className=n.join(" "))},removeClass:function(){for(var e=arguments[0],t=0!==e.className.length?e.className.split(" "):[],n=1;n<arguments.length;n++){var o=t.indexOf(arguments[n]);-1!==o&&t.splice(o,1)}e.className=t.join(" ")}};void 0===(n=function(){return l}.apply(t,[]))||(e.exports=n),window&&(window.IDRViewer=l)}()},167:()=>{!function(){"use strict";let e,t,n;e="URLSearchParams"in window?new URL(document.location).searchParams:function(){let e={},t=document.URL,n=t.toString().indexOf("?");return-1!=n&&t.substr(n+1).split("&").forEach((function(t){let n=t.split("=");e[n[0]]=n[1]})),{get:function(t){return e[t]},set:function(t,n){e[t]=n},toString:function(){let t=[];for(let n in e)t.push(n+"="+e[n]);return t.join("&")}}}();let o=function(e){history.pushState&&(t===IDRViewer.LAYOUT_CONTINUOUS?(n&&clearTimeout(n),n=setTimeout((function(){i(e.page)}),1e3)):i(e.page))},i=function(t){try{e.set("page",t),history.pushState({page:t},null,"?"+e.toString())}catch(e){}};IDRViewer.goToPage(parseInt(e.get("page"))||1),history.pushState&&IDRViewer.on("ready",(function(n){t=n.layout;try{e.set("page",n.page),history.replaceState({page:n.page},null,"?"+e.toString())}catch(e){}window.onpopstate=function(e){IDRViewer.off("pagechange",o),IDRViewer.goToPage(e.state.page),IDRViewer.on("pagechange",o)},IDRViewer.on("pagechange",o),IDRViewer.on("layoutchange",(function(e){t=e.layout}))}))}()},782:()=>{var e=function(e){return document.getElementById(e)},t=function(e,t){var n=0!==e.className.length?e.className.split(" "):[];-1===n.indexOf(t)&&(n.push(t),e.className=n.join(" "))},n=function(e,t){var n=0!==e.className.length?e.className.split(" "):[],o=n.indexOf(t);-1!==o&&n.splice(o,1),e.className=n.join(" ")};!function(){"use strict";IDRViewer.setLayout(IDRViewer.LAYOUT_PRESENTATION);var o={},i=function(){o.next.parentNode.insertBefore(o.prev,o.next),o.prev.parentNode.insertBefore(o.next,o.prev.parentNode.firstChild);var e=o.next.innerHTML;o.next.innerHTML=o.prev.innerHTML,o.prev.innerHTML=e};IDRViewer.on("ready",(function(r){o.fullscreen=e("btnFullScreen"),o.prev=e("btnPrev"),o.next=e("btnNext");var a=r.pageLabels;function s(e,t){var n=e+" / "+t;return a.length&&(n=a[e-1]),n}document.title=r.title?r.title:r.fileName,e("btnPage").innerHTML=s(r.page,r.pagecount),e("btnPage").title=r.page+" of "+r.pagecount,o.prev.onclick=function(e){IDRViewer.prev(),e.preventDefault()},o.next.onclick=function(e){IDRViewer.next(),e.preventDefault()},e("idrviewer").onclick=function(e){"INPUT"!=e.target.nodeName&&"A"!=e.target.nodeName&&(IDRViewer.next(),e.preventDefault())},r.isR2L&&i(),document.onkeydown=function(e){switch(e.keyCode){case 33:IDRViewer.prev(),e.preventDefault();break;case 34:IDRViewer.next(),e.preventDefault();break;case 37:r.isR2L?IDRViewer.next():IDRViewer.prev(),e.preventDefault();break;case 39:r.isR2L?IDRViewer.prev():IDRViewer.next(),e.preventDefault();break;case 36:IDRViewer.goToPage(1),e.preventDefault();break;case 35:IDRViewer.goToPage(r.pagecount),e.preventDefault()}},IDRViewer.isFullscreenEnabled()?o.fullscreen.onclick=function(e){IDRViewer.toggleFullScreen(),e.preventDefault()}:o.fullscreen.parentNode.removeChild(o.fullscreen),r.isFirstPage?t(o.prev,"disabled"):r.isLastPage&&t(o.next,"disabled"),IDRViewer.on("pagechange",(function(i){e("btnPage").innerHTML=s(i.page,i.pagecount),e("btnPage").title=i.page+" of "+i.pagecount,i.isFirstPage?t(o.prev,"disabled"):n(o.prev,"disabled"),i.isLastPage?t(o.next,"disabled"):n(o.next,"disabled")})),IDRViewer.on("fullscreenchange",(function(e){e.isFullscreen?(t(document.body,"hide-controls"),IDRViewer.updateLayout()):(n(document.body,"hide-controls"),IDRViewer.updateLayout())}))}))}()}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n(800),n(334),n(167),n(876),n(782)})();</script> | |
</head> | |
<body> | |
<div id="idrviewer" class="transition-slide"> | |
</div> | |
<div id="controls"> | |
<div id="controls-center"> | |
<button id="btnPrev" title="Previous Page" class="btn"><i class="fa fa-caret-left fa-4x" aria-hidden="true"></i></button> | |
<span id="btnPage"></span> | |
<button id="btnNext" title="Next Page" class="btn"><i class="fa fa-caret-right fa-4x" aria-hidden="true"></i></button> | |
</div> | |
<div id="controls-right"> | |
<button id="btnFullScreen" title="Fullscreen" class="btn"><i class="fa fa-arrows-alt fa-2x" aria-hidden="true"></i></button> | |
</div> | |
</div> | |
<script src="config.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
// if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { | |
// d('idrviewer').className = ""; | |
// } | |
IDRViewer.setup(); | |
</script> | |
</body> | |
</html> | |