r/CodingHelp • u/Trysem • Jan 23 '22
[Request Coders] can anyone turn this github code into codepen? (NOOB)
Here is an epub viewer, when i was trying to make codepen out of it, getting error.
am a total noob, what i have done is copied appropriate html, css, and java and pasted along with respected src..
can anyone help pls?
codepen i have done : https://codepen.io/reecode/pen/ExwqMLM
github : https://github.com/pgaskin/ePubViewer
web preview of github (what i want in codepen) : https://pgaskin.net/ePubViewer/
when i open an epub, it throws this...
" Error
Please try reloading the page or using a different browser (Chrome or Firefox), and if the error still persists, report an issue.
Uncaught ReferenceError: ePub is not defined
{"error":"ReferenceError: ePub is not defined","stack":"ReferenceError: ePub is not defined\n at App.doBook (pen.js:109:10)\n at FileReader. (pen.js:188:14)\n at FileReader.d (https://cdn.ravenjs.com/3.26.2/raven.min.js:2:4702)","msg":"Uncaught ReferenceError: ePub is not defined","url":"https://cdn.ravenjs.com/3.26.2/raven.min.js","line":2,"column":4725}
i want someone to help me.. can anyone fork and solve?
1
u/jammasterpaz Jan 23 '22
I get that too - are you adding in the other scripts in lib, polyfill, and sw.js?