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