CINXE.COM
Accessibility for Ontarians with Disabilities Act (AODA)
<!DOCTYPE html> <html lang="en-US" prefix="og: http://ogp.me/ns#"> <head> <link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&display=swap" rel="stylesheet"> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width"> <link href="/aoda_cdn/css/aoda.css" rel="stylesheet" /> <title>Accessibility for Ontarians with Disabilities Act (AODA)</title> <!-- This site is optimized with the Yoast SEO Premium plugin v7.9 - https://yoast.com/wordpress/plugins/seo/ --> <link rel="canonical" href="https://www.aoda.ca/" /> <link rel="next" href="https://www.aoda.ca/page/2/" /> <meta property="og:locale" content="en_US" /> <meta property="og:type" content="website" /> <meta property="og:title" content="Accessibility for Ontarians with Disabilities Act (AODA)" /> <meta property="og:url" content="https://www.aoda.ca/" /> <meta property="og:site_name" content="Accessibility for Ontarians with Disabilities Act (AODA)" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:title" content="Accessibility for Ontarians with Disabilities Act (AODA)" /> <script type='application/ld+json'>{"@context":"https:\/\/schema.org","@type":"WebSite","@id":"#website","url":"https:\/\/www.aoda.ca\/","name":"Accessibility for Ontarians with Disabilities Act (AODA)","potentialAction":{"@type":"SearchAction","target":"https:\/\/www.aoda.ca\/?s={search_term_string}","query-input":"required name=search_term_string"}}</script> <script type='application/ld+json'>{"@context":"https:\/\/schema.org","@type":"Organization","url":"https:\/\/www.aoda.ca\/","sameAs":[],"@id":"https:\/\/www.aoda.ca\/#organization","name":"AODA.ca","logo":""}</script> <!-- / Yoast SEO Premium plugin. --> <link rel='dns-prefetch' href='//www.google.com' /> <link rel="alternate" type="application/rss+xml" title="Accessibility for Ontarians with Disabilities Act (AODA) » Feed" href="https://www.aoda.ca/feed/" /> <link rel="alternate" type="application/rss+xml" title="Accessibility for Ontarians with Disabilities Act (AODA) » Comments Feed" href="https://www.aoda.ca/comments/feed/" /> <link rel='stylesheet' id='twentyfourteen-jetpack-css' href='https://c0.wp.com/p/jetpack/8.3.3/modules/theme-tools/compat/twentyfourteen.css' type='text/css' media='all' /> <link rel='stylesheet' id='contact-form-7-css' href='https://www.aoda.ca/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.1.9' type='text/css' media='all' /> <link rel='stylesheet' id='jetpack_css-css' href='https://c0.wp.com/p/jetpack/8.3.3/css/jetpack.css' type='text/css' media='all' /> <script type='text/javascript' src='https://c0.wp.com/c/5.2.21/wp-includes/js/jquery/jquery.js'></script> <script type='text/javascript' src='https://c0.wp.com/c/5.2.21/wp-includes/js/jquery/jquery-migrate.min.js'></script> <script type='text/javascript' src='https://www.aoda.ca/wp-content/themes/badeyes/js/jquery.validate.min.js?ver=5.2.21'></script> <script type='text/javascript' src='https://www.aoda.ca/wp-content/themes/badeyes/js/additional-methods.min.js?ver=5.2.21'></script> <link rel='https://api.w.org/' href='https://www.aoda.ca/wp-json/' /> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://www.aoda.ca/xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://www.aoda.ca/wp-includes/wlwmanifest.xml" /> <meta name="generator" content="WordPress 5.2.21" /> <link rel='shortlink' href='https://wp.me/xqpJ' /> <link rel='dns-prefetch' href='//v0.wordpress.com'/> <link rel='dns-prefetch' href='//i0.wp.com'/> <link rel='dns-prefetch' href='//i1.wp.com'/> <link rel='dns-prefetch' href='//i2.wp.com'/> <link rel='dns-prefetch' href='//c0.wp.com'/> <style type='text/css'>img#wpstats{display:none}</style> <style type="text/css"> </style> <link rel="stylesheet" type="text/css" id="wp-custom-css" href="https://www.aoda.ca/?custom-css=72cbf61a89" /> <meta name="theme-color" content="#182e4e"/> <link rel="manifest" href="/manifest.json"> <link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png"> <link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png"> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="manifest" href="/manifest.json"> <meta name="msapplication-TileColor" content="#ffffff"> <meta name="msapplication-TileImage" content="/ms-icon-144x144.png"> <meta name="theme-color" content="#0071bb"> <meta name="application-name" content="AODA.ca"/> <meta name="msapplication-TileColor" content="#FFFFFF" /> <script src="https://cdn.jsdelivr.net/g/filesaver.js"></script> <script src="https://unpkg.com/blob-util/dist/blob-util.min.js"></script> </head> <body class="home blog group-blog masthead-fixed list-view grid"> <a class="usa-skipnav" href="#main-content">Skip to main content</a> <a class="usa-skipnav" href="#main-menu">Skip to main menu</a> <header class="usa-header site-header" > <div class="usa-navbar site-header-navbar"> <!-- <button class="usa-menu-btn">Menu</button>--> <div class="usa-logo site-logo" id="logo"> <em class="usa-logo-text"> <img src="https://cdn.jsdelivr.net/gh/aoda-ca/aoda_cdn@2.1/img/logo.svg" alt="AODA.ca Logo" /> <a href="/" title="Home" aria-label="AODA.ca home" class='full-text'> Accessibility for Ontarians with Disabilities Act </a> <a href="/" title="Home" aria-label="AODA.ca home" class='abbr-text'> AODA Accessibility </a> </em> </div> <ul class="usa-button-list usa-unstyled-list"> <li> <a class="usa-button usa-button-outline-inverse mobile-hidden" href="/newsletter/"> Sign up for updates </a> </li> <li> <button class="usa-button usa-button-outline-inverse button-yellow" id="contrast-link" type="button" role="checkbox" aria-checked="false" onclick="return toggleContrast();"> High contrast </button> </li> </ul> <ul class="usa-button-list usa-unstyled-list mobile-only"> <li> <button class="usa-button mobile-header-button " id="mobile-menu-toggle" type="button" role="checkbox" onclick="return toggleMenu();"> <span class="fas fa-bars" aria-hidden="true"></span> <span class="sr-only">Toggle Menu</span> </button> </li> </ul> </div> </header> <nav class="site-nav-secondary "> <ul> <li><a href="/free-online-training/" class=""><span>Free Online Training</span></a></li> <li><a href="/aoda-website-accessibility-audit/" class=""><span>Website Audits</span></a></li> <li><a href="/onsite-training/" class=""><span>On-Site Training</span></a></li> <li><a href="/aoda-consulting/" class=""><span>AODA Consulting</span></a></li> </ul> </nav> <script> function setContrastHigh() { document.body.classList.add("high-contrast"); document.getElementById("contrast-link").innerHTML = "Reset contrast"; document.getElementById("contrast-link").setAttribute('aria-checked', 'true'); set_cookie("style", "high-contrast"); } function resetContrast() { document.body.classList.remove("high-contrast"); document.getElementById("contrast-link").innerHTML = "High contrast"; document.getElementById("contrast-link").setAttribute('aria-checked', 'false'); delete_cookie("style"); } if (document.cookie.indexOf('high-contrast') >= 0) { if (document.body === undefined || document.body.classList === undefined || document.body.classList.add === undefined) { // Old IE Fix window.onload = function() { if (document.body.classList !== undefined) { setContrastHigh(); } } } else { setContrastHigh(); } } function toggleContrast() { if (document.cookie.indexOf('high-contrast') >= 0) { resetContrast(); } else { setContrastHigh(); } return false; } jQuery(document).ready(function(){ jQuery("#main-content").on("click", function(){ jQuery("#main-menu").removeClass('expanded'); }); }); function toggleMenu() { jQuery("#main-menu").toggleClass('expanded'); } function set_cookie(name, value) { document.cookie = name +'='+ value +'; Path=/;'; } function delete_cookie(name) { document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; } </script> <main id="main-content" class="main-content"> <div class="styleguide-content" role="main" id="content"> <div class="usa-grid" style="padding:0"> <div class="usa-width-two-thirds-X"> <h1 class="entry-title">Latest Headlines</h1><div id="post-8233" class="post-8233 post type-post status-publish format-standard hentry category-resources-on-issues-of-accessibility-and-the-ontarians-with-disabilities-act-aoda"> <header class="entry-header"> <h2 class="entry-title"><a href="https://www.aoda.ca/implementing-federal-standards-for-accessibility-in-information-and-technology/" rel="bookmark">Implementing Federal Standards for Accessibility in Information and Technology</a></h2> <div class="entry-meta"> </div><!-- .entry-meta --> </header><!-- Z.entry-header --> <div class="entry-content"> <p>Many separate accessibility standards development processes exist in Canada. For example, Ontario, Manitoba, Nova Scotia, British Columbia, and Newfoundland all have laws that mandate creation of provincial accessibility standards. In addition, the Accessible Canada Act mandates accessibility standards that apply to organizations under federal jurisdiction. However, the government of Canada intends to coordinate federal and provincial accessibility laws. Moreover, the <a href="https://www.aoda.ca/the-third-review-of-the-aoda/">third review of the AODA</a> recommends that the Ontario government should support this aim by aligning its accessibility law, <a href="https://aoda.ca/what-is-the-aoda/">the AODA</a>, with the laws of other provinces and the country. If the governments work together to make these laws more similar, the AODA standards development process may change to align with laws in other places across the country. In this article, we will explore federal standards for accessibility in information and communication technology. <span class="post-teaser-more"><br /><br /><a href="https://www.aoda.ca/implementing-federal-standards-for-accessibility-in-information-and-technology/" rel="bookmark"> Implementing Federal Standards for Accessibility in Information and Technology. Read full article.</a></span></p><hr/> </div><!-- Q.entry-content --> </div> <!-- #post-## --> <div id="post-8227" class="post-8227 post type-post status-publish format-standard hentry category-resources-on-issues-of-accessibility-and-the-ontarians-with-disabilities-act-aoda"> <header class="entry-header"> <h2 class="entry-title"><a href="https://www.aoda.ca/accessible-relay-services-and-emergency-services/" rel="bookmark">Accessible Relay Services and Emergency Services</a></h2> <div class="entry-meta"> </div><!-- .entry-meta --> </header><!-- Z.entry-header --> <div class="entry-content"> <p>The AODA has <a href="https://aoda.ca/new-aoda-requirement-for-ontario-websites/">requirements for web accessibility</a>, as well as <a href="https://aoda.ca/accessible-self-service-kiosks/">requirements for the procurement of self-service kiosks</a>. However, <a href="https://aoda.ca/coordinating-accessibility-laws-across-canada/">the third review of the AODA recommends that future AODA standards should align with existing standards in other parts of the country</a>.</p> <p>For instance, Accessibility Standards Canada (ASC) has adopted <a href="https://accessible.canada.ca/sites/default/files/2024-06/can-asc-en301549-20240226-v02-en-aoda.pdf">European standards for accessibility in information and communication technology (ICT)</a>. Future AODA standards may include some or all of these guidelines and requirements to make ICT products and services more accessible. In this article, we explore guidelines in the federal standards for accessible relay services and emergency services. <span class="post-teaser-more"><br /><br /><a href="https://www.aoda.ca/accessible-relay-services-and-emergency-services/" rel="bookmark"> Accessible Relay Services and Emergency Services. Read full article.</a></span></p><hr/> </div><!-- Q.entry-content --> </div> <!-- #post-## --> <div id="post-8225" class="post-8225 post type-post status-publish format-standard hentry category-resources-on-issues-of-accessibility-and-the-ontarians-with-disabilities-act-aoda"> <header class="entry-header"> <h2 class="entry-title"><a href="https://www.aoda.ca/accessible-documentation/" rel="bookmark">Accessible Documentation</a></h2> <div class="entry-meta"> </div><!-- .entry-meta --> </header><!-- Z.entry-header --> <div class="entry-content"> <p>The AODA has <a href="https://aoda.ca/new-aoda-requirement-for-ontario-websites/">requirements for web accessibility</a>, as well as <a href="https://aoda.ca/accessible-self-service-kiosks/">requirements for the procurement of self-service kiosks</a>. However, <a href="https://aoda.ca/coordinating-accessibility-laws-across-canada/">the third review of the AODA recommends that future AODA standards should align with existing standards in other parts of the country</a>.</p> <p>For instance, Accessibility Standards Canada (ASC) has adopted <a href="https://accessible.canada.ca/sites/default/files/2024-06/can-asc-en301549-20240226-v02-en-aoda.pdf">European standards for accessibility in information and communication technology (ICT)</a>. Future AODA standards may include some or all of these guidelines and requirements to make ICT products and services more accessible. In this article, we explore guidelines in the federal standards for accessible documentation. <span class="post-teaser-more"><br /><br /><a href="https://www.aoda.ca/accessible-documentation/" rel="bookmark"> Accessible Documentation. Read full article.</a></span></p><hr/> </div><!-- Q.entry-content --> </div> <!-- #post-## --> <div id="post-8223" class="post-8223 post type-post status-publish format-standard hentry category-resources-on-issues-of-accessibility-and-the-ontarians-with-disabilities-act-aoda"> <header class="entry-header"> <h2 class="entry-title"><a href="https://www.aoda.ca/accessible-software/" rel="bookmark">Accessible Software</a></h2> <div class="entry-meta"> </div><!-- .entry-meta --> </header><!-- Z.entry-header --> <div class="entry-content"> <p>The AODA has <a href="https://aoda.ca/new-aoda-requirement-for-ontario-websites/">requirements for web accessibility</a>, as well as <a href="https://aoda.ca/accessible-self-service-kiosks/">requirements for the procurement of self-service kiosks</a>. However, <a href="https://aoda.ca/coordinating-accessibility-laws-across-canada/">the third review of the AODA recommends that future AODA standards should align with existing standards in other parts of the country</a>.</p> <p>For instance, Accessibility Standards Canada (ASC) has adopted <a href="https://accessible.canada.ca/sites/default/files/2024-06/can-asc-en301549-20240226-v02-en-aoda.pdf">European standards for accessibility in information and communication technology (ICT)</a>. Future AODA standards may include some or all of these guidelines and requirements to make ICT products and services more accessible. In this article, we explore guidelines in the federal standards for accessible software. <span class="post-teaser-more"><br /><br /><a href="https://www.aoda.ca/accessible-software/" rel="bookmark"> Accessible Software. Read full article.</a></span></p><hr/> </div><!-- Q.entry-content --> </div> <!-- #post-## --> <div id="post-8219" class="post-8219 post type-post status-publish format-standard hentry category-resources-on-issues-of-accessibility-and-the-ontarians-with-disabilities-act-aoda"> <header class="entry-header"> <h2 class="entry-title"><a href="https://www.aoda.ca/accessible-webpages-and-documents/" rel="bookmark">Accessible Webpages and Documents</a></h2> <div class="entry-meta"> </div><!-- .entry-meta --> </header><!-- Z.entry-header --> <div class="entry-content"> <p>The AODA has <a href="https://aoda.ca/new-aoda-requirement-for-ontario-websites/">requirements for web accessibility</a>, as well as <a href="https://aoda.ca/accessible-self-service-kiosks/">requirements for the procurement of self-service kiosks</a>. However, <a href="https://aoda.ca/coordinating-accessibility-laws-across-canada/">the third review of the AODA recommends that future AODA standards should align with existing standards in other parts of the country</a>.</p> <p>For instance, Accessibility Standards Canada (ASC) has adopted <a href="https://accessible.canada.ca/sites/default/files/2024-06/can-asc-en301549-20240226-v02-en-aoda.pdf">European standards for accessibility in information and communication technology (ICT)</a>. Future AODA standards may include some or all of these guidelines and requirements to make ICT products and services more accessible. In this article, we explore guidelines in the federal standards for accessible webpages and documents. <span class="post-teaser-more"><br /><br /><a href="https://www.aoda.ca/accessible-webpages-and-documents/" rel="bookmark"> Accessible Webpages and Documents. Read full article.</a></span></p><hr/> </div><!-- Q.entry-content --> </div> <!-- #post-## --> <div class="navigation paging-navigation" role="navigation"> <div class="center"> <div class="nav-links"> <div class="nav-previous"><a href="https://www.aoda.ca/page/2/" ><span class="meta-nav"></span> Older posts</a></div> </div> </div><!-- .nav-links --> </div><!-- .navigation --> </div> </div> </div><!-- #primary --> </main><!-- #main-content --> <nav class="sidenav sticky" id="main-menu" > <ul id="menu-main-menu" class="usa-sidenav-list"><li id="menu-item-3154" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-3154 usa-current "><a href="/" aria-current="page">Home</a></li> <li id="menu-item-2214" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-2214"><a href="https://www.aoda.ca/category/articles-regarding-the-accessibility-for-ontarians-with-disabilities-actaoda/">News Articles</a></li> <li id="menu-item-2217" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-2217"><a href="https://www.aoda.ca/category/resources-on-issues-of-accessibility-and-the-ontarians-with-disabilities-act-aoda/">AODA Resources</a></li> <li id="menu-item-783" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-783"><a href="https://www.aoda.ca/the-act/">The Act (AODA)</a></li> <li id="menu-item-786" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-786"><a href="https://www.aoda.ca/guide-to-the-act/">Guide to the Act</a></li> <li id="menu-item-787" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-787"><a href="https://www.aoda.ca/customer-care-standard/">Customer Service Standard</a></li> <li id="menu-item-802" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-802"><a href="https://www.aoda.ca/customer-care-guide/">Customer Service Guide</a></li> <li id="menu-item-1216" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1216"><a href="https://www.aoda.ca/integrated/">Integrated Regulation</a></li> <li id="menu-item-2104" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2104"><a href="https://www.aoda.ca/a-guide-to-the-integrated-accessibility-standards-regulation/">Integrated Guide</a></li> <li id="menu-item-2224" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2224"><a href="https://www.aoda.ca/contact/">Contact Information</a></li> </ul></nav> <div style="text-align: center;" class="navlist"> <p><a href="#main-content">Back to top</a></p> </div> <footer class="usa-footer usa-footer-big"> <div class="usa-footer-secondary_section usa-footer-big-secondary-section"> <div class="usa-grid"> <div class="usa-footer-logo usa-width-one-half"> <h2 class="usa-footer-big-logo-heading">Accessibility for Ontarians with Disabilities Act</h2> <p>Copyright AODA.ca Inc. 漏2008-2024<br> <a href="/web/20190204082213/https://www.aoda.ca/archives/">Site Map</a> </p> </div> <div class="usa-footer-contact-links usa-width-one-half"> <h2 class="usa-footer-contact-heading">Contact Information</h2> <address> <div class="usa-footer-primary-content usa-footer-contact_info"> <p><a href="https://web.archive.org/web/20190204082213/mailto:info@aoda.ca">info@aoda.ca</a></p> </div> </address> </div> </div> </div> </footer> <script type="text/javascript"> function formValidation() { jQuery('#aoda-online-form').validate({ rules: { "email": "required", "full_name": { required: true, pattern: /[A-Za-z]+\s+[A-Za-z]+/ }, "company": "required" }, messages: { "email": "Please enter a valid email address", "full_name": "Please enter your full name" }, errorPlacement: function ($error, $element) { var name = $element.attr("name"); $error.attr('aria-live', 'polite'); //$("#error" + name).append($error); $error.insertAfter($element); }, submitHandler: function(form) { var paramObj = {}; jQuery.each(jQuery(form).serializeArray(), function(_, kv) { paramObj[kv.name] = kv.value; }); jQuery.post('https://0rxyymz0p0.execute-api.ca-central-1.amazonaws.com/prod/user', JSON.stringify(paramObj), null, 'json' ).done(function(resp) { console.log('redirecting course...'); var data = JSON.parse(resp); localStorage['osg_aoda_uid'] = paramObj['email']; localStorage['osg_vcode'] = data['code']; window.location.replace('/course'); }); return false; } }).form(); } var checkEmailButton = jQuery('#check_email'); var spinner = jQuery('#spinner'); checkEmailButton.click(function(event) { event.preventDefault(); jQuery('input[name=email]').off({ 'keyup': buttonHandler }); spinner.show(); var $i = checkEmailButton.find('i'); $i.css("visibility", "hidden");; //checkEmailButton.animate({width: '5em', height: '3em'}); this.disabled = true; this.style.backgroundColor = '#0071bc'; //jQuery('#email')[0].disabled = true; var email = jQuery('input[name=email]').val(); jQuery.get('https://0rxyymz0p0.execute-api.ca-central-1.amazonaws.com/prod/user', { email: email}) .done(function(data, textStatus, jqXHR) { if (jqXHR.status == "204") { checkEmailButton.hide(); //checkEmailButton.animate({ height: 1 }, 500, function(){ checkEmailButton.hide(); }); formValidation(); jQuery('.flash-message').css("visibility", "visible"); jQuery('.flash-message').css("display", "block"); jQuery('#user-reg-form').show(); jQuery('input[name=full_name]').focus(); } else if (jqXHR.status == "200") { localStorage['osg_aoda_uid'] = email; codeVerificationStep(email); } //spinner.hide(); }).fail(function(data) { spinner.hide(); }); }); function codeVerificationStep(email) { jQuery.post("https://0rxyymz0p0.execute-api.ca-central-1.amazonaws.com/prod/send_code", JSON.stringify({ email: email})).done(function() { checkEmailButton.hide(); spinner.hide(); jQuery('#verify-code').show(); var verifyCodeButton = jQuery('#send-vcode'); verifyCodeButton.click(function(ev){ ev.preventDefault(); var codeInput = jQuery('input[name=vcode]'); codeInput.focus(); var vcode = jQuery('input[name=vcode]').val(); verifyCode(vcode); }); }).fail(function(data) { console.log(data) } ); } function verifyCode(vcode) { var email = localStorage['osg_aoda_uid']; var $codeContainer = jQuery('#verify-code'); jQuery.get("https://0rxyymz0p0.execute-api.ca-central-1.amazonaws.com/prod/verify", { email: email, code: vcode }, null, 'json' ).done(function(response) { if (!!response['ccode']) { localStorage['osg_vcode'] = vcode; getCertificateId().done(function() { checkEmailButton.hide(); $codeContainer.hide(); $codeContainer.find('.vcode-invalid').hide(); }); } else { $codeContainer.find('.vcode-invalid').show(); } }); } function buttonHandler(event) { checkEmailButton[0].disabled = !this.value; if (event.keyCode == 13) { event.preventDefault(); checkEmailButton.click(); } }; jQuery('input[name=email]').on('keyup', buttonHandler); function getCertificateId() { return jQuery.get('https://0rxyymz0p0.execute-api.ca-central-1.amazonaws.com/prod/certid', { email: localStorage['osg_aoda_uid'] } ).done(function(response) { if (!!response['cert_id']) { window.cert_id = response['cert_id']; jQuery('.course-completed').show(); } else { jQuery('.course-started').show(); } }); } function continueCourse() { console.log('redirecting /course...'); window.location.replace('/course'); } function restartCourse() { jQuery.ajax({ url: "https://0rxyymz0p0.execute-api.ca-central-1.amazonaws.com/prod/restart", type: 'POST', data: JSON.stringify({ email: localStorage['osg_aoda_uid'] }), dataType: 'json', contentType: 'application/json', context: this }).done(function(response) { continueCourse(); }); } function animateButton(selector) { var $button = jQuery(selector); var spinner = jQuery('#spinner-resend'); jQuery(document).on('click', selector, function(event) { //event.preventDefault(); spinner.show(); var $i = $button.find('span'); $i.hide(); $button.animate({width: '5em', height: '3em'}); this.disabled = true; this.style.backgroundColor = '#0071bc'; }); } function stopAnimation($button) { //$button.css('background-color', ''); $button.find('.spinner').hide(); $button.find('span').show(); $button.get(0).disabled = false; $button.animate({width: '13em', height: '3em'}); } animateButton('#resend-btn'); function downloadCertificate(){ var btn = jQuery('#resend-btn'); //animateButton(btn); jQuery.get("https://0rxyymz0p0.execute-api.ca-central-1.amazonaws.com/prod/download_cert", { cert_id: window.cert_id } ).done(function(response) { stopAnimation(btn); var blob = blobUtil.base64StringToBlob(response['cert'], 'applicaction/pdf'); saveAs(blob, "certificate.pdf"); //localStorage['osg_aoda_uid'] }); } function resendCertificate() { var btn = jQuery('#resend-btn'); //animateButton(btn); jQuery.post("https://0rxyymz0p0.execute-api.ca-central-1.amazonaws.com/prod/cert", JSON.stringify({ cert_id: window.cert_id, email: localStorage['osg_aoda_uid'] }) ).done(function(response) { stopAnimation(btn); }); } jQuery('#aoda-online-form').submit(function(){ if (jQuery('#user-reg-form').is(":hidden")) { return false; } return true; }); jQuery(document) .on('click', '#continue-btn', continueCourse) .on('keypress', '#continue-btn', continueCourse); jQuery(document) .on('click', '#restart-btn', restartCourse) .on('keypress', '#restart-btn', restartCourse); jQuery(document) .on('click', '#restart-btn-2', restartCourse) .on('keypress', '#restart-btn-2', restartCourse); jQuery(document) .on('click', '#resend-btn', downloadCertificate) .on('keypress', '#resend-btn', downloadCertificate); </script> <script type='text/javascript' src='https://c0.wp.com/p/jetpack/8.3.3/_inc/build/photon/photon.min.js'></script> <script type='text/javascript'> /* <![CDATA[ */ var wpcf7 = {"apiSettings":{"root":"https:\/\/www.aoda.ca\/wp-json\/contact-form-7\/v1","namespace":"contact-form-7\/v1"}}; /* ]]> */ </script> <script type='text/javascript' src='https://www.aoda.ca/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=5.1.9'></script> <script type='text/javascript' src='https://www.google.com/recaptcha/api.js?render=6LdE5pEUAAAAAGdnQApZsU5HU_agLpEHJ-gyPtWR&ver=3.0'></script> <script type="text/javascript"> ( function( sitekey, actions ) { document.addEventListener( 'DOMContentLoaded', function( event ) { var wpcf7recaptcha = { execute: function( action ) { grecaptcha.execute( sitekey, { action: action } ).then( function( token ) { var event = new CustomEvent( 'wpcf7grecaptchaexecuted', { detail: { action: action, token: token, }, } ); document.dispatchEvent( event ); } ); }, executeOnHomepage: function() { wpcf7recaptcha.execute( actions[ 'homepage' ] ); }, executeOnContactform: function() { wpcf7recaptcha.execute( actions[ 'contactform' ] ); }, }; grecaptcha.ready( wpcf7recaptcha.executeOnHomepage ); document.addEventListener( 'change', wpcf7recaptcha.executeOnContactform, false ); document.addEventListener( 'wpcf7submit', wpcf7recaptcha.executeOnHomepage, false ); } ); document.addEventListener( 'wpcf7grecaptchaexecuted', function( event ) { var fields = document.querySelectorAll( "form.wpcf7-form input[name='g-recaptcha-response']" ); for ( var i = 0; i < fields.length; i++ ) { var field = fields[ i ]; field.setAttribute( 'value', event.detail.token ); } } ); } )( '6LdE5pEUAAAAAGdnQApZsU5HU_agLpEHJ-gyPtWR', {"homepage":"homepage","contactform":"contactform"} ); </script> <script type='text/javascript' src='https://stats.wp.com/e-202448.js' async='async' defer='defer'></script> <script type='text/javascript'> _stq = window._stq || []; _stq.push([ 'view', {v:'ext',j:'1:8.3.3',blog:'7966363',post:'0',tz:'-5',srv:'www.aoda.ca'} ]); _stq.push([ 'clickTrackerInit', '7966363', '0' ]); </script> <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+kQU" crossorigin="anonymous"> <script async="async" src="/aoda_cdn/js/uswds.js"></script> <script src="/aoda_cdn/js/MenubarItemLinks.js"></script> <script src="/aoda_cdn/js/MenubarLinks.js"></script> <script src="/aoda_cdn/js/PopupMenuItemLinks.js"></script> <script src="/aoda_cdn/js/PopupMenuLinks.js"></script> <script type="text/javascript"> if (document.getElementById('menubar1') != null) { var menubar = new Menubar(document.getElementById('menubar1')); menubar.init(); } </script> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script> (adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: "ca-pub-5829372317103943", enable_page_level_ads: true }); </script> </body> </html>