-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from lukmarcus/v2.2.2-certificates-refactor
V2.2.2 certificates refactor
- Loading branch information
Showing
7 changed files
with
99 additions
and
82 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[ | ||
{ | ||
"title": "Test Automation with Playwright", | ||
"source": "jaktestowac.pl", | ||
"link": "./certificates/MarekSzumny_TestAutomationWithPlaywright_JakTestowac.pdf" | ||
}, | ||
{ | ||
"title": "Playwright 101", | ||
"source": "LambdaTest", | ||
"link": "./certificates/MarekSzumny_Playwright101_LambdaTest.pdf" | ||
}, | ||
{ | ||
"title": "Apache JMeter Intro & Pro", | ||
"source": "BlazeMeter University", | ||
"link": "./certificates/MarekSzumny_ApacheJMeterIntroPro_BlazeMeterUniversity.pdf" | ||
}, | ||
{ | ||
"title": "The Fundamentals of Software Testing", | ||
"source": "QATestLab Training Center", | ||
"link": "./certificates/MarekSzumny_TheFundamentalsOfSoftwareTesting_QATestLabTrainingCenter.pdf" | ||
}, | ||
{ | ||
"title": "Associate Data Analyst", | ||
"source": "DataCamp", | ||
"link": "./certificates/MarekSzumny_AssociateDataAnalyst_DataCamp.pdf" | ||
}, | ||
{ | ||
"title": "BaseLinker for Beginners", | ||
"source": "base.academy", | ||
"link": "./certificates/MarekSzumny_BaseLinkerForBeginners_BaseLinkerAcademy.pdf" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export function loadCertificates() { | ||
fetch("./data/certificates.json") | ||
.then((response) => response.json()) | ||
.then((certificates) => { | ||
const container = document.getElementById("certificates"); | ||
let normalView = '<div class="aside-noprint">'; | ||
let printView = '<ul class="aside-print">'; | ||
|
||
certificates.forEach((cert) => { | ||
normalView += ` | ||
<div> | ||
<a href="${cert.link}"> | ||
<i class="fas fa-file-pdf"></i> ${cert.title} | ||
</a> | ||
<p class="cert-source">${cert.source}</p> | ||
</div> | ||
`; | ||
printView += ` | ||
<li>${cert.title}</li> | ||
<p class="cert-source">${cert.source}</p> | ||
`; | ||
}); | ||
|
||
printView += "</ul>"; | ||
normalView += "</div>"; | ||
container.innerHTML = normalView + printView; | ||
}) | ||
.catch((error) => console.error("Error loading certificates:", error)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters