{"id":339,"date":"2018-12-10T16:51:39","date_gmt":"2018-12-10T16:51:39","guid":{"rendered":"https:\/\/pressbooks.library.ryerson.ca\/wafd\/?post_type=chapter&#038;p=339"},"modified":"2022-12-16T17:06:48","modified_gmt":"2022-12-16T17:06:48","slug":"activity-6-accessible-tooltips","status":"publish","type":"chapter","link":"https:\/\/pressbooks.library.torontomu.ca\/wafd\/chapter\/activity-6-accessible-tooltips\/","title":{"raw":"Activity 6: Accessible Tooltips","rendered":"Activity 6: Accessible Tooltips"},"content":{"raw":"<h2>Accessible Tooltips<\/h2>\r\n<img src=\"http:\/\/pressbooks.library.ryerson.ca\/wafd\/wp-content\/uploads\/sites\/57\/2018\/12\/activity_sm.png\" alt=\"\" class=\"alignright size-full wp-image-152\" width=\"150\" height=\"158\" \/>Based on the\u00a0<a href=\"https:\/\/pressbooks.library.torontomu.ca\/wafd\/chapter\/4-5-tooltips\/\">Tooltip details<\/a> on the previous page, apply what you have learned to the associated activity files to make the tooltips there accessible.\r\n\r\nFiles for this activity include:\r\n<ul>\r\n \t<li>\/<a href=\"https:\/\/github.com\/learnaria\/learnaria.github.io\/blob\/master\/tooltip.html\">tooltip.html<\/a><\/li>\r\n \t<li>\/<a href=\"https:\/\/github.com\/learnaria\/learnaria.github.io\/blob\/master\/assets\/ik_tooltip.js\">assets\/ik_tooltip.js<\/a><\/li>\r\n<\/ul>\r\nUse the surroundings of the highlighted code on the previous page as a guide to find where the fixes should be applied. Repair the accessibility of the tooltips by applying the highlighted code to the \/assets\/ik_tooltip.js file.\r\n\r\n<strong>Note:<\/strong> While we suggest using the highlighted code we\u2019ve provided, you are free to come up with your own solutions provided they produce the expected results listed in the marking rubric below.\r\n\r\nTest your updated tooltips with ChromeVox to ensure each element described in the marking rubric below is functioning as suggested.\r\n<h2>Requirements<\/h2>\r\nWhen you have applied your changes and tested to be sure your tooltips function as described, submit the URL to your tooltip.html file on your GitHub Pages site, to the file on the web server you are using to host your copy of the activity files, or to a <a href=\"https:\/\/raw.githack.com\">Githack<\/a> URL.\r\n<h2>Grading Rubric<\/h2>\r\n<div>\r\n<table class=\"addborder\" title=\"\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\r\n<thead>\r\n<tr>\r\n<th>Criteria<\/th>\r\n<th>Points<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<td>Tooltips Open:\r\nTooltips open when their owning element receives keyboard focus or mouseover.<\/td>\r\n<td>3.0\u00a0pts<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Tooltips Read:\r\nTooltips read aloud when their owning element receives keyboard focus or mouseover.<\/td>\r\n<td>3.0\u00a0pts<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Tooltips Hides:\r\nTooltips hide when focus is removed or on mouseout.<\/td>\r\n<td>2.0\u00a0pts<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Tooltips Escape:\r\nTooltips hide when the Esc key is pressed.<\/td>\r\n<td>2.0\u00a0pts<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>Total Points:<\/td>\r\n<td>10.0<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>","rendered":"<h2>Accessible Tooltips<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.ryerson.ca\/wafd\/wp-content\/uploads\/sites\/57\/2018\/12\/activity_sm.png\" alt=\"\" class=\"alignright size-full wp-image-152\" width=\"150\" height=\"158\" srcset=\"https:\/\/pressbooks.library.torontomu.ca\/wafd\/wp-content\/uploads\/sites\/57\/2018\/12\/activity_sm.png 150w, https:\/\/pressbooks.library.torontomu.ca\/wafd\/wp-content\/uploads\/sites\/57\/2018\/12\/activity_sm-65x68.png 65w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/>Based on the\u00a0<a href=\"https:\/\/pressbooks.library.torontomu.ca\/wafd\/chapter\/4-5-tooltips\/\">Tooltip details<\/a> on the previous page, apply what you have learned to the associated activity files to make the tooltips there accessible.<\/p>\n<p>Files for this activity include:<\/p>\n<ul>\n<li>\/<a href=\"https:\/\/github.com\/learnaria\/learnaria.github.io\/blob\/master\/tooltip.html\">tooltip.html<\/a><\/li>\n<li>\/<a href=\"https:\/\/github.com\/learnaria\/learnaria.github.io\/blob\/master\/assets\/ik_tooltip.js\">assets\/ik_tooltip.js<\/a><\/li>\n<\/ul>\n<p>Use the surroundings of the highlighted code on the previous page as a guide to find where the fixes should be applied. Repair the accessibility of the tooltips by applying the highlighted code to the \/assets\/ik_tooltip.js file.<\/p>\n<p><strong>Note:<\/strong> While we suggest using the highlighted code we\u2019ve provided, you are free to come up with your own solutions provided they produce the expected results listed in the marking rubric below.<\/p>\n<p>Test your updated tooltips with ChromeVox to ensure each element described in the marking rubric below is functioning as suggested.<\/p>\n<h2>Requirements<\/h2>\n<p>When you have applied your changes and tested to be sure your tooltips function as described, submit the URL to your tooltip.html file on your GitHub Pages site, to the file on the web server you are using to host your copy of the activity files, or to a <a href=\"https:\/\/raw.githack.com\">Githack<\/a> URL.<\/p>\n<h2>Grading Rubric<\/h2>\n<div>\n<table class=\"addborder\" title=\"\" cellpadding=\"0\" style=\"border-spacing: 0px;\">\n<thead>\n<tr>\n<th>Criteria<\/th>\n<th>Points<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Tooltips Open:<br \/>\nTooltips open when their owning element receives keyboard focus or mouseover.<\/td>\n<td>3.0\u00a0pts<\/td>\n<\/tr>\n<tr>\n<td>Tooltips Read:<br \/>\nTooltips read aloud when their owning element receives keyboard focus or mouseover.<\/td>\n<td>3.0\u00a0pts<\/td>\n<\/tr>\n<tr>\n<td>Tooltips Hides:<br \/>\nTooltips hide when focus is removed or on mouseout.<\/td>\n<td>2.0\u00a0pts<\/td>\n<\/tr>\n<tr>\n<td>Tooltips Escape:<br \/>\nTooltips hide when the Esc key is pressed.<\/td>\n<td>2.0\u00a0pts<\/td>\n<\/tr>\n<tr>\n<td>Total Points:<\/td>\n<td>10.0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"author":100,"menu_order":6,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-339","chapter","type-chapter","status-publish","hentry"],"part":33,"_links":{"self":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/wafd\/wp-json\/pressbooks\/v2\/chapters\/339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/wafd\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/wafd\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/wafd\/wp-json\/wp\/v2\/users\/100"}],"version-history":[{"count":20,"href":"https:\/\/pressbooks.library.torontomu.ca\/wafd\/wp-json\/pressbooks\/v2\/chapters\/339\/revisions"}],"predecessor-version":[{"id":2008,"href":"https:\/\/pressbooks.library.torontomu.ca\/wafd\/wp-json\/pressbooks\/v2\/chapters\/339\/revisions\/2008"}],"part":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/wafd\/wp-json\/pressbooks\/v2\/parts\/33"}],"metadata":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/wafd\/wp-json\/pressbooks\/v2\/chapters\/339\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/wafd\/wp-json\/wp\/v2\/media?parent=339"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/wafd\/wp-json\/pressbooks\/v2\/chapter-type?post=339"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/wafd\/wp-json\/wp\/v2\/contributor?post=339"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/wafd\/wp-json\/wp\/v2\/license?post=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}