Fix url problem.

This commit is contained in:
BoHung Chiu 2023-03-04 16:50:32 +08:00
parent d31c2ce72d
commit abd411a118
4 changed files with 102 additions and 102 deletions

View File

@ -292,9 +292,9 @@
overflow: visible; overflow: visible;
border: 9px solid transparent; border: 9px solid transparent;
background-clip: content-box; background-clip: content-box;
-webkit-border-image: url(images/shadow.png) 9 9 repeat; -webkit-border-image: url(../pdf/images/shadow.png) 9 9 repeat;
-o-border-image: url(images/shadow.png) 9 9 repeat; -o-border-image: url(../pdf/images/shadow.png) 9 9 repeat;
border-image: url(images/shadow.png) 9 9 repeat; border-image: url(../pdf/images/shadow.png) 9 9 repeat;
background-color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 1);
} }
@ -368,7 +368,7 @@
top: 0; top: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
background: url('images/loading-icon.gif') center no-repeat; background: url('../pdf/images/loading-icon.gif') center no-repeat;
} }
.pdfPresentationMode .pdfViewer { .pdfPresentationMode .pdfViewer {
@ -428,7 +428,7 @@ body {
height: 100%; height: 100%;
width: 100%; width: 100%;
background-color: rgba(64, 64, 64, 1); background-color: rgba(64, 64, 64, 1);
background-image: url(images/texture.png); background-image: url(../pdf/images/texture.png);
} }
body, body,
@ -694,9 +694,9 @@ html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentatio
width: 100%; width: 100%;
height: 32px; height: 32px;
background-color: rgba(66, 66, 66, 1); /* fallback */ background-color: rgba(66, 66, 66, 1); /* fallback */
background-image: url(images/texture.png), background-image: url(../pdf/images/texture.png),
-webkit-gradient(linear, left top, left bottom, from(rgba(77, 77, 77, 0.99)), to(rgba(64, 64, 64, 0.95))); -webkit-gradient(linear, left top, left bottom, from(rgba(77, 77, 77, 0.99)), to(rgba(64, 64, 64, 0.95)));
background-image: url(images/texture.png), background-image: url(../pdf/images/texture.png),
linear-gradient(rgba(77, 77, 77, 0.99), rgba(64, 64, 64, 0.95)); linear-gradient(rgba(77, 77, 77, 0.99), rgba(64, 64, 64, 0.95));
} }
html[dir='ltr'] #toolbarSidebar { html[dir='ltr'] #toolbarSidebar {
@ -731,9 +731,9 @@ html[dir='rtl'] #sidebarResizer {
position: relative; position: relative;
height: 32px; height: 32px;
background-color: rgba(71, 71, 71, 1); /* fallback */ background-color: rgba(71, 71, 71, 1); /* fallback */
background-image: url(images/texture.png), background-image: url(../pdf/images/texture.png),
-webkit-gradient(linear, left top, left bottom, from(rgba(82, 82, 82, 0.99)), to(rgba(69, 69, 69, 0.95))); -webkit-gradient(linear, left top, left bottom, from(rgba(82, 82, 82, 0.99)), to(rgba(69, 69, 69, 0.95)));
background-image: url(images/texture.png), background-image: url(../pdf/images/texture.png),
linear-gradient(rgba(82, 82, 82, 0.99), rgba(69, 69, 69, 0.95)); linear-gradient(rgba(82, 82, 82, 0.99), rgba(69, 69, 69, 0.95));
} }
html[dir='ltr'] #toolbarContainer, .findbar, .secondaryToolbar { html[dir='ltr'] #toolbarContainer, .findbar, .secondaryToolbar {
@ -863,7 +863,7 @@ html[dir='rtl'] .findbar {
font-style: italic; font-style: italic;
} }
#findInput[data-status="pending"] { #findInput[data-status="pending"] {
background-image: url(images/loading-small.png); background-image: url(../pdf/images/loading-small.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: right; background-position: right;
} }
@ -1203,7 +1203,7 @@ html[dir='rtl'] .dropdownToolbarButton {
position: absolute; position: absolute;
display: inline-block; display: inline-block;
top: 4px; top: 4px;
content: url(images/toolbarButton-menuArrows.png); content: url(../pdf/images/toolbarButton-menuArrows.png);
} }
html[dir='ltr'] .dropdownToolbarButton::after { html[dir='ltr'] .dropdownToolbarButton::after {
right: 8px; right: 8px;
@ -1286,73 +1286,73 @@ html[dir="rtl"] .secondaryToolbarButton::before {
} }
html[dir='ltr'] .toolbarButton#sidebarToggle::before { html[dir='ltr'] .toolbarButton#sidebarToggle::before {
content: url(images/toolbarButton-sidebarToggle.png); content: url(../pdf/images/toolbarButton-sidebarToggle.png);
} }
html[dir='rtl'] .toolbarButton#sidebarToggle::before { html[dir='rtl'] .toolbarButton#sidebarToggle::before {
content: url(images/toolbarButton-sidebarToggle-rtl.png); content: url(../pdf/images/toolbarButton-sidebarToggle-rtl.png);
} }
html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before { html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
content: url(images/toolbarButton-secondaryToolbarToggle.png); content: url(../pdf/images/toolbarButton-secondaryToolbarToggle.png);
} }
html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before { html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
content: url(images/toolbarButton-secondaryToolbarToggle-rtl.png); content: url(../pdf/images/toolbarButton-secondaryToolbarToggle-rtl.png);
} }
html[dir='ltr'] .toolbarButton.findPrevious::before { html[dir='ltr'] .toolbarButton.findPrevious::before {
content: url(images/findbarButton-previous.png); content: url(../pdf/images/findbarButton-previous.png);
} }
html[dir='rtl'] .toolbarButton.findPrevious::before { html[dir='rtl'] .toolbarButton.findPrevious::before {
content: url(images/findbarButton-previous-rtl.png); content: url(../pdf/images/findbarButton-previous-rtl.png);
} }
html[dir='ltr'] .toolbarButton.findNext::before { html[dir='ltr'] .toolbarButton.findNext::before {
content: url(images/findbarButton-next.png); content: url(../pdf/images/findbarButton-next.png);
} }
html[dir='rtl'] .toolbarButton.findNext::before { html[dir='rtl'] .toolbarButton.findNext::before {
content: url(images/findbarButton-next-rtl.png); content: url(../pdf/images/findbarButton-next-rtl.png);
} }
html[dir='ltr'] .toolbarButton.pageUp::before { html[dir='ltr'] .toolbarButton.pageUp::before {
content: url(images/toolbarButton-pageUp.png); content: url(../pdf/images/toolbarButton-pageUp.png);
} }
html[dir='rtl'] .toolbarButton.pageUp::before { html[dir='rtl'] .toolbarButton.pageUp::before {
content: url(images/toolbarButton-pageUp-rtl.png); content: url(../pdf/images/toolbarButton-pageUp-rtl.png);
} }
html[dir='ltr'] .toolbarButton.pageDown::before { html[dir='ltr'] .toolbarButton.pageDown::before {
content: url(images/toolbarButton-pageDown.png); content: url(../pdf/images/toolbarButton-pageDown.png);
} }
html[dir='rtl'] .toolbarButton.pageDown::before { html[dir='rtl'] .toolbarButton.pageDown::before {
content: url(images/toolbarButton-pageDown-rtl.png); content: url(../pdf/images/toolbarButton-pageDown-rtl.png);
} }
.toolbarButton.zoomOut::before { .toolbarButton.zoomOut::before {
content: url(images/toolbarButton-zoomOut.png); content: url(../pdf/images/toolbarButton-zoomOut.png);
} }
.toolbarButton.zoomIn::before { .toolbarButton.zoomIn::before {
content: url(images/toolbarButton-zoomIn.png); content: url(../pdf/images/toolbarButton-zoomIn.png);
} }
.toolbarButton.presentationMode::before, .toolbarButton.presentationMode::before,
.secondaryToolbarButton.presentationMode::before { .secondaryToolbarButton.presentationMode::before {
content: url(images/toolbarButton-presentationMode.png); content: url(../pdf/images/toolbarButton-presentationMode.png);
} }
.toolbarButton.print::before, .toolbarButton.print::before,
.secondaryToolbarButton.print::before { .secondaryToolbarButton.print::before {
content: url(images/toolbarButton-print.png); content: url(../pdf/images/toolbarButton-print.png);
} }
.toolbarButton.openFile::before, .toolbarButton.openFile::before,
.secondaryToolbarButton.openFile::before { .secondaryToolbarButton.openFile::before {
content: url(images/toolbarButton-openFile.png); content: url(../pdf/images/toolbarButton-openFile.png);
} }
.toolbarButton.download::before, .toolbarButton.download::before,
.secondaryToolbarButton.download::before { .secondaryToolbarButton.download::before {
content: url(images/toolbarButton-download.png); content: url(../pdf/images/toolbarButton-download.png);
} }
.toolbarButton.bookmark, .toolbarButton.bookmark,
@ -1373,26 +1373,26 @@ html[dir='rtl'] .toolbarButton.pageDown::before {
.toolbarButton.bookmark::before, .toolbarButton.bookmark::before,
.secondaryToolbarButton.bookmark::before { .secondaryToolbarButton.bookmark::before {
content: url(images/toolbarButton-bookmark.png); content: url(../pdf/images/toolbarButton-bookmark.png);
} }
#viewThumbnail.toolbarButton::before { #viewThumbnail.toolbarButton::before {
content: url(images/toolbarButton-viewThumbnail.png); content: url(../pdf/images/toolbarButton-viewThumbnail.png);
} }
html[dir="ltr"] #viewOutline.toolbarButton::before { html[dir="ltr"] #viewOutline.toolbarButton::before {
content: url(images/toolbarButton-viewOutline.png); content: url(../pdf/images/toolbarButton-viewOutline.png);
} }
html[dir="rtl"] #viewOutline.toolbarButton::before { html[dir="rtl"] #viewOutline.toolbarButton::before {
content: url(images/toolbarButton-viewOutline-rtl.png); content: url(../pdf/images/toolbarButton-viewOutline-rtl.png);
} }
#viewAttachments.toolbarButton::before { #viewAttachments.toolbarButton::before {
content: url(images/toolbarButton-viewAttachments.png); content: url(../pdf/images/toolbarButton-viewAttachments.png);
} }
#viewFind.toolbarButton::before { #viewFind.toolbarButton::before {
content: url(images/toolbarButton-search.png); content: url(../pdf/images/toolbarButton-search.png);
} }
.toolbarButton.pdfSidebarNotification::after { .toolbarButton.pdfSidebarNotification::after {
@ -1446,55 +1446,55 @@ html[dir="rtl"] .secondaryToolbarButton > span {
} }
.secondaryToolbarButton.firstPage::before { .secondaryToolbarButton.firstPage::before {
content: url(images/secondaryToolbarButton-firstPage.png); content: url(../pdf/images/secondaryToolbarButton-firstPage.png);
} }
.secondaryToolbarButton.lastPage::before { .secondaryToolbarButton.lastPage::before {
content: url(images/secondaryToolbarButton-lastPage.png); content: url(../pdf/images/secondaryToolbarButton-lastPage.png);
} }
.secondaryToolbarButton.rotateCcw::before { .secondaryToolbarButton.rotateCcw::before {
content: url(images/secondaryToolbarButton-rotateCcw.png); content: url(../pdf/images/secondaryToolbarButton-rotateCcw.png);
} }
.secondaryToolbarButton.rotateCw::before { .secondaryToolbarButton.rotateCw::before {
content: url(images/secondaryToolbarButton-rotateCw.png); content: url(../pdf/images/secondaryToolbarButton-rotateCw.png);
} }
.secondaryToolbarButton.selectTool::before { .secondaryToolbarButton.selectTool::before {
content: url(images/secondaryToolbarButton-selectTool.png); content: url(../pdf/images/secondaryToolbarButton-selectTool.png);
} }
.secondaryToolbarButton.handTool::before { .secondaryToolbarButton.handTool::before {
content: url(images/secondaryToolbarButton-handTool.png); content: url(../pdf/images/secondaryToolbarButton-handTool.png);
} }
.secondaryToolbarButton.scrollVertical::before { .secondaryToolbarButton.scrollVertical::before {
content: url(images/secondaryToolbarButton-scrollVertical.png); content: url(../pdf/images/secondaryToolbarButton-scrollVertical.png);
} }
.secondaryToolbarButton.scrollHorizontal::before { .secondaryToolbarButton.scrollHorizontal::before {
content: url(images/secondaryToolbarButton-scrollHorizontal.png); content: url(../pdf/images/secondaryToolbarButton-scrollHorizontal.png);
} }
.secondaryToolbarButton.scrollWrapped::before { .secondaryToolbarButton.scrollWrapped::before {
content: url(images/secondaryToolbarButton-scrollWrapped.png); content: url(../pdf/images/secondaryToolbarButton-scrollWrapped.png);
} }
.secondaryToolbarButton.spreadNone::before { .secondaryToolbarButton.spreadNone::before {
content: url(images/secondaryToolbarButton-spreadNone.png); content: url(../pdf/images/secondaryToolbarButton-spreadNone.png);
} }
.secondaryToolbarButton.spreadOdd::before { .secondaryToolbarButton.spreadOdd::before {
content: url(images/secondaryToolbarButton-spreadOdd.png); content: url(../pdf/images/secondaryToolbarButton-spreadOdd.png);
} }
.secondaryToolbarButton.spreadEven::before { .secondaryToolbarButton.spreadEven::before {
content: url(images/secondaryToolbarButton-spreadEven.png); content: url(../pdf/images/secondaryToolbarButton-spreadEven.png);
} }
.secondaryToolbarButton.documentProperties::before { .secondaryToolbarButton.documentProperties::before {
content: url(images/secondaryToolbarButton-documentProperties.png); content: url(../pdf/images/secondaryToolbarButton-documentProperties.png);
} }
.verticalToolbarSeparator { .verticalToolbarSeparator {
@ -1553,7 +1553,7 @@ html[dir='rtl'] .verticalToolbarSeparator {
} }
.toolbarField.pageNumber.visiblePageIsLoading { .toolbarField.pageNumber.visiblePageIsLoading {
background-image: url(images/loading-small.png); background-image: url(../pdf/images/loading-small.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 1px; background-position: 1px;
} }
@ -1757,15 +1757,15 @@ html[dir='rtl'] .attachmentsItem > button {
color: rgba(255, 255, 255, 0.5); color: rgba(255, 255, 255, 0.5);
} }
.outlineItemToggler::before { .outlineItemToggler::before {
content: url(images/treeitem-expanded.png); content: url(../pdf/images/treeitem-expanded.png);
display: inline-block; display: inline-block;
position: absolute; position: absolute;
} }
html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before { html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before {
content: url(images/treeitem-collapsed.png); content: url(../pdf/images/treeitem-collapsed.png);
} }
html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before { html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before {
content: url(images/treeitem-collapsed-rtl.png); content: url(../pdf/images/treeitem-collapsed-rtl.png);
} }
.outlineItemToggler.outlineItemsHidden ~ .outlineItems { .outlineItemToggler.outlineItemsHidden ~ .outlineItems {
display: none; display: none;
@ -1890,9 +1890,9 @@ html[dir='rtl'] .outlineItemToggler::before {
font-size: 0.75em; font-size: 0.75em;
line-height: 14px; line-height: 14px;
background-color: rgba(71, 71, 71, 1); /* fallback */ background-color: rgba(71, 71, 71, 1); /* fallback */
background-image: url(images/texture.png), background-image: url(../pdf/images/texture.png),
-webkit-gradient(linear, left top, left bottom, from(rgba(82, 82, 82,0.99)), to(rgba(69, 69, 69, 0.95))); -webkit-gradient(linear, left top, left bottom, from(rgba(82, 82, 82,0.99)), to(rgba(69, 69, 69, 0.95)));
background-image: url(images/texture.png), background-image: url(../pdf/images/texture.png),
linear-gradient(rgba(82, 82, 82,0.99), rgba(69, 69, 69, 0.95)); linear-gradient(rgba(82, 82, 82,0.99), rgba(69, 69, 69, 0.95));
border: 1px solid rgba(0, 0, 0, 0.5); border: 1px solid rgba(0, 0, 0, 0.5);
border-radius: 4px; border-radius: 4px;
@ -2054,7 +2054,7 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * {
} }
.grab-to-pan-grab { .grab-to-pan-grab {
cursor: url("images/grab.cur"), move !important; cursor: url("../pdf/images/grab.cur"), move !important;
cursor: -webkit-grab !important; cursor: -webkit-grab !important;
cursor: grab !important; cursor: grab !important;
} }
@ -2063,7 +2063,7 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * {
} }
.grab-to-pan-grab:active, .grab-to-pan-grab:active,
.grab-to-pan-grabbing { .grab-to-pan-grabbing {
cursor: url("images/grabbing.cur"), move !important; cursor: url("../pdf/images/grabbing.cur"), move !important;
cursor: -webkit-grabbing !important; cursor: -webkit-grabbing !important;
cursor: grabbing !important; cursor: grabbing !important;
position: fixed; position: fixed;
@ -2113,7 +2113,7 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * {
.toolbarField.pageNumber.visiblePageIsLoading, .toolbarField.pageNumber.visiblePageIsLoading,
#findInput[data-status="pending"] { #findInput[data-status="pending"] {
background-image: url(images/loading-small@2x.png); background-image: url(../pdf/images/loading-small@2x.png);
background-size: 16px 17px; background-size: 16px 17px;
} }
@ -2121,7 +2121,7 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * {
-webkit-transform: scale(0.5); -webkit-transform: scale(0.5);
transform: scale(0.5); transform: scale(0.5);
top: -5px; top: -5px;
content: url(images/toolbarButton-menuArrows@2x.png); content: url(../pdf/images/toolbarButton-menuArrows@2x.png);
} }
html[dir='ltr'] .dropdownToolbarButton::after { html[dir='ltr'] .dropdownToolbarButton::after {
right: 4px; right: 4px;
@ -2131,162 +2131,162 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * {
} }
html[dir='ltr'] .toolbarButton#sidebarToggle::before { html[dir='ltr'] .toolbarButton#sidebarToggle::before {
content: url(images/toolbarButton-sidebarToggle@2x.png); content: url(../pdf/images/toolbarButton-sidebarToggle@2x.png);
} }
html[dir='rtl'] .toolbarButton#sidebarToggle::before { html[dir='rtl'] .toolbarButton#sidebarToggle::before {
content: url(images/toolbarButton-sidebarToggle-rtl@2x.png); content: url(../pdf/images/toolbarButton-sidebarToggle-rtl@2x.png);
} }
html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before { html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
content: url(images/toolbarButton-secondaryToolbarToggle@2x.png); content: url(../pdf/images/toolbarButton-secondaryToolbarToggle@2x.png);
} }
html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before { html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
content: url(images/toolbarButton-secondaryToolbarToggle-rtl@2x.png); content: url(../pdf/images/toolbarButton-secondaryToolbarToggle-rtl@2x.png);
} }
html[dir='ltr'] .toolbarButton.findPrevious::before { html[dir='ltr'] .toolbarButton.findPrevious::before {
content: url(images/findbarButton-previous@2x.png); content: url(../pdf/images/findbarButton-previous@2x.png);
} }
html[dir='rtl'] .toolbarButton.findPrevious::before { html[dir='rtl'] .toolbarButton.findPrevious::before {
content: url(images/findbarButton-previous-rtl@2x.png); content: url(../pdf/images/findbarButton-previous-rtl@2x.png);
} }
html[dir='ltr'] .toolbarButton.findNext::before { html[dir='ltr'] .toolbarButton.findNext::before {
content: url(images/findbarButton-next@2x.png); content: url(../pdf/images/findbarButton-next@2x.png);
} }
html[dir='rtl'] .toolbarButton.findNext::before { html[dir='rtl'] .toolbarButton.findNext::before {
content: url(images/findbarButton-next-rtl@2x.png); content: url(../pdf/images/findbarButton-next-rtl@2x.png);
} }
html[dir='ltr'] .toolbarButton.pageUp::before { html[dir='ltr'] .toolbarButton.pageUp::before {
content: url(images/toolbarButton-pageUp@2x.png); content: url(../pdf/images/toolbarButton-pageUp@2x.png);
} }
html[dir='rtl'] .toolbarButton.pageUp::before { html[dir='rtl'] .toolbarButton.pageUp::before {
content: url(images/toolbarButton-pageUp-rtl@2x.png); content: url(../pdf/images/toolbarButton-pageUp-rtl@2x.png);
} }
html[dir='ltr'] .toolbarButton.pageDown::before { html[dir='ltr'] .toolbarButton.pageDown::before {
content: url(images/toolbarButton-pageDown@2x.png); content: url(../pdf/images/toolbarButton-pageDown@2x.png);
} }
html[dir='rtl'] .toolbarButton.pageDown::before { html[dir='rtl'] .toolbarButton.pageDown::before {
content: url(images/toolbarButton-pageDown-rtl@2x.png); content: url(../pdf/images/toolbarButton-pageDown-rtl@2x.png);
} }
.toolbarButton.zoomIn::before { .toolbarButton.zoomIn::before {
content: url(images/toolbarButton-zoomIn@2x.png); content: url(../pdf/images/toolbarButton-zoomIn@2x.png);
} }
.toolbarButton.zoomOut::before { .toolbarButton.zoomOut::before {
content: url(images/toolbarButton-zoomOut@2x.png); content: url(../pdf/images/toolbarButton-zoomOut@2x.png);
} }
.toolbarButton.presentationMode::before, .toolbarButton.presentationMode::before,
.secondaryToolbarButton.presentationMode::before { .secondaryToolbarButton.presentationMode::before {
content: url(images/toolbarButton-presentationMode@2x.png); content: url(../pdf/images/toolbarButton-presentationMode@2x.png);
} }
.toolbarButton.print::before, .toolbarButton.print::before,
.secondaryToolbarButton.print::before { .secondaryToolbarButton.print::before {
content: url(images/toolbarButton-print@2x.png); content: url(../pdf/images/toolbarButton-print@2x.png);
} }
.toolbarButton.openFile::before, .toolbarButton.openFile::before,
.secondaryToolbarButton.openFile::before { .secondaryToolbarButton.openFile::before {
content: url(images/toolbarButton-openFile@2x.png); content: url(../pdf/images/toolbarButton-openFile@2x.png);
} }
.toolbarButton.download::before, .toolbarButton.download::before,
.secondaryToolbarButton.download::before { .secondaryToolbarButton.download::before {
content: url(images/toolbarButton-download@2x.png); content: url(../pdf/images/toolbarButton-download@2x.png);
} }
.toolbarButton.bookmark::before, .toolbarButton.bookmark::before,
.secondaryToolbarButton.bookmark::before { .secondaryToolbarButton.bookmark::before {
content: url(images/toolbarButton-bookmark@2x.png); content: url(../pdf/images/toolbarButton-bookmark@2x.png);
} }
#viewThumbnail.toolbarButton::before { #viewThumbnail.toolbarButton::before {
content: url(images/toolbarButton-viewThumbnail@2x.png); content: url(../pdf/images/toolbarButton-viewThumbnail@2x.png);
} }
html[dir="ltr"] #viewOutline.toolbarButton::before { html[dir="ltr"] #viewOutline.toolbarButton::before {
content: url(images/toolbarButton-viewOutline@2x.png); content: url(../pdf/images/toolbarButton-viewOutline@2x.png);
} }
html[dir="rtl"] #viewOutline.toolbarButton::before { html[dir="rtl"] #viewOutline.toolbarButton::before {
content: url(images/toolbarButton-viewOutline-rtl@2x.png); content: url(../pdf/images/toolbarButton-viewOutline-rtl@2x.png);
} }
#viewAttachments.toolbarButton::before { #viewAttachments.toolbarButton::before {
content: url(images/toolbarButton-viewAttachments@2x.png); content: url(../pdf/images/toolbarButton-viewAttachments@2x.png);
} }
#viewFind.toolbarButton::before { #viewFind.toolbarButton::before {
content: url(images/toolbarButton-search@2x.png); content: url(../pdf/images/toolbarButton-search@2x.png);
} }
.secondaryToolbarButton.firstPage::before { .secondaryToolbarButton.firstPage::before {
content: url(images/secondaryToolbarButton-firstPage@2x.png); content: url(../pdf/images/secondaryToolbarButton-firstPage@2x.png);
} }
.secondaryToolbarButton.lastPage::before { .secondaryToolbarButton.lastPage::before {
content: url(images/secondaryToolbarButton-lastPage@2x.png); content: url(../pdf/images/secondaryToolbarButton-lastPage@2x.png);
} }
.secondaryToolbarButton.rotateCcw::before { .secondaryToolbarButton.rotateCcw::before {
content: url(images/secondaryToolbarButton-rotateCcw@2x.png); content: url(../pdf/images/secondaryToolbarButton-rotateCcw@2x.png);
} }
.secondaryToolbarButton.rotateCw::before { .secondaryToolbarButton.rotateCw::before {
content: url(images/secondaryToolbarButton-rotateCw@2x.png); content: url(../pdf/images/secondaryToolbarButton-rotateCw@2x.png);
} }
.secondaryToolbarButton.selectTool::before { .secondaryToolbarButton.selectTool::before {
content: url(images/secondaryToolbarButton-selectTool@2x.png); content: url(../pdf/images/secondaryToolbarButton-selectTool@2x.png);
} }
.secondaryToolbarButton.handTool::before { .secondaryToolbarButton.handTool::before {
content: url(images/secondaryToolbarButton-handTool@2x.png); content: url(../pdf/images/secondaryToolbarButton-handTool@2x.png);
} }
.secondaryToolbarButton.scrollVertical::before { .secondaryToolbarButton.scrollVertical::before {
content: url(images/secondaryToolbarButton-scrollVertical@2x.png); content: url(../pdf/images/secondaryToolbarButton-scrollVertical@2x.png);
} }
.secondaryToolbarButton.scrollHorizontal::before { .secondaryToolbarButton.scrollHorizontal::before {
content: url(images/secondaryToolbarButton-scrollHorizontal@2x.png); content: url(../pdf/images/secondaryToolbarButton-scrollHorizontal@2x.png);
} }
.secondaryToolbarButton.scrollWrapped::before { .secondaryToolbarButton.scrollWrapped::before {
content: url(images/secondaryToolbarButton-scrollWrapped@2x.png); content: url(../pdf/images/secondaryToolbarButton-scrollWrapped@2x.png);
} }
.secondaryToolbarButton.spreadNone::before { .secondaryToolbarButton.spreadNone::before {
content: url(images/secondaryToolbarButton-spreadNone@2x.png); content: url(../pdf/images/secondaryToolbarButton-spreadNone@2x.png);
} }
.secondaryToolbarButton.spreadOdd::before { .secondaryToolbarButton.spreadOdd::before {
content: url(images/secondaryToolbarButton-spreadOdd@2x.png); content: url(../pdf/images/secondaryToolbarButton-spreadOdd@2x.png);
} }
.secondaryToolbarButton.spreadEven::before { .secondaryToolbarButton.spreadEven::before {
content: url(images/secondaryToolbarButton-spreadEven@2x.png); content: url(../pdf/images/secondaryToolbarButton-spreadEven@2x.png);
} }
.secondaryToolbarButton.documentProperties::before { .secondaryToolbarButton.documentProperties::before {
content: url(images/secondaryToolbarButton-documentProperties@2x.png); content: url(../pdf/images/secondaryToolbarButton-documentProperties@2x.png);
} }
.outlineItemToggler::before { .outlineItemToggler::before {
-webkit-transform: scale(0.5); -webkit-transform: scale(0.5);
transform: scale(0.5); transform: scale(0.5);
top: -1px; top: -1px;
content: url(images/treeitem-expanded@2x.png); content: url(../pdf/images/treeitem-expanded@2x.png);
} }
html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before { html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before {
content: url(images/treeitem-collapsed@2x.png); content: url(../pdf/images/treeitem-collapsed@2x.png);
} }
html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before { html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before {
content: url(images/treeitem-collapsed-rtl@2x.png); content: url(../pdf/images/treeitem-collapsed-rtl@2x.png);
} }
html[dir='ltr'] .outlineItemToggler::before { html[dir='ltr'] .outlineItemToggler::before {
right: 0; right: 0;

View File

@ -4598,7 +4598,7 @@ var defaultOptions = {
kind: OptionKind.VIEWER + OptionKind.PREFERENCE kind: OptionKind.VIEWER + OptionKind.PREFERENCE
}, },
imageResourcesPath: { imageResourcesPath: {
value: "./images/", value: "../pdf/images/",
kind: OptionKind.VIEWER kind: OptionKind.VIEWER
}, },
maxCanvasPixels: { maxCanvasPixels: {

File diff suppressed because one or more lines are too long

View File

@ -28,13 +28,13 @@ See https://github.com/adobe-type-tools/cmap-resources
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PDF.js viewer</title> <title>PDF.js viewer</title>
<% if request.env['HTTP_USER_AGENT'] =~ /MSIE/ || request.env['HTTP_USER_AGENT'] =~ /Trident\// %> <% if request.env['HTTP_USER_AGENT'] =~ /MSIE/ || request.env['HTTP_USER_AGENT'] =~ /Trident\// %>
<%= stylesheet_link_tag "archive/pdf_es5/viewer.css" %>
<link rel="resource" type="application/l10n" href="/assets/archive/locale/locale.properties"> <link rel="resource" type="application/l10n" href="/assets/archive/locale/locale.properties">
<%= stylesheet_link_tag "archive/pdf_es5/viewer.css" %>
<%= javascript_include_tag "archive/pdf_es5/pdf.js" %> <%= javascript_include_tag "archive/pdf_es5/pdf.js" %>
<%= javascript_include_tag "archive/pdf_es5/viewer.js" %> <%= javascript_include_tag "archive/pdf_es5/viewer.js" %>
<% else %> <% else %>
<%= stylesheet_link_tag "archive/pdf/viewer.css" %>
<link rel="resource" type="application/l10n" href="/assets/archive/locale/locale.properties"> <link rel="resource" type="application/l10n" href="/assets/archive/locale/locale.properties">
<%= stylesheet_link_tag "archive/pdf/viewer.css" %>
<%= javascript_include_tag "archive/pdf/pdf.js" %> <%= javascript_include_tag "archive/pdf/pdf.js" %>
<%= javascript_include_tag "archive/pdf/viewer.js" %> <%= javascript_include_tag "archive/pdf/viewer.js" %>
<% end %> <% end %>