An open API service indexing awesome lists of open source software.

https://github.com/tomasci/bookmarkts

bookmark.ts - simple navigation in big pages using semi-automatic bookmarks
https://github.com/tomasci/bookmarkts

bookmarks frontend javascript navigation typescript web

Last synced: about 1 month ago
JSON representation

bookmark.ts - simple navigation in big pages using semi-automatic bookmarks

Awesome Lists containing this project

README

          

# bookmark.ts

Bookmark.ts is the simplest version of [Bookmark.js](https://bespoyasov.ru/bookmark) but recreated in clear TypeScript.

[![version](https://img.shields.io/badge/version-1.3-default.svg?style=flat-square)](https://github.com/tomasci/bookmarkts)

| - | Bookmark.ts |Bookmark.js |
| - | - |- |
| dependencies | no | jQuery |
| make BM tree | yes | yes |
| show tree onHover beside scrollbar | yes | yes |
| activates onScroll | yes | yes |
| scrollbar associate with links in panel | yes | yes |
| hash in browser search bar (/uri#hash) | yes | yes |
| active links (shows where user now) | no | yes |
| auto-naming (I think no need in that) | no | yes |

## Browsers Support
Script works in all modern browsers (I think).
I test it only in some of them, so:

| Browser | Support | Browser version |
| - | - | - |
| Chrome | yes | 80.0.3987.122 64-bit |
| Firefox | yes | 73.0.1 64-bit |
| Edge* | yes | 44.18362.449.0 |
| Safari | yes | iOS 13.3 |

`*` Edge is not on Chromium.

## Installation

1. clone repo
2. go to repo folder and find `build` folder
3. in `build/assets` you can find `styles` and `js` folders
4. copy from `styles` file named `bookmark.css` to your styles folder
5. copy from `js` file named `bookmark.js` to your scripts folder
6. open your `layout, template, view or ..` and before `` add next:
~~~~

~~~~
7. before `