mirror-web/fancy-index/after.html
Harry Chen 61484a5aa0
Add more monospace fonts to fancy index
Signed-off-by: Harry Chen <i@harrychen.xyz>
2020-03-03 00:43:09 +08:00

46 lines
1.2 KiB
HTML

---
permalink: /fancy-index/after.html
---
{% raw %}
</div>
{% endraw %}
</div>
</div><!--/container -->
</div><!--/mirrors -->
{% include footer.html %}
</body>
{% raw %}
{% endraw %}
<script src="/static/js/index.js"></script>
<script src="/static/js/browser-update.js"></script>
{% raw %}
<script>
document.getElementById("list").setAttribute("class", "table");
document.title = "Index of " + location.pathname + " | " + document.title;
$(function(){
$("#list tbody tr td:nth-child(3)").each(function(k,date){
var d = new Date($(date).text());
if(!isNaN(d.getTime())){
var date_str = ('000' + d.getFullYear()).substr(-4) + "-"
+ ('0' + (d.getMonth() + 1)).substr(-2) + "-"
+ ('0' + d.getDate()).substr(-2)
+ (" " + ('0' + d.getHours()).substr(-2) + ":"
+ ('0' + d.getMinutes()).substr(-2));
$(date).text(date_str);
}
})
});
</script>
<style>
#list tbody td, #path{
font-family: 'Fira Code Retina', 'Fira Code', 'Fira Mono', 'JetBrains Mono', 'Source Code Pro', 'Consolas', 'Menlo', 'Monaco', monospace;
}
</style>
{% endraw %}
</html>
<!--
vim: ts=2 sts=2 sw=2 noexpandtab
-->