billzt / endnote.js

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

Home Page:https://billzt.github.io/endnote.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://billzt.github.io/endnote.js/

License:GNU General Public License v3.0


Languages

Language:HTML 85.1%Language:JavaScript 14.9%