Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
9326eee3
Commit
9326eee3
authored
Mar 02, 2022
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments to explain the frame structure of the VitalSource reader
parent
64247211
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
vitalsource.js
src/annotator/integrations/vitalsource.js
+15
-0
No files found.
src/annotator/integrations/vitalsource.js
View file @
9326eee3
...
...
@@ -43,6 +43,21 @@ export function vitalSourceFrameRole(window_ = window) {
/**
* VitalSourceInjector runs in the book container frame and loads the client into
* book content frames.
*
* The frame structure of the VitalSource book reader looks like this:
*
* [VitalSource top frame - bookshelf.vitalsource.com]
* |
* [Book container frame - jigsaw.vitalsource.com]
* |
* [Book content frame - jigsaw.vitalsource.com]
*
* The Hypothesis client can be initially loaded in the container frame or the
* content frame. As the user navigates around the book, the container frame
* remains the same but the content frame is swapped out. When used in the
* container frame, this class handles initial injection of the client as a
* guest in the current content frame, and re-injecting the client into new
* content frames when they are created.
*/
export
class
VitalSourceInjector
{
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment