diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-07-13 23:41:11 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-07-13 23:41:11 +0200 |
| commit | 20d3f4537a578c581285ae8c90da2af9f929be66 (patch) | |
| tree | 9afd4c77c3d3529dd6080533775bb450a7c917aa /StoneIsland/www/js/lib/etc/accessibility.js | |
| parent | 90a550943188af41dfe8e82ddc386f56436c5a7e (diff) | |
many changes to forms. starting to add labels
Diffstat (limited to 'StoneIsland/www/js/lib/etc/accessibility.js')
| -rw-r--r-- | StoneIsland/www/js/lib/etc/accessibility.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/etc/accessibility.js b/StoneIsland/www/js/lib/etc/accessibility.js index 5acb0723..ad04980c 100644 --- a/StoneIsland/www/js/lib/etc/accessibility.js +++ b/StoneIsland/www/js/lib/etc/accessibility.js @@ -1,5 +1,10 @@ $(function(){ $("h1").each(function(el){ - $(el).attr('aria-label', "Page title: " + el.innerText) + console.log(el) + el['aria-label'] = 'Section title is ' + el.innerText }) -})
\ No newline at end of file +}) + +function stonewash (s) { + return s.replace(/'0/g, '20').replace(/_/g, ' ') +}
\ No newline at end of file |
