░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/ui/features/quiz_submission
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: index.js
// // Copyright (C) 2014 - 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' import '@canvas/quizzes/jquery/behaviors/quiz_selectmenu' const I18n = useI18nScope('quizzes.quiz_submission') $(document).ready(() => { $('#questions.assessment_results .question').hover( function () { $(this).addClass('hover') }, function () { $(this).removeClass('hover') } ) $('.quiz_response_text img').each(function () { $(this) .css({ borderColor: '#f44', borderStyle: 'solid', borderWidth: '2px', padding: 2, }) .attr( 'title', I18n.t( 'titles.this_is_an_image', 'This is an image, not text, and could have changed since the student submitted' ) ) }) $('.quiz_response_text iframe').each(function () { $(this) .css({ borderColor: '#f44', borderStyle: 'solid', borderWidth: '2px', padding: 2, }) .attr( 'title', I18n.t( 'titles.this_is_an_external_frame', 'This is an external frame, not text, and could have changed since the student submitted' ) ) }) const $list = $('nothing') $('.quiz_response_text') .find('object,embed') .each(function () { return $list.add($(this).parents('object,embed:first')) }) return $list.each(function () { const $holder = $('<span/>').css('display', 'inline-block') $holder.before($(this)) $holder.append($(this)) return $holder .css({ borderColor: '#f44', borderStyle: 'solid', borderWidth: '2px', padding: 2, }) .attr( 'title', I18n.t( 'titles.this_is_an_external_element', 'This is an external element, not text, and could have changed since the student submitted' ) ) }) })
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 index.js
JS
2.5 KB
2023-09-24 03:36
EDIT
📄 package.json
JSON
89 B
2023-09-24 03:36
EDIT