Skip to content

Commit

Permalink
PDF hosting treason (mozilla)
Browse files Browse the repository at this point in the history
selfhost pdfjs
aesthetic detail
  • Loading branch information
jackestar committed Oct 29, 2023
1 parent 1e49497 commit 3b01d6c
Show file tree
Hide file tree
Showing 6 changed files with 76,509 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Tools/Pensum.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
<link rel="stylesheet" type="text/css" href="./Styles/stylesP.css">
<link rel="stylesheet" type="text/css" href="../css/stylesU.css">
<link rel="shortcut icon" href="./favicon.svg" type="image/svg+xml">
<script defer src="https://mozilla.github.io/pdf.js/build/pdf.js"></script>
<link rel="prefetch" href="https://mozilla.github.io/pdf.js/build/pdf.worker.js" as="script">
<!-- <script src="https://mozilla.github.io/pdf.js/build/pdf.worker.js"></script> -->
<script defer src="../js/pdfjs-st/pdf.js"></script>
<link rel="prefetch" href="../js/pdfjs-st/pdf.worker.js" as="script">
</head>
<body ondragover="document.querySelector('section.bann div.upl .icon').click()">
<div class="blk" onclick="axit()"></div>
Expand Down
2 changes: 1 addition & 1 deletion Tools/Scripts/pensum.js
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ let extractText = (pdfUrl) => {
let evoke = () => {
bann.classList.remove('lk')
let url = atob(documento.slice(documento.indexOf('base')+7))
pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://mozilla.github.io/pdf.js/build/pdf.worker.js';
pdfjsLib.GlobalWorkerOptions.workerSrc = '../../js/pdfjs-st/pdf.worker.js';
extractText(url).then(
function (text) {
table.ReadRecord(text)
Expand Down
6 changes: 5 additions & 1 deletion Tools/Styles/stylesP.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,14 @@ aside.content ul.list li {
text-align: center;
margin: 0em 1em;
border-radius: 1em;
padding: 1%;

flex: 2;
max-width: 50vw;
background: var(--colorE);
height: 3em;
display: flex;
align-items: center;
justify-content: center;
}
aside.content ul.list>li i {
display: none;
Expand Down
2 changes: 2 additions & 0 deletions js/pdfjs-st/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pdfjs-3.11.174-dist
other hoster issues
Loading

0 comments on commit 3b01d6c

Please sign in to comment.