Autoría | Ultima modificación | Ver Log |
{"version":3,"file":"script_menu_point_view.min.js","sources":["../src/script_menu_point_view.js"],"sourcesContent":["// This file is part of Moodle - https://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle. If not, see <http://www.gnu.org/licenses/>.\n\n/**\n * Defines the behavior of the overview (reactions details) page of a Point of View block.\n * @copyright 2020 Quentin Fombaron, 2021 Astor Bizard\n * @license http://www.gnu.org/copyleft/gpl.html
GNU GPL v3 or later\n */\ndefine(['jquery'], function($) {\n return {\n init: function() {\n // Create an accordion home-made table.\n $('.row_module').each(function() {\n var $detailsrow = $(this).next('.row_module_details');\n\n $(this).find('.c6')\n .click(function() {\n $detailsrow.toggle();\n $(this).find('i').toggleClass('fa-caret-right fa-caret-down');\n })\n .find('i').show();\n });\n\n // Create two views : Integer and Percentage, both visible on click.\n $('.reactions-col').click(function() {\n $('.voteInt, .votePercent').toggle();\n });\n }\n };\n});"],"names":["define","$","init","each","$detailsrow","this","next","find","click","toggle","toggleClass","show"],"mappings":";;;;;AAoBAA,iDAAO,CAAC,WAAW,SAASC,GACxB,MAAO,CACHC,KAAM,WAEFD,EAAE,eAAeE,MAAK,WAClB,IAAIC,YAAcH,EAAEI,MAAMC,KAAK,uBA
E/BL,EAAEI,MAAME,KAAK,OACZC,OAAM,WACHJ,YAAYK,SACZR,EAAEI,MAAME,KAAK,KAAKG,YAAY,+BACjC,IACAH,KAAK,KAAKI,MACf,IAGAV,EAAE,kBAAkBO,OAAM,WACtBP,EAAE,0BAA0BQ,QAChC,GACJ,EAER"}