The following resources have been modified in the (resources
) folder, and will need to be reapplied when updating hypothesis version.
-
hypothes.is\app.html
andhypothes.is\app.html
remove "dsn" from the sentry object. This prevents crash logs from being sent to the hypothes.is team. (See issue #97)
-
cdn.hypothes.is\demos\epub\epub.js\css\reader.css
Add
.hide-after
class. This is needed to hide page separator in Scroll view.hide-after:after { display: none; };
Move reader closer to the top
#main { margin-top: 20px; }
REMOVE #prev and #next styles
#prev { left: 0; } #next { right: 0; }
REMOVE width margin from #viewer.spreads
#viewer.spreads { width: 85vh; margin: 10vh auto; ... }
Increase reader height
#viewer.spreads { height: 95vh; }
Increase reader view for large screen
@media (min-width: 1000px) { ... #viewer.spreads { width: 92vw; margin: 0 0 0 3.5vw; } #prev { left: -5px; } #next { right: 10px; } }
Increase reader view for small screen
@media (max-width: 1000px) { #viewer.spreads { width: 87vw; margin: 0 0 0 5vw; } #prev { left: -5px; } #next { right: 10px; } }
-
via.hypothes.is\https.html
The
event.source
check has to be disabled for the loading progress bar to dissappear.window.addEventListener('message', event => { const contentFrame = document.querySelector('.js-content-frame'); const loadingIndicator = document.querySelector('.js-loading-indicator'); if (event.source !== contentFrame.contentWindow) { // return; //(comment out this check) } ...