Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
{"version":3,"file":"toggle_text.min.js","sources":["../src/toggle_text.js"],"sourcesContent":["// This file is part of the Zoom plugin for Moodle - http://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 * Toggles text to be shown when a user hits 'Show More' and\n * hides text when user hits 'Show Less'\n *\n * @copyright  2020 UC Regents\n * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\n\nimport {get_string as getString} from \"core/str\";\n\nexport const init = () => {\n  const button = document.querySelector(\"#show-more-button\");\n  if (button !== null) {\n    const body = document.querySelector(\"#show-more-body\");\n    button.addEventListener(\"click\", async() => {\n      if (body.style.display === \"\") {\n        body.style.display = \"none\";\n        button.innerHTML = await getString(\"meeting_invite_show\", \"mod_zoom\");\n      } else {\n        body.style.display = \"\";\n        button.innerHTML = await getString(\"meeting_invite_hide\", \"mod_zoom\");\n      }\n    });\n  }\n};\n"],"names":["button","document","querySelector","body","addEventListener","async","style","display","innerHTML"],"mappings":"yKAyBoB,WACZA,OAASC,SAASC,cAAc,wBACvB,OAAXF,OAAiB,OACbG,KAAOF,SAASC,cAAc,mBACpCF,OAAOI,iBAAiB,SAASC,UACJ,KAAvBF,KAAKG,MAAMC,SACbJ,KAAKG,MAAMC,QAAU,OACrBP,OAAOQ,gBAAkB,mBAAU,sBAAuB,cAE1DL,KAAKG,MAAMC,QAAU,GACrBP,OAAOQ,gBAAkB,mBAAU,sBAAuB"}