Skip to content

Insert literature citation into HTML and then render as Endnote-style citation

License

Notifications You must be signed in to change notification settings

billzt/endnote.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

endnote.js

Insert literature citation in HTML and then rendered as Endnote-style citation. The original idea was from Javascript Endnotes

Demo

https://billzt.github.io/endnote.js/ (Text from https://en.wikipedia.org/wiki/Computer)

Require

jQuery

Optional

Bootstrap (CSS and JS)

Usage

  • Load jQuery.
<script src="//cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
  • (Optional) Load Boostrap CSS and JS
<link href="//cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<script src="//cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  • Load endnote.js
<script src="endnote.js"></script>
  • Cite your literature inline, quoted by <span class="endnote"></span>
  This is the 1st sentence<span class="endnote">Author A, Title A, Journal A, Page 10-20</span>. This is<span 
  class="endnote">Author B, Title B, Journal B, Page 20-30</span> the 2nd sentence. This is the 3nd
  <span class="endnote">Author A, Title A, Journal A, Page 10-20</span><span class="endnote">Author C, 
  Title C, Journal C, Page 40-50</span> sentence.
  • Add an <ol id="endnote-reference-list"></ol> element to where you want to place the reference list.
<h3>Reference List</h3>
<ol id="endnote-reference-list"></ol>
  • (Optional) If you want to the beautiful bootstrap tooltip, add this in the end:
$().ready(function(){$('[data-toggle="tooltip"]').tooltip();});

About

Insert literature citation into HTML and then render as Endnote-style citation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published