js:foliate-js:reader

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
js:foliate-js:reader [2024/03/26 13:14] avillepreuxjs:foliate-js:reader [2024/03/26 13:52] (Version actuelle) – ancienne révision (2024/03/26 13:27) restaurée avillepreux
Ligne 1: Ligne 1:
-<JS>+<html><script type="module">
  
 import 'https://johnfactotum.github.io/foliate-js/view.js' import 'https://johnfactotum.github.io/foliate-js/view.js'
Ligne 20: Ligne 20:
 const makeZipLoader = async file => { const makeZipLoader = async file => {
     const { configure, ZipReader, BlobReader, TextWriter, BlobWriter } =     const { configure, ZipReader, BlobReader, TextWriter, BlobWriter } =
-        await import('./vendor/zip.js')+        await import('https://johnfactotum.github.io/foliate-js/vendor/zip.js')
     configure({ useWebWorkers: false })     configure({ useWebWorkers: false })
     const reader = new ZipReader(new BlobReader(file))     const reader = new ZipReader(new BlobReader(file))
Ligne 70: Ligne 70:
     if (file.isDirectory) {     if (file.isDirectory) {
         const loader = await makeDirectoryLoader(file)         const loader = await makeDirectoryLoader(file)
-        const { EPUB } = await import('./epub.js')+        const { EPUB } = await import('https://johnfactotum.github.io/foliate-js/epub.js')
         book = await new EPUB(loader).init()         book = await new EPUB(loader).init()
     }     }
Ligne 77: Ligne 77:
         const loader = await makeZipLoader(file)         const loader = await makeZipLoader(file)
         if (isCBZ(file)) {         if (isCBZ(file)) {
-            const { makeComicBook } = await import('./comic-book.js')+            const { makeComicBook } = await import('https://johnfactotum.github.io/foliate-js/comic-book.js')
             book = makeComicBook(loader, file)             book = makeComicBook(loader, file)
         } else if (isFBZ(file)) {         } else if (isFBZ(file)) {
-            const { makeFB2 } = await import('./fb2.js')+            const { makeFB2 } = await import('https://johnfactotum.github.io/foliate-js/fb2.js')
             const { entries } = loader             const { entries } = loader
             const entry = entries.find(entry => entry.filename.endsWith('.fb2'))             const entry = entries.find(entry => entry.filename.endsWith('.fb2'))
Ligne 86: Ligne 86:
             book = await makeFB2(blob)             book = await makeFB2(blob)
         } else {         } else {
-            const { EPUB } = await import('./epub.js')+            const { EPUB } = await import('https://johnfactotum.github.io/foliate-js/epub.js')
             book = await new EPUB(loader).init()             book = await new EPUB(loader).init()
         }         }
     }     }
     else if (await isPDF(file)) {     else if (await isPDF(file)) {
-        const { makePDF } = await import('./pdf.js')+        const { makePDF } = await import('https://johnfactotum.github.io/foliate-js/pdf.js')
         book = await makePDF(file)         book = await makePDF(file)
     }     }
     else {     else {
-        const { isMOBI, MOBI } = await import('./mobi.js')+        const { isMOBI, MOBI } = await import('https://johnfactotum.github.io/foliate-js/mobi.js')
         if (await isMOBI(file)) {         if (await isMOBI(file)) {
-            const fflate = await import('./vendor/fflate.js')+            const fflate = await import('https://johnfactotum.github.io/foliate-js/vendor/fflate.js')
             book = await new MOBI({ unzlib: fflate.unzlibSync }).open(file)             book = await new MOBI({ unzlib: fflate.unzlibSync }).open(file)
         } else if (isFB2(file)) {         } else if (isFB2(file)) {
-            const { makeFB2 } = await import('./fb2.js')+            const { makeFB2 } = await import('https://johnfactotum.github.io/foliate-js/fb2.js')
             book = await makeFB2(file)             book = await makeFB2(file)
         }         }
Ligne 331: Ligne 331:
 else dropTarget.style.visibility = 'visible' else dropTarget.style.visibility = 'visible'
  
-</JS>+</script></html>
  • js/foliate-js/reader.1711455248.txt.gz
  • Dernière modification : 2024/03/26 13:14
  • de avillepreux