diff --git a/.gitignore b/.gitignore index 8d1fd7e..e6c430a 100755 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ _site .jekyll-metadata .DS_Store .netlify +vendor +.bundle \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 54c930e..84ccfab 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -119,10 +119,11 @@ GEM jekyll (>= 3.6, < 5.0) PLATFORMS + universal-darwin-20 x86_64-linux DEPENDENCIES wai-gems! BUNDLED WITH - 2.2.15 + 2.2.27 diff --git a/content-images/wai-statements/generator.js b/content-images/wai-statements/generator.js index 5a911e5..8ee7de1 100644 --- a/content-images/wai-statements/generator.js +++ b/content-images/wai-statements/generator.js @@ -1,3 +1,4 @@ +//@ts-nocheck /** * ACCESSIBILITY STATEMENT GENERATOR * --- @@ -548,22 +549,23 @@ if (dataList && nodeName === 'UL' || nodeName === 'OL') { item.innerHTML = printData - .map(function wrapInLi(data, index) { - - if (index === 0) { - return '\n\t
  • ' + data + '
  • \n'; + .map(function makeElement(data) { + // check if starts with "http" + const isLink = String(data).startsWith('http'); + // make it a link if true + if(isLink) { + return '\n\t
  • ' + data + '
  • '; } - - return '\t
  • ' + data + '
  • \n'; + // else return as li element + return '\n\t
  • ' + data + '
  • \n'; }) .join(''); - } else { - switch (nodeName) { case 'A': - var hrefPrefix = item.getAttribute('href'); - + // checks item for data-href-prefix, prepends to href if it exists + var hrefPrefix = item.dataset.hrefPrefix || ''; + item.setAttribute('href', hrefPrefix + printData); item.innerText = printData; break; diff --git a/content/generator_layout.html b/content/generator_layout.html index f7781e8..e4f8a60 100644 --- a/content/generator_layout.html +++ b/content/generator_layout.html @@ -751,7 +751,7 @@

    {{ page.preview.feedback.title }}

  • {{ page.basic_info.feedback.email.title }}: - +
  • {{ page.basic_info.feedback.visitor_address.title }}: