Skip to content

Conversation

@TobiasWrigstad
Copy link
Collaborator

@TobiasWrigstad TobiasWrigstad commented Aug 6, 2019

  • Clicking a <p>..</p> tag copies the permalink
  • Visual queues using Jquery-ui (new dependency), highlight + message box
  • Format of permalink is http://localhost:3000/chapters/6#p5 to get to 5th paragraph of Chapter 6

Addresses #120 although it does not use right-click (which can be fixed, but then people will not see it).

- Clicking a <p>..</p> tag copies the permalink - Visual queues using Jquery-ui (new dependency), highlight + message box - Format of permalink is http://localhost:3000/chapters/6#p5 to get to 5th paragraph of Chapter 6
@TobiasWrigstad
Copy link
Collaborator Author

Update to this PR will come in 10 minutes -- I spotted a violation of HTML nesting rules

@martin-henz
Copy link
Member

I love this feature! I think it will improve the utilization of the textbook a lot because we can link directly into the specific paragraphs.

Played with Chapter 2. The copying of permalinks works for the intro of Chapter 2, but does not work for Section 2.1.

@TobiasWrigstad
Copy link
Collaborator Author

Thanks! I missed adding a hook to the function that dynamically loads content. Will fix after lunch.

@TobiasWrigstad
Copy link
Collaborator Author

We might also consider adding the same for headings

- Updates to newer bootstrap (fixes one bug with current system unrelated to this PR) - Exercises and headings are now permalinked - Handles dynamically loaded content
@TobiasWrigstad
Copy link
Collaborator Author

Please squash on merge!

@martin-henz martin-henz merged commit b317112 into master Aug 6, 2019
@martin-henz
Copy link
Member

This is amazing!

Copy link
Member

@martin-henz martin-henz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing feature!

@RichDom2185 RichDom2185 deleted the permalinks branch July 7, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants