This commit is contained in:
BoHung Chiu 2021-03-23 18:51:38 +08:00
parent bd8b069ad3
commit c348b8b782
1 changed files with 2 additions and 2 deletions

View File

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