This commit is contained in:
BoHung Chiu 2021-03-23 18:49:07 +08:00
parent c59a4026c2
commit bd8b069ad3
1 changed files with 17 additions and 2 deletions

View File

@ -39,7 +39,22 @@ if( window.location.href.indexOf('/en/') > -1 ) {
$('.title-thead').replaceWith('<div class="col-sm-7 title-thead-en">Title</div>') $('.title-thead').replaceWith('<div class="col-sm-7 title-thead-en">Title</div>')
$('.file-thead').replaceWith('<div class="col-sm-3 file-thead-en">Download file</div>') $('.file-thead').replaceWith('<div class="col-sm-3 file-thead-en">Download file</div>')
} }
$(document).ready(function(){
if(window.innerWidth){
$(".archive-items .date").each(function(i,d){ $(".archive-items .date").each(function(i,d){
$(d).parent().eq(0).children().height($(d).parent().height()); $(d).parent().eq(0).children().css("min-height",$(d).parent().height());
})
}else{
$(".archive-items >").css("min-height","");
}
})
$(window).resize(function(){
if(window.innerWidth){
$(".archive-items .date").each(function(i,d){
$(d).parent().eq(0).children().css("min-height",$(d).parent().height());
})
}else{
$(".archive-items >").css("min-height","");
}
}) })
</script> </script>