Close #93,#36 Add music short code.

This commit is contained in:
elkan1788
2025-01-06 13:26:27 +08:00
parent 351d6728d0
commit 088da43913
106 changed files with 119 additions and 4 deletions

View File

@@ -7,6 +7,16 @@ HTMLElement.prototype.wrap = function (wrapper) {
};
NexT.utils = {
registerAPlayer: function () {
this.getStyle(
NexT.utils.getCDNResource(NexT.CONFIG.page.aplayer.css)
);
NexT.CONFIG.page.aplayer.js.forEach(function (js) {
NexT.utils.getScript(NexT.utils.getCDNResource(js), true);
});
},
calPostExpiredDate: function() {
const postMetaDom = document.querySelector('.post-meta-container');
let postTime = postMetaDom.querySelector('time[itemprop="dateCreated datePublished"]').getAttribute("datetime");