diff options
author | Mantas Vilčinskas <hi@mnts.lt> | 2023-12-01 16:06:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 16:06:56 +0200 |
commit | 627b76ac2f904edadc69ee0e7b8776078bb73fc0 (patch) | |
tree | 7cfd3170dee0ba90ee32caf3e7f9412cb439e292 /layouts/partials/js.html | |
parent | ed2321eb20b63f8e24af4aaf0df344e5b78de8f4 (diff) | |
parent | 1674bfc8509def65ea62e215450d009516f183e5 (diff) |
cState v5.6.0 #300
cState v5.6.0
Diffstat (limited to 'layouts/partials/js.html')
-rw-r--r-- | layouts/partials/js.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/js.html b/layouts/partials/js.html index a5b974e..b7dad07 100644 --- a/layouts/partials/js.html +++ b/layouts/partials/js.html @@ -3,7 +3,7 @@ * Dev toolset */ - console.log('cState v5.5.2 - https://github.com/cstate/cstate'); + console.log('cState v5.6 - https://github.com/cstate/cstate'); document.getElementsByTagName('html')[0].className = 'js'; /** @@ -103,7 +103,7 @@ var elements = document.querySelectorAll('.relative-time'); for (var i = 0; i < elements.length; i++) { var element = elements[i]; - var time = Date.parse(element.getAttribute('title')); + var time = Date.parse(element.dataset.date); var html = element.getAttribute('data-time-prefix') || ''; |