From dfa4989a90e3631b7757639d4dccf84fa9ee029c Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 6 Oct 2023 22:59:21 +0000 Subject: Deployed 77edb63 to dev with MkDocs 1.5.3 and mike 1.1.2 --- dev/js/timeago.min.js | 2 ++ dev/js/timeago_mkdocs_material.js | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 dev/js/timeago.min.js create mode 100644 dev/js/timeago_mkdocs_material.js (limited to 'dev/js') diff --git a/dev/js/timeago.min.js b/dev/js/timeago.min.js new file mode 100644 index 00000000..a8530a5f --- /dev/null +++ b/dev/js/timeago.min.js @@ -0,0 +1,2 @@ +/* Taken from https://cdnjs.cloudflare.com/ajax/libs/timeago.js/4.0.2/timeago.min.js */ +!function(s,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((s=s||self).timeago={})}(this,function(s){"use strict";var a=["second","minute","hour","day","week","month","year"];function n(s,n){if(0===n)return["just now","right now"];var e=a[Math.floor(n/2)];return 1=m[t]&&t=m[e]&&e 0) { + var locale = nodes[0].getAttribute('locale'); + timeago.render(nodes, locale); + } + }) +} else { + var nodes = document.querySelectorAll('.timeago'); + if (nodes.length > 0) { + var locale = nodes[0].getAttribute('locale'); + timeago.render(nodes, locale); + } +} -- cgit v1.2.3-70-g09d2