Skip to content

Commit 846de6b

Browse files
fix error message and css
1 parent e2bec1f commit 846de6b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class CertData {
102102
} else {
103103
// Display an error message if there is an error loading the data source file
104104
this.error.style.display = 'block';
105-
this.resource.style.display = 'none';
105+
document.getElementById("pdfViewer").style.display = "none";
106106
if (this.urlParams.get('data')) {
107107
this.urlParams.delete('data');
108108
var newUrl = `${window.location.pathname}?${this.urlParams.toString()}`;

style.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ main {
139139
.certificate {
140140
position: relative;
141141
width: 70%;
142-
min-height: 300px;
142+
min-height: 400px;
143143
float: left;
144-
margin-right: 30px;
144+
margin-right: 20px;
145145
border: 1px solid #ccc;
146146
}
147147

@@ -190,7 +190,7 @@ main {
190190
}
191191

192192
.buttons {
193-
margin-top: 20px;
193+
margin-top: 15px;
194194
display: flex;
195195
justify-content: space-around;
196196
}
@@ -312,6 +312,7 @@ footer {
312312
@media screen and (max-width: 880px) {
313313
.certificate {
314314
width: 100%;
315+
min-height: 300px;
315316
float: none;
316317
margin-right: 0;
317318
margin-bottom: 20px;

verify.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
</section>
5757
<section class="details">
5858
<h1>Certificate Title</h1>
59-
<p id="courseTitle"></p>
60-
<p>Certify for: <span id="certifiedName"></span></p>
59+
<p id="courseTitle">Certificate Name</p>
60+
<p>Certify for: <span id="certifiedName">Nguyễn Văn A</span></p>
6161
</section>
6262
<section class="description">
6363
<h2>Certificate Description</h2>

0 commit comments

Comments
 (0)