░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/ui/features/quizzes/jquery
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: quiz_labels.js
/* * Copyright (C) 2011 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more * details. * * You should have received a copy of the GNU Affero General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ import {useScope as useI18nScope} from '@canvas/i18n' import $ from 'jquery' const I18n = useI18nScope('quizzes.timing') export default function addAriaDescription($answer, id) { const text = I18n.t('Answer %{answerId}', {answerId: id}) const labelId = `answer${id}` const $label = $('<label/>', { id: labelId, class: 'screenreader-only', text, }) $answer.find('input:text').attr('aria-describedby', labelId) $answer.find('.deleteAnswerId').text(text) $answer.find('.editAnswerId').text(text) $answer.find('.commentAnswerId').text(text) $answer.find('.selectAsCorrectAnswerId').text(text) $answer.prepend($label) }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 calcCmd.js
JS
21.8 KB
2023-09-24 03:36
EDIT
📄 MultipleChoiceToggle.js
JS
3.4 KB
2023-09-24 03:36
EDIT
📄 quiz_labels.js
JS
1.3 KB
2023-09-24 03:36
EDIT
📄 quizzes.js
JS
177.4 KB
2023-09-24 03:39
EDIT
📄 supercalc.js
JS
7.4 KB
2023-09-24 03:36
EDIT