From bbc7aa8b51e4890f66c8298d6dc7d6368ebade38 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 10 Nov 2017 19:05:58 -0500 Subject: add permalinks, move about links to data.js --- htdocs/js/data.js | 17 +++++++++++++++++ htdocs/js/mathy.js | 44 ++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 57 insertions(+), 4 deletions(-) (limited to 'htdocs/js') diff --git a/htdocs/js/data.js b/htdocs/js/data.js index f17f364..5a12764 100644 --- a/htdocs/js/data.js +++ b/htdocs/js/data.js @@ -1,4 +1,21 @@ var DATA = { + links: [{ + name: 'Ace Editor', + link: 'https://ace.c9.io/', + }, { + name: 'Bootstrap', + link: 'https://getbootstrap.com/', + }, { + name: 'Font Awesome', + link: 'http://fontawesome.io/', + }, { + name: 'jQuery', + link: 'https://jquery.com', + }, { + name: 'MathJax', + link: 'https://www.mathjax.org/', + }], + examples: [{ name: "Some Limit", text: [ diff --git a/htdocs/js/mathy.js b/htdocs/js/mathy.js index 2100b26..9e9c71d 100644 --- a/htdocs/js/mathy.js +++ b/htdocs/js/mathy.js @@ -2,6 +2,18 @@ jQuery(function($) { "use strict"; var TEMPLATES = new LuigiTemplate.Cache({ + link: [ + "
  • ", + "", + "%{name|h}", + "", + "
  • ", + ], + save: [ "
  • ", "