This commit is contained in:
BoHung Chiu 2022-01-26 19:49:52 +08:00
parent ca5c47d7f5
commit 7724fd5769
1 changed files with 2 additions and 2 deletions

View File

@ -348,7 +348,7 @@ $(document).ready(function(){
$('#choice_fields .cancer_table_btn').removeClass('active'); $('#choice_fields .cancer_table_btn').removeClass('active');
var load_heml = $('#result_table_content').html(result.responseJSON.table); var load_heml = $('#result_table_content').html(result.responseJSON.table);
load_heml.ready(function(){ load_heml.ready(function(){
$('#result_table_content .cancer_years').eq(0).addClass('active'); $('#result_table_content .cancer_years').eq(-1).addClass('active');
for(var i = 0;i < $('#result_table_content .cancer_years').length;i++){ for(var i = 0;i < $('#result_table_content .cancer_years').length;i++){
$('#result_table_content .cancer_years').eq(i).attr('index',i) $('#result_table_content .cancer_years').eq(i).attr('index',i)
}; };
@ -364,7 +364,7 @@ $(document).ready(function(){
}); });
load_heml = $('#result_text_content').html(result.responseJSON.texts); load_heml = $('#result_text_content').html(result.responseJSON.texts);
load_heml.ready(function(){ load_heml.ready(function(){
$('#result_text_content .cancer_years').eq(0).addClass('active'); $('#result_text_content .cancer_years').eq(-1).addClass('active');
for(var i = 0;i < $('#result_text_content .cancer_years').length;i++){ for(var i = 0;i < $('#result_text_content .cancer_years').length;i++){
$('#result_text_content .cancer_years').eq(i).attr('index',i) $('#result_text_content .cancer_years').eq(i).attr('index',i)
}; };