* know bugs fixed !
[lichviet] / qml / LichViet / main.js
index 49a2a24..ba39517 100644 (file)
@@ -45,6 +45,7 @@ function day_reset(){
 }
 
 function calDays(){
+    console.log(curMonth)
     if (curMonth == 4 || curMonth == 6 || curMonth == 9 || curMonth == 11)
         return 30;
     else
@@ -69,6 +70,7 @@ function calDaysX(month, year){
             else
                 return 28;
         }
+    else
     return 31;
 }
 
@@ -114,7 +116,7 @@ function __txtInfo_format(){
 }
 
 function __txtDAYAmLich_format(){
-    return "Ngày <span style='color:#C0C0C0;'>"+lunarDay+" ("+lunarDayCanChi+")</span><br>Tháng <span style='color:#C0C0C0;'>"+lunarMonth+" ("+lunarMonthCanChi+")</span><br>Năm <span style='color:#C0C0C0;'>"+lunarYearInt+" ("+lunarYear+")</span>";
+    return "Ngày <b>"+lunarDay+" ("+lunarDayCanChi+")</b><br>Tháng <b>"+lunarMonth+" ("+lunarMonthCanChi+")</b><br>Năm <b>"+lunarYearInt+" ("+lunarYear+")</b>";
 }
 
 function recalculate(){