Skip to content

Commit

Permalink
[doc] Add licence info under About view (closes #271) (story/6206)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferllings committed Nov 9, 2022
1 parent 9c4cf42 commit fd9319b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/views/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<main>
<h1>Colour Contrast Analyser (CCA)</h1>
<div class="center">
<p>Version <span id="cca-version"></span></p>
<p><span id="i18n-version">Version</span> <span id="cca-version"></span></p>
<img src="icons/cca.svg" width="100" height="100" alt="CCA icon" />
<p>Developed by <a href="https://www.tpgi.com" class="external-link">TPGi</a></p>
<p><span id="i18n-developed">Developed by</span> <a href="https://www.tpgi.com" class="external-link">TPGi</a><br/>Under <a href="https://raw.githubusercontent.com/ThePacielloGroup/CCAe/main/LICENSE" class="external-link">GNU GPL v3.0</a></p>
<p>The funding for the original WCAG version of the Colour Contrast tool was provided by the Trace Center under grant #H133E030012 from the National Institute on Disability and Rehabilitation Research (NIDRR). However no endorsement of the work by NIDILR should be inferred.</p>
</div>
<h2>Translations</h2>
Expand Down
6 changes: 2 additions & 4 deletions src/views/js/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ function translateHTML(i18n) {
document.title = i18n['Title']
document.querySelector('h1').textContent = i18n['Colour Contrast Analyser (CCA)']

document.querySelector('body > main > div > p:nth-child(1)').textContent
= document.querySelector('body > main > div > p:nth-child(1)').textContent.replace('Version', i18n['Version'])
document.querySelector('body > main > div > p:nth-child(3)').textContent
= document.querySelector('body > main > div > p:nth-child(3)').textContent.replace('Developed by',i18n['Developed by'])
document.querySelector('#i18n-version').textContent = i18n['Version']
document.querySelector('#i18n-developed').textContent = i18n['Developed by']

document.querySelector('h2:nth-child(1)').textContent = i18n['Translations']

Expand Down

0 comments on commit fd9319b

Please sign in to comment.