cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Community Advocate
Community Advocate

Accessibility/Userway Widget: Help with Code

I am trying to add the Userway accessibility widget to Canvas.  Here are the instructions for adding:

  1. In the Admin navigation area, select "Themes"
  2. Open the current theme template
  3. Navigate to the "Upload" tab
  4. Upload the provided .js file in the Javascript areas

There are 3 options for the code.  I have tried all 3 and it's not working.  I'm sure something is being stipped out, but can't figure it out.  I've got some html knowledge, but not as well versed in java.  Can you help me figure it out?  TY in advance.  #learningasigo #lifelonglearner

Basic:

<script>(function(d){var s = d.createElement("script");s.setAttribute("data-account", "WfDMjG5O8s");s.setAttribute("src", "https://cdn.userway.org/widget.js");(d.body || d.head).appendChild(s);})(document)</script><noscript>Please ensure Javascript is enabled for purposes of <a href="https://userway.org">website accessibility</a></noscript>

 

Advanced:

<script>
(function(d){
var s = d.createElement("script");
/* uncomment the following line to override default position*/
/* s.setAttribute("data-position", 3);*/
/* uncomment the following line to override default size (values: small, large)*/
/* s.setAttribute("data-size", "small");*/
/* uncomment the following line to override default language (e.g., fr, de, es, he, nl, etc.)*/
/* s.setAttribute("data-language", "language");*/
/* uncomment the following line to override color set via widget (e.g., #053f67)*/
/* s.setAttribute("data-color", "#053e67");*/
/* uncomment the following line to override type set via widget (1=person, 2=chair, 3=eye, 4=text)*/
/* s.setAttribute("data-type", "1");*/
/* s.setAttribute("data-statement_text:", "Our Accessibility Statement");*/
/* s.setAttribute("data-statement_url", "http://www.example.com/accessibility")";*/
/* uncomment the following line to override support on mobile devices*/
/* s.setAttribute("data-mobile", true);*/
s.setAttribute("data-account", "WfDMjG5O8s");
s.setAttribute("src", "https://cdn.userway.org/widget.js");
(d.body || d.head).appendChild(s);})(document)
</script>
<noscript>
Please ensure Javascript is enabled for purposes of
<a href="https://userway.org">website accessibility</a>
</noscript>

 

White Label

<script>(function(d){var s = d.createElement("script");s.setAttribute("data-account", "WfDMjG5O8s");s.setAttribute("src", "https://accessibilityserver.org/widget.js");(d.body || d.head).appendChild(s);})(document)</script><noscript>Please ensure Javascript is enabled for purposes of <a href="https://accessibilityserver.org">website accessibility</a></noscript>

 

 

Labels (2)
0 Kudos
0 Replies