mirror of
https://github.com/Xevion/v2.xevion.dev.git
synced 2025-12-09 16:09:07 -06:00
Un-rollback commit coloring code
This commit is contained in:
@@ -58,13 +58,15 @@ layout: compress
|
||||
<script>
|
||||
window.onload = () => {
|
||||
let commit = document.querySelector("#commit-id > a");
|
||||
let colorCode = commit.innerHTML.trim().substring(1, 7);
|
||||
commit.addEventListener('mouseover', function handler() {
|
||||
commit.style.color = `#${colorCode}`;
|
||||
})
|
||||
commit.addEventListener('mouseout', function handler() {
|
||||
commit.style.color = '';
|
||||
})
|
||||
if (commit != null) {
|
||||
let colorCode = commit.innerHTML.trim().substring(1, 7);
|
||||
commit.addEventListener('mouseover', function handler() {
|
||||
commit.style.color = `#${colorCode}`;
|
||||
})
|
||||
commit.addEventListener('mouseout', function handler() {
|
||||
commit.style.color = '';
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
@@ -38,7 +38,7 @@ layout: default
|
||||
|
||||
<p style="text-align: center;">
|
||||
<a href="/feed.xml">Atom</a> |
|
||||
<em class="build-revision"><a href="{{ site.github.repository_url }}/commit/{{ site.github.build_revision }}">
|
||||
<span id="commit-id" class="build-revision"><a href="{{ site.github.repository_url }}/commit/{{ site.github.build_revision }}">
|
||||
#{{ site.github.build_revision | truncate: 7, "" }}
|
||||
</a></em>
|
||||
</a></span>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user