-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# This is a combination of 6 commits.
# This is the 1st commit message: Accessibility Project - Pre-assessments # This is the commit message #2: WET-380 Ajax Fetch Working Example # This is the commit message #3: Content - Follow us, Lowest topic section, HTML cleanup - Code maintenance and fixing/adjusting examples (#2196) * Theme: Remove hardcoded post-JS HTML markup * Remove the following hardcoded markup: * wb-init and wb-*-inited classes * wb-auto-* IDs * Note: Fixes broken local links caused by duplicate IDs * Update modified dates of: * Pages containing affected code samples * Pages that reference updated samples/includes * Spinoff of #2179 * Content - Ajust template with the follow-us include and added example of secondary-menu * Theme: Update page modified dates with post-JS changes * Bump initial commit's page modified dates to current date * Change modified dates in several extra pages that are now using the old follow-us include (components/gc-follow-us/follow.html, _includes/components/gc-follow-us/follow.html) via @duboisp's commit GCWeb - Content - Remove hardcoded post-JS HTML markup, GCWeb - Content - Adjusted the follow us component used on various page to match the stable example vs beta template, GCWeb - Content - Adding working example with secondary navigation (fixing the lowest-topic section example) GCWeb Jekyll - Minor - Add basic support for content with a secondary menu --------- Co-authored-by: Pierre Dubois <[email protected]> # This is the commit message #4: Step by step navigation: adding documentation # This is the commit message #5: méli-mélo 2023-09-menu - Initial commit (#2247) Co-authored-by: gjb-pch <[email protected]> # This is the commit message #6: Page feedback: hiding page feedback by default and updating doc> > Co-authored-by: Pierre Dubois <[email protected]>
- Loading branch information
1 parent
cb8dc51
commit 95b32e5
Showing
156 changed files
with
8,434 additions
and
1,400 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,70 @@ | ||
--- | ||
{ | ||
"title": "Ajax Fetch", | ||
"language": "en", | ||
"altLangPage": "ajax-fetch-fr.html", | ||
"breadcrumbs": [ | ||
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" } | ||
], | ||
"dateModified": "2023-08-25" | ||
} | ||
--- | ||
<div class="wb-prettify all-pre"></div> | ||
<h2>Successful Ajax Fetch</h2> | ||
<div data-ajax-replace="ajax/data-ajax-extra-en.html"> | ||
<section> | ||
<h3>Text to be replaced</h3> | ||
<p>This text will be replaced.</p> | ||
</section> | ||
</div> | ||
|
||
<h2>Failed Ajax Fetch</h2> | ||
<div data-ajax-replace="failedUrl"> | ||
<section> | ||
<h3>Text to be replaced</h3> | ||
<p>This text will <strong>not</strong> be replaced.</p> | ||
</section> | ||
</div> | ||
|
||
<h2>Code</h2> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<p><a href="https://www.w3.org/TR/act-rules-aspects/#input-aspects-code">Source code</a></p> | ||
<pre><code><h2>Successful Ajax Fetch</h2> | ||
<div data-ajax-replace="ajax/data-ajax-extra-en.html"> | ||
<section> | ||
<h3>Text to be replaced</h3> | ||
<p>This text will be replaced.</p> | ||
</section> | ||
</div> | ||
|
||
<h2>Failed Ajax Fetch</h2> | ||
<div data-ajax-replace="failedUrl"> | ||
<section> | ||
<h3>Text to be replaced</h3> | ||
<p>This text will <strong>not</strong> be replaced.</p> | ||
</section> | ||
</div> | ||
</code></pre> | ||
</div> | ||
|
||
<div class="col-md-6"> | ||
<p><a href="https://www.w3.org/TR/act-rules-aspects/#input-aspects-dom">DOM Tree</a></p> | ||
<pre><code><h2>Successful Ajax Fetch</h2> | ||
<div data-ajax-replace="ajax/data-ajax-extra-en.html"> | ||
<section class="ajaxed-in"> | ||
<h3>I was ajaxed in</h3> | ||
<p>I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in.</p> | ||
</section> | ||
</div> | ||
|
||
<h2>Failed Ajax Fetch</h2> | ||
<div data-ajax-replace="failedUrl"> | ||
<section> | ||
<h3>Text to be replaced</h3> | ||
<p>This text will <strong>not</strong> be replaced.</p> | ||
</section> | ||
</div> | ||
</code></pre> | ||
</div> | ||
</div> |
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,70 @@ | ||
--- | ||
{ | ||
"title": "Récupération de ressource via Ajax", | ||
"language": "fr", | ||
"altLangPage": "ajax-fetch-en.html", | ||
"breadcrumbs": [ | ||
{ "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-fr.html" } | ||
], | ||
"dateModified": "2023-08-25" | ||
} | ||
--- | ||
<div class="wb-prettify all-pre"></div> | ||
<h2>Succès de récupération d'une ressource ajax</h2> | ||
<div data-ajax-replace="ajax/data-ajax-extra-fr.html"> | ||
<section> | ||
<h3>Texte à être remplacé</h3> | ||
<p>Ce texte sera remplacé.</p> | ||
</section> | ||
</div> | ||
|
||
<h2>Échec de récupération d'une ressource ajax</h2> | ||
<div data-ajax-replace="failedUrl"> | ||
<section> | ||
<h3>Texte à être remplacé</h3> | ||
<p>Ce texte ne sera <strong>pas</strong> remplacé.</p> | ||
</section> | ||
</div> | ||
|
||
<h2>Code</h2> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<p><a href="https://www.w3.org/TR/act-rules-aspects/#input-aspects-code">Code source</a></p> | ||
<pre><code><h2>Succès de récupération d'une ressource ajax</h2> | ||
<div data-ajax-replace="ajax/data-ajax-extra-fr.html"> | ||
<section> | ||
<h3>Texte à être remplacé</h3> | ||
<p>Ce texte sera remplacé.</p> | ||
</section> | ||
</div> | ||
|
||
<h2>Failed Ajax Fetch</h2> | ||
<div data-ajax-replace="urlEnEchec"> | ||
<section> | ||
<h3>Texte à être remplacé</h3> | ||
<p>Ce texte ne sera <strong>pas</strong> remplacé.</p> | ||
</section> | ||
</div> | ||
</code></pre> | ||
</div> | ||
|
||
<div class="col-md-6"> | ||
<p><a href="https://www.w3.org/TR/act-rules-aspects/#input-aspects-dom">Arbre de contenu</a></p> | ||
<pre><code><h2>Succès de récupération d'une ressource ajax</h2> | ||
<div data-ajax-replace="ajax/data-ajax-extra-fr.html"> | ||
<section class="ajaxed-in"> | ||
<h3>J'ai été affiché via Ajax</h3> | ||
<p>J'ai été affiché via Ajax. J'ai été affiché via Ajax. J'ai été affiché via Ajax. J'ai été affiché via Ajax. J'ai été affiché via Ajax.</p> | ||
</section> | ||
</div> | ||
|
||
<h2>Échec de récupération d'une ressource ajax</h2> | ||
<div data-ajax-replace="urlEnEchec"> | ||
<section> | ||
<h3>Texte à être remplacé</h3> | ||
<p>Ce texte ne sera <strong>pas</strong> remplacé.</p> | ||
</section> | ||
</div> | ||
</code></pre> | ||
</div> | ||
</div> |
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,4 @@ | ||
<section class="ajaxed-in"> | ||
<h3>I was ajaxed in</h3> | ||
<p>I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in. I was ajaxed in.</p> | ||
</section> |
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,4 @@ | ||
<section class="ajaxed-in"> | ||
<h3>J'ai été affiché via Ajax</h3> | ||
<p>J'ai été affiché via Ajax. J'ai été affiché via Ajax. J'ai été affiché via Ajax. J'ai été affiché via Ajax. J'ai été affiché via Ajax.</p> | ||
</section> |
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,35 @@ | ||
{ | ||
"@context": { | ||
"@version": 1.1, | ||
"dct": "http://purl.org/dc/terms/", | ||
"title": { "@id": "dct:title", "@container": "@language" }, | ||
"description": { "@id": "dct:description", "@container": "@language" }, | ||
"modified": "dct:modified" | ||
}, | ||
"title": { | ||
"en": "Ajax Fetch", | ||
"fr": "Récupération de ressource via Ajax" | ||
}, | ||
"description": { | ||
"en": "Fetch data using Ajax", | ||
"fr": "Récupération de données via Ajax" | ||
}, | ||
"modified": "2023-08-25", | ||
"componentName": "ajax-fetch", | ||
"processing": "baseline", | ||
"status": "stable", | ||
"pages": { | ||
"examples": [ | ||
{ | ||
"title": "Ajax Fetch", | ||
"language": "en", | ||
"path": "ajax-fetch-en.html" | ||
}, | ||
{ | ||
"title": "Récupération de ressource via Ajax", | ||
"language": "fr", | ||
"path": "ajax-fetch-fr.html" | ||
} | ||
] | ||
} | ||
} |
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,35 @@ | ||
{ | ||
"@context": { | ||
"@version": 2.0, | ||
"dct": "http://purl.org/dc/terms/", | ||
"title": { "@id": "dct:title", "@container": "@language" }, | ||
"description": { "@id": "dct:description", "@container": "@language" }, | ||
"modified": "dct:modified" | ||
}, | ||
"title": { | ||
"en": "GC Top Menu", | ||
"fr": "Menu principal du GC" | ||
}, | ||
"description": { | ||
"en": "The GC Top Menu is the primary navigation bar at the top of Canada.ca websites, providing quick access to essential services, information, and other government departments.", | ||
"fr": "Le Menu principal du GC est la barre de navigation principale en haut des sites web de Canada.ca, offrant un accès rapide aux services essentiels, aux informations et aux autres départements gouvernementaux." | ||
}, | ||
"modified": "2023-09-08", | ||
"componentName": "GC Top Menu", | ||
"status": "stable", | ||
"pages": { | ||
"docs": [], | ||
"reports": [ | ||
{ | ||
"title": "Pre accessibility assessment #1 - GC Top Menu", | ||
"language": "en", | ||
"path": "reports/pre-ally-1-en.html" | ||
}, | ||
{ | ||
"title": "Pre assessment d'accessibilité #1 - Menu principal du GC", | ||
"language": "fr", | ||
"path": "reports/pre-ally-1-fr.html" | ||
} | ||
] | ||
} | ||
} |
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,14 @@ | ||
|
||
{ | ||
"title": "Pre accessibility assessment #1 - GC Top Menu", | ||
"language": "en", | ||
"description": "Evaluation of how the GC Top Menu meets accessibility requirements", | ||
"tag": "GC Top Menu", | ||
"parentdir": "GC Top Menu", | ||
"parentPage": "GC Top Menu", | ||
"parentPageURL": "GC Top Menu", | ||
"altLangPage": "pre-a11y-1-fr.html", | ||
"dateModified": "2023-09-08", | ||
"layout": "assessment_wrote_en-en", | ||
"reportURL": "pre-a11y-1.json" | ||
} |
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,14 @@ | ||
|
||
{ | ||
"title": "Pré-évaluation de l'accessibilité n°1 - Menu principal du GC", | ||
"language": "fr", | ||
"description": "Évaluation de la manière dont le Menu principal du GC répond aux exigences en matière d'accessibilité", | ||
"tag": "Menu principal du GC", | ||
"parentdir": "Menu principal du GC", | ||
"parentPage": "Menu principal du GC", | ||
"parentPageURL": "Menu principal du GC", | ||
"altLangPage": "pre-a11y-1-en.html", | ||
"dateModified": "2023-09-08", | ||
"layout": "assessment_wrote_en-fr", | ||
"reportURL": "pre-a11y-1.json" | ||
} |
Oops, something went wrong.