░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/ui/features/quiz_show
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: index.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 $ from 'jquery' import inputMethods from '@canvas/quizzes/jquery/quiz_inputs' import './jquery/index' import '@canvas/quizzes/jquery/quiz_rubric' import '@canvas/message-students-dialog/jquery/message_students' import '@canvas/jquery/jquery.disableWhileLoading' import '@canvas/module-sequence-footer' import LockManager from '@canvas/blueprint-courses/react/components/LockManager/index' import ready from '@instructure/ready' ready(() => { const lockManager = new LockManager() lockManager.init({itemType: 'quiz', page: 'show'}) renderCoursePacingNotice() inputMethods.setWidths() $('.answer input[type=text]').each(function () { $(this).width(($(this).val().length || 11) * 9.5) }) $('.download_submissions_link').click(function (event) { event.preventDefault() INST.downloadSubmissions($(this).attr('href')) }) // load in regrade versions if (ENV.SUBMISSION_VERSIONS_URL && !ENV.IS_SURVEY) { const versions = $('#quiz-submission-version-table') versions.css({height: '100px'}) const dfd = $.get(ENV.SUBMISSION_VERSIONS_URL, html => { versions.html(html) versions.css({height: 'auto'}) }) versions.disableWhileLoading(dfd) } // Add module sequence footer $('#module_sequence_footer').moduleSequenceFooter({ courseID: ENV.COURSE_ID, assetType: 'Quiz', assetID: ENV.QUIZ.id, location: window.location, }) }) function renderCoursePacingNotice() { const $mountPoint = document.getElementById('course_paces_due_date_notice') if ($mountPoint) { import('@canvas/due-dates/react/CoursePacingNotice') .then(CoursePacingNoticeModule => { const renderNotice = CoursePacingNoticeModule.renderCoursePacingNotice renderNotice($mountPoint, ENV.COURSE_ID) }) .catch(ex => { // eslint-disable-next-line no-console console.warn('Falied loading CoursePacingNotice', ex) }) } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 jquery/
DIR
—
2023-09-24 03:39
📄 index.js
JS
2.6 KB
2023-09-24 03:36
EDIT
📄 package.json
JSON
83 B
2023-09-24 03:36
EDIT