mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
46 lines
1.1 KiB
HTML
46 lines
1.1 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: monospace;
|
|
}
|
|
</style>
|
|
{% endraw %}
|
|
</html>
|
|
<!--
|
|
vim: ts=2 sts=2 sw=2 noexpandtab
|
|
-->
|