░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/ui/features/quizzes
☗ 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 ready from '@instructure/ready' import $ from 'jquery' import QuizArrowApplicator from '@canvas/quizzes/jquery/quiz_arrows' import './jquery/quizzes' import './jquery/supercalc' import '@canvas/quizzes/jquery/quiz_rubric' ready(() => { $('#show_question_details').on('click', function () { // Create the quiz arrows if ($(this).is(':checked')) { const arrowApplicator = new QuizArrowApplicator() arrowApplicator.applyArrows() } else { // Delete all quiz arrows $('.answer_arrow').remove() } }) // Subscribe to custom event that is triggered as an 'aftersave' on a question form $('body').on('saved', '.question', () => { // Remove all arrows and recreate all if option is checked $('.answer_arrow').remove() if ($('#show_question_details').is(':checked')) { const arrowApplicator = new QuizArrowApplicator() arrowApplicator.applyArrows() } }) })
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 backbone/
DIR
—
2023-09-24 03:36
📁 jquery/
DIR
—
2023-09-24 03:39
📁 jst/
DIR
—
2023-09-24 03:36
📄 index.js
JS
1.6 KB
2023-09-24 03:36
EDIT
📄 package.json
JSON
81 B
2023-09-24 03:36
EDIT
📄 quiz_formula_solution.js
JS
1.4 KB
2023-09-24 03:36
EDIT