cybergrunge-ops / auto-anchors

Quick sketch for replacing keywords with anchors linking to their relevant pages, kinda Wikipedia style.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

auto-anchors

Quick sketch for replacing keywords with anchors linking to their relevant pages, kinda Wikipedia style.

anchors link to {keyword}.html by default

screenshot:

demo

useage

to add more/custom keywords:

  • add new class styling as you like, name new classes "link"+{id}
  • at the bottom, give the functions a word to replace, x, and class id, y

improve this

instead of calling addlinks() multiple times, take apart the function and make a forEach loop so you can simply pass an array of keywords.

About

Quick sketch for replacing keywords with anchors linking to their relevant pages, kinda Wikipedia style.

License:Creative Commons Zero v1.0 Universal


Languages

Language:HTML 100.0%