matthewkastor / html-table-of-contents Goto Github PK
View Code? Open in Web Editor NEWGenerates a table of contents for your HTML document based on the headings present.
Home Page: https://npmjs.org/package/html-table-of-contents
Generates a table of contents for your HTML document based on the headings present.
Home Page: https://npmjs.org/package/html-table-of-contents
I am loving this code and find it extremely useful however I am unable to link to an anchor point from page A that exists on page B. The link from page A will simply link to page B and not jump to the anchor point.
Example:
Page A link: https://example.com/hello-world/#anchor
Opens page B url: https://example.com/hello-world/#anchor
^ but does not scroll to #anchor
I'm sorry, I'm not a programmer in JavaScript.
Code of my page: https://github.com/Kristinita/Kristinita.github.io/blob/master/Gingerinas/MyTOC.html
My page: http://Kristinita.ru/Gingerinas/MyTOC.html
<base target="_blank">
to all links open in a new window. I want to TOC link opened in the current window, and links to everything else in the new window. What I should do?Thanks.
Hello. At me your example normally functions.
Code: https://github.com/Kristinita/Kristinita.github.io/blob/master/Gingerinas/TOC-test.html,
Web-page: http://kristinita.ru/Gingerinas/TOC-test.html
But in my real HTML files your module doesn't work. Example:
Code: https://github.com/Kristinita/Kristinita.github.io/blob/master/Gingerinas/MyTOC.html,
Web-page: http://kristinita.ru/Gingerinas/MyTOC.html
What i do incorrectly?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.