diff options
| author | 2023-07-31 15:03:40 +0800 | |
|---|---|---|
| committer | 2023-07-31 15:03:40 +0800 | |
| commit | bdb8dfa8d2d9ac1668a1a0036d194cb57b168e37 (patch) | |
| tree | 232fad440bee508523e0b8a4f49f021f196ba958 /docs/site/js/timeago_mkdocs_material.js | |
| parent | cfc4a06db1d89d6bfbc75e5dfb46720cb15827da (diff) | |
| download | infini-bdb8dfa8d2d9ac1668a1a0036d194cb57b168e37.tar.gz infini-bdb8dfa8d2d9ac1668a1a0036d194cb57b168e37.zip | |
feat: add commiter
Diffstat (limited to 'docs/site/js/timeago_mkdocs_material.js')
| -rw-r--r-- | docs/site/js/timeago_mkdocs_material.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/docs/site/js/timeago_mkdocs_material.js b/docs/site/js/timeago_mkdocs_material.js deleted file mode 100644 index b3c8cdf8..00000000 --- a/docs/site/js/timeago_mkdocs_material.js +++ /dev/null @@ -1,18 +0,0 @@ -// Script to ensure timeago keeps working when -// used with mkdocs-material's instant loading feature - -if (typeof document$ !== "undefined") { - document$.subscribe(function() { - var nodes = document.querySelectorAll('.timeago'); - if (nodes.length > 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); - } -} |
