File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Expand file tree Collapse file tree 4 files changed +5
-6
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class CertData {
2929 this . id = matches [ 2 ] ;
3030 return true ;
3131 } else {
32- console . error ( " Code ID không hợp lệ !")
32+ this . showCustomError ( "Xác minh thất bại, Code ID không đúng định dạng !")
3333 return false ;
3434 }
3535 }
@@ -106,7 +106,6 @@ class CertData {
106106 }
107107 } else {
108108 // Display an error message if there is an error loading the data source file
109- this . error . style . display = 'block' ;
110109 document . getElementById ( "pdfViewer" ) . style . display = "none" ;
111110 if ( this . urlParams . get ( 'data' ) ) {
112111 this . urlParams . delete ( 'data' ) ;
@@ -130,8 +129,8 @@ class CertData {
130129 // Hàm hiển thị lỗi tùy chỉnh
131130 showCustomError ( message ) {
132131 this . error . style . display = 'block' ;
133- this . error . innerHTML = `<p>${ message } </p>` ;
134132 this . resource . style . display = 'none' ;
133+ console . error ( message )
135134 }
136135}
137136
File renamed without changes.
Original file line number Diff line number Diff line change 1313 < meta property ="og:url " content ="https://education.crfnetwork.com ">
1414 < meta property ="og:type " content ="website ">
1515 < title > Verified Certificate | Coding Reshape Future</ title >
16- < link rel ="stylesheet " href ="./style.css ">
16+ < link rel ="stylesheet " href ="./assets/css/ style.css ">
1717 < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css ">
1818 < script src ="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.16.105/pdf.min.js "> </ script >
1919</ head >
@@ -100,8 +100,8 @@ <h3>Title</h3>
100100 < div class ="infor "> CRF Education - Coding Reshape Future Co. LTD</ div >
101101 </ div >
102102 </ footer >
103- < script src ="./render.js "> </ script >
104- < script src ="./script .js "> </ script >
103+ < script src ="./assets/js/cert- render.js "> </ script >
104+ < script src ="./assets/js/handle-button .js "> </ script >
105105</ body >
106106<!-- Copyright by LTP 10/04/2023. All data is reversed -->
107107
You can’t perform that action at this time.
0 commit comments