From 079d14fcbb50f8dae6b9840ba27315068c3d2095 Mon Sep 17 00:00:00 2001 From: Matheus Garcia Date: Wed, 1 Dec 2021 11:54:35 -0300 Subject: [PATCH] =?UTF-8?q?Atualiza=C3=A7=C3=A3o=20a=20partir=20do=20boost?= =?UTF-8?q?=20da=20vers=C3=A3o=203.11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classes/autoprefixer.php | 2 + classes/output/block_settings_renderer.php | 50 - classes/output/core/admin_renderer.php | 52 - classes/output/core/course_renderer.php | 81 - classes/output/core/files_renderer.php | 140 - .../output/core_question/bank_renderer.php | 58 - classes/output/core_renderer.php | 687 +- classes/output/core_renderer_maintenance.php | 197 - .../output/gradereport_history_renderer.php | 44 - classes/privacy/provider.php | 46 +- config.php | 165 +- js/apple-touch-icon-114x114.png?v=OmmK4dNQkX | Bin 1469 -> 0 bytes js/apple-touch-icon-120x120.png?v=OmmK4dNQkX | Bin 1556 -> 0 bytes js/apple-touch-icon-144x144.png?v=OmmK4dNQkX | Bin 2137 -> 0 bytes js/apple-touch-icon-152x152.png?v=OmmK4dNQkX | Bin 2213 -> 0 bytes js/apple-touch-icon-180x180.png?v=OmmK4dNQkX | Bin 2928 -> 0 bytes js/apple-touch-icon-57x57.png?v=OmmK4dNQkX | Bin 733 -> 0 bytes js/apple-touch-icon-60x60.png?v=OmmK4dNQkX | Bin 792 -> 0 bytes js/apple-touch-icon-72x72.png?v=OmmK4dNQkX | Bin 859 -> 0 bytes js/apple-touch-icon-76x76.png?v=OmmK4dNQkX | Bin 926 -> 0 bytes js/audio.min.js | 48 - js/audiojs-doc-ready.js | 35 - js/base-cachekey3894.css | 2381 ---- js/collapse-image.js | 25 - js/jquery.js | 10253 ---------------- js/jquery.lazyload.min.js | 2 - js/manifest.json?v=697oma3x8q | 11 - ...nfigbootstrapbootstrap.min-cachekey1567.js | 169 - ...figjqueryjquery-1.11.2.min-cachekey3986.js | 335 - ...esourcesenado.jqueryjquery-cachekey5865.js | 2208 ---- js/resourcestaticjscalendario-cachekey4269.js | 85 - ...ourcestaticjsphoto-gallery-cachekey3318.js | 68 - js/root_index.js | 22 - js/sanfona.js | 17 - js/tabs.js | 13 - js/youtubeEvents.js | 57 - lang/en/theme_ilb.php | 12 - layout/columns1.php | 11 +- layout/columns2.php | 19 +- layout/embedded.php | 14 +- layout/frontpage_ilb.php | 108 - layout/login.php | 11 +- layout/login_nova_conta.php | 36 - layout/maintenance.php | 6 +- layout/secure.php | 6 +- lib.php | 186 +- pix/Cursos-on-line-sem-tutor.png | Bin 49265 -> 0 bytes pix/Cursos-on-line-sem-tutor_BACKUP_25256.png | Bin 49265 -> 0 bytes pix/Cursos-on-line-sem-tutor_BASE_25256.png | 0 pix/Cursos-on-line-sem-tutor_LOCAL_25256.png | Bin 49265 -> 0 bytes pix/Cursos-on-line-sem-tutor_REMOTE_25256.png | Bin 49265 -> 0 bytes pix/Cursos-on-line.png | Bin 52653 -> 0 bytes pix/aviso_saberes_offline.png | Bin 274866 -> 0 bytes pix/conheca-senado.png | Bin 2371 -> 0 bytes pix/favicon.ico | Bin 100982 -> 1150 bytes pix/formacao_interna.png | Bin 50180 -> 0 bytes pix/fundo-c.png | Bin 154 -> 0 bytes pix/hand.png | Bin 645 -> 0 bytes pix/icon_ContatoEmail-azul.png | Bin 642 -> 0 bytes pix/icon_ContatoFone-azul.png | Bin 790 -> 0 bytes pix/logo_saberes_xl.png | Bin 24178 -> 0 bytes pix/matricula_aberta.png | Bin 42045 -> 0 bytes pix/matricula_aberta_verde.png | Bin 51620 -> 0 bytes pix/matricula_encerrada.png | Bin 42045 -> 0 bytes pix/matricula_encerrada_vermelho.png | Bin 45464 -> 0 bytes pix/oficinas-interlegis.png | Bin 52141 -> 0 bytes pix/pos-graduacao.png | Bin 2555 -> 0 bytes pix/projetos_especiais.png | Bin 2230 -> 0 bytes pix/screenshot.png | Bin 135396 -> 0 bytes pix/smarts/bg_atencao_9bl_curso.png | Bin 552 -> 0 bytes pix/smarts/bg_atencao_9br_curso.png | Bin 2878 -> 0 bytes pix/smarts/bg_atencao_9l_curso.png | Bin 616 -> 0 bytes pix/smarts/bg_atencao_9meio_curso.png | Bin 2807 -> 0 bytes pix/smarts/bg_atencao_9r_curso.png | Bin 557 -> 0 bytes pix/smarts/bg_atencao_9tl_curso.png | Bin 4485 -> 0 bytes pix/smarts/bg_atencao_9tr_curso.png | Bin 3278 -> 0 bytes pix/smarts/bg_atividade_9bl_curso.png | Bin 260 -> 0 bytes pix/smarts/bg_atividade_9br_curso.png | Bin 282 -> 0 bytes pix/smarts/bg_atividade_9l_curso.png | Bin 383 -> 0 bytes pix/smarts/bg_atividade_9meio_curso.png | Bin 143 -> 0 bytes pix/smarts/bg_atividade_9r_curso.png | Bin 293 -> 0 bytes pix/smarts/bg_atividade_9tl_curso.png | Bin 4420 -> 0 bytes pix/smarts/bg_atividade_9tr_curso.png | Bin 912 -> 0 bytes pix/smarts/bg_conceito_9bl_curso.png | Bin 271 -> 0 bytes pix/smarts/bg_conceito_9br_curso.png | Bin 286 -> 0 bytes pix/smarts/bg_conceito_9l_curso.png | Bin 389 -> 0 bytes pix/smarts/bg_conceito_9meio_curso.png | Bin 143 -> 0 bytes pix/smarts/bg_conceito_9r_curso.png | Bin 297 -> 0 bytes pix/smarts/bg_conceito_9tl_curso.png | Bin 4512 -> 0 bytes pix/smarts/bg_conceito_9tr_curso.png | Bin 918 -> 0 bytes pix/smarts/bg_curiosidade_9bl_curso.png | Bin 564 -> 0 bytes pix/smarts/bg_curiosidade_9br_curso.png | Bin 2889 -> 0 bytes pix/smarts/bg_curiosidade_9l_curso.png | Bin 624 -> 0 bytes pix/smarts/bg_curiosidade_9meio_curso.png | Bin 2807 -> 0 bytes pix/smarts/bg_curiosidade_9r_curso.png | Bin 559 -> 0 bytes pix/smarts/bg_curiosidade_9tl_curso.png | Bin 4803 -> 0 bytes pix/smarts/bg_curiosidade_9tr_curso.png | Bin 3300 -> 0 bytes pix/smarts/bg_dica_9bl_curso.png | Bin 567 -> 0 bytes pix/smarts/bg_dica_9br_curso.png | Bin 2886 -> 0 bytes pix/smarts/bg_dica_9l_curso.png | Bin 627 -> 0 bytes pix/smarts/bg_dica_9meio_curso.png | Bin 2807 -> 0 bytes pix/smarts/bg_dica_9r_curso.png | Bin 561 -> 0 bytes pix/smarts/bg_dica_9tl_curso.png | Bin 3904 -> 0 bytes pix/smarts/bg_dica_9tr_curso.png | Bin 3309 -> 0 bytes pix/smarts/bg_importante_9bl_curso.png | Bin 48027 -> 0 bytes pix/smarts/bg_importante_9br_curso.png | Bin 46240 -> 0 bytes pix/smarts/bg_importante_9l_curso.png | Bin 46637 -> 0 bytes pix/smarts/bg_importante_9meio_curso.png | Bin 477 -> 0 bytes pix/smarts/bg_importante_9r_curso.png | Bin 558 -> 0 bytes pix/smarts/bg_importante_9tl_curso.png | Bin 47301 -> 0 bytes pix/smarts/bg_importante_9tr_curso.png | Bin 50171 -> 0 bytes pix/smarts/bg_legislacao_9bl_curso.png | Bin 563 -> 0 bytes pix/smarts/bg_legislacao_9br_curso.png | Bin 2885 -> 0 bytes pix/smarts/bg_legislacao_9l_curso.png | Bin 623 -> 0 bytes pix/smarts/bg_legislacao_9meio_curso.png | Bin 2807 -> 0 bytes pix/smarts/bg_legislacao_9r_curso.png | Bin 559 -> 0 bytes pix/smarts/bg_legislacao_9tl_curso.png | Bin 4612 -> 0 bytes pix/smarts/bg_legislacao_9tr_curso.png | Bin 3294 -> 0 bytes pix/smarts/bg_legislacao_header_curso2.png | Bin 2133 -> 0 bytes pix/smarts/bg_leia_mais_9bl_curso.png | Bin 564 -> 0 bytes pix/smarts/bg_leia_mais_9br_curso.png | Bin 2881 -> 0 bytes pix/smarts/bg_leia_mais_9l_curso.png | Bin 624 -> 0 bytes pix/smarts/bg_leia_mais_9meio_curso.png | Bin 2807 -> 0 bytes pix/smarts/bg_leia_mais_9r_curso.png | Bin 560 -> 0 bytes pix/smarts/bg_leia_mais_9tl_curso.png | Bin 4204 -> 0 bytes pix/smarts/bg_leia_mais_9tr_curso.png | Bin 3296 -> 0 bytes pix/smarts/bg_lembrete_9bl_curso.png | Bin 272 -> 0 bytes pix/smarts/bg_lembrete_9br_curso.png | Bin 281 -> 0 bytes pix/smarts/bg_lembrete_9l_curso.png | Bin 389 -> 0 bytes pix/smarts/bg_lembrete_9meio_curso.png | Bin 143 -> 0 bytes pix/smarts/bg_lembrete_9r_curso.png | Bin 295 -> 0 bytes pix/smarts/bg_lembrete_9tl_curso.png | Bin 4173 -> 0 bytes pix/smarts/bg_lembrete_9tr_curso.png | Bin 880 -> 0 bytes pix/smarts/bg_link_9bl_curso.png | Bin 268 -> 0 bytes pix/smarts/bg_link_9br_curso.png | Bin 287 -> 0 bytes pix/smarts/bg_link_9l_curso.png | Bin 384 -> 0 bytes pix/smarts/bg_link_9meio_curso.png | Bin 143 -> 0 bytes pix/smarts/bg_link_9r_curso.png | Bin 292 -> 0 bytes pix/smarts/bg_link_9tl_curso.png | Bin 3573 -> 0 bytes pix/smarts/bg_link_9tr_curso.png | Bin 870 -> 0 bytes pix/smarts/bg_objetivos_9bl_curso.png | Bin 271 -> 0 bytes pix/smarts/bg_objetivos_9br_curso.png | Bin 286 -> 0 bytes pix/smarts/bg_objetivos_9l_curso.png | Bin 389 -> 0 bytes pix/smarts/bg_objetivos_9meio_curso.png | Bin 143 -> 0 bytes pix/smarts/bg_objetivos_9r_curso.png | Bin 297 -> 0 bytes pix/smarts/bg_objetivos_9tl_curso.png | Bin 4721 -> 0 bytes pix/smarts/bg_objetivos_9tr_curso.png | Bin 912 -> 0 bytes pix/smarts/bg_observacao_9bl_curso.png | Bin 564 -> 0 bytes pix/smarts/bg_observacao_9br_curso.png | Bin 2881 -> 0 bytes pix/smarts/bg_observacao_9l_curso.png | Bin 624 -> 0 bytes pix/smarts/bg_observacao_9meio_curso.png | Bin 2807 -> 0 bytes pix/smarts/bg_observacao_9r_curso.png | Bin 560 -> 0 bytes pix/smarts/bg_observacao_9tl_curso.png | Bin 5047 -> 0 bytes pix/smarts/bg_observacao_9tr_curso.png | Bin 3300 -> 0 bytes pix/smarts/bg_para_refletir _9bl_curso.png | Bin 563 -> 0 bytes pix/smarts/bg_para_refletir_9br_curso.png | Bin 2886 -> 0 bytes pix/smarts/bg_para_refletir_9l_curso.png | Bin 624 -> 0 bytes pix/smarts/bg_para_refletir_9meio_curso.png | Bin 2807 -> 0 bytes pix/smarts/bg_para_refletir_9r_curso.png | Bin 559 -> 0 bytes pix/smarts/bg_para_refletir_9tl_curso.png | Bin 4336 -> 0 bytes pix/smarts/bg_para_refletir_9tr_curso.png | Bin 3292 -> 0 bytes pix/smarts/bg_pergunta_9bl_curso.png | Bin 46839 -> 0 bytes pix/smarts/bg_pergunta_9br_curso.png | Bin 46878 -> 0 bytes pix/smarts/bg_pergunta_9l_curso.png | Bin 554 -> 0 bytes pix/smarts/bg_pergunta_9meio_curso.png | Bin 477 -> 0 bytes pix/smarts/bg_pergunta_9r_curso.png | Bin 563 -> 0 bytes pix/smarts/bg_pergunta_9tl_curso.png | Bin 47484 -> 0 bytes pix/smarts/bg_pergunta_9tr_curso.png | Bin 50378 -> 0 bytes pix/smarts/bg_refletindo_9bl_curso.png | Bin 46489 -> 0 bytes pix/smarts/bg_refletindo_9br_curso.png | Bin 46797 -> 0 bytes pix/smarts/bg_refletindo_9l_curso.png | Bin 46573 -> 0 bytes pix/smarts/bg_refletindo_9meio_curso.png | Bin 480 -> 0 bytes pix/smarts/bg_refletindo_9r_curso.png | Bin 47639 -> 0 bytes pix/smarts/bg_refletindo_9tl_curso.png | Bin 47095 -> 0 bytes pix/smarts/bg_refletindo_9tr_curso.png | Bin 50264 -> 0 bytes pix/smarts/bg_saiba_mais2_9bl_curso.png | Bin 46666 -> 0 bytes pix/smarts/bg_saiba_mais2_9br_curso.png | Bin 47107 -> 0 bytes pix/smarts/bg_saiba_mais2_9l_curso.png | Bin 46269 -> 0 bytes pix/smarts/bg_saiba_mais2_9meio_curso.png | Bin 480 -> 0 bytes pix/smarts/bg_saiba_mais2_9r_curso.png | Bin 48066 -> 0 bytes pix/smarts/bg_saiba_mais2_9tl_curso.png | Bin 46852 -> 0 bytes pix/smarts/bg_saiba_mais2_9tr_curso.png | Bin 50226 -> 0 bytes pix/smarts/bg_saiba_mais_9bl_curso.png | Bin 561 -> 0 bytes pix/smarts/bg_saiba_mais_9br_curso.png | Bin 2878 -> 0 bytes pix/smarts/bg_saiba_mais_9l_curso.png | Bin 624 -> 0 bytes pix/smarts/bg_saiba_mais_9meio_curso.png | Bin 2807 -> 0 bytes pix/smarts/bg_saiba_mais_9r_curso.png | Bin 559 -> 0 bytes pix/smarts/bg_saiba_mais_9tl_curso.png | Bin 4530 -> 0 bytes pix/smarts/bg_saiba_mais_9tr_curso.png | Bin 3305 -> 0 bytes pix/smarts/bg_saiba_mais_fechado2.png | Bin 3676 -> 0 bytes pix/smarts/bg_saiba_mais_header2_curso.png | Bin 48981 -> 0 bytes pix/video-aula.png | Bin 51579 -> 0 bytes scss/bootstrap/LICENSE | 22 - scss/bootstrap/_alert.scss | 30 +- scss/bootstrap/_animation.scss | 27 - scss/bootstrap/_breadcrumb.scss | 24 +- scss/bootstrap/_button-group.scss | 177 +- scss/bootstrap/_buttons.scss | 152 +- scss/bootstrap/_card.scss | 338 +- scss/bootstrap/_carousel.scss | 302 +- scss/bootstrap/_close.scss | 29 +- scss/bootstrap/_code.scss | 35 +- scss/bootstrap/_custom-forms.scss | 497 +- scss/bootstrap/_custom.scss | 4 - scss/bootstrap/_dropdown.scss | 245 +- scss/bootstrap/_forms.scss | 327 +- scss/bootstrap/_grid.scss | 56 +- scss/bootstrap/_images.scss | 18 +- scss/bootstrap/_input-group.scss | 290 +- scss/bootstrap/_jumbotron.scss | 5 +- scss/bootstrap/_list-group.scss | 171 +- scss/bootstrap/_media.scss | 83 +- scss/bootstrap/_mixins.scss | 33 +- scss/bootstrap/_modal.scss | 178 +- scss/bootstrap/_nav.scss | 121 +- scss/bootstrap/_navbar.scss | 382 +- scss/bootstrap/_normalize.scss | 424 - scss/bootstrap/_pagination.scss | 79 +- scss/bootstrap/_popover.scss | 223 +- scss/bootstrap/_print.scss | 73 +- scss/bootstrap/_progress.scss | 160 +- scss/bootstrap/_reboot.scss | 435 +- scss/bootstrap/_responsive-embed.scss | 39 - scss/bootstrap/_tables.scss | 159 +- scss/bootstrap/_tags.scss | 77 - scss/bootstrap/_tooltip.scss | 124 +- scss/bootstrap/_type.scss | 79 +- scss/bootstrap/_utilities.scss | 11 +- scss/bootstrap/_variables.scss | 1489 ++- scss/bootstrap/bootstrap-flex.scss | 8 - scss/bootstrap/bootstrap-grid.scss | 33 +- scss/bootstrap/bootstrap-reboot.scss | 17 +- scss/bootstrap/bootstrap.scss | 32 +- scss/bootstrap/mixins/_alert.scss | 11 +- .../bootstrap/mixins/_background-variant.scss | 18 +- scss/bootstrap/mixins/_border-radius.scss | 61 +- scss/bootstrap/mixins/_breakpoints.scss | 77 +- scss/bootstrap/mixins/_buttons.scss | 143 +- scss/bootstrap/mixins/_cards.scss | 44 - scss/bootstrap/mixins/_clearfix.scss | 4 +- scss/bootstrap/mixins/_forms.scss | 229 +- scss/bootstrap/mixins/_gradients.scss | 32 +- scss/bootstrap/mixins/_grid-framework.scss | 84 +- scss/bootstrap/mixins/_grid.scss | 85 +- scss/bootstrap/mixins/_hover.scss | 77 +- scss/bootstrap/mixins/_image.scss | 18 +- scss/bootstrap/mixins/_list-group.scss | 23 +- scss/bootstrap/mixins/_lists.scss | 2 +- scss/bootstrap/mixins/_nav-divider.scss | 9 +- scss/bootstrap/mixins/_navbar-align.scss | 9 - scss/bootstrap/mixins/_pagination.scss | 3 +- scss/bootstrap/mixins/_progress.scss | 23 - scss/bootstrap/mixins/_pulls.scss | 6 - scss/bootstrap/mixins/_reset-filter.scss | 8 - scss/bootstrap/mixins/_reset-text.scss | 10 +- scss/bootstrap/mixins/_resize.scss | 2 +- scss/bootstrap/mixins/_screen-reader.scss | 16 +- scss/bootstrap/mixins/_size.scss | 1 + scss/bootstrap/mixins/_tab-focus.scss | 9 - scss/bootstrap/mixins/_table-row.scss | 13 +- scss/bootstrap/mixins/_tag.scss | 11 - scss/bootstrap/mixins/_text-emphasis.scss | 13 +- scss/bootstrap/mixins/_text-hide.scss | 5 +- scss/bootstrap/mixins/_text-truncate.scss | 2 +- scss/bootstrap/utilities/_background.scss | 28 +- scss/bootstrap/utilities/_display.scss | 29 +- scss/bootstrap/utilities/_flex.scss | 76 +- scss/bootstrap/utilities/_pulls.scss | 13 - scss/bootstrap/utilities/_spacing.scss | 96 +- scss/bootstrap/utilities/_text.scss | 63 +- scss/bootstrap/utilities/_visibility.scss | 54 +- scss/fontawesome/moodle-path.scss | 17 - scss/fontawesome/readme_moodle.txt | 6 +- scss/moodle.scss | 18 +- scss/moodle/admin.scss | 328 +- scss/moodle/backup-restore.scss | 28 +- scss/moodle/blocks.scss | 421 +- scss/moodle/bootstrap-rtl.scss | 16 + scss/moodle/bootswatch.scss | 3 +- scss/moodle/bs2-compat.scss | 74 - scss/moodle/buttons.scss | 52 +- scss/moodle/calendar.scss | 167 +- scss/moodle/chat.scss | 32 +- scss/moodle/core.scss | 1020 +- scss/moodle/course.scss | 244 +- scss/moodle/debug.scss | 28 +- scss/moodle/drawer.scss | 97 +- scss/moodle/expendable.scss | 29 +- scss/moodle/filemanager.scss | 50 +- scss/moodle/forms.scss | 257 +- scss/moodle/grade.scss | 104 +- scss/moodle/icons.scss | 72 +- scss/moodle/message.scss | 1177 +- scss/moodle/modal.scss | 26 +- scss/moodle/modules.scss | 910 +- scss/moodle/popover-region.scss | 33 +- scss/moodle/print.scss | 2 - scss/moodle/question.scss | 103 +- scss/moodle/responsive-tabs.scss | 11 - scss/moodle/search.scss | 108 +- scss/moodle/sticky-footer.scss | 29 +- scss/moodle/tables.scss | 66 +- scss/moodle/tool_usertours.scss | 6 +- scss/moodle/undo.scss | 151 +- scss/moodle/user.scss | 32 +- scss/preset/default.scss | 287 +- scss/preset/plain.scss | 7 + settings.php | 171 +- style/at-cachekey3076.kss | 425 - style/base-cachekey1556.css | 2262 ---- style/basic.css | 44 - style/collapse-image.css | 38 - style/icons/agenciaweb_36ab2.ttf | Bin 7468 -> 0 bytes style/icons/agenciaweb_3fc37.svg | 47 - style/icons/agenciaweb_6a387.woff | Bin 7544 -> 0 bytes style/icons/agenciaweb_a6777.eot | Bin 7646 -> 0 bytes .../glyphicons-halflings-regular_448c3.woff2 | Bin 18028 -> 0 bytes .../glyphicons-halflings-regular_89889.svg | 288 - .../glyphicons-halflings-regular_e18bb.ttf | Bin 45404 -> 0 bytes .../glyphicons-halflings-regular_f4769.eot | Bin 20127 -> 0 bytes .../glyphicons-halflings-regular_fa277.woff | Bin 23424 -> 0 bytes style/ploneCustom-cachekey2573.css | 13 - style/resourceconfigcssbasic-cachekey3600.css | 565 - ...app.jquerytools.dateinput-cachekey2007.css | 1535 --- ....app.jquerytools.overlays-cachekey3027.css | 84 - ...mpletejquery.autocomplete-cachekey1913.css | 134 - ...etejquery.autocomplete.min-cachekey6312.js | 213 - ...taticcssescola-de-governo-cachekey3115.css | 160 - style/resourcestaticcsshome-cachekey0155.css | 756 -- ...aticcssplone_fixes_senado-cachekey4482.css | 7 - style/sanfona.css | 39 - style/tabs.css | 37 - style/tema_1.css | 724 -- style/thin.css | 50 - templates/admin_setting_tabs.mustache | 8 +- .../block_search_forums/search_form.mustache | 16 - templates/block_settings/search_form.mustache | 7 - templates/columns1.mustache | 35 +- templates/columns2.mustache | 74 +- templates/core/action_menu.mustache | 47 - templates/core/action_menu_item.mustache | 31 - templates/core/action_menu_link.mustache | 34 - templates/core/action_menu_trigger.mustache | 91 - .../core/auth_digital_minor_page.mustache | 58 - .../auth_verify_age_location_page.mustache | 64 - templates/core/availability_info.mustache | 61 - templates/core/block.mustache | 63 - templates/core/chooser.mustache | 80 - templates/core/columns-1to1to1.mustache | 48 - templates/core/columns-1to2.mustache | 45 - templates/core/columns-2to1.mustache | 44 - templates/core/custom_menu_item.mustache | 22 - templates/core/dataformat_selector.mustache | 55 - .../core/filemanager_confirmdialog.mustache | 5 - .../filemanager_default_searchform.mustache | 4 - .../core/filemanager_fileselect.mustache | 65 - templates/core/filemanager_loginform.mustache | 43 - .../filemanager_modal_generallayout.mustache | 61 - .../filemanager_page_generallayout.mustache | 58 - .../filemanager_processexistingfile.mustache | 8 - ...nager_processexistingfilemultiple.mustache | 9 - .../core/filemanager_selectlayout.mustache | 66 - .../core/filemanager_uploadform.mustache | 29 - .../core/form_autocomplete_input.mustache | 43 - .../core/form_autocomplete_selection.mustache | 50 - templates/core/help_icon.mustache | 25 - templates/core/loginform.mustache | 238 - templates/core/modal.mustache | 66 - templates/core/modal_backdrop.mustache | 36 - templates/core/navbar.mustache | 72 - templates/core/notification_error.mustache | 44 - templates/core/notification_info.mustache | 45 - templates/core/notification_success.mustache | 44 - templates/core/notification_warning.mustache | 44 - templates/core/paging_bar.mustache | 48 - templates/core/preferences_groups.mustache | 18 - templates/core/progress_bar.mustache | 64 - templates/core/select_time.mustache | 38 - templates/core/settings_link_page.mustache | 153 - .../core/settings_link_page_single.mustache | 46 - templates/core/signup_form_layout.mustache | 33 - templates/core/single_button.mustache | 61 - templates/core/skip_links.mustache | 16 - templates/core/tabtree.mustache | 44 - templates/core_admin/setting.mustache | 43 - .../setting_configcolourpicker.mustache | 30 - .../setting_configduration.mustache | 31 - .../core_admin/setting_configfile.mustache | 33 - .../setting_configmultiselect.mustache | 28 - ...etting_configmultiselect_optgroup.mustache | 35 - .../core_admin/setting_configselect.mustache | 27 - .../setting_configselect_optgroup.mustache | 35 - .../core_admin/setting_configtext.mustache | 22 - .../setting_configtextarea.mustache | 22 - .../core_admin/setting_configtime.mustache | 36 - .../setting_courselist_frontpage.mustache | 29 - .../setting_devicedetectregex.mustache | 39 - .../core_admin/setting_emoticons.mustache | 51 - .../setting_gradecat_combo.mustache | 31 - templates/core_admin/settings.mustache | 39 - .../settings_search_results.mustache | 49 - .../minicalendar_day_link.mustache | 64 - templates/core_form/editor_textarea.mustache | 47 - .../element-advcheckbox-inline.mustache | 39 - .../core_form/element-advcheckbox.mustache | 55 - .../element-autocomplete-inline.mustache | 40 - .../core_form/element-autocomplete.mustache | 40 - .../core_form/element-button-inline.mustache | 18 - templates/core_form/element-button.mustache | 17 - .../element-checkbox-inline.mustache | 39 - templates/core_form/element-checkbox.mustache | 55 - .../element-date_selector-inline.mustache | 10 - .../core_form/element-date_selector.mustache | 10 - ...element-date_time_selector-inline.mustache | 10 - .../element-date_time_selector.mustache | 10 - .../element-defaultcustom-inline.mustache | 43 - .../core_form/element-defaultcustom.mustache | 43 - .../element-duration-inline.mustache | 1 - templates/core_form/element-duration.mustache | 1 - templates/core_form/element-editor.mustache | 5 - .../core_form/element-filemanager.mustache | 5 - .../core_form/element-filepicker.mustache | 5 - .../core_form/element-filetypes.mustache | 1 - templates/core_form/element-grading.mustache | 5 - .../core_form/element-group-inline.mustache | 8 - templates/core_form/element-group.mustache | 8 - templates/core_form/element-modgrade.mustache | 1 - .../core_form/element-modvisible.mustache | 1 - templates/core_form/element-password.mustache | 15 - .../core_form/element-passwordunmask.mustache | 88 - .../element-questioncategory-inline.mustache | 1 - .../element-questioncategory.mustache | 1 - .../core_form/element-radio-inline.mustache | 40 - templates/core_form/element-radio.mustache | 56 - .../core_form/element-recaptcha.mustache | 5 - .../core_form/element-select-inline.mustache | 30 - templates/core_form/element-select.mustache | 122 - .../element-selectgroups-inline.mustache | 32 - .../core_form/element-selectgroups.mustache | 32 - .../core_form/element-selectwithlink.mustache | 23 - .../element-selectyesno-inline.mustache | 1 - .../core_form/element-selectyesno.mustache | 1 - templates/core_form/element-static.mustache | 44 - .../core_form/element-submit-inline.mustache | 15 - templates/core_form/element-submit.mustache | 18 - .../core_form/element-tags-inline.mustache | 39 - templates/core_form/element-tags.mustache | 39 - .../element-template-inline.mustache | 20 - templates/core_form/element-template.mustache | 75 - .../core_form/element-text-inline.mustache | 17 - templates/core_form/element-text.mustache | 17 - templates/core_form/element-textarea.mustache | 17 - templates/core_form/element-url.mustache | 20 - templates/core_form/element-warning.mustache | 5 - .../core_form/element-wikieditor.mustache | 5 - templates/core_grades/edit_tree.mustache | 45 - templates/core_grades/weight_field.mustache | 23 - .../weight_override_field.mustache | 31 - templates/course_search_form.mustache | 29 - templates/custom_menu_footer.mustache | 8 +- templates/embedded.mustache | 34 +- templates/flat_navigation.mustache | 79 +- templates/footer.mustache | 111 +- templates/footerSimples.mustache | 5 - templates/frontpage_ilb.mustache | 1017 -- templates/frontpage_ilblogado.mustache | 241 - .../gradereport_history/user_button.mustache | 21 - .../bulk_insert.mustache | 34 - .../gradereport_singleview/button.mustache | 20 - .../dropdown_attribute.mustache | 25 - .../text_attribute.mustache | 22 - .../comment_chooser.mustache | 57 - templates/head.mustache | 177 +- templates/head2.mustache | 51 - templates/header-secure.mustache | 43 - templates/header.mustache | 109 - templates/headerLogado.mustache | 60 - templates/login.mustache | 38 +- templates/maintenance.mustache | 29 +- templates/mod_assign/grading_actions.mustache | 55 - .../mod_assign/grading_navigation.mustache | 99 - .../grading_navigation_user_selector.mustache | 66 - templates/mod_forum/big_search_form.mustache | 188 - .../mod_forum/quick_search_form.mustache | 13 - templates/nav-drawer.mustache | 6 +- templates/secure.mustache | 46 +- templates/tool_lp/progress_bar.mustache | 47 - templates/tool_usertours/tourstep.mustache | 65 - version.php | 45 +- 489 files changed, 8690 insertions(+), 38325 deletions(-) delete mode 100644 classes/output/block_settings_renderer.php delete mode 100644 classes/output/core/admin_renderer.php delete mode 100644 classes/output/core/course_renderer.php delete mode 100644 classes/output/core/files_renderer.php delete mode 100644 classes/output/core_question/bank_renderer.php delete mode 100644 classes/output/core_renderer_maintenance.php delete mode 100644 classes/output/gradereport_history_renderer.php delete mode 100644 js/apple-touch-icon-114x114.png?v=OmmK4dNQkX delete mode 100644 js/apple-touch-icon-120x120.png?v=OmmK4dNQkX delete mode 100644 js/apple-touch-icon-144x144.png?v=OmmK4dNQkX delete mode 100644 js/apple-touch-icon-152x152.png?v=OmmK4dNQkX delete mode 100644 js/apple-touch-icon-180x180.png?v=OmmK4dNQkX delete mode 100644 js/apple-touch-icon-57x57.png?v=OmmK4dNQkX delete mode 100644 js/apple-touch-icon-60x60.png?v=OmmK4dNQkX delete mode 100644 js/apple-touch-icon-72x72.png?v=OmmK4dNQkX delete mode 100644 js/apple-touch-icon-76x76.png?v=OmmK4dNQkX delete mode 100644 js/audio.min.js delete mode 100644 js/audiojs-doc-ready.js delete mode 100644 js/base-cachekey3894.css delete mode 100644 js/collapse-image.js delete mode 100644 js/jquery.js delete mode 100644 js/jquery.lazyload.min.js delete mode 100644 js/manifest.json?v=697oma3x8q delete mode 100644 js/resourceconfigbootstrapbootstrap.min-cachekey1567.js delete mode 100644 js/resourceconfigjqueryjquery-1.11.2.min-cachekey3986.js delete mode 100644 js/resourcesenado.jqueryjquery-cachekey5865.js delete mode 100644 js/resourcestaticjscalendario-cachekey4269.js delete mode 100644 js/resourcestaticjsphoto-gallery-cachekey3318.js delete mode 100644 js/root_index.js delete mode 100644 js/sanfona.js delete mode 100644 js/tabs.js delete mode 100644 js/youtubeEvents.js delete mode 100644 lang/en/theme_ilb.php delete mode 100644 layout/frontpage_ilb.php delete mode 100644 layout/login_nova_conta.php delete mode 100644 pix/Cursos-on-line-sem-tutor.png delete mode 100644 pix/Cursos-on-line-sem-tutor_BACKUP_25256.png delete mode 100644 pix/Cursos-on-line-sem-tutor_BASE_25256.png delete mode 100644 pix/Cursos-on-line-sem-tutor_LOCAL_25256.png delete mode 100644 pix/Cursos-on-line-sem-tutor_REMOTE_25256.png delete mode 100644 pix/Cursos-on-line.png delete mode 100644 pix/aviso_saberes_offline.png delete mode 100644 pix/conheca-senado.png delete mode 100644 pix/formacao_interna.png delete mode 100644 pix/fundo-c.png delete mode 100644 pix/hand.png delete mode 100644 pix/icon_ContatoEmail-azul.png delete mode 100644 pix/icon_ContatoFone-azul.png delete mode 100644 pix/logo_saberes_xl.png delete mode 100644 pix/matricula_aberta.png delete mode 100644 pix/matricula_aberta_verde.png delete mode 100644 pix/matricula_encerrada.png delete mode 100644 pix/matricula_encerrada_vermelho.png delete mode 100644 pix/oficinas-interlegis.png delete mode 100644 pix/pos-graduacao.png delete mode 100644 pix/projetos_especiais.png delete mode 100644 pix/screenshot.png delete mode 100644 pix/smarts/bg_atencao_9bl_curso.png delete mode 100644 pix/smarts/bg_atencao_9br_curso.png delete mode 100644 pix/smarts/bg_atencao_9l_curso.png delete mode 100644 pix/smarts/bg_atencao_9meio_curso.png delete mode 100644 pix/smarts/bg_atencao_9r_curso.png delete mode 100644 pix/smarts/bg_atencao_9tl_curso.png delete mode 100644 pix/smarts/bg_atencao_9tr_curso.png delete mode 100644 pix/smarts/bg_atividade_9bl_curso.png delete mode 100644 pix/smarts/bg_atividade_9br_curso.png delete mode 100644 pix/smarts/bg_atividade_9l_curso.png delete mode 100644 pix/smarts/bg_atividade_9meio_curso.png delete mode 100644 pix/smarts/bg_atividade_9r_curso.png delete mode 100644 pix/smarts/bg_atividade_9tl_curso.png delete mode 100644 pix/smarts/bg_atividade_9tr_curso.png delete mode 100644 pix/smarts/bg_conceito_9bl_curso.png delete mode 100644 pix/smarts/bg_conceito_9br_curso.png delete mode 100644 pix/smarts/bg_conceito_9l_curso.png delete mode 100644 pix/smarts/bg_conceito_9meio_curso.png delete mode 100644 pix/smarts/bg_conceito_9r_curso.png delete mode 100644 pix/smarts/bg_conceito_9tl_curso.png delete mode 100644 pix/smarts/bg_conceito_9tr_curso.png delete mode 100644 pix/smarts/bg_curiosidade_9bl_curso.png delete mode 100644 pix/smarts/bg_curiosidade_9br_curso.png delete mode 100644 pix/smarts/bg_curiosidade_9l_curso.png delete mode 100644 pix/smarts/bg_curiosidade_9meio_curso.png delete mode 100644 pix/smarts/bg_curiosidade_9r_curso.png delete mode 100644 pix/smarts/bg_curiosidade_9tl_curso.png delete mode 100644 pix/smarts/bg_curiosidade_9tr_curso.png delete mode 100644 pix/smarts/bg_dica_9bl_curso.png delete mode 100644 pix/smarts/bg_dica_9br_curso.png delete mode 100644 pix/smarts/bg_dica_9l_curso.png delete mode 100644 pix/smarts/bg_dica_9meio_curso.png delete mode 100644 pix/smarts/bg_dica_9r_curso.png delete mode 100644 pix/smarts/bg_dica_9tl_curso.png delete mode 100644 pix/smarts/bg_dica_9tr_curso.png delete mode 100644 pix/smarts/bg_importante_9bl_curso.png delete mode 100644 pix/smarts/bg_importante_9br_curso.png delete mode 100644 pix/smarts/bg_importante_9l_curso.png delete mode 100644 pix/smarts/bg_importante_9meio_curso.png delete mode 100644 pix/smarts/bg_importante_9r_curso.png delete mode 100644 pix/smarts/bg_importante_9tl_curso.png delete mode 100644 pix/smarts/bg_importante_9tr_curso.png delete mode 100644 pix/smarts/bg_legislacao_9bl_curso.png delete mode 100644 pix/smarts/bg_legislacao_9br_curso.png delete mode 100644 pix/smarts/bg_legislacao_9l_curso.png delete mode 100644 pix/smarts/bg_legislacao_9meio_curso.png delete mode 100644 pix/smarts/bg_legislacao_9r_curso.png delete mode 100644 pix/smarts/bg_legislacao_9tl_curso.png delete mode 100644 pix/smarts/bg_legislacao_9tr_curso.png delete mode 100644 pix/smarts/bg_legislacao_header_curso2.png delete mode 100644 pix/smarts/bg_leia_mais_9bl_curso.png delete mode 100644 pix/smarts/bg_leia_mais_9br_curso.png delete mode 100644 pix/smarts/bg_leia_mais_9l_curso.png delete mode 100644 pix/smarts/bg_leia_mais_9meio_curso.png delete mode 100644 pix/smarts/bg_leia_mais_9r_curso.png delete mode 100644 pix/smarts/bg_leia_mais_9tl_curso.png delete mode 100644 pix/smarts/bg_leia_mais_9tr_curso.png delete mode 100644 pix/smarts/bg_lembrete_9bl_curso.png delete mode 100644 pix/smarts/bg_lembrete_9br_curso.png delete mode 100644 pix/smarts/bg_lembrete_9l_curso.png delete mode 100644 pix/smarts/bg_lembrete_9meio_curso.png delete mode 100644 pix/smarts/bg_lembrete_9r_curso.png delete mode 100644 pix/smarts/bg_lembrete_9tl_curso.png delete mode 100644 pix/smarts/bg_lembrete_9tr_curso.png delete mode 100644 pix/smarts/bg_link_9bl_curso.png delete mode 100644 pix/smarts/bg_link_9br_curso.png delete mode 100644 pix/smarts/bg_link_9l_curso.png delete mode 100644 pix/smarts/bg_link_9meio_curso.png delete mode 100644 pix/smarts/bg_link_9r_curso.png delete mode 100644 pix/smarts/bg_link_9tl_curso.png delete mode 100644 pix/smarts/bg_link_9tr_curso.png delete mode 100644 pix/smarts/bg_objetivos_9bl_curso.png delete mode 100644 pix/smarts/bg_objetivos_9br_curso.png delete mode 100644 pix/smarts/bg_objetivos_9l_curso.png delete mode 100644 pix/smarts/bg_objetivos_9meio_curso.png delete mode 100644 pix/smarts/bg_objetivos_9r_curso.png delete mode 100644 pix/smarts/bg_objetivos_9tl_curso.png delete mode 100644 pix/smarts/bg_objetivos_9tr_curso.png delete mode 100644 pix/smarts/bg_observacao_9bl_curso.png delete mode 100644 pix/smarts/bg_observacao_9br_curso.png delete mode 100644 pix/smarts/bg_observacao_9l_curso.png delete mode 100644 pix/smarts/bg_observacao_9meio_curso.png delete mode 100644 pix/smarts/bg_observacao_9r_curso.png delete mode 100644 pix/smarts/bg_observacao_9tl_curso.png delete mode 100644 pix/smarts/bg_observacao_9tr_curso.png delete mode 100644 pix/smarts/bg_para_refletir _9bl_curso.png delete mode 100644 pix/smarts/bg_para_refletir_9br_curso.png delete mode 100644 pix/smarts/bg_para_refletir_9l_curso.png delete mode 100644 pix/smarts/bg_para_refletir_9meio_curso.png delete mode 100644 pix/smarts/bg_para_refletir_9r_curso.png delete mode 100644 pix/smarts/bg_para_refletir_9tl_curso.png delete mode 100644 pix/smarts/bg_para_refletir_9tr_curso.png delete mode 100644 pix/smarts/bg_pergunta_9bl_curso.png delete mode 100644 pix/smarts/bg_pergunta_9br_curso.png delete mode 100644 pix/smarts/bg_pergunta_9l_curso.png delete mode 100644 pix/smarts/bg_pergunta_9meio_curso.png delete mode 100644 pix/smarts/bg_pergunta_9r_curso.png delete mode 100644 pix/smarts/bg_pergunta_9tl_curso.png delete mode 100644 pix/smarts/bg_pergunta_9tr_curso.png delete mode 100644 pix/smarts/bg_refletindo_9bl_curso.png delete mode 100644 pix/smarts/bg_refletindo_9br_curso.png delete mode 100644 pix/smarts/bg_refletindo_9l_curso.png delete mode 100644 pix/smarts/bg_refletindo_9meio_curso.png delete mode 100644 pix/smarts/bg_refletindo_9r_curso.png delete mode 100644 pix/smarts/bg_refletindo_9tl_curso.png delete mode 100644 pix/smarts/bg_refletindo_9tr_curso.png delete mode 100644 pix/smarts/bg_saiba_mais2_9bl_curso.png delete mode 100644 pix/smarts/bg_saiba_mais2_9br_curso.png delete mode 100644 pix/smarts/bg_saiba_mais2_9l_curso.png delete mode 100644 pix/smarts/bg_saiba_mais2_9meio_curso.png delete mode 100644 pix/smarts/bg_saiba_mais2_9r_curso.png delete mode 100644 pix/smarts/bg_saiba_mais2_9tl_curso.png delete mode 100644 pix/smarts/bg_saiba_mais2_9tr_curso.png delete mode 100644 pix/smarts/bg_saiba_mais_9bl_curso.png delete mode 100644 pix/smarts/bg_saiba_mais_9br_curso.png delete mode 100644 pix/smarts/bg_saiba_mais_9l_curso.png delete mode 100644 pix/smarts/bg_saiba_mais_9meio_curso.png delete mode 100644 pix/smarts/bg_saiba_mais_9r_curso.png delete mode 100644 pix/smarts/bg_saiba_mais_9tl_curso.png delete mode 100644 pix/smarts/bg_saiba_mais_9tr_curso.png delete mode 100644 pix/smarts/bg_saiba_mais_fechado2.png delete mode 100644 pix/smarts/bg_saiba_mais_header2_curso.png delete mode 100644 pix/video-aula.png delete mode 100644 scss/bootstrap/LICENSE delete mode 100644 scss/bootstrap/_animation.scss delete mode 100644 scss/bootstrap/_custom.scss delete mode 100644 scss/bootstrap/_normalize.scss delete mode 100644 scss/bootstrap/_responsive-embed.scss delete mode 100644 scss/bootstrap/_tags.scss delete mode 100644 scss/bootstrap/bootstrap-flex.scss delete mode 100644 scss/bootstrap/mixins/_cards.scss delete mode 100644 scss/bootstrap/mixins/_navbar-align.scss delete mode 100644 scss/bootstrap/mixins/_progress.scss delete mode 100644 scss/bootstrap/mixins/_pulls.scss delete mode 100644 scss/bootstrap/mixins/_reset-filter.scss delete mode 100644 scss/bootstrap/mixins/_tab-focus.scss delete mode 100644 scss/bootstrap/mixins/_tag.scss delete mode 100644 scss/bootstrap/utilities/_pulls.scss delete mode 100644 scss/fontawesome/moodle-path.scss delete mode 100644 scss/moodle/bs2-compat.scss delete mode 100644 scss/moodle/responsive-tabs.scss delete mode 100644 style/at-cachekey3076.kss delete mode 100644 style/base-cachekey1556.css delete mode 100644 style/basic.css delete mode 100644 style/collapse-image.css delete mode 100644 style/icons/agenciaweb_36ab2.ttf delete mode 100644 style/icons/agenciaweb_3fc37.svg delete mode 100644 style/icons/agenciaweb_6a387.woff delete mode 100644 style/icons/agenciaweb_a6777.eot delete mode 100644 style/icons/glyphicons-halflings-regular_448c3.woff2 delete mode 100644 style/icons/glyphicons-halflings-regular_89889.svg delete mode 100644 style/icons/glyphicons-halflings-regular_e18bb.ttf delete mode 100644 style/icons/glyphicons-halflings-regular_f4769.eot delete mode 100644 style/icons/glyphicons-halflings-regular_fa277.woff delete mode 100644 style/ploneCustom-cachekey2573.css delete mode 100644 style/resourceconfigcssbasic-cachekey3600.css delete mode 100644 style/resourceplone.app.jquerytools.dateinput-cachekey2007.css delete mode 100644 style/resourceplone.app.jquerytools.overlays-cachekey3027.css delete mode 100644 style/resourceplone.formwidget.autocompletejquery.autocomplete-cachekey1913.css delete mode 100644 style/resourceplone.formwidget.autocompletejquery.autocomplete.min-cachekey6312.js delete mode 100644 style/resourcestaticcssescola-de-governo-cachekey3115.css delete mode 100644 style/resourcestaticcsshome-cachekey0155.css delete mode 100644 style/resourcestaticcssplone_fixes_senado-cachekey4482.css delete mode 100644 style/sanfona.css delete mode 100644 style/tabs.css delete mode 100644 style/tema_1.css delete mode 100644 style/thin.css delete mode 100644 templates/block_search_forums/search_form.mustache delete mode 100644 templates/block_settings/search_form.mustache delete mode 100644 templates/core/action_menu.mustache delete mode 100644 templates/core/action_menu_item.mustache delete mode 100644 templates/core/action_menu_link.mustache delete mode 100644 templates/core/action_menu_trigger.mustache delete mode 100644 templates/core/auth_digital_minor_page.mustache delete mode 100644 templates/core/auth_verify_age_location_page.mustache delete mode 100644 templates/core/availability_info.mustache delete mode 100644 templates/core/block.mustache delete mode 100644 templates/core/chooser.mustache delete mode 100644 templates/core/columns-1to1to1.mustache delete mode 100644 templates/core/columns-1to2.mustache delete mode 100644 templates/core/columns-2to1.mustache delete mode 100644 templates/core/custom_menu_item.mustache delete mode 100644 templates/core/dataformat_selector.mustache delete mode 100644 templates/core/filemanager_confirmdialog.mustache delete mode 100644 templates/core/filemanager_default_searchform.mustache delete mode 100644 templates/core/filemanager_fileselect.mustache delete mode 100644 templates/core/filemanager_loginform.mustache delete mode 100644 templates/core/filemanager_modal_generallayout.mustache delete mode 100644 templates/core/filemanager_page_generallayout.mustache delete mode 100644 templates/core/filemanager_processexistingfile.mustache delete mode 100644 templates/core/filemanager_processexistingfilemultiple.mustache delete mode 100644 templates/core/filemanager_selectlayout.mustache delete mode 100644 templates/core/filemanager_uploadform.mustache delete mode 100644 templates/core/form_autocomplete_input.mustache delete mode 100644 templates/core/form_autocomplete_selection.mustache delete mode 100644 templates/core/help_icon.mustache delete mode 100644 templates/core/loginform.mustache delete mode 100644 templates/core/modal.mustache delete mode 100644 templates/core/modal_backdrop.mustache delete mode 100644 templates/core/navbar.mustache delete mode 100644 templates/core/notification_error.mustache delete mode 100644 templates/core/notification_info.mustache delete mode 100644 templates/core/notification_success.mustache delete mode 100644 templates/core/notification_warning.mustache delete mode 100644 templates/core/paging_bar.mustache delete mode 100644 templates/core/preferences_groups.mustache delete mode 100644 templates/core/progress_bar.mustache delete mode 100644 templates/core/select_time.mustache delete mode 100644 templates/core/settings_link_page.mustache delete mode 100644 templates/core/settings_link_page_single.mustache delete mode 100644 templates/core/signup_form_layout.mustache delete mode 100644 templates/core/single_button.mustache delete mode 100644 templates/core/skip_links.mustache delete mode 100644 templates/core/tabtree.mustache delete mode 100644 templates/core_admin/setting.mustache delete mode 100644 templates/core_admin/setting_configcolourpicker.mustache delete mode 100644 templates/core_admin/setting_configduration.mustache delete mode 100644 templates/core_admin/setting_configfile.mustache delete mode 100644 templates/core_admin/setting_configmultiselect.mustache delete mode 100644 templates/core_admin/setting_configmultiselect_optgroup.mustache delete mode 100644 templates/core_admin/setting_configselect.mustache delete mode 100644 templates/core_admin/setting_configselect_optgroup.mustache delete mode 100644 templates/core_admin/setting_configtext.mustache delete mode 100644 templates/core_admin/setting_configtextarea.mustache delete mode 100644 templates/core_admin/setting_configtime.mustache delete mode 100644 templates/core_admin/setting_courselist_frontpage.mustache delete mode 100644 templates/core_admin/setting_devicedetectregex.mustache delete mode 100644 templates/core_admin/setting_emoticons.mustache delete mode 100644 templates/core_admin/setting_gradecat_combo.mustache delete mode 100644 templates/core_admin/settings.mustache delete mode 100644 templates/core_admin/settings_search_results.mustache delete mode 100644 templates/core_calendar/minicalendar_day_link.mustache delete mode 100644 templates/core_form/editor_textarea.mustache delete mode 100644 templates/core_form/element-advcheckbox-inline.mustache delete mode 100644 templates/core_form/element-advcheckbox.mustache delete mode 100644 templates/core_form/element-autocomplete-inline.mustache delete mode 100644 templates/core_form/element-autocomplete.mustache delete mode 100644 templates/core_form/element-button-inline.mustache delete mode 100644 templates/core_form/element-button.mustache delete mode 100644 templates/core_form/element-checkbox-inline.mustache delete mode 100644 templates/core_form/element-checkbox.mustache delete mode 100644 templates/core_form/element-date_selector-inline.mustache delete mode 100644 templates/core_form/element-date_selector.mustache delete mode 100644 templates/core_form/element-date_time_selector-inline.mustache delete mode 100644 templates/core_form/element-date_time_selector.mustache delete mode 100644 templates/core_form/element-defaultcustom-inline.mustache delete mode 100644 templates/core_form/element-defaultcustom.mustache delete mode 100644 templates/core_form/element-duration-inline.mustache delete mode 100644 templates/core_form/element-duration.mustache delete mode 100644 templates/core_form/element-editor.mustache delete mode 100644 templates/core_form/element-filemanager.mustache delete mode 100644 templates/core_form/element-filepicker.mustache delete mode 100644 templates/core_form/element-filetypes.mustache delete mode 100644 templates/core_form/element-grading.mustache delete mode 100644 templates/core_form/element-group-inline.mustache delete mode 100644 templates/core_form/element-group.mustache delete mode 100644 templates/core_form/element-modgrade.mustache delete mode 100644 templates/core_form/element-modvisible.mustache delete mode 100644 templates/core_form/element-password.mustache delete mode 100644 templates/core_form/element-passwordunmask.mustache delete mode 100644 templates/core_form/element-questioncategory-inline.mustache delete mode 100644 templates/core_form/element-questioncategory.mustache delete mode 100644 templates/core_form/element-radio-inline.mustache delete mode 100644 templates/core_form/element-radio.mustache delete mode 100644 templates/core_form/element-recaptcha.mustache delete mode 100644 templates/core_form/element-select-inline.mustache delete mode 100644 templates/core_form/element-select.mustache delete mode 100644 templates/core_form/element-selectgroups-inline.mustache delete mode 100644 templates/core_form/element-selectgroups.mustache delete mode 100644 templates/core_form/element-selectwithlink.mustache delete mode 100644 templates/core_form/element-selectyesno-inline.mustache delete mode 100644 templates/core_form/element-selectyesno.mustache delete mode 100644 templates/core_form/element-static.mustache delete mode 100644 templates/core_form/element-submit-inline.mustache delete mode 100644 templates/core_form/element-submit.mustache delete mode 100644 templates/core_form/element-tags-inline.mustache delete mode 100644 templates/core_form/element-tags.mustache delete mode 100644 templates/core_form/element-template-inline.mustache delete mode 100644 templates/core_form/element-template.mustache delete mode 100644 templates/core_form/element-text-inline.mustache delete mode 100644 templates/core_form/element-text.mustache delete mode 100644 templates/core_form/element-textarea.mustache delete mode 100644 templates/core_form/element-url.mustache delete mode 100644 templates/core_form/element-warning.mustache delete mode 100644 templates/core_form/element-wikieditor.mustache delete mode 100644 templates/core_grades/edit_tree.mustache delete mode 100644 templates/core_grades/weight_field.mustache delete mode 100644 templates/core_grades/weight_override_field.mustache delete mode 100644 templates/course_search_form.mustache delete mode 100644 templates/footerSimples.mustache delete mode 100644 templates/frontpage_ilb.mustache delete mode 100644 templates/frontpage_ilblogado.mustache delete mode 100644 templates/gradereport_history/user_button.mustache delete mode 100644 templates/gradereport_singleview/bulk_insert.mustache delete mode 100644 templates/gradereport_singleview/button.mustache delete mode 100644 templates/gradereport_singleview/dropdown_attribute.mustache delete mode 100644 templates/gradereport_singleview/text_attribute.mustache delete mode 100644 templates/gradingform_guide/comment_chooser.mustache delete mode 100644 templates/head2.mustache delete mode 100644 templates/header-secure.mustache delete mode 100644 templates/header.mustache delete mode 100644 templates/headerLogado.mustache delete mode 100644 templates/mod_assign/grading_actions.mustache delete mode 100644 templates/mod_assign/grading_navigation.mustache delete mode 100644 templates/mod_assign/grading_navigation_user_selector.mustache delete mode 100644 templates/mod_forum/big_search_form.mustache delete mode 100644 templates/mod_forum/quick_search_form.mustache delete mode 100644 templates/tool_lp/progress_bar.mustache delete mode 100644 templates/tool_usertours/tourstep.mustache diff --git a/classes/autoprefixer.php b/classes/autoprefixer.php index 59f1989..9353d2a 100644 --- a/classes/autoprefixer.php +++ b/classes/autoprefixer.php @@ -104,6 +104,8 @@ class autoprefixer { * @param Document $tree The CSS tree. */ public function __construct(Document $tree) { + debugging('theme_boost\autoprefixer() is deprecated. Required prefixes for Bootstrap ' . + 'are now in theme/boost/scss/moodle/prefixes.scss', DEBUG_DEVELOPER); $this->tree = $tree; $pseudos = array_map(function($pseudo) { diff --git a/classes/output/block_settings_renderer.php b/classes/output/block_settings_renderer.php deleted file mode 100644 index 17554f0..0000000 --- a/classes/output/block_settings_renderer.php +++ /dev/null @@ -1,50 +0,0 @@ -. - -/** - * Overriden block settings renderer. - * - * @package theme_boost - * @copyright 2016 Frédéric Massart - FMCorz.net - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ - -namespace theme_boost\output; -defined('MOODLE_INTERNAL') || die(); - -require_once($CFG->dirroot . '/blocks/settings/renderer.php'); - -use moodle_url; - -/** - * Overriden block settings renderer. - * - * @package theme_boost - * @copyright 2016 Frédéric Massart - FMCorz.net - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ -class block_settings_renderer extends \block_settings_renderer { - - public function search_form(moodle_url $formtarget, $searchvalue) { - $data = [ - 'action' => $formtarget->out(false), - 'label' => get_string('searchinsettings', 'admin'), - 'searchvalue' => $searchvalue - ]; - return $this->render_from_template('block_settings/search_form', $data); - } - -} diff --git a/classes/output/core/admin_renderer.php b/classes/output/core/admin_renderer.php deleted file mode 100644 index 685cc2b..0000000 --- a/classes/output/core/admin_renderer.php +++ /dev/null @@ -1,52 +0,0 @@ -. - -/** - * Admin renderer. - * - * @package theme_noanme - * @copyright 2016 Frédéric Massart - FMCorz.net - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ - -namespace theme_boost\output\core; -defined('MOODLE_INTERNAL') || die(); - -use moodle_url; - -require_once($CFG->dirroot . '/' . $CFG->admin . '/renderer.php'); - -/** - * Admin renderer class. - * - * @package theme_noanme - * @copyright 2016 Frédéric Massart - FMCorz.net - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ -class admin_renderer extends \core_admin_renderer { - - /** - * Output a warning message. - * - * @param string $message the message to display. - * @param string $type type class - * @return string HTML to output. - */ - protected function warning($message, $type = 'warning') { - return $this->box($message, 'generalbox m-b-1 admin' . $type); - } - -} diff --git a/classes/output/core/course_renderer.php b/classes/output/core/course_renderer.php deleted file mode 100644 index bf433b3..0000000 --- a/classes/output/core/course_renderer.php +++ /dev/null @@ -1,81 +0,0 @@ -. - -/** - * Course renderer. - * - * @package theme_noanme - * @copyright 2016 Frédéric Massart - FMCorz.net - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ - -namespace theme_boost\output\core; -defined('MOODLE_INTERNAL') || die(); - -use moodle_url; - -require_once($CFG->dirroot . '/course/renderer.php'); - -/** - * Course renderer class. - * - * @package theme_noanme - * @copyright 2016 Frédéric Massart - FMCorz.net - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ -class course_renderer extends \core_course_renderer { - - /** - * Renders html to display a course search form. - * - * @param string $value default value to populate the search field - * @param string $format display format - 'plain' (default), 'short' or 'navbar' - * @return string - */ - public function course_search_form($value = '', $format = 'plain') { - static $count = 0; - $formid = 'coursesearch'; - if ((++$count) > 1) { - $formid .= $count; - } - - switch ($format) { - case 'navbar' : - $formid = 'coursesearchnavbar'; - $inputid = 'navsearchbox'; - $inputsize = 20; - break; - case 'short' : - $inputid = 'shortsearchbox'; - $inputsize = 12; - break; - default : - $inputid = 'coursesearchbox'; - $inputsize = 30; - } - - $data = (object) [ - 'searchurl' => (new moodle_url('/course/search.php'))->out(false), - 'id' => $formid, - 'inputid' => $inputid, - 'inputsize' => $inputsize, - 'value' => $value - ]; - - return $this->render_from_template('theme_boost/course_search_form', $data); - } - -} diff --git a/classes/output/core/files_renderer.php b/classes/output/core/files_renderer.php deleted file mode 100644 index 66d2e82..0000000 --- a/classes/output/core/files_renderer.php +++ /dev/null @@ -1,140 +0,0 @@ -. - -namespace theme_boost\output\core; - -use plugin_renderer_base; - -defined('MOODLE_INTERNAL') || die(); - -require_once($CFG->dirroot . '/files/renderer.php'); - -/** - * Rendering of files viewer related widgets. - * @package theme_boost - * @copyright 2016 Damyon Wiese - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ - -/** - * Rendering of files viewer related widgets. - * @package theme_boost - * @copyright 2016 Damyon Wiese - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ -class files_renderer extends \core_files_renderer { - /** - * FileManager JS template for window with file information/actions. - * - */ - protected function fm_js_template_fileselectlayout() { - $context = [ - 'helpicon' => $this->help_icon('setmainfile', 'repository') - ]; - return $this->render_from_template('core/filemanager_fileselect', $context); - } - - /** - * FileManager JS template for popup confirm dialogue window. - * - * @return string - */ - protected function fm_js_template_confirmdialog() { - return $this->render_from_template('core/filemanager_confirmdialog', []); - } - - /** - * Template for FilePicker with general layout (not QuickUpload). - * - * - * @return string - */ - protected function fp_js_template_generallayout() { - return $this->render_from_template('core/filemanager_modal_generallayout', []); - } - - /** - * Returns html for displaying one file manager - * - * @param form_filemanager $fm - * @return string - */ - protected function fm_print_generallayout($fm) { - $context = [ - 'client_id' => $fm->options->client_id, - 'helpicon' => $this->help_icon('setmainfile', 'repository'), - 'restrictions' => $this->fm_print_restrictions($fm) - ]; - return $this->render_from_template('core/filemanager_page_generallayout', $context); - } - - /** - * Returns HTML for default repository searchform to be passed to Filepicker - * - * This will be used as contents for search form defined in generallayout template - * (form with id {TOOLSEARCHID}). - * Default contents is one text input field with name="s" - */ - public function repository_default_searchform() { - return $this->render_from_template('core/filemanager_default_searchform', []); - } - - /** - * FilePicker JS template for 'Upload file' repository - * - * @return string - */ - protected function fp_js_template_uploadform() { - return $this->render_from_template('core/filemanager_uploadform', []); - } - - /** - * FilePicker JS template for repository login form including templates for each element type - * - * @return string - */ - protected function fp_js_template_loginform() { - return $this->render_from_template('core/filemanager_loginform', []); - } - - /** - * FilePicker JS template for window appearing to select a file. - * - * @return string - */ - protected function fp_js_template_selectlayout() { - return $this->render_from_template('core/filemanager_selectlayout', []); - } - - /** - * FilePicker JS template for popup dialogue window asking for action when file with the same name already exists - * (multiple-file version). - * - * @return string - */ - protected function fp_js_template_processexistingfilemultiple() { - return $this->render_from_template('core/filemanager_processexistingfilemultiple', []); - } - - /** - * FilePicker JS template for popup dialogue window asking for action when file with the same name already exists. - * - * @return string - */ - protected function fp_js_template_processexistingfile() { - return $this->render_from_template('core/filemanager_processexistingfile', []); - } -} diff --git a/classes/output/core_question/bank_renderer.php b/classes/output/core_question/bank_renderer.php deleted file mode 100644 index 8f4962a..0000000 --- a/classes/output/core_question/bank_renderer.php +++ /dev/null @@ -1,58 +0,0 @@ -. - -/** - * Question renderer. - * - * @package theme_boost - * @copyright 2017 onwards Ankit Agarwal - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ - -namespace theme_boost\output\core_question; -defined('MOODLE_INTERNAL') || die(); - -require_once($CFG->dirroot . '/' . $CFG->admin . '/renderer.php'); - -/** - * Question renderer class. - * - * @package theme_boost - * @copyright 2017 onwards Ankit Agarwal - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ -class bank_renderer extends \core_question_bank_renderer { - - /** - * Display additional navigation if needed. - * - * @return string - */ - public function extra_horizontal_navigation() { - // Horizontal navigation for question bank. - if ($questionnode = $this->page->settingsnav->find("questionbank", \navigation_node::TYPE_CONTAINER)) { - if ($children = $questionnode->children) { - $tabs = []; - foreach ($children as $key => $node) { - $tabs[] = new \tabobject($node->key, $node->action, $node->text); - } - $active = $questionnode->find_active_node()->key; - return \html_writer::div(print_tabs([$tabs], $active, null, null, true), 'questionbank-navigation'); - } - } - return ''; - } -} diff --git a/classes/output/core_renderer.php b/classes/output/core_renderer.php index 27a5514..05c2ef8 100644 --- a/classes/output/core_renderer.php +++ b/classes/output/core_renderer.php @@ -16,24 +16,7 @@ namespace theme_boost\output; -use coding_exception; -use html_writer; -use tabobject; -use tabtree; -use custom_menu_item; -use custom_menu; -use block_contents; -use navigation_node; -use action_link; -use stdClass; use moodle_url; -use preferences_groups; -use action_menu; -use help_icon; -use single_button; -use paging_bar; -use context_course; -use pix_icon; defined('MOODLE_INTERNAL') || die; @@ -44,673 +27,19 @@ defined('MOODLE_INTERNAL') || die; * @copyright 2012 Bas Brands, www.basbrands.nl * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ - class core_renderer extends \core_renderer { - /** @var custom_menu_item language The language menu if created */ - protected $language = null; - - /** - * Outputs the opening section of a box. - * - * @param string $classes A space-separated list of CSS classes - * @param string $id An optional ID - * @param array $attributes An array of other attributes to give the box. - * @return string the HTML to output. - */ - public function box_start($classes = 'generalbox', $id = null, $attributes = array()) { - if (is_array($classes)) { - $classes = implode(' ', $classes); - } - return parent::box_start($classes . ' p-y-1', $id, $attributes); - } - - /** - * Wrapper for header elements. - * - * @return string HTML to display the main header. - */ - public function full_header() { - global $PAGE; - - $html = html_writer::start_tag('header', array('id' => 'page-header', 'class' => 'row')); - $html .= html_writer::start_div('col-xs-12 p-a-1'); - $html .= html_writer::start_div('card'); - $html .= html_writer::start_div('card-block'); - $html .= html_writer::div($this->context_header_settings_menu(), 'pull-xs-right context-header-settings-menu'); - $html .= html_writer::start_div('pull-xs-left'); - $html .= $this->context_header(); - $html .= html_writer::end_div(); - $pageheadingbutton = $this->page_heading_button(); - if (empty($PAGE->layout_options['nonavbar'])) { - $html .= html_writer::start_div('clearfix w-100 pull-xs-left', array('id' => 'page-navbar')); - $html .= html_writer::tag('div', $this->navbar(), array('class' => 'breadcrumb-nav')); - $html .= html_writer::div($pageheadingbutton, 'breadcrumb-button pull-xs-right'); - $html .= html_writer::end_div(); - } else if ($pageheadingbutton) { - $html .= html_writer::div($pageheadingbutton, 'breadcrumb-button nonavbar pull-xs-right'); - } - $html .= html_writer::tag('div', $this->course_header(), array('id' => 'course-header')); - $html .= html_writer::end_div(); - $html .= html_writer::end_div(); - $html .= html_writer::end_div(); - $html .= html_writer::end_tag('header'); - return $html; - } - - /** - * The standard tags that should be included in the tag - * including a meta description for the front page - * - * @return string HTML fragment. - */ - public function standard_head_html() { - global $SITE, $PAGE; - - $output = parent::standard_head_html(); - if ($PAGE->pagelayout == 'frontpage') { - $summary = s(strip_tags(format_text($SITE->summary, FORMAT_HTML))); - if (!empty($summary)) { - $output .= "\n"; - } - } - - return $output; - } - - /* - * This renders the navbar. - * Uses bootstrap compatible html. - */ - public function navbar() { - return $this->render_from_template('core/navbar', $this->page->navbar); - } - - /** - * We don't like these... - * - */ public function edit_button(moodle_url $url) { - return ''; - } - - /** - * Override to inject the logo. - * - * @param array $headerinfo The header info. - * @param int $headinglevel What level the 'h' tag will be. - * @return string HTML for the header bar. - */ - public function context_header($headerinfo = null, $headinglevel = 1) { - global $SITE; - - if ($this->should_display_main_logo($headinglevel)) { - $sitename = format_string($SITE->fullname, true, array('context' => context_course::instance(SITEID))); - return html_writer::div(html_writer::empty_tag('img', [ - 'src' => $this->get_logo_url(null, 150), 'alt' => $sitename]), 'logo'); - } - - return parent::context_header($headerinfo, $headinglevel); - } - - /** - * Get the compact logo URL. - * - * @return string - */ - public function get_compact_logo_url($maxwidth = 100, $maxheight = 100) { - return parent::get_compact_logo_url(null, 70); - } - - /** - * Whether we should display the main logo. - * - * @return bool - */ - public function should_display_main_logo($headinglevel = 1) { - global $PAGE; - - // Only render the logo if we're on the front page or login page and the we have a logo. - $logo = $this->get_logo_url(); - if ($headinglevel == 1 && !empty($logo)) { - if ($PAGE->pagelayout == 'frontpage' || $PAGE->pagelayout == 'login') { - return true; - } - } - - return false; - } - /** - * Whether we should display the logo in the navbar. - * - * We will when there are no main logos, and we have compact logo. - * - * @return bool - */ - public function should_display_navbar_logo() { - $logo = $this->get_compact_logo_url(); - return !empty($logo) && !$this->should_display_main_logo(); - } - - /* - * Overriding the custom_menu function ensures the custom menu is - * always shown, even if no menu items are configured in the global - * theme settings page. - */ - public function custom_menu($custommenuitems = '') { - global $CFG; - - if (empty($custommenuitems) && !empty($CFG->custommenuitems)) { - $custommenuitems = $CFG->custommenuitems; - } - $custommenu = new custom_menu($custommenuitems, current_language()); - return $this->render_custom_menu($custommenu); - } - - /** - * We want to show the custom menus as a list of links in the footer on small screens. - * Just return the menu object exported so we can render it differently. - */ - public function custom_menu_flat() { - global $CFG; - $custommenuitems = ''; - - if (empty($custommenuitems) && !empty($CFG->custommenuitems)) { - $custommenuitems = $CFG->custommenuitems; - } - $custommenu = new custom_menu($custommenuitems, current_language()); - $langs = get_string_manager()->get_list_of_translations(); - $haslangmenu = $this->lang_menu() != ''; - - if ($haslangmenu) { - $strlang = get_string('language'); - $currentlang = current_language(); - if (isset($langs[$currentlang])) { - $currentlang = $langs[$currentlang]; - } else { - $currentlang = $strlang; - } - $this->language = $custommenu->add($currentlang, new moodle_url('#'), $strlang, 10000); - foreach ($langs as $langtype => $langname) { - $this->language->add($langname, new moodle_url($this->page->url, array('lang' => $langtype)), $langname); - } - } - - return $custommenu->export_for_template($this); - } - - /* - * This renders the bootstrap top menu. - * - * This renderer is needed to enable the Bootstrap style navigation. - */ - protected function render_custom_menu(custom_menu $menu) { - global $CFG; - - $langs = get_string_manager()->get_list_of_translations(); - $haslangmenu = $this->lang_menu() != ''; - - if (!$menu->has_children() && !$haslangmenu) { - return ''; - } - - if ($haslangmenu) { - $strlang = get_string('language'); - $currentlang = current_language(); - if (isset($langs[$currentlang])) { - $currentlang = $langs[$currentlang]; - } else { - $currentlang = $strlang; - } - $this->language = $menu->add($currentlang, new moodle_url('#'), $strlang, 10000); - foreach ($langs as $langtype => $langname) { - $this->language->add($langname, new moodle_url($this->page->url, array('lang' => $langtype)), $langname); - } - } - - $content = ''; - foreach ($menu->get_children() as $item) { - $context = $item->export_for_template($this); - $content .= $this->render_from_template('core/custom_menu_item', $context); - } - - return $content; - } - - /** - * This code renders the navbar button to control the display of the custom menu - * on smaller screens. - * - * Do not display the button if the menu is empty. - * - * @return string HTML fragment - */ - public function navbar_button() { - global $CFG; - - if (empty($CFG->custommenuitems) && $this->lang_menu() == '') { - return ''; - } - - $iconbar = html_writer::tag('span', '', array('class' => 'icon-bar')); - $button = html_writer::tag('a', $iconbar . "\n" . $iconbar. "\n" . $iconbar, array( - 'class' => 'btn btn-navbar', - 'data-toggle' => 'collapse', - 'data-target' => '.nav-collapse' - )); - return $button; - } - - /** - * Renders tabtree - * - * @param tabtree $tabtree - * @return string - */ - protected function render_tabtree(tabtree $tabtree) { - if (empty($tabtree->subtree)) { - return ''; - } - $data = $tabtree->export_for_template($this); - return $this->render_from_template('core/tabtree', $data); - } - - /** - * Renders tabobject (part of tabtree) - * - * This function is called from {@link core_renderer::render_tabtree()} - * and also it calls itself when printing the $tabobject subtree recursively. - * - * @param tabobject $tabobject - * @return string HTML fragment - */ - protected function render_tabobject(tabobject $tab) { - throw new coding_exception('Tab objects should not be directly rendered.'); - } - - /** - * Prints a nice side block with an optional header. - * - * @param block_contents $bc HTML for the content - * @param string $region the region the block is appearing in. - * @return string the HTML to be output. - */ - public function block(block_contents $bc, $region) { - $bc = clone($bc); // Avoid messing up the object passed in. - if (empty($bc->blockinstanceid) || !strip_tags($bc->title)) { - $bc->collapsible = block_contents::NOT_HIDEABLE; - } - - $id = !empty($bc->attributes['id']) ? $bc->attributes['id'] : uniqid('block-'); - $context = new stdClass(); - $context->skipid = $bc->skipid; - $context->blockinstanceid = $bc->blockinstanceid; - $context->dockable = $bc->dockable; - $context->id = $id; - $context->hidden = $bc->collapsible == block_contents::HIDDEN; - $context->skiptitle = strip_tags($bc->title); - $context->showskiplink = !empty($context->skiptitle); - $context->arialabel = $bc->arialabel; - $context->ariarole = !empty($bc->attributes['role']) ? $bc->attributes['role'] : 'complementary'; - $context->type = $bc->attributes['data-block']; - $context->title = $bc->title; - $context->content = $bc->content; - $context->annotation = $bc->annotation; - $context->footer = $bc->footer; - $context->hascontrols = !empty($bc->controls); - if ($context->hascontrols) { - $context->controls = $this->block_controls($bc->controls, $id); - } - - return $this->render_from_template('core/block', $context); - } - - /** - * Returns the CSS classes to apply to the body tag. - * - * @since Moodle 2.5.1 2.6 - * @param array $additionalclasses Any additional classes to apply. - * @return string - */ - public function body_css_classes(array $additionalclasses = array()) { - return $this->page->bodyclasses . ' ' . implode(' ', $additionalclasses); - } - - /** - * Renders preferences groups. - * - * @param preferences_groups $renderable The renderable - * @return string The output. - */ - public function render_preferences_groups(preferences_groups $renderable) { - return $this->render_from_template('core/preferences_groups', $renderable); - } - - /** - * Renders an action menu component. - * - * @param action_menu $menu - * @return string HTML - */ - public function render_action_menu(action_menu $menu) { - - // We don't want the class icon there! - foreach ($menu->get_secondary_actions() as $action) { - if ($action instanceof \action_menu_link && $action->has_class('icon')) { - $action->attributes['class'] = preg_replace('/(^|\s+)icon(\s+|$)/i', '', $action->attributes['class']); - } - } - - if ($menu->is_empty()) { - return ''; - } - $context = $menu->export_for_template($this); - - return $this->render_from_template('core/action_menu', $context); - } - - /** - * Implementation of user image rendering. - * - * @param help_icon $helpicon A help icon instance - * @return string HTML fragment - */ - protected function render_help_icon(help_icon $helpicon) { - $context = $helpicon->export_for_template($this); - return $this->render_from_template('core/help_icon', $context); - } - - /** - * Renders a single button widget. - * - * This will return HTML to display a form containing a single button. - * - * @param single_button $button - * @return string HTML fragment - */ - protected function render_single_button(single_button $button) { - return $this->render_from_template('core/single_button', $button->export_for_template($this)); - } - - /** - * Renders a paging bar. - * - * @param paging_bar $pagingbar The object. - * @return string HTML - */ - protected function render_paging_bar(paging_bar $pagingbar) { - // Any more than 10 is not usable and causes wierd wrapping of the pagination in this theme. - $pagingbar->maxdisplay = 10; - return $this->render_from_template('core/paging_bar', $pagingbar->export_for_template($this)); - } - - /** - * Renders the login form. - * - * @param \core_auth\output\login $form The renderable. - * @return string - */ - public function render_login(\core_auth\output\login $form) { - global $SITE; - - $context = $form->export_for_template($this); - - // Override because rendering is not supported in template yet. - $context->cookieshelpiconformatted = $this->help_icon('cookiesenabled'); - $context->errorformatted = $this->error_text($context->error); - $url = $this->get_logo_url(); - if ($url) { - $url = $url->out(false); - } - $context->logourl = $url; - $context->sitename = format_string($SITE->fullname, true, ['context' => context_course::instance(SITEID), "escape" => false]); - - return $this->render_from_template('core/loginform', $context); - } - - /** - * Render the login signup form into a nice template for the theme. - * - * @param mform $form - * @return string - */ - public function render_login_signup_form($form) { - global $SITE; - - $context = $form->export_for_template($this); - $url = $this->get_logo_url(); - if ($url) { - $url = $url->out(false); - } - $context['logourl'] = $url; - $context['sitename'] = format_string($SITE->fullname, true, ['context' => context_course::instance(SITEID), "escape" => false]); - - return $this->render_from_template('core/signup_form_layout', $context); - } - - /** - * This is an optional menu that can be added to a layout by a theme. It contains the - * menu for the course administration, only on the course main page. - * - * @return string - */ - public function context_header_settings_menu() { - $context = $this->page->context; - $menu = new action_menu(); - - $items = $this->page->navbar->get_items(); - $currentnode = end($items); - - $showcoursemenu = false; - $showfrontpagemenu = false; - $showusermenu = false; - - // We are on the course home page. - if (($context->contextlevel == CONTEXT_COURSE) && - !empty($currentnode) && - ($currentnode->type == navigation_node::TYPE_COURSE || $currentnode->type == navigation_node::TYPE_SECTION)) { - $showcoursemenu = true; - } - - $courseformat = course_get_format($this->page->course); - // This is a single activity course format, always show the course menu on the activity main page. - if ($context->contextlevel == CONTEXT_MODULE && - !$courseformat->has_view_page()) { - - $this->page->navigation->initialise(); - $activenode = $this->page->navigation->find_active_node(); - // If the settings menu has been forced then show the menu. - if ($this->page->is_settings_menu_forced()) { - $showcoursemenu = true; - } else if (!empty($activenode) && ($activenode->type == navigation_node::TYPE_ACTIVITY || - $activenode->type == navigation_node::TYPE_RESOURCE)) { - - // We only want to show the menu on the first page of the activity. This means - // the breadcrumb has no additional nodes. - if ($currentnode && ($currentnode->key == $activenode->key && $currentnode->type == $activenode->type)) { - $showcoursemenu = true; - } - } - } - - // This is the site front page. - if ($context->contextlevel == CONTEXT_COURSE && - !empty($currentnode) && - $currentnode->key === 'home') { - $showfrontpagemenu = true; - } - - // This is the user profile page. - if ($context->contextlevel == CONTEXT_USER && - !empty($currentnode) && - ($currentnode->key === 'myprofile')) { - $showusermenu = true; - } - - - if ($showfrontpagemenu) { - $settingsnode = $this->page->settingsnav->find('frontpage', navigation_node::TYPE_SETTING); - if ($settingsnode) { - // Build an action menu based on the visible nodes from this navigation tree. - $skipped = $this->build_action_menu_from_navigation($menu, $settingsnode, false, true); - - // We only add a list to the full settings menu if we didn't include every node in the short menu. - if ($skipped) { - $text = get_string('morenavigationlinks'); - $url = new moodle_url('/course/admin.php', array('courseid' => $this->page->course->id)); - $link = new action_link($url, $text, null, null, new pix_icon('t/edit', $text)); - $menu->add_secondary_action($link); - } - } - } else if ($showcoursemenu) { - $settingsnode = $this->page->settingsnav->find('courseadmin', navigation_node::TYPE_COURSE); - if ($settingsnode) { - // Build an action menu based on the visible nodes from this navigation tree. - $skipped = $this->build_action_menu_from_navigation($menu, $settingsnode, false, true); - - // We only add a list to the full settings menu if we didn't include every node in the short menu. - if ($skipped) { - $text = get_string('morenavigationlinks'); - $url = new moodle_url('/course/admin.php', array('courseid' => $this->page->course->id)); - $link = new action_link($url, $text, null, null, new pix_icon('t/edit', $text)); - $menu->add_secondary_action($link); - } - } - } else if ($showusermenu) { - // Get the course admin node from the settings navigation. - $settingsnode = $this->page->settingsnav->find('useraccount', navigation_node::TYPE_CONTAINER); - if ($settingsnode) { - // Build an action menu based on the visible nodes from this navigation tree. - $this->build_action_menu_from_navigation($menu, $settingsnode); - } - } - - return $this->render($menu); - } - - /** - * This is an optional menu that can be added to a layout by a theme. It contains the - * menu for the most specific thing from the settings block. E.g. Module administration. - * - * @return string - */ - public function region_main_settings_menu() { - $context = $this->page->context; - $menu = new action_menu(); - - if ($context->contextlevel == CONTEXT_MODULE) { - - $this->page->navigation->initialise(); - $node = $this->page->navigation->find_active_node(); - $buildmenu = false; - // If the settings menu has been forced then show the menu. - if ($this->page->is_settings_menu_forced()) { - $buildmenu = true; - } else if (!empty($node) && ($node->type == navigation_node::TYPE_ACTIVITY || - $node->type == navigation_node::TYPE_RESOURCE)) { - - $items = $this->page->navbar->get_items(); - $navbarnode = end($items); - // We only want to show the menu on the first page of the activity. This means - // the breadcrumb has no additional nodes. - if ($navbarnode && ($navbarnode->key === $node->key && $navbarnode->type == $node->type)) { - $buildmenu = true; - } - } - if ($buildmenu) { - // Get the course admin node from the settings navigation. - $node = $this->page->settingsnav->find('modulesettings', navigation_node::TYPE_SETTING); - if ($node) { - // Build an action menu based on the visible nodes from this navigation tree. - $this->build_action_menu_from_navigation($menu, $node); - } - } - - } else if ($context->contextlevel == CONTEXT_COURSECAT) { - // For course category context, show category settings menu, if we're on the course category page. - if ($this->page->pagetype === 'course-index-category') { - $node = $this->page->settingsnav->find('categorysettings', navigation_node::TYPE_CONTAINER); - if ($node) { - // Build an action menu based on the visible nodes from this navigation tree. - $this->build_action_menu_from_navigation($menu, $node); - } - } - + $url->param('sesskey', sesskey()); + if ($this->page->user_is_editing()) { + $url->param('edit', 'off'); + $editstring = get_string('turneditingoff'); } else { - $items = $this->page->navbar->get_items(); - $navbarnode = end($items); - - if ($navbarnode && ($navbarnode->key === 'participants')) { - $node = $this->page->settingsnav->find('users', navigation_node::TYPE_CONTAINER); - if ($node) { - // Build an action menu based on the visible nodes from this navigation tree. - $this->build_action_menu_from_navigation($menu, $node); - } - - } - } - return $this->render($menu); - } - - /** - * Take a node in the nav tree and make an action menu out of it. - * The links are injected in the action menu. - * - * @param action_menu $menu - * @param navigation_node $node - * @param boolean $indent - * @param boolean $onlytopleafnodes - * @return boolean nodesskipped - True if nodes were skipped in building the menu - */ - protected function build_action_menu_from_navigation(action_menu $menu, - navigation_node $node, - $indent = false, - $onlytopleafnodes = false) { - $skipped = false; - // Build an action menu based on the visible nodes from this navigation tree. - foreach ($node->children as $menuitem) { - if ($menuitem->display) { - if ($onlytopleafnodes && $menuitem->children->count()) { - $skipped = true; - continue; - } - if ($menuitem->action) { - if ($menuitem->action instanceof action_link) { - $link = $menuitem->action; - // Give preference to setting icon over action icon. - if (!empty($menuitem->icon)) { - $link->icon = $menuitem->icon; - } - } else { - $link = new action_link($menuitem->action, $menuitem->text, null, null, $menuitem->icon); - } - } else { - if ($onlytopleafnodes) { - $skipped = true; - continue; - } - $link = new action_link(new moodle_url('#'), $menuitem->text, null, ['disabled' => true], $menuitem->icon); - } - if ($indent) { - $link->add_class('m-l-1'); - } - if (!empty($menuitem->classes)) { - $link->add_class(implode(" ", $menuitem->classes)); - } - - $menu->add_secondary_action($link); - $skipped = $skipped || $this->build_action_menu_from_navigation($menu, $menuitem, true); - } + $url->param('edit', 'on'); + $editstring = get_string('turneditingon'); } - return $skipped; + $button = new \single_button($url, $editstring, 'post', ['class' => 'btn btn-primary']); + return $this->render_single_button($button); } - /** - * Secure login info. - * - * @return string - */ - public function secure_login_info() { - return $this->login_info(false); - } } diff --git a/classes/output/core_renderer_maintenance.php b/classes/output/core_renderer_maintenance.php deleted file mode 100644 index 40f5a2a..0000000 --- a/classes/output/core_renderer_maintenance.php +++ /dev/null @@ -1,197 +0,0 @@ -. - - -/** - * Overriden core maintenance renderer. - * - * @package theme_boost - * @copyright 2016 Frédéric Massart - FMCorz.net - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ - -namespace theme_boost\output; -defined('MOODLE_INTERNAL') || die(); - -use coding_exception; -use moodle_page; -use block_contents; -use stdClass; - -/** - * The maintenance renderer. - * - * @package theme_boost - * @copyright 2016 Frédéric Massart - FMCorz.net - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ -class core_renderer_maintenance extends core_renderer { - - /** - * Initialises the renderer instance. - * - * @param moodle_page $page - * @param string $target - * @throws coding_exception - */ - public function __construct(moodle_page $page, $target) { - if ($target !== RENDERER_TARGET_MAINTENANCE || $page->pagelayout !== 'maintenance') { - throw new coding_exception('Invalid request for the maintenance renderer.'); - } - parent::__construct($page, $target); - } - - /** - * Does nothing. The maintenance renderer cannot produce blocks. - * - * @param block_contents $bc - * @param string $region - * @return string - */ - public function block(block_contents $bc, $region) { - return ''; - } - - /** - * Does nothing. The maintenance renderer cannot produce blocks. - * - * @param string $region - * @param array $classes - * @param string $tag - * @return string - */ - public function blocks($region, $classes = array(), $tag = 'aside') { - return ''; - } - - /** - * Does nothing. The maintenance renderer cannot produce blocks. - * - * @param string $region - * @return string - */ - public function blocks_for_region($region) { - return ''; - } - - /** - * Does nothing. The maintenance renderer cannot produce a course content header. - * - * @param bool $onlyifnotcalledbefore - * @return string - */ - public function course_content_header($onlyifnotcalledbefore = false) { - return ''; - } - - /** - * Does nothing. The maintenance renderer cannot produce a course content footer. - * - * @param bool $onlyifnotcalledbefore - * @return string - */ - public function course_content_footer($onlyifnotcalledbefore = false) { - return ''; - } - - /** - * Does nothing. The maintenance renderer cannot produce a course header. - * - * @return string - */ - public function course_header() { - return ''; - } - - /** - * Does nothing. The maintenance renderer cannot produce a course footer. - * - * @return string - */ - public function course_footer() { - return ''; - } - - /** - * Does nothing. The maintenance renderer cannot produce a custom menu. - * - * @param string $custommenuitems - * @return string - */ - public function custom_menu($custommenuitems = '') { - return ''; - } - - /** - * Does nothing. The maintenance renderer cannot produce a file picker. - * - * @param array $options - * @return string - */ - public function file_picker($options) { - return ''; - } - - /** - * Does nothing. The maintenance renderer cannot produce and HTML file tree. - * - * @param array $dir - * @return string - */ - public function htmllize_file_tree($dir) { - return ''; - - } - - /** - * Does nothing. The maintenance renderer does not support JS. - * - * @param block_contents $bc - */ - public function init_block_hider_js(block_contents $bc) { - // Does nothing. - } - - /** - * Does nothing. The maintenance renderer cannot produce language menus. - * - * @return string - */ - public function lang_menu() { - return ''; - } - - /** - * Does nothing. The maintenance renderer has no need for login information. - * - * @param null $withlinks - * @return string - */ - public function login_info($withlinks = null) { - return ''; - } - - /** - * Does nothing. The maintenance renderer cannot produce user pictures. - * - * @param stdClass $user - * @param array $options - * @return string - */ - public function user_picture(stdClass $user, array $options = null) { - return ''; - } -} diff --git a/classes/output/gradereport_history_renderer.php b/classes/output/gradereport_history_renderer.php deleted file mode 100644 index 4908003..0000000 --- a/classes/output/gradereport_history_renderer.php +++ /dev/null @@ -1,44 +0,0 @@ -. - -/** - * Overriden gradereport_history renderer. - * - * @package theme_boost - * @copyright 2016 Frédéric Massart - FMCorz.net - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ - -namespace theme_boost\output; -defined('MOODLE_INTERNAL') || die(); - -use gradereport_history\output\user_button; - -/** - * Overriden gradereport_history renderer. - * - * @package theme_boost - * @copyright 2016 Frédéric Massart - FMCorz.net - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ -class gradereport_history_renderer extends \gradereport_history\output\renderer { - - public function render_user_button(user_button $button) { - $data = $button->export_for_template($this); - return $this->render_from_template('gradereport_history/user_button', $data); - } - -} diff --git a/classes/privacy/provider.php b/classes/privacy/provider.php index bf755b7..379e50b 100644 --- a/classes/privacy/provider.php +++ b/classes/privacy/provider.php @@ -24,23 +24,55 @@ namespace theme_boost\privacy; +use \core_privacy\local\metadata\collection; + defined('MOODLE_INTERNAL') || die(); /** - * The boost theme does not store any data. + * The boost theme stores a user preference data. * * @copyright 2018 Andrew Nicols * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class provider implements \core_privacy\local\metadata\null_provider { +class provider implements + // This plugin has data. + \core_privacy\local\metadata\provider, + // This plugin has some sitewide user preferences to export. + \core_privacy\local\request\user_preference_provider { + + /** The user preference for the navigation drawer. */ + const DRAWER_OPEN_NAV = 'drawer-open-nav'; + + /** + * Returns meta data about this system. + * + * @param collection $items The initialised item collection to add items to. + * @return collection A listing of user data stored through this system. + */ + public static function get_metadata(collection $items) : collection { + $items->add_user_preference(self::DRAWER_OPEN_NAV, 'privacy:metadata:preference:draweropennav'); + return $items; + } /** - * Get the language string identifier with the component's language - * file to explain why this plugin stores no data. + * Store all user preferences for the plugin. * - * @return string + * @param int $userid The userid of the user whose data is to be exported. */ - public static function get_reason() : string { - return 'privacy:metadata'; + public static function export_user_preferences(int $userid) { + $draweropennavpref = get_user_preferences(self::DRAWER_OPEN_NAV, null, $userid); + + if (isset($draweropennavpref)) { + $preferencestring = get_string('privacy:drawernavclosed', 'theme_boost'); + if ($draweropennavpref == 'true') { + $preferencestring = get_string('privacy:drawernavopen', 'theme_boost'); + } + \core_privacy\local\request\writer::export_user_preference( + 'theme_boost', + self::DRAWER_OPEN_NAV, + $draweropennavpref, + $preferencestring + ); + } } } diff --git a/config.php b/config.php index 1e4f57b..8952583 100644 --- a/config.php +++ b/config.php @@ -1,54 +1,39 @@ . + +/** + * Boost config. + * + * @package theme_boost + * @copyright 2016 Frédéric Massart + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + defined('MOODLE_INTERNAL') || die(); - -// $THEME is defined before this page is included and we can define settings by adding properties to this global object. - -// The first setting we need is the name of the theme. This should be the last part of the component name, and the same -// as the directory name for our theme. -$THEME->name = 'ilb'; - -// This setting list the style sheets we want to include in our theme. Because we want to use SCSS instead of CSS - we won't -// list any style sheets. If we did we would list the name of a file in the /style/ folder for our theme without any css file -// extensions. -$THEME->sheets = []; - -// This is a setting that can be used to provide some styling to the content in the TinyMCE text editor. This is no longer the -// default text editor and "Atto" does not need this setting so we won't provide anything. If we did it would work the same -// as the previous setting - listing a file in the /styles/ folder. -$THEME->editor_sheets = []; - -// This is a critical setting. We want to inherit from theme_boost because it provides a great starting point for SCSS bootstrap4 -// themes. We could add more than one parent here to inherit from multiple parents, and if we did they would be processed in -// order of importance (later themes overriding earlier ones). Things we will inherit from the parent theme include -// styles and mustache templates and some (not all) settings. -$THEME->parents = ['boost']; - -// A dock is a way to take blocks out of the page and put them in a persistent floating area on the side of the page. Boost -// does not support a dock so we won't either - but look at bootstrapbase for an example of a theme with a dock. -$THEME->enable_dock = false; - -// This is an old setting used to load specific CSS for some YUI JS. We don't need it in Boost based themes because Boost -// provides default styling for the YUI modules that we use. It is not recommended to use this setting anymore. -$THEME->yuicssmodules = array(); - -// Most themes will use this rendererfactory as this is the one that allows the theme to override any other renderer. -$THEME->rendererfactory = 'theme_overridden_renderer_factory'; - -// This is a list of blocks that are required to exist on all pages for this theme to function correctly. For example -// bootstrap base requires the settings and navigation blocks because otherwise there would be no way to navigate to all the -// pages in Moodle. Boost does not require these blocks because it provides other ways to navigate built into the theme. -$THEME->requiredblocks = ''; - -// This is a feature that tells the blocks library not to use the "Add a block" block. We don't want this in boost based themes because -// it forces a block region into the page when editing is enabled and it takes up too much room. -$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV; +require_once(__DIR__ . '/lib.php'); + +$THEME->name = 'boost'; +$THEME->sheets = []; +$THEME->editor_sheets = []; +$THEME->editor_scss = ['editor']; $THEME->usefallback = true; -$THEME->iconsystem = \core\output\icon_system::FONTAWESOME; +$THEME->scss = function($theme) { + return theme_boost_get_main_scss_content($theme); +}; $THEME->layouts = [ // Most backwards compatible layout without the blocks - this is the layout used by default. @@ -82,23 +67,93 @@ $THEME->layouts = [ ), // The site home page. 'frontpage' => array( - 'file' => 'frontpage_ilb.php', + 'file' => 'columns2.php', 'regions' => array('side-pre'), 'defaultregion' => 'side-pre', 'options' => array('nonavbar' => true), ), + // Server administration scripts. + 'admin' => array( + 'file' => 'columns2.php', + 'regions' => array('side-pre'), + 'defaultregion' => 'side-pre', + ), // My dashboard page. 'mydashboard' => array( 'file' => 'columns2.php', 'regions' => array('side-pre'), 'defaultregion' => 'side-pre', - 'options' => array('nonavbar' => true, 'langmenu' => true), + 'options' => array('nonavbar' => true, 'langmenu' => true, 'nocontextheader' => true), + ), + // My public page. + 'mypublic' => array( + 'file' => 'columns2.php', + 'regions' => array('side-pre'), + 'defaultregion' => 'side-pre', + ), + 'login' => array( + 'file' => 'login.php', + 'regions' => array(), + 'options' => array('langmenu' => true), + ), + + // Pages that appear in pop-up windows - no navigation, no blocks, no header. + 'popup' => array( + 'file' => 'columns1.php', + 'regions' => array(), + 'options' => array('nofooter' => true, 'nonavbar' => true), + ), + // No blocks and minimal footer - used for legacy frame layouts only! + 'frametop' => array( + 'file' => 'columns1.php', + 'regions' => array(), + 'options' => array('nofooter' => true, 'nocoursefooter' => true), + ), + // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible. + 'embedded' => array( + 'file' => 'embedded.php', + 'regions' => array('side-pre'), + 'defaultregion' => 'side-pre', + ), + // Used during upgrade and install, and for the 'This site is undergoing maintenance' message. + // This must not have any blocks, links, or API calls that would lead to database or cache interaction. + // Please be extremely careful if you are modifying this layout. + 'maintenance' => array( + 'file' => 'maintenance.php', + 'regions' => array(), + ), + // Should display the content and basic headers only. + 'print' => array( + 'file' => 'columns1.php', + 'regions' => array(), + 'options' => array('nofooter' => true, 'nonavbar' => false), + ), + // The pagelayout used when a redirection is occuring. + 'redirect' => array( + 'file' => 'embedded.php', + 'regions' => array(), + ), + // The pagelayout used for reports. + 'report' => array( + 'file' => 'columns2.php', + 'regions' => array('side-pre'), + 'defaultregion' => 'side-pre', + ), + // The pagelayout used for safebrowser and securewindow. + 'secure' => array( + 'file' => 'secure.php', + 'regions' => array('side-pre'), + 'defaultregion' => 'side-pre' ) ]; - -// This is the function that returns the SCSS source for the main file in our theme. We override the boost version because -// we want to allow presets uploaded to our own theme file area to be selected in the preset list. -$THEME->scss = function($theme) { - return theme_ilb_get_main_scss_content($theme); -}; +$THEME->parents = []; +$THEME->enable_dock = false; +$THEME->extrascsscallback = 'theme_boost_get_extra_scss'; +$THEME->prescsscallback = 'theme_boost_get_pre_scss'; +$THEME->precompiledcsscallback = 'theme_boost_get_precompiled_css'; +$THEME->yuicssmodules = array(); +$THEME->rendererfactory = 'theme_overridden_renderer_factory'; +$THEME->requiredblocks = ''; +$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV; +$THEME->iconsystem = \core\output\icon_system::FONTAWESOME; diff --git a/js/apple-touch-icon-114x114.png?v=OmmK4dNQkX b/js/apple-touch-icon-114x114.png?v=OmmK4dNQkX deleted file mode 100644 index 5a4af1c7032d8b6952d50d77e39b2cf0774cb928..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1469 zcmV;u1w#6XP)Px#32;bRa{vPv*8l?;*8%Yv;fDYK0Blf9R7L;){{Wuh z0FTuUD2E12p$J5q0d>GutRf6Fj|x1M0er;(h|d6m$^ve?1YNEJXtn^B+XYgl1Xrp9 zW3o-C73%c#%;)tmTBfGc?R2|MeaP!my6D#H&U&iVDXQYR-Kvtxc2jku-HOkv^S>X6MXI=h5Kb=6vOUrOW*@KzI*21x&F(qF}B;%bF;Pb}TSxa<6$zCPv zFjQHwap+rFSuaW=g{*19T8FpB*ixB4iEWKlGUgvaOp2MN5iE z_D*H@y{?79cGX4}Q3T05ePPzEfo%4c3tMm;s$BW*^@g?zS(ZB~6a^b!-0QM!G%`)o zD2*ar-f6J1`>Y#nuuM!>H;vpYyB~5R-hDdy_cTg5xIO^z$swQ3x{}Bj4JU;}hQ?R- zx)jOfEb}x^4T0psd#_7*uw94pCAu3~D|_s9IU*&Cm+x>6*S)ycR4rQZC3;|InIB$m zYP?pxu-8nL$X`uM&oaxU*eYMy>!Om#wkS|WlV>oT+GlO39Lb}W$X8ob3(2F)HaK!z zFO@8i0G`3d=aUsK#NT6Il}Mh#>9xI9$f!U;kg*GNS2!~rvg2MWWQ4NSgygeBKH2Nd z)yQDYCZAPy-|J|5C;sI%76*9(=NI>yxxJMbFaM?$)QLiL8 zWQv%`Rbp!Fa>$vwRJ$vY(L$~$5o{3l-)p{IAh{=4O%x4VmX@ zTry2F2?W>rR5p^2!+vOu88;5%oeOpSFg=3oe6J<4%XE^+g{k|XL!D*r_@T#HQT16X zWR~eIl^=kbV~@<~NAT%%z`6KKWfz>06f_kSzRfTP0fD!g(S9U(49F$@6a=QHvP2?c zC+SE#}-1~zhX1_hL;_iLG)ZRFe|&rlS)U&~}*CP#E3GRo=6jr6a$y;RIZ zxqrEl#P1a4jLHjzOilp-$pO8Sj!yTuY0{tnoV+~L<49*B+&<6A3EhxUc!4@4M|4Z} zqAE!qD%qpEvKO7D&oYv*!zT0kza6?S18=F3{V>oM->L6Px#32;bRa{vPv*8l?;*8%Yv;fDYK09{Z_R7L;){{eNt z0E5c`pWy~fp#@Z^0er<)tRe|QnG80O0Fc!VD2D)-+W?8s0&cqlT&)6Ww*+9Y17x&J zrxfh<_0{I{qR;AW!s$P*;jY-5((1`MW~^w7`iO$rwH z>Qb()163GT?DE%MUk?S{zMXE2S6cYk%ggqn{^PQImgpePi&%JPMcx=jsAHyKl@M4v#%={F(H| zg5|F~$9brHwU1!@oyXu&g{!Tx?9IC?dmldiDq{92JPiP@01VfF^U&rScb>EU8|{VZ z8PlL5FLGxv*!z@+|rw+LP>~Icb zU-xzR!=tB;KdbF*Tx`X~%h!IhV@_XgK7_FWYwbf@A36J#9d7w$@e4uw>&LY>U|gZL zWva#A_Fd_JWcFb+n1;b?3jQiAOOWOL!;jtVy|AR6yfXL)H~&3&VXy}K;hPf}^jUHf ze(|*J%dI=ImM=oLKF{cYSN`Q_-}+V%o_$)|0{1UH4!UU1&pw_YoMY6ByiDF%-`#$n zKFxlLy6>%m(VkZ)(cpFRGV@R}Ijb?bR2kNZxzKf-%w z-|^scHxBU8v)@{WKYv5G$kCIg>umhl`h{iqG?@N`!y?_YJ6qp7`+WBSTtHYZAdZio zeSYq*!GIHuwbj46`)$!1a3TWy&ffmQ>=&ICrmBVC7htb{X!hY5w|is3iUmNv^B;Z} zcla9Iwkn)}_Ky1Tv+ssm`U6xZ?6UHf`iE!V3iJE86tVKo!#_Ox03Ie9w6g0rm%lFH z^z66lvw9e5w#KTTc((uK?6>AGiPDke*x?6e|MfApIxX2{sPfOi;m6HBghf)CG8KGU zT36sa{P@|2@Ib?1ky7fZ%Rf2$-4ntK{SOK(^>g*Tv)|7uT=reB!y)|S>_a&1pB-va zb~)l*K-BCDJ+Z+ee%`nDQM2EvpQ};B&bR?NSKoX1ygP&!9Zs**_s;&)0@saRI$S?y z_5rWMNrGyYrgr*Hz4X@ye5t`t0XM?7@fQzYZb4#&l{B^2ckyND@FDy$VQGK4K7{9I z$zf902l%u(G5ZEwBEnLO%cgJNniKW6_GPNU35S^}ZF~FX?Ch88%L;?YHQ4oYhfhlb zc(TBve@$HNPtLv$rzOfrM$FXfH`n$bz4bMi?mlmv5j!6`{JM^s{WNXL*?=<No%em0ND8*2ORyV`)82$-@13TIrzL*Mb-Z5RPW~j?bi4f9DVvJkU+>!DJcHu}GRIzkApj=y2_UNj9P5QR(%e%XJ77 z4}83?95dT9FCL!I=@_&Qqs#@LuDd-Gjpwco6Dv$+bTRa(*T-IFgBL4Iu57cq-^z2B zWMTN~HiP}%%Rrcz@bzup_j@4+;0b*()Bf)c5YFgFAHE>*TbN`c`fB8zrNQ)!=VhUf zPGxQn&Q;eSlUD<%{+_`f{`G3)C{(<=o;(H@}=WqDV|3Lm#@}uULE699f zPx#32;bRa{vPv*8l?;*8%Yv;fDYK08UU$R7L;){{m~d z3O|VsVbU-EL49YUES9 zZjxoLmqFzyt`Q5$rG==p>27@{tQS?R)J3^0PMA=bBi&3RUtlp~vG<7UHX4ZG5GtiH zx2LnR2}zQ65pmtTp(oFxw3RqNJj+ECzR`zA2Mt~z=aEFMbbqB8| zv=r+|s23)TH6~Q2tqY3_?hkj{M)~wX{ZXYN^>G%63vu1Xco#>siFzHz5;{1&Dr1V~ zHNqD(t{a##YB8#K9&1^yrj}(XZ9)=Ns(T4xB?`-kE5*8hv*E!&^&&J4vMhZsOFS&F zktT-g+{O^}9e{2(4-~5UzU-;Eg4v?ls5UJK8xPPU1{&lQRh6cj>Dd~~WL~D3s*4J= zo^(wI*UT>_$(R(A|T;(kS8b>xv z16h=-gma&>bs3sqVW8=#L0wVK0P>>ZavMFp7R`IXk^l{pRN*W$^og}tX01gFBNBpz zvU<<;fwg!BjUi|-X^~CrKeQGjpfZxsGyxSoUA?)XT@2Tvm(~~ol_jetafwF+m7Xrs z$DV9r51VMZh=Ej1la?WI4LL(kZ(ZO`mt>)!sWPYvQw`zFPxwmAITxjiPRN?%GX@*r za18{jw;xb%BVwTP41z3VxL{m4!-cNJ@ezO~6a;0+a1CI%a@JyGxXLr=_$-?%aV1n4 z!mdp%<~eS1&(w5fti`x%^+A;wt^=el#FZOYYAp_t;p)$z zVPJ*yBv?{zP7fix#8t`Dq5MWR72DGO7o zg6`rQYcU5Dz(iVjT<@+$|KAP?(D6A|)P;ByIBZVG_0n3bVxWoDwIbCRYc{tJ#-&^* z&?G^EVo_*VbK$MS_tv6e1)y1h>ROq!Oovq`dziDM(kdLJQ2Iq{YI?Zb*i*w*&D3z6 zK@|Y`CJQ5nYX;Nx!f-`ERRux7r3b4{rxhEn%(XZL`;h!(1mxRXTJ&(`twp!fACEYQ z*Zla7oKzLg^n6@1I$a^CGD9s*oKzLwl;y-Vr_aRz#1`?N7#QbVk+_o)D6?yUna5c( zeJ)lZNE8za<>6VZVDh1j+92R`At1f%xvtt%8CRX^qRT65xL{gEn9!qsJRZz&%*~P9 zh0+RtJ=&d~K7q_|RU3;G_p3H9frlQh0_>>y!&R*rAj<(RuZyXrSVRXb&RSzb&C#mQ zBwlCCeBq6j+Pb27g`n^G_{Ukt#YL%t%(8~dO_$+CR3}h%%=!W19Z#tEdDgSGuEM2N z$KG|F5;{J|x=w4lEEpU!kCa%81>97PD-Pm9WLQa6?V4A6!R2gS;mj{cLQ)e|bv&n! z!8V_mdeB7zWK^2Q_3eosx;2@502OCY?SuT{&SpNKR-#*f;kk%6G9SckT0lj{RTB#m z8!jGzHql1bwemt^GEd$;F668%jGSli#c@e|q?^{-dff|ESGW|gY%k{1G#w)$kOBD})4C(-=31KZg zT;dzID%e(ka~D~caRLcd4k)03CVH@a-{k+CseZg$*KKdKvGaOJ@ATnMuA+^Mz?hu0 ztZkL%uq=@uftN$ox}4m*2y}}$f!ZTBJRzX7K%t3YEXp%^TUTt0cnQ?HkJ^UR08?!1 z>dvqbwC5#cIC}<1n;L`^>|O7G+I?mDb&$xdRnTIfE*ta|N1c>A@%}--Y%ha0_Cg^f zu(!Vo%AK7!3E$}>pf&^ae7DY|_yKeRZAW(OSGpCDkn`si(7v#@OOn*-6S$rSZR{hp znPbst^!-`TC*pDYl6eyW4#p=z8~b1_dkar)sXBvN3beA%)(ZNjkL>*k(C69(`{tk6 zC(w$6Huf8}?!ozZ0yPL|WxrIL--a`&iGmjPYvqNM3EF?ri7iT7M-Dn zt=qQm`?@vjqJGhf{dz6-m&zi4;r_s`y6UQ{uKK5H(e?2!sOzs^KYxF``uh0_>W?nu zEB+1ZC#Wy%3%*0{{R3FC5Sl00004XF*Lt006O% z3;baP00001b5ch_0Itp)=>Px#32;bRa{vPv*8l?;*8%Yv;fDYK0Ao;0R7L;){{m{b z0H5IlW3mQJp#@Z^4k(9KtRe|QnF}_N1YE8FhRy(t(g2ax0dc(mfyn@v+yQ;Y0d>Fu zdBaSn6UX53==1cg&F6K+>pZdK%;&081y`)j;^6IPa*O32EH z_7=*i=O;;Tcb72NjN=a(Te!Vegi>pE`1SCJP+7FKyuy?@?R^m@XiDhl%Eh@c0y>pq z39dd5u`rHay|E+tc|x$cxGXxnY6;MBg%1w4p&K6xW3)Wa z^b7TsnlF}DnMa3{o(INh{3SCJ3@kpNxxvlFzUlMA7F%ZUyvwhIcjlE_Ul^tXjoxN~ z)mLWOi;ItMDgdm6U{-J4_2(T9Ywg9v=fcW4vAWLr<{Wvg|BM~V1;*Bpih9hEnV}=)m>4|C42^yYWuFr1N z!QmN>+J(`gup|Ym4lh168iC;j4h^NN?=UP$#RIG8#pgdbGGKUldtq3@D&-g0)|ka7 zlMAJnsk=Vyo@#($jKrVh8$7z;;&amTpKM%d!!nhaOif0Y_*xrWeQ~29_q#kB{jfwM z>P)=5USDo+eK^p9jdO<~7^j)(CCK`#!_%7w&fV;3C&s=>l8#<@rMfUQyLH6uF2coU z!^U|)NY`~q2kKJ&g|`;r)zI>TvvY3x>KcJ1v#i5?dT;$c0TfdkH@j4rePf9Ul&Mfr&pp zcz21}oIS95fn70Q(gnJk>hXD-TSHqP-C-bDU7Ik3r@9-M4YlhrnlC;%x;X51yIsLT z(o3RdcM;+T$Fc}J$WwY76b{7EFb)=znYIvRSI)7~Obr*udW}9~5-Ce!- z!rkq@UD#E@v^vcRo|@l@@8-gu2uuYC>drF2jb;~wU9Y5N)wC$Dfz#V=cCRR`XP_R^qUJzb(FtDc{6Ibga6+^byKK(rZOh5| zAH_Zz_8LpkmYY84+-+P~6A9}dFS6#v#%W?(26!&)5eMrJBYCR~+H%*@`(SMhY`T+o zi#Ak0-po@Mgta8t#er;5{Uz32;YXJjveF#bNPi}N6K8+m@e9if zY9|Dvt)#znP3*TGdiV^y$S>8fl>57u_PsmVYp=cb+H0>*9FcncW7NN@zP`TR`egHS ztxsO+uTe*%{-8x*vi`|`zwl4~6IDm{IL>d5u|-yV^!(|^Un+9^pVkiBVLNPx?XVrT n!*Px#32;bRa{vPv*8l?;*8%Yv;fDYK09Q~a?s1YE8F zmf8TD-sJG{$Kdg#%;-j>*?hL%d%s%9<-VcOjZTUimH+?>qDe$SRCwC$+KG~*HV_72 z0fr357v?Y|dH?5(gszrowSV5p~b|%bKSgx%mb@^&Su}hx5hC5>40ne&R zs|h;ryQvcmb6-ae@SmcaN>-Zv;%V4jnzABBKFJX z*ugrz-1-0d-bmi_`7DZJnhK4U+ERWfIvu;SViWF4>GnGqG4~gn?=y31xWJ?>+s01N z8`J0xJu+nA{fOLx$%YZ=*BX7XXhW8O*HleJt9e80J;SHN?$`o z#ol;y+waka@iqZi>;ipZE426$E3*kOlHU6Y^ede761Gn#@Y`mLAG^AY=st#{$ALr}da^uu#=yzwYGbkqzIlxS;4(eG$$|Mf?}PHw1cVdpBvspF-a>V;cWMx4PdkIC>e0EX(-6w5g|m-0LdRk?+(Q&;^S-^X~vUAxD|;%~l3Bdvxy$vZv5eoM)OIjXixjR^XLJ2b=adTFDh%t8=X~hsEYDM7PaQIqe^*LE8?lQ0nUl?)uSa`u53{1D>}1l>KAr6K9L63@y>$4i z$b+N3nYW?+hLP&$h8dF+>l5GjW{K!>K^M=0zoPU!7P~WJve;;k?|iEXLobhctXRnU zAS+LZeLZ7x0uJ{vzCDEICD6qJSBcZH!*!ZCW8$N|%-~?xuc{89D}&bTq}cQ4GkL}& z-%(3|FGc)CG-)d@Oy&`L;*80XW{kUcT;87uy2Q{BuR10*_BUn>eM`-UAi6HZ5v-?t zOQmm{F_C7+(3wQnoXp)p`V*ce44JoQjE^tJAbJ6-xa(l-cCu`Ued~@s6=ox0cT*$G37FR+s;opvPl0$hL{lsn9rb+hL+ zismn-xmq5Ly@1Vb7Abv0O`S2I**Uuy@T7B)w3eIHPw|$4Jx|)9Jaxvz(STkj(+j85 zp+2$!OG!P@9&7Xoh7Ifq-3~4xI%7=g)U#5KEySlp|L}v5*Iw$ej&bEhQorD-V`w>D z*pDb7C-M5ki9I&jch#3R>J)a_I*d&G??3dMe1aHxOOv-eWYz$raXiL}plkrD7#=D`0^zQvM z((MTPrAFRQs6gtcNbai{qq~Oaa)*xQj-ZEmo~LPIKj$Cu3c)R%UZ`-!Y}&^Z!A(1Y z)^(O@if$SObWglvlD3b9|I}pV^>ap(<|UFo^OA6RP`RH{R_c1jkg?n6JV%b8_044w z3%C(SVh6#Ww#=A>8)^YoYK@|ozk+%}OE`E>h~3_l(q~NVZ)Aw+h$hX(ao}apiu|)F z_S3c*vu)#xq4h$<%EqqDWa{ZN#&%2{pD|m}w$Jrnz)yV0Y@0E5w1=9#!2XrW(jDw^ z7Du=Y-Wf7`%$QSfA9D(#r$YR3_TY6^@&{#?{IgYmWyUD6_&ppgu0|&P0Q6|=W~qL8 z#?&En&45?xqjI=Xzc*v}`ADNpolWrSDq^XBZN}8;XiJx$VzGZXW9ZaT^eKc^a!pU@ z_BUsY&KX(M7x8KdYwkdC5XCm(&)uQrnVcV-N*FLVmsAxUpbedigY6Mqar zbk}vQJl6DU>vcSp`tCD^Myra*+t^Coea2wuWr;G$6)&4P+A-H8`L-GJAZHAM9+x|+ zlQcL(>6^Qqo-sCQ+#W!m&j4+kq*EV6vwvsCxE&Kl_nkP_)w;d@{Tbt?F4)ME%XpS( zSsjXRjlKP?8KYC@?+AL3=uUve%i7nOx4%7O7B+@{z@#m`3pY$lH#=yWJ!VV_+R(u{ zhIdn6?OLu*vwt#U0%*==x4ysiE4e(vvA0gsw99^+|8n_{Cd3PdxKaJ2a^z@+7l)dZck)_u#-`w_288M%r5qft^3>o$b?{8#8uJ?~dA3$Hz z(TXnSBPX+WYMA?LyDZ+8*gu-o+sBNfuh(s8!G4o0_wZBOhV}yfLfsGj5m|Og+mibj zOTX@e?r$^uxJHvUx$_O6=Z)yTp9Z!^0d`9~D+SQ)7Ic3b*gxqd%S*fdP1Hi6@S({Rq9+0z?RE4~EJ=LHGU4 zzE;EB1vl*hbeDkMb7%ziB=89p&~dcrcNT38_U(GzI`7$9(Xnqm#?fC|fvY*jH(~y! zy?+<|?bdL5Wc{3nqPqzC7g_`KNPqL#-R%u@|6;#b!_?bNyDS{duZI2c)^Nji1lYBS zt6{%>LrDqyJ@hwkDC8J%*ckc-(Y<|q+cXKJ)h(EMy5(90j0ZrwEMD;U|Is$sH0 zV;#DDUHtTFe7#-+f9U*k)T53%>ZqfRI_jvS@Eskjf1LXFpMPQf?bdGJ)cdaPH(h<( zzyJEASm;ve@A=_({jk_y|HC@a2l_xC=mUMA5A=aP& a4eLLxxwFp(gdto20000Px#32;bRa{vPv*8l?;*8%Yv;fDYK0Blf9R7L;){|qvY z3ObYkgUbPS!2x~7{Qmw{tRels3(==eICQqMiw?PRQ zW^n)j0s2WqK~zY`?bXSeqA(PI(aR_xf((@kF-kFd?#Kgw zyn#28@&Uc5@egn|P&l$b7~t{zLIAW3P>cM2H(*+2RU2JcU&*F`O6K$KfTkcq_DrUg z?t)+C9a2$c6*z$Y?nvd+bFbu5LzZQ!UC`H!I72z5T*}gG1Nu!SNoKVh;CdkeVvj$>z4 zo_QrxCRJS*8lmxCnqCWgf|fLeR%F?6retCfI(OXKSjkLD<@tz~V%S22VSD@2kz{b5 z_~)Fj@hg;$rFr;DCeE6Ke-CoKrg(rz%MKwVM~ZBwEp5B?G)PHGFczE++=>zP%5g?M zC@r4Z*&ExANZG-*Qvk11dnV%KOF3@Wft#+fVy1|3&!?`XG9h`$Xe% P00000NkvXXu0mjftin~& diff --git a/js/apple-touch-icon-60x60.png?v=OmmK4dNQkX b/js/apple-touch-icon-60x60.png?v=OmmK4dNQkX deleted file mode 100644 index 253ce793104ee2e3edd076b909fbaf399428827c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 792 zcmV+z1LypSP)Px#32;bRa{vPv*8l?;*8%Yv;fDYK0CiAIR7L;){|h*h z0%*4YiqQv1o&;gB3P6}vtReFtk=6sB;Q?>E3^0uWd&K~R%nl}n`~Cg_ znA`w=$m#L)OQ#V~sTx72+_>HGlhp7qg2G_7;+U<|+U?Ph$Z>hSQ)aX}r__+U-l=1X z!Pe~ekI&7P)KM@100JyYL_t(Y$L*HcvZ62)01vAy5g~|5z**t{e{r%MBnfNXd7J6- zK`pwofGNS7C<^{EsETS6h&`L4a2v&ntnlK^LbaGc8L<+coiGXza^lT`-Kd7)-Es;g zE8^XTmfvsSG~Qf3mMFaHJyJ@!TtFfSlM{{V4OEV-Wkne7C4?InT8_D#CN?{bN%kO> zxQX?GBd;dh%?Le|V@RXaVs9ZRhcQHo6ODMV2~pXry}0Q3N+ZwwhR4h>*F? z&xG5IW3!0Ft>O>KFu+~1npl{ImVuupCFhPDODLIkzLXV56aGs++q8=y2!e9XQo?LZ zvM*#sx!b_;l?>e#@;orupT@PH$%^BN%$1iK%PT?ol|e1YPbA8lTr-_yjT^`p8h4a$ zKxzje=DBzy{oI^Jz-4)q^juaLF6r6WG_)C8*4IKeR#KvTN11#geM{j3ZMko(WmT?8 zKgwsG>StdbvWx`t%|N*{<@zdGs_e)RFBY?SlqR*`l~)jH$Xk(n$?{050B!yf#|6oZon<(4tV|5VWft}tjTFP0}@ z3txgNPF}7hx(56ebga>Q`vAWczck+`ejq=Q3-VMv;IYc{@tkvcUTom<1^&zbhWrOv WPx#32;bRa{vPv*8l?;*8%Yv;fDYK0ANr|R7L;){{Wuh z0&2JeVzLBUtO`7p0F2XCtReGr7I^N^|0HLl~h&*!<_r=rq|+3e75w?c-)WL9;vYQyVxp3UmZquKxf0)$CKK~z}7 z?bq9qqA(DE;T8fWoF_rtllcB`xd|a5hYrTAx!Ur_s`0}4s+-`2P*qifHmTR7URgnP z)Kn=?kxeetoND$;Lrh+AO?9#_#sSmiX_GtOQR6^oUTVB%dOV+82*GawRH0h>=1q_L z9aOie0ZJ*O4DIE*5)ux?DBU$0j8|dWHlTqxcPF9;mYNPf+vWifKqf}*c(E1Vy#uO% zP<4eGOM33j^C2Rk$kGa~nX|3f0W}*$G^YPhbXR=53V}4DL2OxuorME2C`n1YD6!kd z`|1e|=R-OYftIAn7%@;~q0NdtYVIC-vW##HI=pyWT%*)N6pF2~C`*L&M0YwPiXCDG zN@xV*+_Sx-(3ywdJQo^NIhtM80S}01NLS>5#61lQQ3B%-RAi4wN)OTv{{)g9ddhn= zdcDF*Uo+7C`Gj6JhJ_v`ZeRfQIU2gFFwpIQazSsr9a6QjKGyoY@ytZ!utB;WDdfgr zI13dH6m#RtW%qCYy%?ab>lP_zykQu9NY~cq+!)`yq2D3lLTN8OorQ)Gy1MQ>N58VR z9a{s9658{)-0?67;o3SmUI_Jl0G*77O=lo3q06O9_Ig}CFo7_(yuz}VN z-doGrF9`{FE3pKSm}fD|A6*>YO#M)^|HTD-`i{8mm(vfYpE59SbbpS1J6+wr(BLcC l^|&&E>o@g*KG6RO{RMt#lG;^X59t5^002ovPDHLkV1f}MhnxTa diff --git a/js/apple-touch-icon-76x76.png?v=OmmK4dNQkX b/js/apple-touch-icon-76x76.png?v=OmmK4dNQkX deleted file mode 100644 index 03dd07292b3903ca40988c863e73dae2dd5c7160..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 926 zcmV;P17ZA$P)Px#32;bRa{vPv*8l?;*8%Yv;fDYK0Blf9R7L;){|qsW z0iWRpQKbtylmcwJ2TPz!x=OCtnUKkHPJ_QQdAn6< zZM6UZ0=r2>K~z}7?bX?Cqc9YJVH1{^eQkh1rZegLzvI{#?+4>Vz0BVrbrGM=!AM0B zEg+vDpqE)iJ{9?Rg(6w7U4U6_*Y@R&X)ZWr6*xhJw;~)FBOaO+hYv9qX>VRJ(b`+X zKvTHj>OpnGw+HP>uq43=#^+=p7uV7I4Q<`3fM9!?8OiT#G0--j9sp*GQneT7?-7~o zF0n8H^4feKbGI1AdYg*MDYR2O%)qxr=mS(#Lq`y!H(^{VPY&XjB3*05W@pe zpo@XAhL=ptr&K3v+gi&>LQ_s0izvpbUoce^KLnNt3^dQj3^lA_`ICl;Zydt{14QTM z5Ei01ZsJDomCc9bsbQ>lNr@#A^E0i@>+nZl14>D8{2Hm6gNf~(lF*nE3u_gF$rEvS zDp;0fX_ls^=F#T0!0MJ_EW=9u9%du3Wtt?mlhBl|F>CSCHa{rOGa${39S<{ZIW~?X z!B|rUW<7HLUBp(x`BmrYNw5 zVSA;8I!J+L{MA@86=R}ps;s$q-z!*-E*+R=^yJb8RXmC11Y<#5x6boKo9DGOJx=BV z>jh?-qn!0D1vVDFfpK!xB<_*>n=yscFRl- zTz!p-mH(+LEUcSH \ - \ - \ - \ - ',settings:{autoplay:false,loop:false,preload:true,imageLocation:path+'player-graphics.gif',swfLocation:path+'audiojs.swf',useFlash:(function(){var a=document.createElement('audio');return!(a.canPlayType&&a.canPlayType('audio/mpeg;').replace(/no/,''));})(),hasFlash:(function(){if(navigator.plugins&&navigator.plugins.length&&navigator.plugins['Shockwave Flash']){return true;}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var mimeType=navigator.mimeTypes['application/x-shockwave-flash'];return mimeType&&mimeType.enabledPlugin;}else{try{var ax=new ActiveXObject('ShockwaveFlash.ShockwaveFlash');return true;}catch(e){}} -return false;})(),createPlayer:{markup:'\ -
\ -

\ -

\ -

\ -

\ -
\ -
\ -
\ -
\ -
\ -
\ - 00:0000:00 \ -
\ -
',playPauseClass:'play-pause',scrubberClass:'scrubber',progressClass:'progress',loaderClass:'loaded',timeClass:'time',durationClass:'duration',playedClass:'played',errorMessageClass:'error-message',playingClass:'playing',loadingClass:'loading',errorClass:'error'},trackEnded:function(e){},flashError:function(){var player=this.settings.createPlayer,errorMessage=getByClass(player.errorMessageClass,this.wrapper),html='Missing flash player plugin.';if(this.mp3)html+=' Download audio file.';container[audiojs].helpers.removeClass(this.wrapper,player.loadingClass);container[audiojs].helpers.addClass(this.wrapper,player.errorClass);errorMessage.innerHTML=html;},loadError:function(e){var player=this.settings.createPlayer,errorMessage=getByClass(player.errorMessageClass,this.wrapper);container[audiojs].helpers.removeClass(this.wrapper,player.loadingClass);container[audiojs].helpers.addClass(this.wrapper,player.errorClass);errorMessage.innerHTML='Error loading: "'+this.mp3+'"';},init:function(){var player=this.settings.createPlayer;container[audiojs].helpers.addClass(this.wrapper,player.loadingClass);},loadStarted:function(){var player=this.settings.createPlayer,duration=getByClass(player.durationClass,this.wrapper),m=Math.floor(this.duration/60),s=Math.floor(this.duration%60);container[audiojs].helpers.removeClass(this.wrapper,player.loadingClass);duration.innerHTML=((m<10?'0':'')+m+':'+(s<10?'0':'')+s);},loadProgress:function(percent){var player=this.settings.createPlayer,scrubber=getByClass(player.scrubberClass,this.wrapper),loaded=getByClass(player.loaderClass,this.wrapper);loaded.style.width=(scrubber.offsetWidth*percent)+'px';},playPause:function(){if(this.playing)this.settings.play();else this.settings.pause();},play:function(){var player=this.settings.createPlayer;container[audiojs].helpers.addClass(this.wrapper,player.playingClass);},pause:function(){var player=this.settings.createPlayer;container[audiojs].helpers.removeClass(this.wrapper,player.playingClass);},updatePlayhead:function(percent){var player=this.settings.createPlayer,scrubber=getByClass(player.scrubberClass,this.wrapper),progress=getByClass(player.progressClass,this.wrapper);progress.style.width=(scrubber.offsetWidth*percent)+'px';var played=getByClass(player.playedClass,this.wrapper),p=this.duration*percent,m=Math.floor(p/60),s=Math.floor(p%60);played.innerHTML=((m<10?'0':'')+m+':'+(s<10?'0':'')+s);}},create:function(element,options){var options=options||{} -if(element.length){return this.createAll(options,element);}else{return this.newInstance(element,options);}},createAll:function(options,elements){var audioElements=elements||document.getElementsByTagName('audio'),instances=[] -options=options||{};for(var i=0,ii=audioElements.length;iaudio.loadedPercent)return;audio.updatePlayhead.call(audio,[percent]) -audio.element.skipTo(percent);} -audio['updatePlayhead']=function(percent){audio.settings.updatePlayhead.apply(audio,[percent]);} -audio['play']=function(){if(!audio.settings.preload){audio.settings.preload=true;audio.element.init(audio.mp3);} -audio.playing=true;audio.element.pplay();audio.settings.play.apply(audio);} -audio['pause']=function(){audio.playing=false;audio.element.ppause();audio.settings.pause.apply(audio);} -audio['setVolume']=function(v){audio.element.setVolume(v);} -audio['loadStarted']=function(){audio.swfReady=true;if(audio.settings.preload)audio.element.init(audio.mp3);if(audio.settings.autoplay)audio.play.apply(audio);}},injectFlash:function(audio,id){var flashSource=this.flashSource.replace(/\$1/g,id);flashSource=flashSource.replace(/\$2/g,audio.settings.swfLocation);flashSource=flashSource.replace(/\$3/g,(+new Date+Math.random()));var html=audio.wrapper.innerHTML,div=document.createElement('div');div.innerHTML=flashSource+html;audio.wrapper.innerHTML=div.innerHTML;audio.element=this.helpers.getSwf(id);},helpers:{merge:function(obj1,obj2){for(attr in obj2){if(obj1.hasOwnProperty(attr)||obj2.hasOwnProperty(attr)){obj1[attr]=obj2[attr];}}},clone:function(obj){if(obj==null||typeof(obj)!=='object')return obj;var temp=new obj.constructor();for(var key in obj)temp[key]=arguments.callee(obj[key]);return temp;},addClass:function(element,className){var re=new RegExp('(\\s|^)'+className+'(\\s|$)');if(re.test(element.className))return;element.className+=' '+className;},removeClass:function(element,className){var re=new RegExp('(\\s|^)'+className+'(\\s|$)');element.className=element.className.replace(re,' ');},injectCss:function(audio,string){var prepend='',styles=document.getElementsByTagName('style'),css=string.replace(/\$1/g,audio.settings.imageLocation);for(var i=0,ii=styles.length;i1?swf[swf.length-1]:swf;}},events:{memoryLeaking:false,listeners:[],addListener:function(element,eventName,func){if(element.addEventListener){element.addEventListener(eventName,func,false);}else if(element.attachEvent){this.listeners.push(element);if(!this.memoryLeaking){window.attachEvent('onunload',function(){if(this.listeners){for(var i=0,ii=this.listeners.length;i-1){if(!ios)audio.init.apply(audio);} -if(audio.element.readyState>1){if(audio.settings.autoplay)audio.play.apply(audio);clearInterval(readyTimer);loadTimer=setInterval(function(){audio.loadProgress.apply(audio);if(audio.loadedPercent>=1)clearInterval(loadTimer);});}},10);audio.readyTimer=readyTimer;audio.loadTimer=loadTimer;},purge:function(d){var a=d.attributes,i;if(a){for(i=0;ithis.loadedPercent)return;this.element.currentTime=this.duration*percent;this.updatePlayhead();},load:function(mp3){this.loadStartedCalled=false;this.source.setAttribute('src',mp3);this.element.load();this.mp3=mp3;container[audiojs].events.trackLoadProgress(this);},loadError:function(){this.settings.loadError.apply(this);},init:function(){this.settings.init.apply(this);},loadStarted:function(){if(!this.element.duration)return false;this.duration=this.element.duration;this.updatePlayhead();this.settings.loadStarted.apply(this);},loadProgress:function(){if(this.element.buffered!=null&&this.element.buffered.length){if(!this.loadStartedCalled){this.loadStartedCalled=this.loadStarted();} -var durationLoaded=this.element.buffered.end(this.element.buffered.length-1);this.loadedPercent=durationLoaded/this.duration;this.settings.loadProgress.apply(this,[this.loadedPercent]);}},playPause:function(){if(this.playing)this.pause();else this.play();},play:function(){var ios=(/(ipod|iphone|ipad)/i).test(navigator.userAgent);if(ios&&this.element.readyState==0)this.init.apply(this);if(!this.settings.preload){this.settings.preload=true;this.element.setAttribute('preload','auto');container[audiojs].events.trackLoadProgress(this);} -this.playing=true;this.element.play();this.settings.play.apply(this);},pause:function(){this.playing=false;this.element.pause();this.settings.pause.apply(this);},setVolume:function(v){this.element.volume=v;},trackEnded:function(e){this.skipTo.apply(this,[0]);if(!this.settings.loop)this.pause.apply(this);this.settings.trackEnded.apply(this);}} -var getByClass=function(searchClass,node){var matches=[];node=node||document;if(node.getElementsByClassName){matches=node.getElementsByClassName(searchClass);}else{var i,l,els=node.getElementsByTagName("*"),pattern=new RegExp("(^|\\s)"+searchClass+"(\\s|$)");for(i=0,l=els.length;i1?matches:matches[0];};})('audiojs','audiojsInstance',this); \ No newline at end of file diff --git a/js/audiojs-doc-ready.js b/js/audiojs-doc-ready.js deleted file mode 100644 index 3c5122f..0000000 --- a/js/audiojs-doc-ready.js +++ /dev/null @@ -1,35 +0,0 @@ -// initialise plugins -jQuery(document).ready(function($){ - //alert('is running'); - // Audio js - audiojs.events.ready(function() { - var as = audiojs.createAll(); - }); - -}); - -jQuery(window).load(function($){ - jQuery(".audiojs").each(function() { - var wi = jQuery(this).width(); - if (wi <= 310){ - jQuery(this).addClass('audioResize'); - }else { - jQuery(this).removeClass('audioResize'); - } - }); - -}); - - - -/* -$(window).on("resize load", function () { - var wi = $('#audiojs_wrapper0').width(); - if (wi <= 267){ - $('#audiojs_wrapper0').addClass('audioResize'); - } - else { - $('#audiojs_wrapper0').removeClass('audioResize'); - } -}); -*/ \ No newline at end of file diff --git a/js/base-cachekey3894.css b/js/base-cachekey3894.css deleted file mode 100644 index 46c9820..0000000 --- a/js/base-cachekey3894.css +++ /dev/null @@ -1,2381 +0,0 @@ - -/* - public.css - */ -/* https://www12.senado.leg.br/institucional/portal_css/public.css?original=1 */ -/* */ -/* */ -* { margin: 0; padding: 0; } -* :link,:visited { text-decoration:none } -* ul,ol { list-style:none; } -* li { display: inline; } -* h1,h2,h3,h4,h5,h6,pre,code { font-size:1em; } -* a img,:link img,:visited img { border:none } -a { outline: none; } -table { border-spacing: 0; } -img { vertical-align: text-bottom; } -iframe { border-width: 0; border-style:none; } -/* */ -/* */ -body { -font: 100% Arial, FreeSans, sans-serif; -background: White; -color: Black; -/* */ -} -h1, h2, h3, h4, h5, h6 { -font-family: "Helvetica Neue", Arial, FreeSans, sans-serif; -font-weight: bold; -color: Black; -line-height: 1.5em; -} -h1, h2 { -letter-spacing: -0.05em; -} -h1 { -font-size: 2em; -} -h2 { -font-size: 1.75em; -} -h3 { -font-size: 1.25em; -} -h4 { -font-size: 1.25em; -} -h5 { -font-size: 1em; -} -h6 { -font-size: 0.8em; -} -h2, h3, h4, h5, h6 { -color: #444; -} -h2 a, h3 a, h4 a { -border-bottom: none !important; -} -p { -} -/* */ -/* */ -/* */ -/* */ -a { -color: #205c90; -} -a:focus img { -outline: thin dotted; -} -dt { -font-weight: bold; -} -input { -font-family: "Lucida Grande", Arial, FreeSans; -} -q { -quotes: "“" "”" "‘" "’"; -} -/* */ -/* */ -#portal-header { -position: relative; -z-index: 2; -} -#portal-logo { -display: inline-block; -margin: 1.375em 0; -} -#portal-globalnav { -clear: both; -font-size: 80%; -background: #ddd; -/* */ -margin: 0 0 1em 0; -} -#portal-globalnav li { -} -#portal-globalnav li a { -display: inline-block; -padding: 0.5em 1em 2em 1em; -background: #ddd; -min-width: 6em; -white-space: normal; -border-right: 0.1em solid white; -} -#portal-globalnav .selected a, -#portal-globalnav a:hover { -background: #205c90; -color: White; -} -#portal-globalnav .selected a:hover { -background: #ddd; -color: #205c90; -} -#portal-personaltools { -float: right; -background: #e3e3e3; -position: relative; -z-index: 3; /* */ -top: 0; -right: 0; -padding: 0.25em 0.5em; -font-size: 80%; -border-bottom-right-radius: 0.5em; -border-bottom-left-radius: 0.5em; --webkit-border-bottom-right-radius: 0.5em; --webkit-border-bottom-left-radius: 0.5em; --moz-border-radius-bottomleft: 0.5em; --moz-border-radius-bottomright: 0.5em; -} -#portal-personaltools #anon-personalbar a { -float: left; -margin-right: 0.5em; -} -#portal-languageselector { -float: right; -background: #e3e3e3; -position: relative; -top: 0; -right: 1px; -z-index: 3; /* */ -padding: 0.25em 0.5em; -font-size: 80%; -border-bottom-right-radius: 0.5em; -border-bottom-left-radius: 0.5em; --webkit-border-bottom-right-radius: 0.5em; --webkit-border-bottom-left-radius: 0.5em; --moz-border-radius-bottomleft: 0.5em; --moz-border-radius-bottomright: 0.5em; -max-width: 50%; -} -#portal-searchbox { -float: right; -text-align: left; -clear: right; -margin: 1.2em 0; -font-size: 80%; -} -#portal-searchbox form { -white-space: nowrap; -} -#portal-searchbox label { -font-weight: normal; -} -#searchGadget { -width: 13em; -} -#searchGadget, -.LSBox input.searchButton { -} -.LSBox .searchSection { -} -#content input.searchField { -margin-bottom: 1em; -} -input.searchField { --moz-appearance: searchfield; -} -/* */ -.collapsible .collapser.collapsed { -padding-right: 14px; -background: url('arrowRight.png') center right no-repeat; -} -.collapsible .collapser.expanded { -padding-right: 14px; -background: url('arrowDown.png') center right no-repeat; -} -/* */ -/* */ -#LSResult { -position: absolute; -right: 0; -background: White; -margin: -1.5em 0 0 -7em; -} -#LSResult fieldset { -padding: 1em 0 0; -border: 0.1em solid #ccc; -} -#livesearchLegend { -background-color:#ccc; -padding:0.3em; -} -#LSResult .LSDescr { -font-size: 85%; -color: #666; -} -.LSRow, -#LSNothingFound { -display: block; -padding: 0.5em 1em; -white-space: normal; -width:28em; -} -.LSHighlight { -background: #ddd; -} -/* */ -/* */ -#portal-breadcrumbs { -font-size: 80%; -margin-bottom: 1em; -margin-left: 0.25em; -} -#portal-breadcrumbs a { -border-bottom: none; -display: inline-block; -} -/* */ -/* */ -#portal-siteactions { -font-size: 85%; -padding-bottom: 2em; -text-align: center; -clear: left; -} -#portal-siteactions li { -margin-right: 0.5em; -} -#portal-siteactions li a:hover { -color: #75ad0a -} -/* */ -/* */ -a.link-parent { -} -a.link-anchor { -border: none !important; -color: Black !important; -cursor: default !important; -} -#content a.link-overlay { -border-bottom: 1px dotted #205c90 !important; -} -dl dt .documentByLine { -font-weight: normal; -} -dl dt span.summary a { -border: none !important; -} -/* */ -/* */ -dl.portlet { -margin: 0 0 1em; -font-size: 80%; -} -dl.portletError { -background-color: #FFA500; -} -dl.portlet dt, -div.portletAssignments div.portletHeader { -padding: 0.42em 1em; -background: #ddd; -line-height: normal; -} -dl.portlet dt.hiddenStructure { -padding: 0; -} -div.portletAssignments { -font-size: 0.8em; -line-height: 2em; -} -div.portletAssignments .managedPortletActions { -float: right; -} -div.portletAssignments .managedPortletActions a { -margin: 0 0.25em; -border: none; -} -dl.portlet dt a:link, -dl.portlet dt a:visited, -dl.portlet dt a:hover { -color: black; -display: block; -border: none; -} -dl.portlet dd.portletItem, -dl.portlet dd.portletFooter, -dl.portletError dd { -padding: 1em; -} -div.managePortletsLink, -a.managePortletsFallback { -text-align: center; -padding: 0.25em 0.5em; -font-size: 80%; -margin: 0 auto 1em; -background: #ddd; -border-radius: 0.5em; --webkit-border-radius: 0.5em; --moz-border-radius: 0.5em; -} -a.managePortletsFallback { -display:inline-block; /* */ -} -#content a.managePortletsFallback { -display: block; -border-bottom: none !important; -} -#portlet-prefs a { -border: none; -line-height: 2em; -} -#visual-portal-wrapper dl.portletCalendar dd { -padding: 0; -} -#dashboard-portlets1, -#dashboard-portlets2, -#dashboard-portlets3, -#dashboard-portlets4 { -display: inline-block; -} -/* */ -/* */ -dl.portlet ul.navTree li a { -border: none; -display: block; -zoom: 1; -} -dl.portlet ul.navTree li a:hover { -} -dl.portletNavigationTree dd.portletItem { -padding: 0; -} -dl.portlet ul.navTreeLevel0 > .navTreeItem { -padding: 0.25em 1em; -border-bottom: 0.1em dotted #ddd; -line-height: 2em; -} -dl.portlet ul.navTreeLevel1 .navTreeItem { -padding-left: 0.5em; -line-height: 2em; -} -dl.portlet ul.navTree .navTreeCurrentItem { -background-color: #ddd; -border-left: 1em solid #ddd; -margin-left: -1em; -margin-right: -1em; -} -/* */ -/* */ -#content { -line-height: 1.5em; -clear: both; -font-size: 80%; -margin: 1em 0.25em 2em 0.25em; -} -/* */ -body#content { -margin: 1em; -} -#content h1 { -margin-top: 0.5em; -} -#content h1.documentFirstHeading { -margin-top: 0; -} -#content p, -#content table, -#content dl, -dl.portlet p, -dl.portlet { -margin-bottom: 1em; -} -#content ul, -#content ol { -} -/* */ -/* */ -/* */ -/* */ -/* */ -/* */ -#content a:visited, -dl.portlet a:visited { -color: #427597; -border-bottom: 0.1em solid #ccc; -} -#content a:hover, -dl.portlet a:hover { -color: #75ad0a !important; /* */ -} -#content a:target { -background-color: #ffb; -} -#content span.link-external a { -background: transparent url(link_icon.png) 0px 1px no-repeat; -padding: 1px 0px 1px 16px; -} -#category { -font-size: 75%; -margin-bottom: 1em; -color: #666; -text-align: right; -} -#category a.link-category, span.selectedTag { -color: black; -padding: 0.25em 0.5em; -background: #ddd; -border-radius: 0.5em; --webkit-border-radius: 0.5em; --moz-border-radius: 0.5em; -} -#category a.link-category:hover { -background: #205c90; -color: White; -border-color: #205c90; -} -#category .separator { -display: none; -} -#content ul { -list-style-type: disc; -margin-left: 2em; -} -#content ol, -dl.portlet ol { -list-style-type: decimal; -margin-left: 2em; -} -#content li, -dl.portlet li { -margin-bottom: 0.25em; -line-height: 1.5em; -display: list-item; -} -#content dt { -font-weight: bold; -margin-bottom: 0; -margin-right: 0; -} -#content dd { -margin: 0 0 1em 2em; -} -#content pre { -background-color: #222; -color: White; -font-family: Consolas, Inconsolata, Menlo, "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; -padding: 1em; -overflow-x: auto; -font-size: 90%; -margin-bottom: 1em; -line-height: 1.25em; -} -#content pre.python { -background-color: White; -} -#content code { -font-family: Consolas, Inconsolata, Menlo, "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; -} -#content div.documentByLine { -font-size: 85%; -display: block; -color: #666; -} -#content .discreet, -#sidebar .discreet { -color: #666; -font-size: 85%; -font-weight: normal; -} -#content .visualHighlight { -background-color: #ffb; -} -#content .pullquote { -margin: 0 1em 0.5em 0.5em; -font-weight: bold; -line-height: 1.25em; -float: right; -width: 35%; -clear: right; -color: #444; -font-size: 1.6em; -letter-spacing: -0.08em !important; -} -#content .callout { -background: #eee; -padding: 1em; -border-left: 1em solid #ccc; -clear: both; -} -#content table { -text-align: left; -border-collapse: collapse; -border-spacing: 0px; -} -#content .documentDescription, -#content #description { -color: #666; -margin-left: 0; -font: bold 1.25em "Helvetica Neue", Arial, FreeSans, sans-serif; -} -#content img.tileImage, -#content div.newsImageContainer { -float: right; -margin: 0 1em 0.5em 1em; -} -#content div.newsImageContainer a { -border-bottom: none; -} -#content div.newsImageContainer p.discreet { -margin: 0; -padding: 0.5em; -background-color: #666; -background-color: rgba(40,40,40,0.7); -color: White; -font-weight: bold; -position: relative; -width: 190px; -top: -3em; -} -.eventDetails { -float: right; -clear: right; -margin: 0 0 0.5em 1em; -} -/* */ -/* */ -table.listing, -table.plain { -border-spacing: 0; -border-collapse: collapse; -} -table.invisible td, -table.invisible th, -table.plain td, -table.plain th, -table.listing td, -table.listing th { -padding: 0.5em 1em; -vertical-align: top; -} -table.plain th, -table.plain td { -border: 1px solid #ddd; -} -table.listing td.listingCheckbox, -table.listing th.listingCheckbox { -text-align: center; -} -table.listing { -border-left: 1px solid #ddd; -border-bottom: 1px solid #ddd; -} -table.listing .top { -border-left: 1px solid #ddd; -border-top: 1px solid #ddd; -border-right: 1px solid #ddd; -} -table.listing th { -text-align: left; -color: #666; -border: 0.1em solid #e7e7e7; -border-style: solid solid none; -background: #ddd; -} -table.listing tr.odd th { -border: 0.1em solid #fff; -border-style: solid solid none none; -} -table.listing tbody th { -font-weight: bold; -} -table.listing tbody tr { -text-align:left; -} -table.listing tbody tr.odd { -background: #eee; -} -table.listing tbody tr td { -background: transparent; -} -table.listing tbody tr.odd td { -background: #eee; -} -table.listing td { -border-right: 1px solid #ddd; -} -table.listing a { -border: none; -display: inline-block; -border-bottom: none !important; -} -table.listing td.draggable { -text-shadow: White 1px 1px 1px; -background: #ddd !important; -border-bottom: 1px solid white; -padding: 0.4em 0.4em 0 0.5em; -} -/* */ -table.vertical { -} -table.vertical th { -text-align: right; -} -table.vertical td { -border-top: 0.1em solid #e7e7e7; -padding: 0.5em; -} -/* */ -table.grid td, -table.grid th { -border: 1px solid #e7e7e7; -padding: 0.5em; -} -.dragindicator { -outline: 2px solid #FFD700; -} -#foldercontents-order-column { -padding: 0; -} -div.listingBar { -font-size: 80%; -margin: 1em 0; -} -div.listingBar .next { -display: inline-block; -float: right; -} -div.listingBar .previous { -display: inline-block; -} -div.listingBar a { -display: inline-block; -padding: 0.25em 0.5em; -border: 0.1em solid #ccc; -} -div.listingBar a:hover { -color: White; -background-color: #329fd7; -border-color: #329fd7; -} -/* */ -/* */ -dl.portalMessage { -margin: 1em 0; -font-size: 80%; -border: 1px solid #996; -background-color: #ffffe3; -clear:both; -} -dl.portalMessage a, -#content dl.portalMessage a { -color: black; -border-bottom: 1px solid #888; -} -dl.portalMessage dt { -background-color: #996; -font-weight: bold; -float: left; -margin: 0 0.5em 0 0; -padding: 0.5em 0.75em; -color: White; -line-height: 1.25em; -} -dl.portalMessage dd { -padding: 0.5em 0.5em; -margin: 0; -line-height: 1.25em; -} -dl.warning { -border-color: #d80; -} -dl.warning dt { -background-color: #d80; -} -dl.error { -border-color: #d00; -} -dl.error dt { -background-color: #d00; -} -dl.warning { -border-color: #d80; -} -dl.warning dd { -background-color: #fd7; -} -dl.error { -border-color: red; -} -dl.error dd { -background-color: #fdc; -} -/* */ -#content dl.portalMessage { -font-size: 100%; -} -#content dl.portalMessage dt { -margin: 0 0.5em 0 0; -padding: 0.5em 0.75em; -} -#content dl.portalMessage dd { -margin: 0; -} -/* */ -/* */ -/* */ -/* */ -#content ul.formTabs { -background-color: #ddd; -border: 0.3em solid #ddd; -} -#edit-bar { -background-color: #75ad0a; -border: 0.25em solid #75ad0a; -font-size: 80%; -min-height: 2em; -margin-bottom: 1em; -padding-top: 0.05em; -} -#content-views { -float: left; -background-color: #75ad0a; -} -#content-views a { -color: White; -} -/* */ -#edit-bar, -#content ul.formTabs { -display: block; -border-style: solid solid none solid; -margin-left: 0; -border-top-right-radius: 0.5em; -border-top-left-radius: 0.5em; --webkit-border-top-right-radius: 0.5em; --webkit-border-top-left-radius: 0.5em; --moz-border-radius-topleft: 0.5em; --moz-border-radius-topright: 0.5em; -} -#content li.formTab { -display: inline; -margin-right:0.25em; -} -#content-views a, -#content li.formTab a { -/* */ -display: inline-block; -} -#content-views a, -#content li.formTab a { -line-height: 2em; -padding: 0 0.75em; -text-decoration: none; -border: none; -margin: 0 ; -} -#content-views li.selected a, -#content li.formTab a.selected { -font-weight: bold; -} -#content-views li.selected a, -#content-views li a:hover, -#content li.formTab a.selected, -#content li.formTab a:hover { -background: White; -color: Black; -} -#content-views li.selected a, -#content-views li a:hover, -#content li.formTab a.selected, -#content li.formTab a:hover { -border-top-right-radius: 0.5em; -border-top-left-radius: 0.5em; --webkit-border-top-right-radius: 0.5em; --webkit-border-top-left-radius: 0.5em; --moz-border-radius-topleft: 0.5em; --moz-border-radius-topright: 0.5em; -} -#content li.formTab a.notify { -background-color: red; -color: White; -} -#content li.formTab a.required span { -background-image: url(required.png); -background-position: center right; -background-repeat: no-repeat; -padding-right: 1em; -} -#content fieldset.formPanel { -border: none; -} -#content fieldset.formPanel.hidden { -display: none; -} -#content div.formControls input.hidden { -display: none; -} -/* */ -/* */ -/* */ -#portal-personaltools dl { -} -#portal-personaltools dt { -font-weight: normal; -} -#portal-personaltools dt.actionMenuHeader a:after { -content: " ▼"; -} -#portal-personaltools dd { -right: 0; -padding-top: 0.5em; -} -#portal-personaltools dd { -background: #e3e3e3; -padding-bottom: 0.5em; -} -#portal-personaltools dd a { -line-height: 2em; -padding: 0 0.75em; -} -#portal-personaltools dd a:hover { -background: #205c90; -color: White; -} -/* */ -/* */ -#contentActionMenus dl.actionMenu a, -#contentActionMenus dl.actionMenu.activated dd { -background-color: #75ad0a; -color: White; -z-index: 5; -} -#contentActionMenus dl.actionMenu.activated dd { -border-bottom: 0.5em solid #75ad0a; -right: -3px; -} -#contentActionMenus dl.actionMenu.activated dd a:hover, -#contentActionMenus dl.actionMenu.activated dd .actionMenuSelected { -background-color: White !important; -color: #666; -} -#contentActionMenus dl.actionMenu { -line-height: 2em; -} -#folderHeader, #contextHeader { -border-bottom: 2px solid white; -} -#contextHeader { margin-top: 5px; } -/* */ -#contentActionMenus { -float: right; -background: #75ad0a; -margin: 0; -position: relative; -top: -0.23em; -right:-0.24em; -padding: 0.1em 0.24em 0 0; -border-radius: 0.5em; -border-top-left-radius: 0; --webkit-border-radius: 0.5em; --webkit-border-top-left-radius: 0; --moz-border-radius: 0.5em; --moz-border-radius-topleft: 0; -} -.actionMenuContent { -padding: 0 0.25em; -} -dl.actionMenu { -float: right; -white-space: nowrap; -position: relative; -margin-left: 0.5em; -} -dl.actionMenu a, -dl.actionMenu div { -display: block !important; -white-space: nowrap; -} -dl.actionMenu dt { -font-weight: normal; -} -span.arrowDownAlternative { -font-size: 80%; -} -dl.actionMenu.deactivated dt { -margin: 0 0.25em; -} -dl.actionMenu.deactivated dd { -display: none; -} -dl.actionMenu.activated dd { -position: absolute; -width: auto; -min-width: 100%; -border-bottom-right-radius: 0.5em; -border-bottom-left-radius: 0.5em; --webkit-border-bottom-right-radius: 0.5em; --webkit-border-bottom-left-radius: 0.5em; --moz-border-radius-bottomleft: 0.5em; --moz-border-radius-bottomright: 0.5em; -} -dl.actionMenu.activated dt a, -dl.actionMenu.activated dd a, -dl.actionMenu.activated dd div { -margin: 0 0.25em; -} -/* */ -/* */ -#setup-link { -font-size: 90%; -} -#content ul.configlets { -margin: 1em 0; -list-style-image: none; -list-style: none; -} -#content ul.configlets li { -margin-bottom: 1em; -list-style: none; -display: block; -} -#content ul.configlets li a { -text-decoration: none; -border: none; -} -#content ul.configlets li a:visited { -color: #436976; -background-color: transparent; -} -#content ul.configlets li a:active { -color: #436976; -background-color: transparent; -} -#content ul.configlets li label { -font-weight: bold; -} -#content ul.configletDetails { -margin: 0em 1em 1em 4em; -list-style-image: none; -list-style: none; -} -#content ul.configletDetails li { -margin-bottom: 1em; -display: inline; -} -#content ul.configletDetails li a { -text-decoration: none; -} -#content ul.configletDetails li label { -font-weight: bold; -} -#content ul.configletDetails li.configletDescription { -display: block; -color: #76797c; -margin: 0; -} -.inlineDisplay { -display:inline -} -table.controlpanel-listing { -width:100%; -} -table.controlpanel-listing td, table.controlpanel-listing th { -font-size:120%; -} -table.controlpanel-listing dl { -margin-top:0; -} -table.controlpanel-listing dd { -margin-left: 1em; -} -table.controlpanel-listing dl dt a .trigger{ -font-weight:normal; -} -table .controlpanel-listing td { -vertical-align:top; -} -table.controlpanel-listing td.checker{ -text-align:center; -} -table.controlpanel-listing th.smallcolumn { -width:1.5em; -} -.chooser-right { -float:right; -margin-right:0; -margin-bottom:0; -} -.rule-element { -background-color:#EEF3F5; -margin:0.5em 0pt 0.5em; -padding:0.3em 1em 0.3em 1em; -width:auto; -} -.rule-element dl { -} -.rule-element dl dd { -margin-left:1em; -} -.rule-updown, .rule-operations { -float:right; -padding-top:0.8em; -} -/* */ -/* */ -dl.collapsible { -border: 0.1em solid #8cacbb; -margin: 1em 0; -padding: 0; -} -dl.collapsible dt.collapsibleHeader { -display: block; -float: left; -background: White; -line-height: 1.2em; -vertical-align: middle; -font-size: 90%; -position: relative; -top: -0.6em; -width: auto; -margin: 0 0 -0.6em 1em; -padding: 0 0.5em; -} -dl.collapsible dd.collapsibleContent { -margin: 0; -padding: 0 1em 0.4em; -clear: left; -} -/* */ -dl.collapsible dd.collapsibleContent > dl { -margin: 0; -padding: 0; -} -dl.expandedInlineCollapsible dt.collapsibleHeader, -dl.expandedBlockCollapsible dt.collapsibleHeader { -padding: 0 0.5em 0 2em; -background: White url(treeExpanded.png) no-repeat 0.5em 50%; -cursor: pointer; -} -dl.collapsedBlockCollapsible { -border: none; -height: 1em; -width: auto; -} -dl.collapsedInlineCollapsible dt.collapsibleHeader, -dl.collapsedBlockCollapsible dt.collapsibleHeader { -float: none; -position: relative; -margin: 0 0 0 1em; -padding: 0 0.5em 0 2em; -line-height: 1.2em; -cursor: pointer; -background: White url(treeCollapsed.png) no-repeat 0.5em 50%; -} -dl.collapsedInlineCollapsible dd.collapsibleContent, -dl.collapsedBlockCollapsible dd.collapsibleContent { -display: none; -} -dl.collapsedInlineCollapsible { -border: none; -height: 1em; -width: auto; -display: inline; -} -dl.collapsedInlineCollapsible dt.collapsibleHeader { -position: static; -float: none; -margin: 0; -padding: 0 0 0 2em; -line-height: 1em; -cursor: pointer; -display: inline; -} -/* */ -/* */ -.comment { -margin-top: 1.5em; -font-size: 80%; -} -.comment .documentByLine { -margin-left: 1em; -} -.comment .formControls { -margin-left: 0; -} -.commentTime { -color: #666; -} -.commentBody { -padding: 1em; -margin: 0.5em 0; -border-radius: 0.5em; --webkit-border-radius: 0.5em; --moz-border-radius: 0.5em; -box-shadow: 0 0 1em 0 #888; --moz-box-shadow: 0 0 0.5em 0 #888; --webkit-box-shadow: 0 0 0.5em #888; -} -.comment h1, -.comment h2, -.comment h3, -.comment h4, -.comment h5, -.comment h6 { -font-weight: normal; -} -/* */ -.reviewHistory, -.contentHistory { -display: inline; -color: Black; -} -.spacer { -margin: 1em; -} -.label { -font-weight: bold; -display: inline; -padding-right: 0.5em; -} -.optionsToggle { -border: 0.1em solid #8cacbb; -color: Black; -background-color: #dee7ec; -font-weight: normal; -font-size: 90%; -} -/* */ -.highlightedSearchTerm { -background-color: #ffa; -} -dl.searchResults .highlightedSearchTerm { -background-color: transparent; -font-weight: bold; -} -/* */ -.noInheritedRoles { -color: #a0a0a0; -} -/* */ -.currentItem { -border-collapse: collapse; -border: 0.2em solid #ffa500; -padding: 0.1em; -} -/* */ -/* */ -form.searchPage { -text-align:center; -} -input.searchPage { -font-size:200% !important; -} -/* */ -/* */ -.image-left { -float: left; -margin: 0.5em 1em 0.5em 0; -} -.image-right { -float: right; -margin: 0.5em; -} -.image-inline { -float: none; -} -img.image-left, -img.image-right, -.captioned img { -border: 1px solid #ddd; -} -dd.image-caption { -text-align: left; -padding: 0 0 0 3px; /**/ -margin: 0; -color: #666; -font-size: 85%; -} -/* */ -/* */ -#dashboard-actions ul, -#dashboard-actions ul li { -list-style: none; -} -#dashboard-actions ul { -margin-left: 0; -} -#dashboard { -font-size: 125%; -line-height: 1em; -} -#dashboard dd { -margin: 0; -} -#dashboard dl.portlet a:link { -border-bottom: none; -} -#dashboard-portlets1, -#dashboard-portlets2, -#dashboard-portlets3 { -float:left; -width:23%; -padding:0.7em 1.3em 0 0; -} -#dashboard-portlets4 { -float:left; -width:23%; -padding-top:0.7em; -} -#dashboard-portlets1 dl.portlet, -#dashboard-portlets2 dl.portlet, -#dashboard-portlets3 dl.portlet, -#dashboard-portlets4 dl.portlet { -margin-bottom:1.5em; -} -/* */ -/* */ -fieldset, -.editionComment { -line-height:1.5em; -margin:1em 0; -padding:0 1em 1em; -width:auto; -} -/* */ -#content .field input[type="text"][name$=".title"], -#archetypes-fieldname-title input { -font-family: "Helvetica Neue", Arial, FreeSans, sans-serif; -line-height: 125%; -color: Black; -letter-spacing: -0.05em; -margin: inherit -0.05em; -font-size: 2em; /* */ -font-weight: bold; -} -/* */ -#content .field textarea[name$=".description"], -#archetypes-fieldname-description textarea#description { -font-family: Arial,FreeSans,sans-serif; -color:#666666; -font-size:1.25em; -font-weight: bold; -} -div.formControls { -margin: 1em; -} -input[type="text"]:focus, -input[type="password"]:focus, -textarea:focus { -background-color: #ffffe0; -} -#content textarea { -font: 100% Monaco, "Courier New", Courier, monospace; -width: 100%; -} -#content select { -vertical-align: top; -} -#content fieldset { -border: 0.1em solid #329fd7; -border-style: solid none none none; -} -#content legend { -padding: 0.5em; -font-size: 85%; -} -label { -font-weight:bold; -} -#content label { -} -#content optgroup { -font-style: normal; -font-weight: bold; -color: #999; -padding-left: 0.25em; -} -#content option { -color: black; -} -#content optgroup > option { -padding: 0 0.25em 0 1em; -} -dl.enableFormTabbing dd { -margin-left: 0; -padding-top: 2em; -} -.searchSection { -color: #76797c; -margin-top: 0.25em; -} -.searchSection label:hover { -color: Black; -} -.field { -clear: both; -margin-bottom: 1em; -} -.field input[type="text"] { -width: 20em; -} -.field input[type="text"][size] { -width: auto; -} -.field input[type="text"][name$=".title"], -input#title { -width: 100%; -} -.field.error input[type="text"][name$=".title"], -.error input#title { -width: 99%; -} -.fieldRequired { -background: url(required.png) center left no-repeat; -padding: 0 0 0 1em; -color: White; -} -.fieldUploadFile { -text-align: right; -margin-right: 0.75em; -display: none; -} -.fieldTextFormat { -text-align: right; -margin-right: 0.75em -} -.formHelp { -color: #555; -margin: 0 0 0.2em 0; -} -div.field.error { -background-color: #fdc; -border: 1px solid red; -padding: 0.5em; -margin: 1em 0; -} -.error .fieldRequired { -color: #d00; -} -div.error.warning { -background-color: transparent; -border: none; -margin-top: 0; -padding: 0; -} -div.error.warning input { -border: 2px solid red; -} -input.inputLabelActive { -color: #76797c; -} -textarea#form\.description { -height: 6em; -width: 99%; -} -table.listing tbody tr.odd.selected td, -table.listing tbody tr.odd.dragging td, -tr.dragging, -tr.selected { -background-color: #ffa; -} -table.listing tbody tr.odd.error td, -tr.error { -background-color: #fdc; -} -.multi-widget-field { -padding-left: 0.5em; -border-left: 1.5em solid #DDD; -} -.multi-widget-checkbox { -margin-left: -2em; -margin-right: 0.5em; -width: 1.5em; -display: inline-block; -} -/* */ -body.template-logged_out #content, -body.template-login_form #content, -.pb-ajax #login-form { -text-align: center; -} -#fieldset-openid-login input, #login-form input { -font-size: 150%; -} -body.template-register #content input, -body.template-new-user #content input { -font-size: 150%; -width: inherit; -} -#fieldset-openid-login label, #login-form label { -margin-right:0.5em; -padding-top:0.2em; -text-align:right; -width: 10em; -display: inline-block; -} -#fieldset-openid-login .formControls input, #login-form .formControls input { -margin-left: 0.25em; -} -/* */ -/* */ -/* */ -dl.toc { -float: right; -width: 35%; -font-size: 100%; -margin: 1em 0 0.5em 1.5em; -} -dl.toc dt { -margin-left: 1em; -font-weight: normal; -text-transform: uppercase; -} -dl.toc dd { -margin-bottom: 0; -padding-left: 2em; -} -dl.toc dd ol { -margin-left: 1.5em; -} -/* */ -/* */ -#portal-footer { -font-size: 75%; -background: #ddd; -padding: 1em; -margin: 1em 0; -line-height: 2em; -} -#portal-colophon { -font-size: 70%; -text-align: center; -margin-bottom: 1em; -} -#portal-colophon li { -padding:0 0.75em; -} -#portal-colophon a { -color: #444; -} -/* */ -/* */ -#portal-sitemap { -list-style: none; -margin-left: 0; -font-size: 130%; -font-weight: bold; -} -#portal-sitemap li { -list-style: none; -margin-left: 0; -} -#portal-sitemap a { -border-bottom: none; -display: block; -} -#portal-sitemap > li { -border-bottom:0.1em dotted #ddd; -line-height:1.8em; -padding:0.25em 1em; -margin-bottom: 0; -} -#portal-sitemap .navTreeLevel2, -#portal-sitemap .navTreeLevel2 ul { -font-size: 85%; -font-weight: normal; -margin-bottom: 0; -padding: 0.25em 0; -} -/* */ -/* */ -.photoAlbumEntry { -float: left; -position:relative; -overflow: hidden; -height: 185px; -width: 143px; -margin: 0em; -padding: 0px 6px 0px 9px; -text-align: center; -background-image: url('polaroid-single.png'); -background-repeat: no-repeat; -} -.photoAlbumEntry img { -border: 1px solid #ccc; -display: block; -margin: 0 auto; -} -.photoAlbumEntryWrapper { -height: 130px; -width: 128px; -margin-bottom: 7px; -} -.photoAlbumEntry a { -display: block; -text-decoration: none; -font-size: 90%; -height: 169px; -width: 130px; -margin: 16px auto 0px; -} -.photoAlbumFolder { -background-image: url('polaroid-multi.png'); -background-repeat: no-repeat; -} -.photoAlbumEntryTitle { -color: #76797c; -display: block; -width: 128px; -height: 3.6em; -} -/* */ -/* */ -.hiddenStructure { -display: block; -background: transparent; -background-image: none; /* */ -border: none; -height: 0.1em; -overflow: hidden; -padding: 0; -margin: -0.1em 0 0 -0.1em; -width: 1px; -} -#content .visualNoMarker { -list-style:none; -margin-left: 0; -} -.visualClear { -clear: both; -} -/* */ -/* */ -body.largeText { font-size: 125%; } -body.smallText { font-size: 85%; } -/* */ -/* */ -/* */ -div.overlay { -width: auto; -height: auto; -/* */ -display: none; -/* */ -margin: 1em; -font-size: 80%; -} -div.overlay-iframe, -div.overlay-ajax { -width: 60%; -min-height: 100px; -z-index: 99; /* */ -} -div.overlay-iframe { -height: 60%; -} -/* */ -div.overlaybg div.close, -div.overlay div.close { -background-image: url(pb_close.png); -position: absolute; -left: -14px; -top: -14px; -cursor: pointer; -height: 30px; -width: 30px; -} -.pb-ajax { -overflow-y: auto; -} -.pb-ajax, .pb-image, .overlay iframe { -background-color: #fff; -border: 1px solid #999; -white-space: normal; -box-shadow: 0 0 3em 0.5em #666; --moz-box-shadow: 0 0 3em 0.5em #666; --webkit-box-shadow: 0 0 3em #666; -} -.pb-ajax > div { -width: 92%; -padding: 1em; -} -.pb-ajax .documentActions {display:none} -div.overlay div.close span { -display: block; -height: 1px; -margin: -1px 0 0 -1px; -overflow: hidden; -padding: 0; -width: 1px; -} -div.overlay textarea { width: 100%; } -/* */ -div.overlay .link-parent { display: none; } -div.overlay #createGroup legend { display: none; } -div.overlay #createGroup fieldset { border: none; } -/* */ -div.overlay p { -margin-bottom: 1em; -} -div.overlay label { -margin-bottom: 0.25em; -} -div.overlay a:hover { -color: #75ad0a; -} -div.overlay a.selected { -color: #000000; -} -div.overlay .formTab { -margin-right:1em; -font-weight: bold; -} -div.overlay .formTab.lastFormTab { -margin-right:0em; -} -div.overlay .formControls a { -display: block; -margin: 0.75em; -} -/* */ -/* */ -#content-history #history dd { -} -#content-history div.historyRecord { -margin-bottom: 1em; -} -#content-history div.historyTools ul { -float: right; -margin: 0.5em 1em; -} -#content-history div.historyTools ul li { -display: inline; -padding: 0 0.015em; -} -#content-history div.historyTools ul li a{ -border-bottom: none; -} -#content-history div.historyTools form { -display: inline; -} -#content-history .historyAction { -} -#content-history .historyByLine { -background: #ddd; -padding: 0.5em; -border-top-right-radius: 0.5em; -border-top-left-radius: 0.5em; --webkit-border-top-right-radius: 0.5em; --webkit-border-top-left-radius: 0.5em; --moz-border-radius-topleft: 0.5em; --moz-border-radius-topright: 0.5em; -} -#content-history div.historyLinks { -float: right; -clear: right; -margin: 0.5em 1em 0 0; -} -#content-history div.historyComment { -padding: 0.5em 1em; -border: 1px solid #ddd; -} -#content-history div.historyComment p { -margin: 0; -padding-top: 1px; -} -#content-history a.historyComparePrevious { -border-top: 1px dotted #ccc; -display: block; -margin-top: 3em; -text-align: center; -} -#content-history a.historyComparePrevious span { -background-color: white; -position: relative; -top: -0.75em; -padding: 0 0.5em; -} -/* */ -/* */ -.icons-on .contenttype-document { -background: no-repeat transparent 0px 4px url(contenttypes-sprite.png); -} -.icons-on .contenttype-event { -background: no-repeat transparent 0px -212px url(contenttypes-sprite.png); -} -.icons-on .contenttype-folder { -background: no-repeat transparent 0px -644px url(contenttypes-sprite.png); -} -.icons-on .contenttype-link { -background: no-repeat transparent 0px -1076px url(contenttypes-sprite.png); -} -.icons-on .contenttype-news-item { -background: no-repeat transparent 0px -1292px url(contenttypes-sprite.png); -} -.icons-on .contenttype-plone-site { -background: no-repeat transparent 0px -1508px url(contenttypes-sprite.png); -} -.icons-on .contenttype-topic { -background: no-repeat transparent 0px -1724px url(contenttypes-sprite.png); -} -/* */ -.icons-on #plone-contentmenu-factories .contenttype-file { -background: no-repeat transparent 0px -428px url(contenttypes-sprite.png); -} -.icons-on #plone-contentmenu-factories .contenttype-image { -background: no-repeat transparent 0px -860px url(contenttypes-sprite.png); -} -.icons-on .contenttype-document, -.icons-on .contenttype-event, -.icons-on .contenttype-folder, -.icons-on .contenttype-link, -.icons-on .contenttype-news-item, -.icons-on .contenttype-plone-site, -.icons-on .contenttype-topic, -.icons-on #plone-contentmenu-factories .contenttype-file, -.icons-on #plone-contentmenu-factories .contenttype-image { -line-height: 2em; -display: inline-block; -*display: block; -padding-left: 20px !important; -} -/* */ -/* */ -.optionsBox { -overflow-y: auto; -border: solid 1px #999999; -background: #FFFFFF; -height: 14em; -width: 100%; -} -.optionsBox LABEL { -padding: 2px 0 0 0; -display: block; -line-height: 1em; -font-weight: normal; -} -.optionsBox input{ -vertical-align: middle; -margin: 1px 4px 4px 6px; -} -.optionsBox LABEL.checked { -background-color: #EEEEEE; -} -.optionsBox LABEL.hover { -background-color: #777777; -color: #FFFFFF; -} -#archetypes-fieldname-subject .formHelp { -font-weight: normal; -} -#existingTagsSection { -position: relative; -margin-left: 3em; -} -#existingTags { -float: left; -width: 50%; -} -#content #existingTags dd { -margin-bottom: 1px; -margin-left: 0; -} -#content #selectedTags, #content #newTags { -margin-bottom: 0; -margin-left: 0; -} -#content #selectedTagsSection { -margin-left: 3em; -float: left; -width: 43%; -margin-bottom: 0; -} -#newTagsSection { -width: 48%; -margin-left: 3em; -} -#content p.selectedTag { -margin-bottom: .4em; -} -#existingTagsTitle, #newTagsTitle { -float: left; -} -#existingTagsHelp, #newTagsHelp { -float: right; -} -#noTagsSelected, #oneOrMoreTagsSelected { -display: none; -} -/* */ - - -/* - columns.css - */ -/* https://www12.senado.leg.br/institucional/portal_css/columns.css?original=1 */ -div.row { -float: left; -width: 100%; -display: block; -position: relative; -} -div.cell { -position: relative; -float: left; -left: 100%; -} -/* */ -div.width-1 { width: 4% } -div.width-2 { width: 10.25% } -div.width-3 { width: 16.5% } -div.width-4 { width: 22.75% } -div.width-5 { width: 29% } -div.width-6 { width: 35.25% } -div.width-7 { width: 41.5% } -div.width-8 { width: 47.75% } -div.width-9 { width: 54% } -div.width-10 { width: 60.25% } -div.width-11 { width: 66.5% } -div.width-12 { width: 72.75% } -div.width-13 { width: 79% } -div.width-14 { width: 85.25% } -div.width-15 { width: 91.5% } -div.width-16 { width: 97.75% } -/* */ -/* */ -div.position-0 { margin-left: -98.875% } -div.position-1 { margin-left: -92.625% } -div.position-2 { margin-left: -86.375% } -div.position-3 { margin-left: -80.125% } -div.position-4 { margin-left: -73.875% } -div.position-5 { margin-left: -67.625% } -div.position-6 { margin-left: -61.375% } -div.position-7 { margin-left: -55.125% } -div.position-8 { margin-left: -48.875% } -div.position-9 { margin-left: -42.625% } -div.position-10 { margin-left: -36.375% } -div.position-11 { margin-left: -30.125% } -div.position-12 { margin-left: -23.875% } -div.position-13 { margin-left: -17.625% } -div.position-14 { margin-left: -11.375% } -div.position-15 { margin-left: -5.125% } -/* */ -/* */ -div.width-1\3a 2 { width: 47.75%; } /* */ -div.width-1\3a 4 { width: 22.75%; } /* */ -div.width-3\3a 4 { width: 72.75%; } /* */ -div.width-full { width: 97.75% } -div.position-1\3a 4 {margin-left: -73.875%;} /* */ -div.position-1\3a 2 {margin-left: -48.875%;} /* */ -div.position-3\3a 4 {margin-left: -23.875%;} /* */ -/* */ -div.width-1\3a 3 { width: 31.08%; } /* */ -div.width-2\3a 3 { width: 64.42%; } /* */ -div.position-1\3a 3 {margin-left: -65.545%;} /* */ -div.position-2\3a 3 {margin-left: -32.205%;} /* */ - - -/* - portlets.css - */ -@media screen { -/* https://www12.senado.leg.br/institucional/portal_css/portlets.css?original=1 */ -.managedPortlet { -margin: 0.8em 0; -} -.blockedPortlet .portletHeader { -border: 1px dashed #ddd; -margin: -1px; -background: none !important; -} -.blockedPortlet .portletHeader a { -color: #666; -} -.blockedPortlet .portletBlockedMessage { -color: white; -display: inline; -} -.portletCalendar { -width: 100%; -margin: 1px 0 1em 0; -} -.portletCalendar dt { -background-color: #eee; -font-weight: bold; -text-align: center; -line-height: 1.6em; -border-bottom: none; -} -.portletCalendar dd { -margin: 0; -padding: 0; -} -.portletCalendar dt a#calendar-previous { -float: left; -padding: 0 1em; -margin: 0 -.5em; -} -.portletCalendar dt a#calendar-next { -float: right; -padding: 0 1em; -margin: 0 -.5em; -} -.portletCalendar a, .portletCalendar a:focus, -.portletCalendar a, .portletCalendar a:hover { -text-decoration: none; -} -.ploneCalendar { -border-spacing: 0; -width: 100%; -} -.ploneCalendar a { -text-decoration: none; -border-bottom: none !important; -} -.ploneCalendar td { -background-color: transparent; -width: 14%; -text-align: center; -padding: 2px; -} -.ploneCalendar .weekdays th { -background-color: #eee; -text-align: center; -padding: 2px; -font-weight: normal; -} -.ploneCalendar .event { -background-color: #eee; -font-weight: bold; -} -.ploneCalendar .todayevent { -background-color: #eee; -border: 2px solid #205C90; -font-weight: bold; -} -.ploneCalendar .todaynoevent { -border: 2px solid #205C90; -} -.portletItemDetails { -font-size: 85%; -padding-top: .5em; -line-height: 1.5em; -margin-left: 1em; -display: block; -} - -} - - -/* - ++resource++plone.app.discussion.stylesheets/discussion.css - */ -@media screen { -/* https://www12.senado.leg.br/institucional/portal_css/++resource++plone.app.discussion.stylesheets/discussion.css?original=1 */ -/* */ -.discussion .hide { -display: none; -} -/* */ -.discussion, -#commenting { -/* */ -clear: both; -} -.comment { -} -.commentImage { -float: left; -margin-right: 0.5em; -height: 3.5em; -} -.commentImage a:link { -/* */ -border: 0px; -} -.commentImage img { -} -.commentDate { -display: block; -font-size: 85%; -line-height: 1.5em; -padding-top: 0.5em; -color: #76797C; -} -.commentBody { -clear: both; -margin: 1em 0; -overflow: auto; -} -.commentBody p { -float: left; -} -.discussion .documentByLine { -float: left; -margin-left: 0; -margin-bottom: 0.5em; -} -.commentActions { -float: right; -text-align: right; -} -.discussion .discreet { -color: #666666; -font-size: 85%; -} -/* */ -.reply fieldset { -/* */ -margin: 0 !important; -} -.reply .text-widget { -display: block; -} -.reply-to-comment-button { -display: none; -} -.cancelreplytocomment { -display: none; -} -/* */ -#bulkactions { -text-align: left; -} -#dobulkaction { -margin: 0.3em 0; -} -.comment-publish-button { -float: left; -margin-right: 0.5em; -} -.comment-delete-button { -float: left; -} -#review-comments { -margin: 0; -} -#fieldset-moderate-comments { -padding: 2em 1em; -} -/* */ -.template-discussion-settings .unclickable { -opacity: 0.6; -filter: alpha(opacity = 50); -} -/* */ -/* */ -.row #dobulkaction { -margin: 0; -} -.row #commenting { -font-size: 80%; -} -.row #commenting .formControls { -margin: 0; -} -.row #commenting textarea, -.row .discussion textarea { -font: 100% Monaco, "Courier New", Courier, monospace; -width: 100%; -} -.row #commenting fieldset, -.row .discussion fieldset { -border: 0.1em solid #329fd7; -border-style: solid none none none; -} -.row #commenting legend, -.row .discussion legend { -padding: 0.5em 0.5em 0.5em 0; -font-size: 85%; -} -.row #commenting label, -.row .discussion label { -font-weight:bold; -} - -} - - -/* - ploneKss.css - */ -@media screen { -/* https://www12.senado.leg.br/institucional/portal_css/ploneKss.css?original=1 */ -#kss-spinner { -display:none; -width: 20px; -height: 20px; -position: fixed; -background-position: center center; -top: 50%; -left: 50%; -margin-top: -10px; -margin-left: -10px; -} -.formlibInlineEditable, -.inlineEditable { -padding: 1px; -display: block; -} -body.kssActive .inlineEditable:hover, -body.kssActive .formlibInlineEditable:hover { -padding: 0; -border: 1px solid #ddd; -border-color: #666 #ddd #ddd #666; -cursor: text; -background: White url(input_background.png) repeat-x; -} -body.kssActive .inlineEditable a:hover, -body.kssActive .formlibInlineEditable a:hover { -cursor: pointer; -} -body.kssActive .formlibInlineForm:hover, -body.kssActive .formlibInlineForm a:hover { -padding: 1px; -border: none; -cursor: default; -background: none; -} -.inlineForm .formHelp, -.inlineForm .fieldRequired, -.inlineForm label { -display: none; -} -/* */ -.inlineForm .ArchetypesSelectionWidget label { -display: inline; -} -.inlineForm #archetypes-fieldname-title input, -.inlineForm #archetypes-fieldname-title { -font-size: 100%; -} -/* */ -h1 div.formControls input { -font-size: 55% !important; -} -} - - -/* - ++resource++tinymce.stylesheets/tinymce.css - */ -@media screen { -/* https://www12.senado.leg.br/institucional/portal_css/++resource++tinymce.stylesheets/tinymce.css?original=1 */ -#content ul.listTypeDisc { -list-style-type: disc; -list-style-image: none; -} -#content ul.listTypeSquare { -list-style-type: square; -list-style-image: none; -} -#content ul.listTypeCircle { -list-style-type: circle; -list-style-image: none; -} -#content ol.listTypeDecimal { -list-style-type: decimal; -list-style-image: none; -} -#content ol.listTypeLowerAlpha { -list-style-type: lower-alpha; -list-style-image: none; -} -#content ol.listTypeUpperAlpha { -list-style-type: upper-alpha; -list-style-image: none; -} -#content ol.listTypeLowerRoman { -list-style-type: lower-roman; -list-style-image: none; -} -#content ol.listTypeUpperRoman { -list-style-type: upper-roman; -list-style-image: none; -} - -} - - -/* - print.css - */ -@media print { -/* https://www12.senado.leg.br/institucional/portal_css/print.css?original=1 */ -/* */ -body { -font-family: "Helvetica Neue", Arial, FreeSans, sans-serif; -} -h1, h2, h3, h4, h5, h6 { -font-family: "Helvetica Neue", Arial, FreeSans, sans-serif; -font-weight: bold; -line-height: 125%; -page-break-inside: avoid; -page-break-after: avoid; -} -h1, h2 { -letter-spacing: -0.05em; -} -a { -text-decoration: none; -border-bottom: 0.1em solid gray; -color: black; -} -#portal-column-content { -width: 95%; -} -.documentDescription { -font-weight: bold; -} -pre { -border: 1pt dotted black; -white-space: pre; -font-size: 8pt; -overflow: auto; -padding: 1em; -} -table.listing, -table.listing td { -border: 1pt solid black; -border-collapse: collapse; -} -table.listing td, -table.listing th { -padding: 6px; -} -/* */ -div.pageBreak { -page-break-before: always; -} -/* */ -#content dt { -margin:1em 0 0.625em; -} -#content p, #content table { -margin-bottom:0.625em; -margin-top:0.625em; -} -#content .documentDescription, #content #description { -margin:0.5em 0 1.31em; -} -/* */ -div.top, -#portal-logo, -#portal-siteactions, -.hiddenStructure, -#portal-searchbox, -#portal-globalnav, -#portal-personaltools, -#portal-breadcrumbs, -#edit-bar, -#portal-column-one, -#portal-column-two, -#portal-languageselector, -.contentViews, -.contentActions, -.help, -.legend, -.portalMessage, -.documentActions, -.netscape4, -#viewlet-below-content .reply, -#viewlet-below-content .discussion, -#kss-spinner, -#review-history, -#content-history, -.listingBar, -#portal-footer, -#portal-colophon, -.skipnav, -#kss-spinner, -#review-history, -#content-history, -.listingBar, -.link-presentation, -input.standalone, -.overlay, -.managePortletsFallback, -.close, -.link-parent, -.draggingHook, -#foldercontents-order-column, -input.context, -.visualNoPrint { -display: none; -} -/* */ -.image-left { -float: left; -clear: both; -margin: 0.5em 1em 0.5em 0; -border: 0.4pt solid Black; -} -.image-inline { -float: none; -} -.image-right { -float: right; -clear: both; -margin: 0.5em; -border: 0.4pt solid Black; -} -dd.image-caption { -text-align:left; -padding: 0; margin:0; -} -dl.captioned { -padding: 0.8em; -} -.newsImageContainer { -float:right; -margin: 0 0 0.5em 1em; -width: 16em; -} - -} - - -/* - mobile.css - */ -/* https://www12.senado.leg.br/institucional/portal_css/mobile.css?original=1 */ -/* */ -#portal-column-one, -#portal-column-two, -#portal-column-content { -clear: both; -width: 97.75%; -margin-left: -98.875%; -} -#portal-logo { -display: none; -} -#portal-top { -font-size: 180%; -} -#portal-personaltools { -margin-bottom: 1em; -} -#portal-globalnav li a { -min-width: 3em !important; -padding:0.5em 1.5em 1em 0.5em; -} -#portal-searchbox { -float: none !important; -margin: 1em 0; -text-align: center; -} -#portal-searchbox input { -font-size: 100% !important; -} -#content-views a { -font-size: 150%; -line-height: 2em !important; -padding: 0.5em; -} -#content li.formTab a { -font-size: 140%; -line-height: 2em !important; -padding: 0.25em; -} -#edit-bar { -min-height: 5em; -} -#contentActionMenus a { -width: 100%; -line-height: 2em !important; -font-size: 150%; -} -input, textarea { -font-size: 140% !important; -} -div.managePortletsLink, -a.managePortletsFallback { -font-size: 140%; -} -div.overlay { -font-size: 120%; -} -div.overlay-iframe, -div.overlay-ajax { -width: 90%; -} - diff --git a/js/collapse-image.js b/js/collapse-image.js deleted file mode 100644 index b1f0b45..0000000 --- a/js/collapse-image.js +++ /dev/null @@ -1,25 +0,0 @@ -$(document).ready(function(){ - $(".div-collapse").click(function () { - //open up the content needed - toggle the slide- if visible, slide up, if not slidedown. - $(".caixa-collapse").slideToggle(2, function () { - //execute this after slideToggle is done - //change text of header based on visibility of content div - - - }); - - if ($("#img_click").attr("src") == "../../theme/ilb/pix/smarts/bg_saiba_mais_header2_curso.png") { - $('#img_click').attr('src','../../theme/ilb/pix/smarts/bg_saiba_mais_fechado2.png'); - } - else{ - $('#img_click').attr('src','../../theme/ilb/pix/smarts/bg_saiba_mais_header2_curso.png'); - $(".caixa-collapse").css("margin-top", "0"); - - } - - $header = $(this); - //getting the next element - - - }); -}); \ No newline at end of file diff --git a/js/jquery.js b/js/jquery.js deleted file mode 100644 index d2d8ca4..0000000 --- a/js/jquery.js +++ /dev/null @@ -1,10253 +0,0 @@ -/*! - * jQuery JavaScript Library v3.2.1 - * https://jquery.com/ - * - * Includes Sizzle.js - * https://sizzlejs.com/ - * - * Copyright JS Foundation and other contributors - * Released under the MIT license - * https://jquery.org/license - * - * Date: 2017-03-20T18:59Z - */ -( function( global, factory ) { - - "use strict"; - - if ( typeof module === "object" && typeof module.exports === "object" ) { - - // For CommonJS and CommonJS-like environments where a proper `window` - // is present, execute the factory and get jQuery. - // For environments that do not have a `window` with a `document` - // (such as Node.js), expose a factory as module.exports. - // This accentuates the need for the creation of a real `window`. - // e.g. var jQuery = require("jquery")(window); - // See ticket #14549 for more info. - module.exports = global.document ? - factory( global, true ) : - function( w ) { - if ( !w.document ) { - throw new Error( "jQuery requires a window with a document" ); - } - return factory( w ); - }; - } else { - factory( global ); - } - -// Pass this if window is not defined yet -} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { - -// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 -// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode -// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common -// enough that all such attempts are guarded in a try block. -"use strict"; - -var arr = []; - -var document = window.document; - -var getProto = Object.getPrototypeOf; - -var slice = arr.slice; - -var concat = arr.concat; - -var push = arr.push; - -var indexOf = arr.indexOf; - -var class2type = {}; - -var toString = class2type.toString; - -var hasOwn = class2type.hasOwnProperty; - -var fnToString = hasOwn.toString; - -var ObjectFunctionString = fnToString.call( Object ); - -var support = {}; - - - - function DOMEval( code, doc ) { - doc = doc || document; - - var script = doc.createElement( "script" ); - - script.text = code; - doc.head.appendChild( script ).parentNode.removeChild( script ); - } -/* global Symbol */ -// Defining this global in .eslintrc.json would create a danger of using the global -// unguarded in another place, it seems safer to define global only for this module - - - -var - version = "3.2.1", - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - - // The jQuery object is actually just the init constructor 'enhanced' - // Need init if jQuery is called (just allow error to be thrown if not included) - return new jQuery.fn.init( selector, context ); - }, - - // Support: Android <=4.0 only - // Make sure we trim BOM and NBSP - rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, - - // Matches dashed string for camelizing - rmsPrefix = /^-ms-/, - rdashAlpha = /-([a-z])/g, - - // Used by jQuery.camelCase as callback to replace() - fcamelCase = function( all, letter ) { - return letter.toUpperCase(); - }; - -jQuery.fn = jQuery.prototype = { - - // The current version of jQuery being used - jquery: version, - - constructor: jQuery, - - // The default length of a jQuery object is 0 - length: 0, - - toArray: function() { - return slice.call( this ); - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - - // Return all the elements in a clean array - if ( num == null ) { - return slice.call( this ); - } - - // Return just the one element from the set - return num < 0 ? this[ num + this.length ] : this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - - // Build a new jQuery matched element set - var ret = jQuery.merge( this.constructor(), elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - // Return the newly-formed element set - return ret; - }, - - // Execute a callback for every element in the matched set. - each: function( callback ) { - return jQuery.each( this, callback ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map( this, function( elem, i ) { - return callback.call( elem, i, elem ); - } ) ); - }, - - slice: function() { - return this.pushStack( slice.apply( this, arguments ) ); - }, - - first: function() { - return this.eq( 0 ); - }, - - last: function() { - return this.eq( -1 ); - }, - - eq: function( i ) { - var len = this.length, - j = +i + ( i < 0 ? len : 0 ); - return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); - }, - - end: function() { - return this.prevObject || this.constructor(); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: push, - sort: arr.sort, - splice: arr.splice -}; - -jQuery.extend = jQuery.fn.extend = function() { - var options, name, src, copy, copyIsArray, clone, - target = arguments[ 0 ] || {}, - i = 1, - length = arguments.length, - deep = false; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - - // Skip the boolean and the target - target = arguments[ i ] || {}; - i++; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction( target ) ) { - target = {}; - } - - // Extend jQuery itself if only one argument is passed - if ( i === length ) { - target = this; - i--; - } - - for ( ; i < length; i++ ) { - - // Only deal with non-null/undefined values - if ( ( options = arguments[ i ] ) != null ) { - - // Extend the base object - for ( name in options ) { - src = target[ name ]; - copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) { - continue; - } - - // Recurse if we're merging plain objects or arrays - if ( deep && copy && ( jQuery.isPlainObject( copy ) || - ( copyIsArray = Array.isArray( copy ) ) ) ) { - - if ( copyIsArray ) { - copyIsArray = false; - clone = src && Array.isArray( src ) ? src : []; - - } else { - clone = src && jQuery.isPlainObject( src ) ? src : {}; - } - - // Never move original objects, clone them - target[ name ] = jQuery.extend( deep, clone, copy ); - - // Don't bring in undefined values - } else if ( copy !== undefined ) { - target[ name ] = copy; - } - } - } - } - - // Return the modified object - return target; -}; - -jQuery.extend( { - - // Unique for each copy of jQuery on the page - expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), - - // Assume jQuery is ready without the ready module - isReady: true, - - error: function( msg ) { - throw new Error( msg ); - }, - - noop: function() {}, - - isFunction: function( obj ) { - return jQuery.type( obj ) === "function"; - }, - - isWindow: function( obj ) { - return obj != null && obj === obj.window; - }, - - isNumeric: function( obj ) { - - // As of jQuery 3.0, isNumeric is limited to - // strings and numbers (primitives or objects) - // that can be coerced to finite numbers (gh-2662) - var type = jQuery.type( obj ); - return ( type === "number" || type === "string" ) && - - // parseFloat NaNs numeric-cast false positives ("") - // ...but misinterprets leading-number strings, particularly hex literals ("0x...") - // subtraction forces infinities to NaN - !isNaN( obj - parseFloat( obj ) ); - }, - - isPlainObject: function( obj ) { - var proto, Ctor; - - // Detect obvious negatives - // Use toString instead of jQuery.type to catch host objects - if ( !obj || toString.call( obj ) !== "[object Object]" ) { - return false; - } - - proto = getProto( obj ); - - // Objects with no prototype (e.g., `Object.create( null )`) are plain - if ( !proto ) { - return true; - } - - // Objects with prototype are plain iff they were constructed by a global Object function - Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; - return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; - }, - - isEmptyObject: function( obj ) { - - /* eslint-disable no-unused-vars */ - // See https://github.com/eslint/eslint/issues/6125 - var name; - - for ( name in obj ) { - return false; - } - return true; - }, - - type: function( obj ) { - if ( obj == null ) { - return obj + ""; - } - - // Support: Android <=2.3 only (functionish RegExp) - return typeof obj === "object" || typeof obj === "function" ? - class2type[ toString.call( obj ) ] || "object" : - typeof obj; - }, - - // Evaluates a script in a global context - globalEval: function( code ) { - DOMEval( code ); - }, - - // Convert dashed to camelCase; used by the css and data modules - // Support: IE <=9 - 11, Edge 12 - 13 - // Microsoft forgot to hump their vendor prefix (#9572) - camelCase: function( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); - }, - - each: function( obj, callback ) { - var length, i = 0; - - if ( isArrayLike( obj ) ) { - length = obj.length; - for ( ; i < length; i++ ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } else { - for ( i in obj ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } - - return obj; - }, - - // Support: Android <=4.0 only - trim: function( text ) { - return text == null ? - "" : - ( text + "" ).replace( rtrim, "" ); - }, - - // results is for internal usage only - makeArray: function( arr, results ) { - var ret = results || []; - - if ( arr != null ) { - if ( isArrayLike( Object( arr ) ) ) { - jQuery.merge( ret, - typeof arr === "string" ? - [ arr ] : arr - ); - } else { - push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - return arr == null ? -1 : indexOf.call( arr, elem, i ); - }, - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - merge: function( first, second ) { - var len = +second.length, - j = 0, - i = first.length; - - for ( ; j < len; j++ ) { - first[ i++ ] = second[ j ]; - } - - first.length = i; - - return first; - }, - - grep: function( elems, callback, invert ) { - var callbackInverse, - matches = [], - i = 0, - length = elems.length, - callbackExpect = !invert; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; i < length; i++ ) { - callbackInverse = !callback( elems[ i ], i ); - if ( callbackInverse !== callbackExpect ) { - matches.push( elems[ i ] ); - } - } - - return matches; - }, - - // arg is for internal usage only - map: function( elems, callback, arg ) { - var length, value, - i = 0, - ret = []; - - // Go through the array, translating each of the items to their new values - if ( isArrayLike( elems ) ) { - length = elems.length; - for ( ; i < length; i++ ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - - // Go through every key on the object, - } else { - for ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - } - - // Flatten any nested arrays - return concat.apply( [], ret ); - }, - - // A global GUID counter for objects - guid: 1, - - // Bind a function to a context, optionally partially applying any - // arguments. - proxy: function( fn, context ) { - var tmp, args, proxy; - - if ( typeof context === "string" ) { - tmp = fn[ context ]; - context = fn; - fn = tmp; - } - - // Quick check to determine if target is callable, in the spec - // this throws a TypeError, but we will just return undefined. - if ( !jQuery.isFunction( fn ) ) { - return undefined; - } - - // Simulated bind - args = slice.call( arguments, 2 ); - proxy = function() { - return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); - }; - - // Set the guid of unique handler to the same of original handler, so it can be removed - proxy.guid = fn.guid = fn.guid || jQuery.guid++; - - return proxy; - }, - - now: Date.now, - - // jQuery.support is not used in Core but other projects attach their - // properties to it so it needs to exist. - support: support -} ); - -if ( typeof Symbol === "function" ) { - jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; -} - -// Populate the class2type map -jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), -function( i, name ) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); -} ); - -function isArrayLike( obj ) { - - // Support: real iOS 8.2 only (not reproducible in simulator) - // `in` check used to prevent JIT error (gh-2145) - // hasOwn isn't used here due to false negatives - // regarding Nodelist length in IE - var length = !!obj && "length" in obj && obj.length, - type = jQuery.type( obj ); - - if ( type === "function" || jQuery.isWindow( obj ) ) { - return false; - } - - return type === "array" || length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj; -} -var Sizzle = -/*! - * Sizzle CSS Selector Engine v2.3.3 - * https://sizzlejs.com/ - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2016-08-08 - */ -(function( window ) { - -var i, - support, - Expr, - getText, - isXML, - tokenize, - compile, - select, - outermostContext, - sortInput, - hasDuplicate, - - // Local document vars - setDocument, - document, - docElem, - documentIsHTML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - - // Instance-specific data - expando = "sizzle" + 1 * new Date(), - preferredDoc = window.document, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - sortOrder = function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - } - return 0; - }, - - // Instance methods - hasOwn = ({}).hasOwnProperty, - arr = [], - pop = arr.pop, - push_native = arr.push, - push = arr.push, - slice = arr.slice, - // Use a stripped-down indexOf as it's faster than native - // https://jsperf.com/thor-indexof-vs-for/5 - indexOf = function( list, elem ) { - var i = 0, - len = list.length; - for ( ; i < len; i++ ) { - if ( list[i] === elem ) { - return i; - } - } - return -1; - }, - - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", - - // Regular expressions - - // http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - - // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier - identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+", - - // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors - attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + - // Operator (capture 2) - "*([*^$|!~]?=)" + whitespace + - // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" - "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + - "*\\]", - - pseudos = ":(" + identifier + ")(?:\\((" + - // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: - // 1. quoted (capture 3; capture 4 or capture 5) - "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + - // 2. simple (capture 6) - "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + - // 3. anything else (capture 2) - ".*" + - ")\\)|)", - - // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter - rwhitespace = new RegExp( whitespace + "+", "g" ), - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), - - rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + identifier + ")" ), - "CLASS": new RegExp( "^\\.(" + identifier + ")" ), - "TAG": new RegExp( "^(" + identifier + "|[*])" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + - "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + - "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), - // For use in libraries implementing .is() - // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + - whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rnative = /^[^{]+\{\s*\[native \w/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rsibling = /[+~]/, - - // CSS escapes - // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), - funescape = function( _, escaped, escapedWhitespace ) { - var high = "0x" + escaped - 0x10000; - // NaN means non-codepoint - // Support: Firefox<24 - // Workaround erroneous numeric interpretation of +"0x" - return high !== high || escapedWhitespace ? - escaped : - high < 0 ? - // BMP codepoint - String.fromCharCode( high + 0x10000 ) : - // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }, - - // CSS string/identifier serialization - // https://drafts.csswg.org/cssom/#common-serializing-idioms - rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, - fcssescape = function( ch, asCodePoint ) { - if ( asCodePoint ) { - - // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER - if ( ch === "\0" ) { - return "\uFFFD"; - } - - // Control characters and (dependent upon position) numbers get escaped as code points - return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; - } - - // Other potentially-special ASCII characters get backslash-escaped - return "\\" + ch; - }, - - // Used for iframes - // See setDocument() - // Removing the function wrapper causes a "Permission Denied" - // error in IE - unloadHandler = function() { - setDocument(); - }, - - disabledAncestor = addCombinator( - function( elem ) { - return elem.disabled === true && ("form" in elem || "label" in elem); - }, - { dir: "parentNode", next: "legend" } - ); - -// Optimize for push.apply( _, NodeList ) -try { - push.apply( - (arr = slice.call( preferredDoc.childNodes )), - preferredDoc.childNodes - ); - // Support: Android<4.0 - // Detect silently failing push.apply - arr[ preferredDoc.childNodes.length ].nodeType; -} catch ( e ) { - push = { apply: arr.length ? - - // Leverage slice if possible - function( target, els ) { - push_native.apply( target, slice.call(els) ); - } : - - // Support: IE<9 - // Otherwise append directly - function( target, els ) { - var j = target.length, - i = 0; - // Can't trust NodeList.length - while ( (target[j++] = els[i++]) ) {} - target.length = j - 1; - } - }; -} - -function Sizzle( selector, context, results, seed ) { - var m, i, elem, nid, match, groups, newSelector, - newContext = context && context.ownerDocument, - - // nodeType defaults to 9, since context defaults to document - nodeType = context ? context.nodeType : 9; - - results = results || []; - - // Return early from calls with invalid selector or context - if ( typeof selector !== "string" || !selector || - nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { - - return results; - } - - // Try to shortcut find operations (as opposed to filters) in HTML documents - if ( !seed ) { - - if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { - setDocument( context ); - } - context = context || document; - - if ( documentIsHTML ) { - - // If the selector is sufficiently simple, try using a "get*By*" DOM method - // (excepting DocumentFragment context, where the methods don't exist) - if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { - - // ID selector - if ( (m = match[1]) ) { - - // Document context - if ( nodeType === 9 ) { - if ( (elem = context.getElementById( m )) ) { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - - // Element context - } else { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( newContext && (elem = newContext.getElementById( m )) && - contains( context, elem ) && - elem.id === m ) { - - results.push( elem ); - return results; - } - } - - // Type selector - } else if ( match[2] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - // Class selector - } else if ( (m = match[3]) && support.getElementsByClassName && - context.getElementsByClassName ) { - - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - // Take advantage of querySelectorAll - if ( support.qsa && - !compilerCache[ selector + " " ] && - (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { - - if ( nodeType !== 1 ) { - newContext = context; - newSelector = selector; - - // qSA looks outside Element context, which is not what we want - // Thanks to Andrew Dupont for this workaround technique - // Support: IE <=8 - // Exclude object elements - } else if ( context.nodeName.toLowerCase() !== "object" ) { - - // Capture the context ID, setting it first if necessary - if ( (nid = context.getAttribute( "id" )) ) { - nid = nid.replace( rcssescape, fcssescape ); - } else { - context.setAttribute( "id", (nid = expando) ); - } - - // Prefix every selector in the list - groups = tokenize( selector ); - i = groups.length; - while ( i-- ) { - groups[i] = "#" + nid + " " + toSelector( groups[i] ); - } - newSelector = groups.join( "," ); - - // Expand context for sibling selectors - newContext = rsibling.test( selector ) && testContext( context.parentNode ) || - context; - } - - if ( newSelector ) { - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch ( qsaError ) { - } finally { - if ( nid === expando ) { - context.removeAttribute( "id" ); - } - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); -} - -/** - * Create key-value caches of limited size - * @returns {function(string, object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry - */ -function createCache() { - var keys = []; - - function cache( key, value ) { - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) - if ( keys.push( key + " " ) > Expr.cacheLength ) { - // Only keep the most recent entries - delete cache[ keys.shift() ]; - } - return (cache[ key + " " ] = value); - } - return cache; -} - -/** - * Mark a function for special use by Sizzle - * @param {Function} fn The function to mark - */ -function markFunction( fn ) { - fn[ expando ] = true; - return fn; -} - -/** - * Support testing using an element - * @param {Function} fn Passed the created element and returns a boolean result - */ -function assert( fn ) { - var el = document.createElement("fieldset"); - - try { - return !!fn( el ); - } catch (e) { - return false; - } finally { - // Remove from its parent by default - if ( el.parentNode ) { - el.parentNode.removeChild( el ); - } - // release memory in IE - el = null; - } -} - -/** - * Adds the same handler for all of the specified attrs - * @param {String} attrs Pipe-separated list of attributes - * @param {Function} handler The method that will be applied - */ -function addHandle( attrs, handler ) { - var arr = attrs.split("|"), - i = arr.length; - - while ( i-- ) { - Expr.attrHandle[ arr[i] ] = handler; - } -} - -/** - * Checks document order of two siblings - * @param {Element} a - * @param {Element} b - * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b - */ -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - a.sourceIndex - b.sourceIndex; - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - - // Check if b follows a - if ( cur ) { - while ( (cur = cur.nextSibling) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; -} - -/** - * Returns a function to use in pseudos for input types - * @param {String} type - */ -function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for buttons - * @param {String} type - */ -function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return (name === "input" || name === "button") && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for :enabled/:disabled - * @param {Boolean} disabled true for :disabled; false for :enabled - */ -function createDisabledPseudo( disabled ) { - - // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable - return function( elem ) { - - // Only certain elements can match :enabled or :disabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled - if ( "form" in elem ) { - - // Check for inherited disabledness on relevant non-disabled elements: - // * listed form-associated elements in a disabled fieldset - // https://html.spec.whatwg.org/multipage/forms.html#category-listed - // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled - // * option elements in a disabled optgroup - // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled - // All such elements have a "form" property. - if ( elem.parentNode && elem.disabled === false ) { - - // Option elements defer to a parent optgroup if present - if ( "label" in elem ) { - if ( "label" in elem.parentNode ) { - return elem.parentNode.disabled === disabled; - } else { - return elem.disabled === disabled; - } - } - - // Support: IE 6 - 11 - // Use the isDisabled shortcut property to check for disabled fieldset ancestors - return elem.isDisabled === disabled || - - // Where there is no isDisabled, check manually - /* jshint -W018 */ - elem.isDisabled !== !disabled && - disabledAncestor( elem ) === disabled; - } - - return elem.disabled === disabled; - - // Try to winnow out elements that can't be disabled before trusting the disabled property. - // Some victims get caught in our net (label, legend, menu, track), but it shouldn't - // even exist on them, let alone have a boolean value. - } else if ( "label" in elem ) { - return elem.disabled === disabled; - } - - // Remaining elements are neither :enabled nor :disabled - return false; - }; -} - -/** - * Returns a function to use in pseudos for positionals - * @param {Function} fn - */ -function createPositionalPseudo( fn ) { - return markFunction(function( argument ) { - argument = +argument; - return markFunction(function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - // Match elements found at the specified indexes - while ( i-- ) { - if ( seed[ (j = matchIndexes[i]) ] ) { - seed[j] = !(matches[j] = seed[j]); - } - } - }); - }); -} - -/** - * Checks a node for validity as a Sizzle context - * @param {Element|Object=} context - * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value - */ -function testContext( context ) { - return context && typeof context.getElementsByTagName !== "undefined" && context; -} - -// Expose support vars for convenience -support = Sizzle.support = {}; - -/** - * Detects XML nodes - * @param {Element|Object} elem An element or a document - * @returns {Boolean} True iff elem is a non-HTML XML node - */ -isXML = Sizzle.isXML = function( elem ) { - // documentElement is verified for cases where it doesn't yet exist - // (such as loading iframes in IE - #4833) - var documentElement = elem && (elem.ownerDocument || elem).documentElement; - return documentElement ? documentElement.nodeName !== "HTML" : false; -}; - -/** - * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document - * @returns {Object} Returns the current document - */ -setDocument = Sizzle.setDocument = function( node ) { - var hasCompare, subWindow, - doc = node ? node.ownerDocument || node : preferredDoc; - - // Return early if doc is invalid or already selected - if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Update global variables - document = doc; - docElem = document.documentElement; - documentIsHTML = !isXML( document ); - - // Support: IE 9-11, Edge - // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) - if ( preferredDoc !== document && - (subWindow = document.defaultView) && subWindow.top !== subWindow ) { - - // Support: IE 11, Edge - if ( subWindow.addEventListener ) { - subWindow.addEventListener( "unload", unloadHandler, false ); - - // Support: IE 9 - 10 only - } else if ( subWindow.attachEvent ) { - subWindow.attachEvent( "onunload", unloadHandler ); - } - } - - /* Attributes - ---------------------------------------------------------------------- */ - - // Support: IE<8 - // Verify that getAttribute really returns attributes and not properties - // (excepting IE8 booleans) - support.attributes = assert(function( el ) { - el.className = "i"; - return !el.getAttribute("className"); - }); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ - - // Check if getElementsByTagName("*") returns only elements - support.getElementsByTagName = assert(function( el ) { - el.appendChild( document.createComment("") ); - return !el.getElementsByTagName("*").length; - }); - - // Support: IE<9 - support.getElementsByClassName = rnative.test( document.getElementsByClassName ); - - // Support: IE<10 - // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programmatically-set names, - // so use a roundabout getElementsByName test - support.getById = assert(function( el ) { - docElem.appendChild( el ).id = expando; - return !document.getElementsByName || !document.getElementsByName( expando ).length; - }); - - // ID filter and find - if ( support.getById ) { - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute("id") === attrId; - }; - }; - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var elem = context.getElementById( id ); - return elem ? [ elem ] : []; - } - }; - } else { - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== "undefined" && - elem.getAttributeNode("id"); - return node && node.value === attrId; - }; - }; - - // Support: IE 6 - 7 only - // getElementById is not reliable as a find shortcut - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var node, i, elems, - elem = context.getElementById( id ); - - if ( elem ) { - - // Verify the id attribute - node = elem.getAttributeNode("id"); - if ( node && node.value === id ) { - return [ elem ]; - } - - // Fall back on getElementsByName - elems = context.getElementsByName( id ); - i = 0; - while ( (elem = elems[i++]) ) { - node = elem.getAttributeNode("id"); - if ( node && node.value === id ) { - return [ elem ]; - } - } - } - - return []; - } - }; - } - - // Tag - Expr.find["TAG"] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== "undefined" ) { - return context.getElementsByTagName( tag ); - - // DocumentFragment nodes don't have gEBTN - } else if ( support.qsa ) { - return context.querySelectorAll( tag ); - } - } : - - function( tag, context ) { - var elem, - tmp = [], - i = 0, - // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too - results = context.getElementsByTagName( tag ); - - // Filter out possible comments - if ( tag === "*" ) { - while ( (elem = results[i++]) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - // Class - Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { - if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { - return context.getElementsByClassName( className ); - } - }; - - /* QSA/matchesSelector - ---------------------------------------------------------------------- */ - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21) - // We allow this because of a bug in IE8/9 that throws an error - // whenever `document.activeElement` is accessed on an iframe - // So, we allow :focus to pass through QSA all the time to avoid the IE error - // See https://bugs.jquery.com/ticket/13378 - rbuggyQSA = []; - - if ( (support.qsa = rnative.test( document.querySelectorAll )) ) { - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert(function( el ) { - // Select is set to empty string on purpose - // This is to test IE's treatment of not explicitly - // setting a boolean content attribute, - // since its presence should be enough - // https://bugs.jquery.com/ticket/12359 - docElem.appendChild( el ).innerHTML = "" + - ""; - - // Support: IE8, Opera 11-12.16 - // Nothing should be selected when empty strings follow ^= or $= or *= - // The test attribute must be unknown in Opera but "safe" for WinRT - // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section - if ( el.querySelectorAll("[msallowcapture^='']").length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !el.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ - if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { - rbuggyQSA.push("~="); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !el.querySelectorAll(":checked").length ) { - rbuggyQSA.push(":checked"); - } - - // Support: Safari 8+, iOS 8+ - // https://bugs.webkit.org/show_bug.cgi?id=136851 - // In-page `selector#id sibling-combinator selector` fails - if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { - rbuggyQSA.push(".#.+[+~]"); - } - }); - - assert(function( el ) { - el.innerHTML = "" + - ""; - - // Support: Windows 8 Native Apps - // The type and name attributes are restricted during .innerHTML assignment - var input = document.createElement("input"); - input.setAttribute( "type", "hidden" ); - el.appendChild( input ).setAttribute( "name", "D" ); - - // Support: IE8 - // Enforce case-sensitivity of name attribute - if ( el.querySelectorAll("[name=d]").length ) { - rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( el.querySelectorAll(":enabled").length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Support: IE9-11+ - // IE's :disabled selector does not pick up the children of disabled fieldsets - docElem.appendChild( el ).disabled = true; - if ( el.querySelectorAll(":disabled").length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Opera 10-11 does not throw on post-comma invalid pseudos - el.querySelectorAll("*,:x"); - rbuggyQSA.push(",.*:"); - }); - } - - if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || - docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector) )) ) { - - assert(function( el ) { - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( el, "*" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( el, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - }); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); - - /* Contains - ---------------------------------------------------------------------- */ - hasCompare = rnative.test( docElem.compareDocumentPosition ); - - // Element contains another - // Purposefully self-exclusive - // As in, an element does not contain itself - contains = hasCompare || rnative.test( docElem.contains ) ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - )); - } : - function( a, b ) { - if ( b ) { - while ( (b = b.parentNode) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - /* Sorting - ---------------------------------------------------------------------- */ - - // Document order sorting - sortOrder = hasCompare ? - function( a, b ) { - - // Flag for duplicate removal - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - // Sort on method existence if only one input has compareDocumentPosition - var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; - if ( compare ) { - return compare; - } - - // Calculate position if both inputs belong to the same document - compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? - a.compareDocumentPosition( b ) : - - // Otherwise we know they are disconnected - 1; - - // Disconnected nodes - if ( compare & 1 || - (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { - - // Choose the first element that is related to our preferred document - if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { - return -1; - } - if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { - return 1; - } - - // Maintain original order - return sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } : - function( a, b ) { - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Parentless nodes are either documents or disconnected - if ( !aup || !bup ) { - return a === document ? -1 : - b === document ? 1 : - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( (cur = cur.parentNode) ) { - ap.unshift( cur ); - } - cur = b; - while ( (cur = cur.parentNode) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[i] === bp[i] ) { - i++; - } - - return i ? - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[i], bp[i] ) : - - // Otherwise nodes in our document sort first - ap[i] === preferredDoc ? -1 : - bp[i] === preferredDoc ? 1 : - 0; - }; - - return document; -}; - -Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); -}; - -Sizzle.matchesSelector = function( elem, expr ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - // Make sure that attribute selectors are quoted - expr = expr.replace( rattributeQuotes, "='$1']" ); - - if ( support.matchesSelector && documentIsHTML && - !compilerCache[ expr + " " ] && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { - - try { - var ret = matches.call( elem, expr ); - - // IE 9's matchesSelector returns false on disconnected nodes - if ( ret || support.disconnectedMatch || - // As well, disconnected nodes are said to be in a document - // fragment in IE 9 - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch (e) {} - } - - return Sizzle( expr, document, null, [ elem ] ).length > 0; -}; - -Sizzle.contains = function( context, elem ) { - // Set document vars if needed - if ( ( context.ownerDocument || context ) !== document ) { - setDocument( context ); - } - return contains( context, elem ); -}; - -Sizzle.attr = function( elem, name ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - var fn = Expr.attrHandle[ name.toLowerCase() ], - // Don't get fooled by Object.prototype properties (jQuery #13807) - val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? - fn( elem, name, !documentIsHTML ) : - undefined; - - return val !== undefined ? - val : - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - (val = elem.getAttributeNode(name)) && val.specified ? - val.value : - null; -}; - -Sizzle.escape = function( sel ) { - return (sel + "").replace( rcssescape, fcssescape ); -}; - -Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); -}; - -/** - * Document sorting and removing duplicates - * @param {ArrayLike} results - */ -Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - j = 0, - i = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); - - if ( hasDuplicate ) { - while ( (elem = results[i++]) ) { - if ( elem === results[ i ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - // Clear input after sorting to release objects - // See https://github.com/jquery/sizzle/pull/225 - sortInput = null; - - return results; -}; - -/** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ -getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - // If no nodeType, this is expected to be an array - while ( (node = elem[i++]) ) { - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - // Use textContent for elements - // innerText usage removed for consistency of new lines (jQuery #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - // Do not include comment or processing instruction nodes - - return ret; -}; - -Expr = Sizzle.selectors = { - - // Can be adjusted by the user - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - attrHandle: {}, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[1] = match[1].replace( runescape, funescape ); - - // Move the given value to match[3] whether quoted or unquoted - match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); - - if ( match[2] === "~=" ) { - match[3] = " " + match[3] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[1] = match[1].toLowerCase(); - - if ( match[1].slice( 0, 3 ) === "nth" ) { - // nth-* requires argument - if ( !match[3] ) { - Sizzle.error( match[0] ); - } - - // numeric x and y parameters for Expr.filter.CHILD - // remember that false/true cast respectively to 0/1 - match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); - match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); - - // other types prohibit arguments - } else if ( match[3] ) { - Sizzle.error( match[0] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[6] && match[2]; - - if ( matchExpr["CHILD"].test( match[0] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[3] ) { - match[2] = match[4] || match[5] || ""; - - // Strip excess characters from unquoted arguments - } else if ( unquoted && rpseudo.test( unquoted ) && - // Get excess from tokenize (recursively) - (excess = tokenize( unquoted, true )) && - // advance to the next closing parenthesis - (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { - - // excess is a negative index - match[0] = match[0].slice( 0, excess ); - match[2] = unquoted.slice( 0, excess ); - } - - // Return only captures needed by the pseudo filter method (type and argument) - return match.slice( 0, 3 ); - } - }, - - filter: { - - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); - return nodeNameSelector === "*" ? - function() { return true; } : - function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && - classCache( className, function( elem ) { - return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); - }); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - }; - }, - - "CHILD": function( type, what, argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - // Shortcut for :nth-*(n) - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, context, xml ) { - var cache, uniqueCache, outerCache, node, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType, - diff = false; - - if ( parent ) { - - // :(first|last|only)-(child|of-type) - if ( simple ) { - while ( dir ) { - node = elem; - while ( (node = node[ dir ]) ) { - if ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) { - - return false; - } - } - // Reverse direction for :only-* (if we haven't yet done so) - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - // non-xml :nth-child(...) stores cache data on `parent` - if ( forward && useCache ) { - - // Seek `elem` from a previously-cached index - - // ...in a gzip-friendly way - node = parent; - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex && cache[ 2 ]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( (node = ++nodeIndex && node && node[ dir ] || - - // Fallback to seeking `elem` from the start - (diff = nodeIndex = 0) || start.pop()) ) { - - // When found, cache indexes on `parent` and break - if ( node.nodeType === 1 && ++diff && node === elem ) { - uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - } else { - // Use previously-cached element index if available - if ( useCache ) { - // ...in a gzip-friendly way - node = elem; - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex; - } - - // xml :nth-child(...) - // or :nth-last-child(...) or :nth(-last)?-of-type(...) - if ( diff === false ) { - // Use the same loop as above to seek `elem` from the start - while ( (node = ++nodeIndex && node && node[ dir ] || - (diff = nodeIndex = 0) || start.pop()) ) { - - if ( ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) && - ++diff ) { - - // Cache the index of each encountered element - if ( useCache ) { - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - uniqueCache[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - } - - // Incorporate the offset, then check against cycle size - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes - // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters - // Remember that setFilters inherits from pseudos - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - // The user may use createPseudo to indicate that - // arguments are needed to create the filter function - // just as Sizzle does - if ( fn[ expando ] ) { - return fn( argument ); - } - - // But maintain support for old signatures - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction(function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf( seed, matched[i] ); - seed[ idx ] = !( matches[ idx ] = matched[i] ); - } - }) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - // Potentially complex pseudos - "not": markFunction(function( selector ) { - // Trim the selector passed to compile - // to avoid treating leading and trailing - // spaces as combinators - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction(function( seed, matches, context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - // Match elements unmatched by `matcher` - while ( i-- ) { - if ( (elem = unmatched[i]) ) { - seed[i] = !(matches[i] = elem); - } - } - }) : - function( elem, context, xml ) { - input[0] = elem; - matcher( input, null, xml, results ); - // Don't keep the element (issue #299) - input[0] = null; - return !results.pop(); - }; - }), - - "has": markFunction(function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - }), - - "contains": markFunction(function( text ) { - text = text.replace( runescape, funescape ); - return function( elem ) { - return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; - }; - }), - - // "Whether an element is represented by a :lang() selector - // is based solely on the element's language value - // being equal to the identifier C, - // or beginning with the identifier C immediately followed by "-". - // The matching of C against the element's language value is performed case-insensitively. - // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { - // lang value must be a valid identifier - if ( !ridentifier.test(lang || "") ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( (elemLang = documentIsHTML ? - elem.lang : - elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); - return false; - }; - }), - - // Miscellaneous - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); - }, - - // Boolean properties - "enabled": createDisabledPseudo( false ), - "disabled": createDisabledPseudo( true ), - - "checked": function( elem ) { - // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); - }, - - "selected": function( elem ) { - // Accessing this property makes selected-by-default - // options in Safari work properly - if ( elem.parentNode ) { - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - // Contents - "empty": function( elem ) { - // http://www.w3.org/TR/selectors/#empty-pseudo - // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), - // but not by others (comment: 8; processing instruction: 7; etc.) - // nodeType < 6 works because attributes (2) do not appear as children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeType < 6 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos["empty"]( elem ); - }, - - // Element/input types - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - - // Support: IE<8 - // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" - ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); - }, - - // Position-in-collection - "first": createPositionalPseudo(function() { - return [ 0 ]; - }), - - "last": createPositionalPseudo(function( matchIndexes, length ) { - return [ length - 1 ]; - }), - - "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - }), - - "even": createPositionalPseudo(function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "odd": createPositionalPseudo(function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }) - } -}; - -Expr.pseudos["nth"] = Expr.pseudos["eq"]; - -// Add button/input type pseudos -for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); -} -for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); -} - -// Easy API for creating new setFilters -function setFilters() {} -setFilters.prototype = Expr.filters = Expr.pseudos; -Expr.setFilters = new setFilters(); - -tokenize = Sizzle.tokenize = function( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - // Comma and first run - if ( !matched || (match = rcomma.exec( soFar )) ) { - if ( match ) { - // Don't consume trailing commas as valid - soFar = soFar.slice( match[0].length ) || soFar; - } - groups.push( (tokens = []) ); - } - - matched = false; - - // Combinators - if ( (match = rcombinators.exec( soFar )) ) { - matched = match.shift(); - tokens.push({ - value: matched, - // Cast descendant combinators to space - type: match[0].replace( rtrim, " " ) - }); - soFar = soFar.slice( matched.length ); - } - - // Filters - for ( type in Expr.filter ) { - if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || - (match = preFilters[ type ]( match ))) ) { - matched = match.shift(); - tokens.push({ - value: matched, - type: type, - matches: match - }); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - // Return the length of the invalid excess - // if we're just parsing - // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); -}; - -function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[i].value; - } - return selector; -} - -function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - skip = combinator.next, - key = skip || dir, - checkNonElements = base && key === "parentNode", - doneName = done++; - - return combinator.first ? - // Check against closest ancestor/preceding element - function( elem, context, xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - return false; - } : - - // Check against all ancestor/preceding elements - function( elem, context, xml ) { - var oldCache, uniqueCache, outerCache, - newCache = [ dirruns, doneName ]; - - // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching - if ( xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || (elem[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {}); - - if ( skip && skip === elem.nodeName.toLowerCase() ) { - elem = elem[ dir ] || elem; - } else if ( (oldCache = uniqueCache[ key ]) && - oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { - - // Assign to newCache so results back-propagate to previous elements - return (newCache[ 2 ] = oldCache[ 2 ]); - } else { - // Reuse newcache so results back-propagate to previous elements - uniqueCache[ key ] = newCache; - - // A match means we're done; a fail means we have to keep checking - if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { - return true; - } - } - } - } - } - return false; - }; -} - -function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[i]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[0]; -} - -function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[i], results ); - } - return results; -} - -function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( (elem = unmatched[i]) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; -} - -function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction(function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - // Get initial elements from seed or context - elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), - - // Prefilter to get matcher input, preserving a map for seed-results synchronization - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - // ...intermediate processing is necessary - [] : - - // ...otherwise use results directly - results : - matcherIn; - - // Find primary matches - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - // Apply postFilter - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - // Un-match failing elements by moving them back to matcherIn - i = temp.length; - while ( i-- ) { - if ( (elem = temp[i]) ) { - matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - // Get the final matcherOut by condensing this intermediate into postFinder contexts - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) ) { - // Restore matcherIn since elem is not yet a final match - temp.push( (matcherIn[i] = elem) ); - } - } - postFinder( null, (matcherOut = []), temp, xml ); - } - - // Move matched elements from seed to results to keep them synchronized - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) && - (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { - - seed[temp] = !(results[temp] = elem); - } - } - } - - // Add elements to results, through postFinder if defined - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - }); -} - -function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[0].type ], - implicitRelative = leadingRelative || Expr.relative[" "], - i = leadingRelative ? 1 : 0, - - // The foundational matcher ensures that elements are reachable from top-level context(s) - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - (checkContext = context).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - // Avoid hanging onto element (issue #299) - checkContext = null; - return ret; - } ]; - - for ( ; i < len; i++ ) { - if ( (matcher = Expr.relative[ tokens[i].type ]) ) { - matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; - } else { - matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); - - // Return special upon seeing a positional matcher - if ( matcher[ expando ] ) { - // Find the next relative operator (if any) for proper handling - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[j].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( - // If the preceding token was a descendant combinator, insert an implicit any-element `*` - tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) - ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); -} - -function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - var bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, outermost ) { - var elem, j, matcher, - matchedCount = 0, - i = "0", - unmatched = seed && [], - setMatched = [], - contextBackup = outermostContext, - // We must always have either seed elements or outermost context - elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), - len = elems.length; - - if ( outermost ) { - outermostContext = context === document || context || outermost; - } - - // Add elements passing elementMatchers directly to results - // Support: IE<9, Safari - // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id - for ( ; i !== len && (elem = elems[i]) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - if ( !context && elem.ownerDocument !== document ) { - setDocument( elem ); - xml = !documentIsHTML; - } - while ( (matcher = elementMatchers[j++]) ) { - if ( matcher( elem, context || document, xml) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - } - } - - // Track unmatched elements for set filters - if ( bySet ) { - // They will have gone through all possible matchers - if ( (elem = !matcher && elem) ) { - matchedCount--; - } - - // Lengthen the array for every element, matched or not - if ( seed ) { - unmatched.push( elem ); - } - } - } - - // `i` is now the count of elements visited above, and adding it to `matchedCount` - // makes the latter nonnegative. - matchedCount += i; - - // Apply set filters to unmatched elements - // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` - // equals `i`), unless we didn't visit _any_ elements in the above loop because we have - // no element matchers and no seed. - // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that - // case, which will result in a "00" `matchedCount` that differs from `i` but is also - // numerically zero. - if ( bySet && i !== matchedCount ) { - j = 0; - while ( (matcher = setMatchers[j++]) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - // Reintegrate element matches to eliminate the need for sorting - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !(unmatched[i] || setMatched[i]) ) { - setMatched[i] = pop.call( results ); - } - } - } - - // Discard index placeholder values to get only actual matches - setMatched = condense( setMatched ); - } - - // Add matches to results - push.apply( results, setMatched ); - - // Seedless set matches succeeding multiple successful matchers stipulate sorting - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - // Override manipulation of globals by nested matchers - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; -} - -compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - // Generate a function of recursive functions that can be used to check each element - if ( !match ) { - match = tokenize( selector ); - } - i = match.length; - while ( i-- ) { - cached = matcherFromTokens( match[i] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); - - // Save selector and tokenization - cached.selector = selector; - } - return cached; -}; - -/** - * A low-level selection function that works with Sizzle's compiled - * selector functions - * @param {String|Function} selector A selector or a pre-compiled - * selector function built with Sizzle.compile - * @param {Element} context - * @param {Array} [results] - * @param {Array} [seed] A set of elements to match against - */ -select = Sizzle.select = function( selector, context, results, seed ) { - var i, tokens, token, type, find, - compiled = typeof selector === "function" && selector, - match = !seed && tokenize( (selector = compiled.selector || selector) ); - - results = results || []; - - // Try to minimize operations if there is only one selector in the list and no seed - // (the latter of which guarantees us context) - if ( match.length === 1 ) { - - // Reduce context if the leading compound selector is an ID - tokens = match[0] = match[0].slice( 0 ); - if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && - context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) { - - context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; - if ( !context ) { - return results; - - // Precompiled matchers will still verify ancestry, so step up a level - } else if ( compiled ) { - context = context.parentNode; - } - - selector = selector.slice( tokens.shift().value.length ); - } - - // Fetch a seed set for right-to-left matching - i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; - while ( i-- ) { - token = tokens[i]; - - // Abort if we hit a combinator - if ( Expr.relative[ (type = token.type) ] ) { - break; - } - if ( (find = Expr.find[ type ]) ) { - // Search, expanding context for leading sibling combinators - if ( (seed = find( - token.matches[0].replace( runescape, funescape ), - rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context - )) ) { - - // If seed is empty or no tokens remain, we can return early - tokens.splice( i, 1 ); - selector = seed.length && toSelector( tokens ); - if ( !selector ) { - push.apply( results, seed ); - return results; - } - - break; - } - } - } - } - - // Compile and execute a filtering function if one is not provided - // Provide `match` to avoid retokenization if we modified the selector above - ( compiled || compile( selector, match ) )( - seed, - context, - !documentIsHTML, - results, - !context || rsibling.test( selector ) && testContext( context.parentNode ) || context - ); - return results; -}; - -// One-time assignments - -// Sort stability -support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; - -// Support: Chrome 14-35+ -// Always assume duplicates if they aren't passed to the comparison function -support.detectDuplicates = !!hasDuplicate; - -// Initialize against the default document -setDocument(); - -// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) -// Detached nodes confoundingly follow *each other* -support.sortDetached = assert(function( el ) { - // Should return 1, but returns 4 (following) - return el.compareDocumentPosition( document.createElement("fieldset") ) & 1; -}); - -// Support: IE<8 -// Prevent attribute/property "interpolation" -// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !assert(function( el ) { - el.innerHTML = ""; - return el.firstChild.getAttribute("href") === "#" ; -}) ) { - addHandle( "type|href|height|width", function( elem, name, isXML ) { - if ( !isXML ) { - return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); - } - }); -} - -// Support: IE<9 -// Use defaultValue in place of getAttribute("value") -if ( !support.attributes || !assert(function( el ) { - el.innerHTML = ""; - el.firstChild.setAttribute( "value", "" ); - return el.firstChild.getAttribute( "value" ) === ""; -}) ) { - addHandle( "value", function( elem, name, isXML ) { - if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { - return elem.defaultValue; - } - }); -} - -// Support: IE<9 -// Use getAttributeNode to fetch booleans when getAttribute lies -if ( !assert(function( el ) { - return el.getAttribute("disabled") == null; -}) ) { - addHandle( booleans, function( elem, name, isXML ) { - var val; - if ( !isXML ) { - return elem[ name ] === true ? name.toLowerCase() : - (val = elem.getAttributeNode( name )) && val.specified ? - val.value : - null; - } - }); -} - -return Sizzle; - -})( window ); - - - -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; - -// Deprecated -jQuery.expr[ ":" ] = jQuery.expr.pseudos; -jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; -jQuery.escapeSelector = Sizzle.escape; - - - - -var dir = function( elem, dir, until ) { - var matched = [], - truncate = until !== undefined; - - while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { - if ( elem.nodeType === 1 ) { - if ( truncate && jQuery( elem ).is( until ) ) { - break; - } - matched.push( elem ); - } - } - return matched; -}; - - -var siblings = function( n, elem ) { - var matched = []; - - for ( ; n; n = n.nextSibling ) { - if ( n.nodeType === 1 && n !== elem ) { - matched.push( n ); - } - } - - return matched; -}; - - -var rneedsContext = jQuery.expr.match.needsContext; - - - -function nodeName( elem, name ) { - - return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); - -}; -var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); - - - -var risSimple = /^.[^:#\[\.,]*$/; - -// Implement the identical functionality for filter and not -function winnow( elements, qualifier, not ) { - if ( jQuery.isFunction( qualifier ) ) { - return jQuery.grep( elements, function( elem, i ) { - return !!qualifier.call( elem, i, elem ) !== not; - } ); - } - - // Single element - if ( qualifier.nodeType ) { - return jQuery.grep( elements, function( elem ) { - return ( elem === qualifier ) !== not; - } ); - } - - // Arraylike of elements (jQuery, arguments, Array) - if ( typeof qualifier !== "string" ) { - return jQuery.grep( elements, function( elem ) { - return ( indexOf.call( qualifier, elem ) > -1 ) !== not; - } ); - } - - // Simple selector that can be filtered directly, removing non-Elements - if ( risSimple.test( qualifier ) ) { - return jQuery.filter( qualifier, elements, not ); - } - - // Complex selector, compare the two sets, removing non-Elements - qualifier = jQuery.filter( qualifier, elements ); - return jQuery.grep( elements, function( elem ) { - return ( indexOf.call( qualifier, elem ) > -1 ) !== not && elem.nodeType === 1; - } ); -} - -jQuery.filter = function( expr, elems, not ) { - var elem = elems[ 0 ]; - - if ( not ) { - expr = ":not(" + expr + ")"; - } - - if ( elems.length === 1 && elem.nodeType === 1 ) { - return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; - } - - return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { - return elem.nodeType === 1; - } ) ); -}; - -jQuery.fn.extend( { - find: function( selector ) { - var i, ret, - len = this.length, - self = this; - - if ( typeof selector !== "string" ) { - return this.pushStack( jQuery( selector ).filter( function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( self[ i ], this ) ) { - return true; - } - } - } ) ); - } - - ret = this.pushStack( [] ); - - for ( i = 0; i < len; i++ ) { - jQuery.find( selector, self[ i ], ret ); - } - - return len > 1 ? jQuery.uniqueSort( ret ) : ret; - }, - filter: function( selector ) { - return this.pushStack( winnow( this, selector || [], false ) ); - }, - not: function( selector ) { - return this.pushStack( winnow( this, selector || [], true ) ); - }, - is: function( selector ) { - return !!winnow( - this, - - // If this is a positional/relative selector, check membership in the returned set - // so $("p:first").is("p:last") won't return true for a doc with two "p". - typeof selector === "string" && rneedsContext.test( selector ) ? - jQuery( selector ) : - selector || [], - false - ).length; - } -} ); - - -// Initialize a jQuery object - - -// A central reference to the root jQuery(document) -var rootjQuery, - - // A simple way to check for HTML strings - // Prioritize #id over to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) - // Shortcut simple #id case for speed - rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, - - init = jQuery.fn.init = function( selector, context, root ) { - var match, elem; - - // HANDLE: $(""), $(null), $(undefined), $(false) - if ( !selector ) { - return this; - } - - // Method init() accepts an alternate rootjQuery - // so migrate can support jQuery.sub (gh-2101) - root = root || rootjQuery; - - // Handle HTML strings - if ( typeof selector === "string" ) { - if ( selector[ 0 ] === "<" && - selector[ selector.length - 1 ] === ">" && - selector.length >= 3 ) { - - // Assume that strings that start and end with <> are HTML and skip the regex check - match = [ null, selector, null ]; - - } else { - match = rquickExpr.exec( selector ); - } - - // Match html or make sure no context is specified for #id - if ( match && ( match[ 1 ] || !context ) ) { - - // HANDLE: $(html) -> $(array) - if ( match[ 1 ] ) { - context = context instanceof jQuery ? context[ 0 ] : context; - - // Option to run scripts is true for back-compat - // Intentionally let the error be thrown if parseHTML is not present - jQuery.merge( this, jQuery.parseHTML( - match[ 1 ], - context && context.nodeType ? context.ownerDocument || context : document, - true - ) ); - - // HANDLE: $(html, props) - if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { - for ( match in context ) { - - // Properties of context are called as methods if possible - if ( jQuery.isFunction( this[ match ] ) ) { - this[ match ]( context[ match ] ); - - // ...and otherwise set as attributes - } else { - this.attr( match, context[ match ] ); - } - } - } - - return this; - - // HANDLE: $(#id) - } else { - elem = document.getElementById( match[ 2 ] ); - - if ( elem ) { - - // Inject the element directly into the jQuery object - this[ 0 ] = elem; - this.length = 1; - } - return this; - } - - // HANDLE: $(expr, $(...)) - } else if ( !context || context.jquery ) { - return ( context || root ).find( selector ); - - // HANDLE: $(expr, context) - // (which is just equivalent to: $(context).find(expr) - } else { - return this.constructor( context ).find( selector ); - } - - // HANDLE: $(DOMElement) - } else if ( selector.nodeType ) { - this[ 0 ] = selector; - this.length = 1; - return this; - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) { - return root.ready !== undefined ? - root.ready( selector ) : - - // Execute immediately if ready is not present - selector( jQuery ); - } - - return jQuery.makeArray( selector, this ); - }; - -// Give the init function the jQuery prototype for later instantiation -init.prototype = jQuery.fn; - -// Initialize central reference -rootjQuery = jQuery( document ); - - -var rparentsprev = /^(?:parents|prev(?:Until|All))/, - - // Methods guaranteed to produce a unique set when starting from a unique set - guaranteedUnique = { - children: true, - contents: true, - next: true, - prev: true - }; - -jQuery.fn.extend( { - has: function( target ) { - var targets = jQuery( target, this ), - l = targets.length; - - return this.filter( function() { - var i = 0; - for ( ; i < l; i++ ) { - if ( jQuery.contains( this, targets[ i ] ) ) { - return true; - } - } - } ); - }, - - closest: function( selectors, context ) { - var cur, - i = 0, - l = this.length, - matched = [], - targets = typeof selectors !== "string" && jQuery( selectors ); - - // Positional selectors never match, since there's no _selection_ context - if ( !rneedsContext.test( selectors ) ) { - for ( ; i < l; i++ ) { - for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { - - // Always skip document fragments - if ( cur.nodeType < 11 && ( targets ? - targets.index( cur ) > -1 : - - // Don't pass non-elements to Sizzle - cur.nodeType === 1 && - jQuery.find.matchesSelector( cur, selectors ) ) ) { - - matched.push( cur ); - break; - } - } - } - } - - return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); - }, - - // Determine the position of an element within the set - index: function( elem ) { - - // No argument, return index in parent - if ( !elem ) { - return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; - } - - // Index in selector - if ( typeof elem === "string" ) { - return indexOf.call( jQuery( elem ), this[ 0 ] ); - } - - // Locate the position of the desired element - return indexOf.call( this, - - // If it receives a jQuery object, the first element is used - elem.jquery ? elem[ 0 ] : elem - ); - }, - - add: function( selector, context ) { - return this.pushStack( - jQuery.uniqueSort( - jQuery.merge( this.get(), jQuery( selector, context ) ) - ) - ); - }, - - addBack: function( selector ) { - return this.add( selector == null ? - this.prevObject : this.prevObject.filter( selector ) - ); - } -} ); - -function sibling( cur, dir ) { - while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} - return cur; -} - -jQuery.each( { - parent: function( elem ) { - var parent = elem.parentNode; - return parent && parent.nodeType !== 11 ? parent : null; - }, - parents: function( elem ) { - return dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, i, until ) { - return dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "previousSibling" ); - }, - nextAll: function( elem ) { - return dir( elem, "nextSibling" ); - }, - prevAll: function( elem ) { - return dir( elem, "previousSibling" ); - }, - nextUntil: function( elem, i, until ) { - return dir( elem, "nextSibling", until ); - }, - prevUntil: function( elem, i, until ) { - return dir( elem, "previousSibling", until ); - }, - siblings: function( elem ) { - return siblings( ( elem.parentNode || {} ).firstChild, elem ); - }, - children: function( elem ) { - return siblings( elem.firstChild ); - }, - contents: function( elem ) { - if ( nodeName( elem, "iframe" ) ) { - return elem.contentDocument; - } - - // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only - // Treat the template element as a regular one in browsers that - // don't support it. - if ( nodeName( elem, "template" ) ) { - elem = elem.content || elem; - } - - return jQuery.merge( [], elem.childNodes ); - } -}, function( name, fn ) { - jQuery.fn[ name ] = function( until, selector ) { - var matched = jQuery.map( this, fn, until ); - - if ( name.slice( -5 ) !== "Until" ) { - selector = until; - } - - if ( selector && typeof selector === "string" ) { - matched = jQuery.filter( selector, matched ); - } - - if ( this.length > 1 ) { - - // Remove duplicates - if ( !guaranteedUnique[ name ] ) { - jQuery.uniqueSort( matched ); - } - - // Reverse order for parents* and prev-derivatives - if ( rparentsprev.test( name ) ) { - matched.reverse(); - } - } - - return this.pushStack( matched ); - }; -} ); -var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); - - - -// Convert String-formatted options into Object-formatted ones -function createOptions( options ) { - var object = {}; - jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { - object[ flag ] = true; - } ); - return object; -} - -/* - * Create a callback list using the following parameters: - * - * options: an optional list of space-separated options that will change how - * the callback list behaves or a more traditional option object - * - * By default a callback list will act like an event callback list and can be - * "fired" multiple times. - * - * Possible options: - * - * once: will ensure the callback list can only be fired once (like a Deferred) - * - * memory: will keep track of previous values and will call any callback added - * after the list has been fired right away with the latest "memorized" - * values (like a Deferred) - * - * unique: will ensure a callback can only be added once (no duplicate in the list) - * - * stopOnFalse: interrupt callings when a callback returns false - * - */ -jQuery.Callbacks = function( options ) { - - // Convert options from String-formatted to Object-formatted if needed - // (we check in cache first) - options = typeof options === "string" ? - createOptions( options ) : - jQuery.extend( {}, options ); - - var // Flag to know if list is currently firing - firing, - - // Last fire value for non-forgettable lists - memory, - - // Flag to know if list was already fired - fired, - - // Flag to prevent firing - locked, - - // Actual callback list - list = [], - - // Queue of execution data for repeatable lists - queue = [], - - // Index of currently firing callback (modified by add/remove as needed) - firingIndex = -1, - - // Fire callbacks - fire = function() { - - // Enforce single-firing - locked = locked || options.once; - - // Execute callbacks for all pending executions, - // respecting firingIndex overrides and runtime changes - fired = firing = true; - for ( ; queue.length; firingIndex = -1 ) { - memory = queue.shift(); - while ( ++firingIndex < list.length ) { - - // Run callback and check for early termination - if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && - options.stopOnFalse ) { - - // Jump to end and forget the data so .add doesn't re-fire - firingIndex = list.length; - memory = false; - } - } - } - - // Forget the data if we're done with it - if ( !options.memory ) { - memory = false; - } - - firing = false; - - // Clean up if we're done firing for good - if ( locked ) { - - // Keep an empty list if we have data for future add calls - if ( memory ) { - list = []; - - // Otherwise, this object is spent - } else { - list = ""; - } - } - }, - - // Actual Callbacks object - self = { - - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - - // If we have memory from a past run, we should fire after adding - if ( memory && !firing ) { - firingIndex = list.length - 1; - queue.push( memory ); - } - - ( function add( args ) { - jQuery.each( args, function( _, arg ) { - if ( jQuery.isFunction( arg ) ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) { - - // Inspect recursively - add( arg ); - } - } ); - } )( arguments ); - - if ( memory && !firing ) { - fire(); - } - } - return this; - }, - - // Remove a callback from the list - remove: function() { - jQuery.each( arguments, function( _, arg ) { - var index; - while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - - // Handle firing indexes - if ( index <= firingIndex ) { - firingIndex--; - } - } - } ); - return this; - }, - - // Check if a given callback is in the list. - // If no argument is given, return whether or not list has callbacks attached. - has: function( fn ) { - return fn ? - jQuery.inArray( fn, list ) > -1 : - list.length > 0; - }, - - // Remove all callbacks from the list - empty: function() { - if ( list ) { - list = []; - } - return this; - }, - - // Disable .fire and .add - // Abort any current/pending executions - // Clear all callbacks and values - disable: function() { - locked = queue = []; - list = memory = ""; - return this; - }, - disabled: function() { - return !list; - }, - - // Disable .fire - // Also disable .add unless we have memory (since it would have no effect) - // Abort any pending executions - lock: function() { - locked = queue = []; - if ( !memory && !firing ) { - list = memory = ""; - } - return this; - }, - locked: function() { - return !!locked; - }, - - // Call all callbacks with the given context and arguments - fireWith: function( context, args ) { - if ( !locked ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - queue.push( args ); - if ( !firing ) { - fire(); - } - } - return this; - }, - - // Call all the callbacks with the given arguments - fire: function() { - self.fireWith( this, arguments ); - return this; - }, - - // To know if the callbacks have already been called at least once - fired: function() { - return !!fired; - } - }; - - return self; -}; - - -function Identity( v ) { - return v; -} -function Thrower( ex ) { - throw ex; -} - -function adoptValue( value, resolve, reject, noValue ) { - var method; - - try { - - // Check for promise aspect first to privilege synchronous behavior - if ( value && jQuery.isFunction( ( method = value.promise ) ) ) { - method.call( value ).done( resolve ).fail( reject ); - - // Other thenables - } else if ( value && jQuery.isFunction( ( method = value.then ) ) ) { - method.call( value, resolve, reject ); - - // Other non-thenables - } else { - - // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer: - // * false: [ value ].slice( 0 ) => resolve( value ) - // * true: [ value ].slice( 1 ) => resolve() - resolve.apply( undefined, [ value ].slice( noValue ) ); - } - - // For Promises/A+, convert exceptions into rejections - // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in - // Deferred#then to conditionally suppress rejection. - } catch ( value ) { - - // Support: Android 4.0 only - // Strict mode functions invoked without .call/.apply get global-object context - reject.apply( undefined, [ value ] ); - } -} - -jQuery.extend( { - - Deferred: function( func ) { - var tuples = [ - - // action, add listener, callbacks, - // ... .then handlers, argument index, [final state] - [ "notify", "progress", jQuery.Callbacks( "memory" ), - jQuery.Callbacks( "memory" ), 2 ], - [ "resolve", "done", jQuery.Callbacks( "once memory" ), - jQuery.Callbacks( "once memory" ), 0, "resolved" ], - [ "reject", "fail", jQuery.Callbacks( "once memory" ), - jQuery.Callbacks( "once memory" ), 1, "rejected" ] - ], - state = "pending", - promise = { - state: function() { - return state; - }, - always: function() { - deferred.done( arguments ).fail( arguments ); - return this; - }, - "catch": function( fn ) { - return promise.then( null, fn ); - }, - - // Keep pipe for back-compat - pipe: function( /* fnDone, fnFail, fnProgress */ ) { - var fns = arguments; - - return jQuery.Deferred( function( newDefer ) { - jQuery.each( tuples, function( i, tuple ) { - - // Map tuples (progress, done, fail) to arguments (done, fail, progress) - var fn = jQuery.isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; - - // deferred.progress(function() { bind to newDefer or newDefer.notify }) - // deferred.done(function() { bind to newDefer or newDefer.resolve }) - // deferred.fail(function() { bind to newDefer or newDefer.reject }) - deferred[ tuple[ 1 ] ]( function() { - var returned = fn && fn.apply( this, arguments ); - if ( returned && jQuery.isFunction( returned.promise ) ) { - returned.promise() - .progress( newDefer.notify ) - .done( newDefer.resolve ) - .fail( newDefer.reject ); - } else { - newDefer[ tuple[ 0 ] + "With" ]( - this, - fn ? [ returned ] : arguments - ); - } - } ); - } ); - fns = null; - } ).promise(); - }, - then: function( onFulfilled, onRejected, onProgress ) { - var maxDepth = 0; - function resolve( depth, deferred, handler, special ) { - return function() { - var that = this, - args = arguments, - mightThrow = function() { - var returned, then; - - // Support: Promises/A+ section 2.3.3.3.3 - // https://promisesaplus.com/#point-59 - // Ignore double-resolution attempts - if ( depth < maxDepth ) { - return; - } - - returned = handler.apply( that, args ); - - // Support: Promises/A+ section 2.3.1 - // https://promisesaplus.com/#point-48 - if ( returned === deferred.promise() ) { - throw new TypeError( "Thenable self-resolution" ); - } - - // Support: Promises/A+ sections 2.3.3.1, 3.5 - // https://promisesaplus.com/#point-54 - // https://promisesaplus.com/#point-75 - // Retrieve `then` only once - then = returned && - - // Support: Promises/A+ section 2.3.4 - // https://promisesaplus.com/#point-64 - // Only check objects and functions for thenability - ( typeof returned === "object" || - typeof returned === "function" ) && - returned.then; - - // Handle a returned thenable - if ( jQuery.isFunction( then ) ) { - - // Special processors (notify) just wait for resolution - if ( special ) { - then.call( - returned, - resolve( maxDepth, deferred, Identity, special ), - resolve( maxDepth, deferred, Thrower, special ) - ); - - // Normal processors (resolve) also hook into progress - } else { - - // ...and disregard older resolution values - maxDepth++; - - then.call( - returned, - resolve( maxDepth, deferred, Identity, special ), - resolve( maxDepth, deferred, Thrower, special ), - resolve( maxDepth, deferred, Identity, - deferred.notifyWith ) - ); - } - - // Handle all other returned values - } else { - - // Only substitute handlers pass on context - // and multiple values (non-spec behavior) - if ( handler !== Identity ) { - that = undefined; - args = [ returned ]; - } - - // Process the value(s) - // Default process is resolve - ( special || deferred.resolveWith )( that, args ); - } - }, - - // Only normal processors (resolve) catch and reject exceptions - process = special ? - mightThrow : - function() { - try { - mightThrow(); - } catch ( e ) { - - if ( jQuery.Deferred.exceptionHook ) { - jQuery.Deferred.exceptionHook( e, - process.stackTrace ); - } - - // Support: Promises/A+ section 2.3.3.3.4.1 - // https://promisesaplus.com/#point-61 - // Ignore post-resolution exceptions - if ( depth + 1 >= maxDepth ) { - - // Only substitute handlers pass on context - // and multiple values (non-spec behavior) - if ( handler !== Thrower ) { - that = undefined; - args = [ e ]; - } - - deferred.rejectWith( that, args ); - } - } - }; - - // Support: Promises/A+ section 2.3.3.3.1 - // https://promisesaplus.com/#point-57 - // Re-resolve promises immediately to dodge false rejection from - // subsequent errors - if ( depth ) { - process(); - } else { - - // Call an optional hook to record the stack, in case of exception - // since it's otherwise lost when execution goes async - if ( jQuery.Deferred.getStackHook ) { - process.stackTrace = jQuery.Deferred.getStackHook(); - } - window.setTimeout( process ); - } - }; - } - - return jQuery.Deferred( function( newDefer ) { - - // progress_handlers.add( ... ) - tuples[ 0 ][ 3 ].add( - resolve( - 0, - newDefer, - jQuery.isFunction( onProgress ) ? - onProgress : - Identity, - newDefer.notifyWith - ) - ); - - // fulfilled_handlers.add( ... ) - tuples[ 1 ][ 3 ].add( - resolve( - 0, - newDefer, - jQuery.isFunction( onFulfilled ) ? - onFulfilled : - Identity - ) - ); - - // rejected_handlers.add( ... ) - tuples[ 2 ][ 3 ].add( - resolve( - 0, - newDefer, - jQuery.isFunction( onRejected ) ? - onRejected : - Thrower - ) - ); - } ).promise(); - }, - - // Get a promise for this deferred - // If obj is provided, the promise aspect is added to the object - promise: function( obj ) { - return obj != null ? jQuery.extend( obj, promise ) : promise; - } - }, - deferred = {}; - - // Add list-specific methods - jQuery.each( tuples, function( i, tuple ) { - var list = tuple[ 2 ], - stateString = tuple[ 5 ]; - - // promise.progress = list.add - // promise.done = list.add - // promise.fail = list.add - promise[ tuple[ 1 ] ] = list.add; - - // Handle state - if ( stateString ) { - list.add( - function() { - - // state = "resolved" (i.e., fulfilled) - // state = "rejected" - state = stateString; - }, - - // rejected_callbacks.disable - // fulfilled_callbacks.disable - tuples[ 3 - i ][ 2 ].disable, - - // progress_callbacks.lock - tuples[ 0 ][ 2 ].lock - ); - } - - // progress_handlers.fire - // fulfilled_handlers.fire - // rejected_handlers.fire - list.add( tuple[ 3 ].fire ); - - // deferred.notify = function() { deferred.notifyWith(...) } - // deferred.resolve = function() { deferred.resolveWith(...) } - // deferred.reject = function() { deferred.rejectWith(...) } - deferred[ tuple[ 0 ] ] = function() { - deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); - return this; - }; - - // deferred.notifyWith = list.fireWith - // deferred.resolveWith = list.fireWith - // deferred.rejectWith = list.fireWith - deferred[ tuple[ 0 ] + "With" ] = list.fireWith; - } ); - - // Make the deferred a promise - promise.promise( deferred ); - - // Call given func if any - if ( func ) { - func.call( deferred, deferred ); - } - - // All done! - return deferred; - }, - - // Deferred helper - when: function( singleValue ) { - var - - // count of uncompleted subordinates - remaining = arguments.length, - - // count of unprocessed arguments - i = remaining, - - // subordinate fulfillment data - resolveContexts = Array( i ), - resolveValues = slice.call( arguments ), - - // the master Deferred - master = jQuery.Deferred(), - - // subordinate callback factory - updateFunc = function( i ) { - return function( value ) { - resolveContexts[ i ] = this; - resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; - if ( !( --remaining ) ) { - master.resolveWith( resolveContexts, resolveValues ); - } - }; - }; - - // Single- and empty arguments are adopted like Promise.resolve - if ( remaining <= 1 ) { - adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject, - !remaining ); - - // Use .then() to unwrap secondary thenables (cf. gh-3000) - if ( master.state() === "pending" || - jQuery.isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { - - return master.then(); - } - } - - // Multiple arguments are aggregated like Promise.all array elements - while ( i-- ) { - adoptValue( resolveValues[ i ], updateFunc( i ), master.reject ); - } - - return master.promise(); - } -} ); - - -// These usually indicate a programmer mistake during development, -// warn about them ASAP rather than swallowing them by default. -var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; - -jQuery.Deferred.exceptionHook = function( error, stack ) { - - // Support: IE 8 - 9 only - // Console exists when dev tools are open, which can happen at any time - if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { - window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); - } -}; - - - - -jQuery.readyException = function( error ) { - window.setTimeout( function() { - throw error; - } ); -}; - - - - -// The deferred used on DOM ready -var readyList = jQuery.Deferred(); - -jQuery.fn.ready = function( fn ) { - - readyList - .then( fn ) - - // Wrap jQuery.readyException in a function so that the lookup - // happens at the time of error handling instead of callback - // registration. - .catch( function( error ) { - jQuery.readyException( error ); - } ); - - return this; -}; - -jQuery.extend( { - - // Is the DOM ready to be used? Set to true once it occurs. - isReady: false, - - // A counter to track how many items to wait for before - // the ready event fires. See #6781 - readyWait: 1, - - // Handle when the DOM is ready - ready: function( wait ) { - - // Abort if there are pending holds or we're already ready - if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { - return; - } - - // Remember that the DOM is ready - jQuery.isReady = true; - - // If a normal DOM Ready event fired, decrement, and wait if need be - if ( wait !== true && --jQuery.readyWait > 0 ) { - return; - } - - // If there are functions bound, to execute - readyList.resolveWith( document, [ jQuery ] ); - } -} ); - -jQuery.ready.then = readyList.then; - -// The ready event handler and self cleanup method -function completed() { - document.removeEventListener( "DOMContentLoaded", completed ); - window.removeEventListener( "load", completed ); - jQuery.ready(); -} - -// Catch cases where $(document).ready() is called -// after the browser event has already occurred. -// Support: IE <=9 - 10 only -// Older IE sometimes signals "interactive" too soon -if ( document.readyState === "complete" || - ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { - - // Handle it asynchronously to allow scripts the opportunity to delay ready - window.setTimeout( jQuery.ready ); - -} else { - - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed ); - - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed ); -} - - - - -// Multifunctional method to get and set values of a collection -// The value/s can optionally be executed if it's a function -var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - len = elems.length, - bulk = key == null; - - // Sets many values - if ( jQuery.type( key ) === "object" ) { - chainable = true; - for ( i in key ) { - access( elems, fn, i, key[ i ], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !jQuery.isFunction( value ) ) { - raw = true; - } - - if ( bulk ) { - - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < len; i++ ) { - fn( - elems[ i ], key, raw ? - value : - value.call( elems[ i ], i, fn( elems[ i ], key ) ) - ); - } - } - } - - if ( chainable ) { - return elems; - } - - // Gets - if ( bulk ) { - return fn.call( elems ); - } - - return len ? fn( elems[ 0 ], key ) : emptyGet; -}; -var acceptData = function( owner ) { - - // Accepts only: - // - Node - // - Node.ELEMENT_NODE - // - Node.DOCUMENT_NODE - // - Object - // - Any - return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); -}; - - - - -function Data() { - this.expando = jQuery.expando + Data.uid++; -} - -Data.uid = 1; - -Data.prototype = { - - cache: function( owner ) { - - // Check if the owner object already has a cache - var value = owner[ this.expando ]; - - // If not, create one - if ( !value ) { - value = {}; - - // We can accept data for non-element nodes in modern browsers, - // but we should not, see #8335. - // Always return an empty object. - if ( acceptData( owner ) ) { - - // If it is a node unlikely to be stringify-ed or looped over - // use plain assignment - if ( owner.nodeType ) { - owner[ this.expando ] = value; - - // Otherwise secure it in a non-enumerable property - // configurable must be true to allow the property to be - // deleted when data is removed - } else { - Object.defineProperty( owner, this.expando, { - value: value, - configurable: true - } ); - } - } - } - - return value; - }, - set: function( owner, data, value ) { - var prop, - cache = this.cache( owner ); - - // Handle: [ owner, key, value ] args - // Always use camelCase key (gh-2257) - if ( typeof data === "string" ) { - cache[ jQuery.camelCase( data ) ] = value; - - // Handle: [ owner, { properties } ] args - } else { - - // Copy the properties one-by-one to the cache object - for ( prop in data ) { - cache[ jQuery.camelCase( prop ) ] = data[ prop ]; - } - } - return cache; - }, - get: function( owner, key ) { - return key === undefined ? - this.cache( owner ) : - - // Always use camelCase key (gh-2257) - owner[ this.expando ] && owner[ this.expando ][ jQuery.camelCase( key ) ]; - }, - access: function( owner, key, value ) { - - // In cases where either: - // - // 1. No key was specified - // 2. A string key was specified, but no value provided - // - // Take the "read" path and allow the get method to determine - // which value to return, respectively either: - // - // 1. The entire cache object - // 2. The data stored at the key - // - if ( key === undefined || - ( ( key && typeof key === "string" ) && value === undefined ) ) { - - return this.get( owner, key ); - } - - // When the key is not a string, or both a key and value - // are specified, set or extend (existing objects) with either: - // - // 1. An object of properties - // 2. A key and value - // - this.set( owner, key, value ); - - // Since the "set" path can have two possible entry points - // return the expected data based on which path was taken[*] - return value !== undefined ? value : key; - }, - remove: function( owner, key ) { - var i, - cache = owner[ this.expando ]; - - if ( cache === undefined ) { - return; - } - - if ( key !== undefined ) { - - // Support array or space separated string of keys - if ( Array.isArray( key ) ) { - - // If key is an array of keys... - // We always set camelCase keys, so remove that. - key = key.map( jQuery.camelCase ); - } else { - key = jQuery.camelCase( key ); - - // If a key with the spaces exists, use it. - // Otherwise, create an array by matching non-whitespace - key = key in cache ? - [ key ] : - ( key.match( rnothtmlwhite ) || [] ); - } - - i = key.length; - - while ( i-- ) { - delete cache[ key[ i ] ]; - } - } - - // Remove the expando if there's no more data - if ( key === undefined || jQuery.isEmptyObject( cache ) ) { - - // Support: Chrome <=35 - 45 - // Webkit & Blink performance suffers when deleting properties - // from DOM nodes, so set to undefined instead - // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted) - if ( owner.nodeType ) { - owner[ this.expando ] = undefined; - } else { - delete owner[ this.expando ]; - } - } - }, - hasData: function( owner ) { - var cache = owner[ this.expando ]; - return cache !== undefined && !jQuery.isEmptyObject( cache ); - } -}; -var dataPriv = new Data(); - -var dataUser = new Data(); - - - -// Implementation Summary -// -// 1. Enforce API surface and semantic compatibility with 1.9.x branch -// 2. Improve the module's maintainability by reducing the storage -// paths to a single mechanism. -// 3. Use the same single mechanism to support "private" and "user" data. -// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) -// 5. Avoid exposing implementation details on user objects (eg. expando properties) -// 6. Provide a clear path for implementation upgrade to WeakMap in 2014 - -var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, - rmultiDash = /[A-Z]/g; - -function getData( data ) { - if ( data === "true" ) { - return true; - } - - if ( data === "false" ) { - return false; - } - - if ( data === "null" ) { - return null; - } - - // Only convert to a number if it doesn't change the string - if ( data === +data + "" ) { - return +data; - } - - if ( rbrace.test( data ) ) { - return JSON.parse( data ); - } - - return data; -} - -function dataAttr( elem, key, data ) { - var name; - - // If nothing was found internally, try to fetch any - // data from the HTML5 data-* attribute - if ( data === undefined && elem.nodeType === 1 ) { - name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); - data = elem.getAttribute( name ); - - if ( typeof data === "string" ) { - try { - data = getData( data ); - } catch ( e ) {} - - // Make sure we set the data so it isn't changed later - dataUser.set( elem, key, data ); - } else { - data = undefined; - } - } - return data; -} - -jQuery.extend( { - hasData: function( elem ) { - return dataUser.hasData( elem ) || dataPriv.hasData( elem ); - }, - - data: function( elem, name, data ) { - return dataUser.access( elem, name, data ); - }, - - removeData: function( elem, name ) { - dataUser.remove( elem, name ); - }, - - // TODO: Now that all calls to _data and _removeData have been replaced - // with direct calls to dataPriv methods, these can be deprecated. - _data: function( elem, name, data ) { - return dataPriv.access( elem, name, data ); - }, - - _removeData: function( elem, name ) { - dataPriv.remove( elem, name ); - } -} ); - -jQuery.fn.extend( { - data: function( key, value ) { - var i, name, data, - elem = this[ 0 ], - attrs = elem && elem.attributes; - - // Gets all values - if ( key === undefined ) { - if ( this.length ) { - data = dataUser.get( elem ); - - if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { - i = attrs.length; - while ( i-- ) { - - // Support: IE 11 only - // The attrs elements can be null (#14894) - if ( attrs[ i ] ) { - name = attrs[ i ].name; - if ( name.indexOf( "data-" ) === 0 ) { - name = jQuery.camelCase( name.slice( 5 ) ); - dataAttr( elem, name, data[ name ] ); - } - } - } - dataPriv.set( elem, "hasDataAttrs", true ); - } - } - - return data; - } - - // Sets multiple values - if ( typeof key === "object" ) { - return this.each( function() { - dataUser.set( this, key ); - } ); - } - - return access( this, function( value ) { - var data; - - // The calling jQuery object (element matches) is not empty - // (and therefore has an element appears at this[ 0 ]) and the - // `value` parameter was not undefined. An empty jQuery object - // will result in `undefined` for elem = this[ 0 ] which will - // throw an exception if an attempt to read a data cache is made. - if ( elem && value === undefined ) { - - // Attempt to get data from the cache - // The key will always be camelCased in Data - data = dataUser.get( elem, key ); - if ( data !== undefined ) { - return data; - } - - // Attempt to "discover" the data in - // HTML5 custom data-* attrs - data = dataAttr( elem, key ); - if ( data !== undefined ) { - return data; - } - - // We tried really hard, but the data doesn't exist. - return; - } - - // Set the data... - this.each( function() { - - // We always store the camelCased key - dataUser.set( this, key, value ); - } ); - }, null, value, arguments.length > 1, null, true ); - }, - - removeData: function( key ) { - return this.each( function() { - dataUser.remove( this, key ); - } ); - } -} ); - - -jQuery.extend( { - queue: function( elem, type, data ) { - var queue; - - if ( elem ) { - type = ( type || "fx" ) + "queue"; - queue = dataPriv.get( elem, type ); - - // Speed up dequeue by getting out quickly if this is just a lookup - if ( data ) { - if ( !queue || Array.isArray( data ) ) { - queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); - } else { - queue.push( data ); - } - } - return queue || []; - } - }, - - dequeue: function( elem, type ) { - type = type || "fx"; - - var queue = jQuery.queue( elem, type ), - startLength = queue.length, - fn = queue.shift(), - hooks = jQuery._queueHooks( elem, type ), - next = function() { - jQuery.dequeue( elem, type ); - }; - - // If the fx queue is dequeued, always remove the progress sentinel - if ( fn === "inprogress" ) { - fn = queue.shift(); - startLength--; - } - - if ( fn ) { - - // Add a progress sentinel to prevent the fx queue from being - // automatically dequeued - if ( type === "fx" ) { - queue.unshift( "inprogress" ); - } - - // Clear up the last queue stop function - delete hooks.stop; - fn.call( elem, next, hooks ); - } - - if ( !startLength && hooks ) { - hooks.empty.fire(); - } - }, - - // Not public - generate a queueHooks object, or return the current one - _queueHooks: function( elem, type ) { - var key = type + "queueHooks"; - return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { - empty: jQuery.Callbacks( "once memory" ).add( function() { - dataPriv.remove( elem, [ type + "queue", key ] ); - } ) - } ); - } -} ); - -jQuery.fn.extend( { - queue: function( type, data ) { - var setter = 2; - - if ( typeof type !== "string" ) { - data = type; - type = "fx"; - setter--; - } - - if ( arguments.length < setter ) { - return jQuery.queue( this[ 0 ], type ); - } - - return data === undefined ? - this : - this.each( function() { - var queue = jQuery.queue( this, type, data ); - - // Ensure a hooks for this queue - jQuery._queueHooks( this, type ); - - if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { - jQuery.dequeue( this, type ); - } - } ); - }, - dequeue: function( type ) { - return this.each( function() { - jQuery.dequeue( this, type ); - } ); - }, - clearQueue: function( type ) { - return this.queue( type || "fx", [] ); - }, - - // Get a promise resolved when queues of a certain type - // are emptied (fx is the type by default) - promise: function( type, obj ) { - var tmp, - count = 1, - defer = jQuery.Deferred(), - elements = this, - i = this.length, - resolve = function() { - if ( !( --count ) ) { - defer.resolveWith( elements, [ elements ] ); - } - }; - - if ( typeof type !== "string" ) { - obj = type; - type = undefined; - } - type = type || "fx"; - - while ( i-- ) { - tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); - if ( tmp && tmp.empty ) { - count++; - tmp.empty.add( resolve ); - } - } - resolve(); - return defer.promise( obj ); - } -} ); -var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; - -var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); - - -var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; - -var isHiddenWithinTree = function( elem, el ) { - - // isHiddenWithinTree might be called from jQuery#filter function; - // in that case, element will be second argument - elem = el || elem; - - // Inline style trumps all - return elem.style.display === "none" || - elem.style.display === "" && - - // Otherwise, check computed style - // Support: Firefox <=43 - 45 - // Disconnected elements can have computed display: none, so first confirm that elem is - // in the document. - jQuery.contains( elem.ownerDocument, elem ) && - - jQuery.css( elem, "display" ) === "none"; - }; - -var swap = function( elem, options, callback, args ) { - var ret, name, - old = {}; - - // Remember the old values, and insert the new ones - for ( name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - ret = callback.apply( elem, args || [] ); - - // Revert the old values - for ( name in options ) { - elem.style[ name ] = old[ name ]; - } - - return ret; -}; - - - - -function adjustCSS( elem, prop, valueParts, tween ) { - var adjusted, - scale = 1, - maxIterations = 20, - currentValue = tween ? - function() { - return tween.cur(); - } : - function() { - return jQuery.css( elem, prop, "" ); - }, - initial = currentValue(), - unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), - - // Starting value computation is required for potential unit mismatches - initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && - rcssNum.exec( jQuery.css( elem, prop ) ); - - if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { - - // Trust units reported by jQuery.css - unit = unit || initialInUnit[ 3 ]; - - // Make sure we update the tween properties later on - valueParts = valueParts || []; - - // Iteratively approximate from a nonzero starting point - initialInUnit = +initial || 1; - - do { - - // If previous iteration zeroed out, double until we get *something*. - // Use string for doubling so we don't accidentally see scale as unchanged below - scale = scale || ".5"; - - // Adjust and apply - initialInUnit = initialInUnit / scale; - jQuery.style( elem, prop, initialInUnit + unit ); - - // Update scale, tolerating zero or NaN from tween.cur() - // Break the loop if scale is unchanged or perfect, or if we've just had enough. - } while ( - scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations - ); - } - - if ( valueParts ) { - initialInUnit = +initialInUnit || +initial || 0; - - // Apply relative offset (+=/-=) if specified - adjusted = valueParts[ 1 ] ? - initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : - +valueParts[ 2 ]; - if ( tween ) { - tween.unit = unit; - tween.start = initialInUnit; - tween.end = adjusted; - } - } - return adjusted; -} - - -var defaultDisplayMap = {}; - -function getDefaultDisplay( elem ) { - var temp, - doc = elem.ownerDocument, - nodeName = elem.nodeName, - display = defaultDisplayMap[ nodeName ]; - - if ( display ) { - return display; - } - - temp = doc.body.appendChild( doc.createElement( nodeName ) ); - display = jQuery.css( temp, "display" ); - - temp.parentNode.removeChild( temp ); - - if ( display === "none" ) { - display = "block"; - } - defaultDisplayMap[ nodeName ] = display; - - return display; -} - -function showHide( elements, show ) { - var display, elem, - values = [], - index = 0, - length = elements.length; - - // Determine new display value for elements that need to change - for ( ; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - - display = elem.style.display; - if ( show ) { - - // Since we force visibility upon cascade-hidden elements, an immediate (and slow) - // check is required in this first loop unless we have a nonempty display value (either - // inline or about-to-be-restored) - if ( display === "none" ) { - values[ index ] = dataPriv.get( elem, "display" ) || null; - if ( !values[ index ] ) { - elem.style.display = ""; - } - } - if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { - values[ index ] = getDefaultDisplay( elem ); - } - } else { - if ( display !== "none" ) { - values[ index ] = "none"; - - // Remember what we're overwriting - dataPriv.set( elem, "display", display ); - } - } - } - - // Set the display of the elements in a second loop to avoid constant reflow - for ( index = 0; index < length; index++ ) { - if ( values[ index ] != null ) { - elements[ index ].style.display = values[ index ]; - } - } - - return elements; -} - -jQuery.fn.extend( { - show: function() { - return showHide( this, true ); - }, - hide: function() { - return showHide( this ); - }, - toggle: function( state ) { - if ( typeof state === "boolean" ) { - return state ? this.show() : this.hide(); - } - - return this.each( function() { - if ( isHiddenWithinTree( this ) ) { - jQuery( this ).show(); - } else { - jQuery( this ).hide(); - } - } ); - } -} ); -var rcheckableType = ( /^(?:checkbox|radio)$/i ); - -var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i ); - -var rscriptType = ( /^$|\/(?:java|ecma)script/i ); - - - -// We have to close these tags to support XHTML (#13200) -var wrapMap = { - - // Support: IE <=9 only - option: [ 1, "" ], - - // XHTML parsers do not magically insert elements in the - // same way that tag soup parsers do. So we cannot shorten - // this by omitting or other required elements. - thead: [ 1, "", "
" ], - col: [ 2, "", "
" ], - tr: [ 2, "", "
" ], - td: [ 3, "", "
" ], - - _default: [ 0, "", "" ] -}; - -// Support: IE <=9 only -wrapMap.optgroup = wrapMap.option; - -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - - -function getAll( context, tag ) { - - // Support: IE <=9 - 11 only - // Use typeof to avoid zero-argument method invocation on host objects (#15151) - var ret; - - if ( typeof context.getElementsByTagName !== "undefined" ) { - ret = context.getElementsByTagName( tag || "*" ); - - } else if ( typeof context.querySelectorAll !== "undefined" ) { - ret = context.querySelectorAll( tag || "*" ); - - } else { - ret = []; - } - - if ( tag === undefined || tag && nodeName( context, tag ) ) { - return jQuery.merge( [ context ], ret ); - } - - return ret; -} - - -// Mark scripts as having already been evaluated -function setGlobalEval( elems, refElements ) { - var i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - dataPriv.set( - elems[ i ], - "globalEval", - !refElements || dataPriv.get( refElements[ i ], "globalEval" ) - ); - } -} - - -var rhtml = /<|&#?\w+;/; - -function buildFragment( elems, context, scripts, selection, ignored ) { - var elem, tmp, tag, wrap, contains, j, - fragment = context.createDocumentFragment(), - nodes = [], - i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - elem = elems[ i ]; - - if ( elem || elem === 0 ) { - - // Add nodes directly - if ( jQuery.type( elem ) === "object" ) { - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); - - // Convert non-html into a text node - } else if ( !rhtml.test( elem ) ) { - nodes.push( context.createTextNode( elem ) ); - - // Convert html into DOM nodes - } else { - tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); - - // Deserialize a standard representation - tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); - wrap = wrapMap[ tag ] || wrapMap._default; - tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; - - // Descend through wrappers to the right content - j = wrap[ 0 ]; - while ( j-- ) { - tmp = tmp.lastChild; - } - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, tmp.childNodes ); - - // Remember the top-level container - tmp = fragment.firstChild; - - // Ensure the created nodes are orphaned (#12392) - tmp.textContent = ""; - } - } - } - - // Remove wrapper from fragment - fragment.textContent = ""; - - i = 0; - while ( ( elem = nodes[ i++ ] ) ) { - - // Skip elements already in the context collection (trac-4087) - if ( selection && jQuery.inArray( elem, selection ) > -1 ) { - if ( ignored ) { - ignored.push( elem ); - } - continue; - } - - contains = jQuery.contains( elem.ownerDocument, elem ); - - // Append to fragment - tmp = getAll( fragment.appendChild( elem ), "script" ); - - // Preserve script evaluation history - if ( contains ) { - setGlobalEval( tmp ); - } - - // Capture executables - if ( scripts ) { - j = 0; - while ( ( elem = tmp[ j++ ] ) ) { - if ( rscriptType.test( elem.type || "" ) ) { - scripts.push( elem ); - } - } - } - } - - return fragment; -} - - -( function() { - var fragment = document.createDocumentFragment(), - div = fragment.appendChild( document.createElement( "div" ) ), - input = document.createElement( "input" ); - - // Support: Android 4.0 - 4.3 only - // Check state lost if the name is set (#11217) - // Support: Windows Web Apps (WWA) - // `name` and `type` must use .setAttribute for WWA (#14901) - input.setAttribute( "type", "radio" ); - input.setAttribute( "checked", "checked" ); - input.setAttribute( "name", "t" ); - - div.appendChild( input ); - - // Support: Android <=4.1 only - // Older WebKit doesn't clone checked state correctly in fragments - support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; - - // Support: IE <=11 only - // Make sure textarea (and checkbox) defaultValue is properly cloned - div.innerHTML = ""; - support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; -} )(); -var documentElement = document.documentElement; - - - -var - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -// Support: IE <=9 only -// See #13393 for more info -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -function on( elem, types, selector, data, fn, one ) { - var origFn, type; - - // Types can be a map of types/handlers - if ( typeof types === "object" ) { - - // ( types-Object, selector, data ) - if ( typeof selector !== "string" ) { - - // ( types-Object, data ) - data = data || selector; - selector = undefined; - } - for ( type in types ) { - on( elem, type, selector, data, types[ type ], one ); - } - return elem; - } - - if ( data == null && fn == null ) { - - // ( types, fn ) - fn = selector; - data = selector = undefined; - } else if ( fn == null ) { - if ( typeof selector === "string" ) { - - // ( types, selector, fn ) - fn = data; - data = undefined; - } else { - - // ( types, data, fn ) - fn = data; - data = selector; - selector = undefined; - } - } - if ( fn === false ) { - fn = returnFalse; - } else if ( !fn ) { - return elem; - } - - if ( one === 1 ) { - origFn = fn; - fn = function( event ) { - - // Can use an empty set, since event contains the info - jQuery().off( event ); - return origFn.apply( this, arguments ); - }; - - // Use same guid so caller can remove using origFn - fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); - } - return elem.each( function() { - jQuery.event.add( this, types, fn, data, selector ); - } ); -} - -/* - * Helper functions for managing events -- not part of the public interface. - * Props to Dean Edwards' addEvent library for many of the ideas. - */ -jQuery.event = { - - global: {}, - - add: function( elem, types, handler, data, selector ) { - - var handleObjIn, eventHandle, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.get( elem ); - - // Don't attach events to noData or text/comment nodes (but allow plain objects) - if ( !elemData ) { - return; - } - - // Caller can pass in an object of custom data in lieu of the handler - if ( handler.handler ) { - handleObjIn = handler; - handler = handleObjIn.handler; - selector = handleObjIn.selector; - } - - // Ensure that invalid selectors throw exceptions at attach time - // Evaluate against documentElement in case elem is a non-element node (e.g., document) - if ( selector ) { - jQuery.find.matchesSelector( documentElement, selector ); - } - - // Make sure that the handler has a unique ID, used to find/remove it later - if ( !handler.guid ) { - handler.guid = jQuery.guid++; - } - - // Init the element's event structure and main handler, if this is the first - if ( !( events = elemData.events ) ) { - events = elemData.events = {}; - } - if ( !( eventHandle = elemData.handle ) ) { - eventHandle = elemData.handle = function( e ) { - - // Discard the second event of a jQuery.event.trigger() and - // when an event is called after a page has unloaded - return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? - jQuery.event.dispatch.apply( elem, arguments ) : undefined; - }; - } - - // Handle multiple events separated by a space - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // There *must* be a type, no attaching namespace-only handlers - if ( !type ) { - continue; - } - - // If event changes its type, use the special event handlers for the changed type - special = jQuery.event.special[ type ] || {}; - - // If selector defined, determine special event api type, otherwise given type - type = ( selector ? special.delegateType : special.bindType ) || type; - - // Update special based on newly reset type - special = jQuery.event.special[ type ] || {}; - - // handleObj is passed to all event handlers - handleObj = jQuery.extend( { - type: type, - origType: origType, - data: data, - handler: handler, - guid: handler.guid, - selector: selector, - needsContext: selector && jQuery.expr.match.needsContext.test( selector ), - namespace: namespaces.join( "." ) - }, handleObjIn ); - - // Init the event handler queue if we're the first - if ( !( handlers = events[ type ] ) ) { - handlers = events[ type ] = []; - handlers.delegateCount = 0; - - // Only use addEventListener if the special events handler returns false - if ( !special.setup || - special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - - if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle ); - } - } - } - - if ( special.add ) { - special.add.call( elem, handleObj ); - - if ( !handleObj.handler.guid ) { - handleObj.handler.guid = handler.guid; - } - } - - // Add to the element's handler list, delegates in front - if ( selector ) { - handlers.splice( handlers.delegateCount++, 0, handleObj ); - } else { - handlers.push( handleObj ); - } - - // Keep track of which events have ever been used, for event optimization - jQuery.event.global[ type ] = true; - } - - }, - - // Detach an event or set of events from an element - remove: function( elem, types, handler, selector, mappedTypes ) { - - var j, origCount, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); - - if ( !elemData || !( events = elemData.events ) ) { - return; - } - - // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // Unbind all events (on this namespace, if provided) for the element - if ( !type ) { - for ( type in events ) { - jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); - } - continue; - } - - special = jQuery.event.special[ type ] || {}; - type = ( selector ? special.delegateType : special.bindType ) || type; - handlers = events[ type ] || []; - tmp = tmp[ 2 ] && - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); - - // Remove matching events - origCount = j = handlers.length; - while ( j-- ) { - handleObj = handlers[ j ]; - - if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !tmp || tmp.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || - selector === "**" && handleObj.selector ) ) { - handlers.splice( j, 1 ); - - if ( handleObj.selector ) { - handlers.delegateCount--; - } - if ( special.remove ) { - special.remove.call( elem, handleObj ); - } - } - } - - // Remove generic event handler if we removed something and no more handlers exist - // (avoids potential for endless recursion during removal of special event handlers) - if ( origCount && !handlers.length ) { - if ( !special.teardown || - special.teardown.call( elem, namespaces, elemData.handle ) === false ) { - - jQuery.removeEvent( elem, type, elemData.handle ); - } - - delete events[ type ]; - } - } - - // Remove data and the expando if it's no longer used - if ( jQuery.isEmptyObject( events ) ) { - dataPriv.remove( elem, "handle events" ); - } - }, - - dispatch: function( nativeEvent ) { - - // Make a writable jQuery.Event from the native event object - var event = jQuery.event.fix( nativeEvent ); - - var i, j, ret, matched, handleObj, handlerQueue, - args = new Array( arguments.length ), - handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [], - special = jQuery.event.special[ event.type ] || {}; - - // Use the fix-ed jQuery.Event rather than the (read-only) native event - args[ 0 ] = event; - - for ( i = 1; i < arguments.length; i++ ) { - args[ i ] = arguments[ i ]; - } - - event.delegateTarget = this; - - // Call the preDispatch hook for the mapped type, and let it bail if desired - if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { - return; - } - - // Determine handlers - handlerQueue = jQuery.event.handlers.call( this, event, handlers ); - - // Run delegates first; they may want to stop propagation beneath us - i = 0; - while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { - event.currentTarget = matched.elem; - - j = 0; - while ( ( handleObj = matched.handlers[ j++ ] ) && - !event.isImmediatePropagationStopped() ) { - - // Triggered event must either 1) have no namespace, or 2) have namespace(s) - // a subset or equal to those in the bound event (both can have no namespace). - if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) { - - event.handleObj = handleObj; - event.data = handleObj.data; - - ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || - handleObj.handler ).apply( matched.elem, args ); - - if ( ret !== undefined ) { - if ( ( event.result = ret ) === false ) { - event.preventDefault(); - event.stopPropagation(); - } - } - } - } - } - - // Call the postDispatch hook for the mapped type - if ( special.postDispatch ) { - special.postDispatch.call( this, event ); - } - - return event.result; - }, - - handlers: function( event, handlers ) { - var i, handleObj, sel, matchedHandlers, matchedSelectors, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - if ( delegateCount && - - // Support: IE <=9 - // Black-hole SVG instance trees (trac-13180) - cur.nodeType && - - // Support: Firefox <=42 - // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) - // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click - // Support: IE 11 only - // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) - !( event.type === "click" && event.button >= 1 ) ) { - - for ( ; cur !== this; cur = cur.parentNode || this ) { - - // Don't check non-elements (#13208) - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { - matchedHandlers = []; - matchedSelectors = {}; - for ( i = 0; i < delegateCount; i++ ) { - handleObj = handlers[ i ]; - - // Don't conflict with Object.prototype properties (#13203) - sel = handleObj.selector + " "; - - if ( matchedSelectors[ sel ] === undefined ) { - matchedSelectors[ sel ] = handleObj.needsContext ? - jQuery( sel, this ).index( cur ) > -1 : - jQuery.find( sel, this, null, [ cur ] ).length; - } - if ( matchedSelectors[ sel ] ) { - matchedHandlers.push( handleObj ); - } - } - if ( matchedHandlers.length ) { - handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); - } - } - } - } - - // Add the remaining (directly-bound) handlers - cur = this; - if ( delegateCount < handlers.length ) { - handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); - } - - return handlerQueue; - }, - - addProp: function( name, hook ) { - Object.defineProperty( jQuery.Event.prototype, name, { - enumerable: true, - configurable: true, - - get: jQuery.isFunction( hook ) ? - function() { - if ( this.originalEvent ) { - return hook( this.originalEvent ); - } - } : - function() { - if ( this.originalEvent ) { - return this.originalEvent[ name ]; - } - }, - - set: function( value ) { - Object.defineProperty( this, name, { - enumerable: true, - configurable: true, - writable: true, - value: value - } ); - } - } ); - }, - - fix: function( originalEvent ) { - return originalEvent[ jQuery.expando ] ? - originalEvent : - new jQuery.Event( originalEvent ); - }, - - special: { - load: { - - // Prevent triggered image.load events from bubbling to window.load - noBubble: true - }, - focus: { - - // Fire native event if possible so blur/focus sequence is correct - trigger: function() { - if ( this !== safeActiveElement() && this.focus ) { - this.focus(); - return false; - } - }, - delegateType: "focusin" - }, - blur: { - trigger: function() { - if ( this === safeActiveElement() && this.blur ) { - this.blur(); - return false; - } - }, - delegateType: "focusout" - }, - click: { - - // For checkbox, fire native event so checked state will be right - trigger: function() { - if ( this.type === "checkbox" && this.click && nodeName( this, "input" ) ) { - this.click(); - return false; - } - }, - - // For cross-browser consistency, don't fire native .click() on links - _default: function( event ) { - return nodeName( event.target, "a" ); - } - }, - - beforeunload: { - postDispatch: function( event ) { - - // Support: Firefox 20+ - // Firefox doesn't alert if the returnValue field is not set. - if ( event.result !== undefined && event.originalEvent ) { - event.originalEvent.returnValue = event.result; - } - } - } - } -}; - -jQuery.removeEvent = function( elem, type, handle ) { - - // This "if" is needed for plain objects - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle ); - } -}; - -jQuery.Event = function( src, props ) { - - // Allow instantiation without the 'new' keyword - if ( !( this instanceof jQuery.Event ) ) { - return new jQuery.Event( src, props ); - } - - // Event object - if ( src && src.type ) { - this.originalEvent = src; - this.type = src.type; - - // Events bubbling up the document may have been marked as prevented - // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = src.defaultPrevented || - src.defaultPrevented === undefined && - - // Support: Android <=2.3 only - src.returnValue === false ? - returnTrue : - returnFalse; - - // Create target properties - // Support: Safari <=6 - 7 only - // Target should not be a text node (#504, #13143) - this.target = ( src.target && src.target.nodeType === 3 ) ? - src.target.parentNode : - src.target; - - this.currentTarget = src.currentTarget; - this.relatedTarget = src.relatedTarget; - - // Event type - } else { - this.type = src; - } - - // Put explicitly provided properties onto the event object - if ( props ) { - jQuery.extend( this, props ); - } - - // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || jQuery.now(); - - // Mark it as fixed - this[ jQuery.expando ] = true; -}; - -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html -jQuery.Event.prototype = { - constructor: jQuery.Event, - isDefaultPrevented: returnFalse, - isPropagationStopped: returnFalse, - isImmediatePropagationStopped: returnFalse, - isSimulated: false, - - preventDefault: function() { - var e = this.originalEvent; - - this.isDefaultPrevented = returnTrue; - - if ( e && !this.isSimulated ) { - e.preventDefault(); - } - }, - stopPropagation: function() { - var e = this.originalEvent; - - this.isPropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopPropagation(); - } - }, - stopImmediatePropagation: function() { - var e = this.originalEvent; - - this.isImmediatePropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopImmediatePropagation(); - } - - this.stopPropagation(); - } -}; - -// Includes all common event props including KeyEvent and MouseEvent specific props -jQuery.each( { - altKey: true, - bubbles: true, - cancelable: true, - changedTouches: true, - ctrlKey: true, - detail: true, - eventPhase: true, - metaKey: true, - pageX: true, - pageY: true, - shiftKey: true, - view: true, - "char": true, - charCode: true, - key: true, - keyCode: true, - button: true, - buttons: true, - clientX: true, - clientY: true, - offsetX: true, - offsetY: true, - pointerId: true, - pointerType: true, - screenX: true, - screenY: true, - targetTouches: true, - toElement: true, - touches: true, - - which: function( event ) { - var button = event.button; - - // Add which for key events - if ( event.which == null && rkeyEvent.test( event.type ) ) { - return event.charCode != null ? event.charCode : event.keyCode; - } - - // Add which for click: 1 === left; 2 === middle; 3 === right - if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) { - if ( button & 1 ) { - return 1; - } - - if ( button & 2 ) { - return 3; - } - - if ( button & 4 ) { - return 2; - } - - return 0; - } - - return event.which; - } -}, jQuery.event.addProp ); - -// Create mouseenter/leave events using mouseover/out and event-time checks -// so that event delegation works in jQuery. -// Do the same for pointerenter/pointerleave and pointerover/pointerout -// -// Support: Safari 7 only -// Safari sends mouseenter too often; see: -// https://bugs.chromium.org/p/chromium/issues/detail?id=470258 -// for the description of the bug (it existed in older Chrome versions as well). -jQuery.each( { - mouseenter: "mouseover", - mouseleave: "mouseout", - pointerenter: "pointerover", - pointerleave: "pointerout" -}, function( orig, fix ) { - jQuery.event.special[ orig ] = { - delegateType: fix, - bindType: fix, - - handle: function( event ) { - var ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // For mouseenter/leave call the handler if related is outside the target. - // NB: No relatedTarget if the mouse left/entered the browser window - if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { - event.type = handleObj.origType; - ret = handleObj.handler.apply( this, arguments ); - event.type = fix; - } - return ret; - } - }; -} ); - -jQuery.fn.extend( { - - on: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn ); - }, - one: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn, 1 ); - }, - off: function( types, selector, fn ) { - var handleObj, type; - if ( types && types.preventDefault && types.handleObj ) { - - // ( event ) dispatched jQuery.Event - handleObj = types.handleObj; - jQuery( types.delegateTarget ).off( - handleObj.namespace ? - handleObj.origType + "." + handleObj.namespace : - handleObj.origType, - handleObj.selector, - handleObj.handler - ); - return this; - } - if ( typeof types === "object" ) { - - // ( types-object [, selector] ) - for ( type in types ) { - this.off( type, selector, types[ type ] ); - } - return this; - } - if ( selector === false || typeof selector === "function" ) { - - // ( types [, fn] ) - fn = selector; - selector = undefined; - } - if ( fn === false ) { - fn = returnFalse; - } - return this.each( function() { - jQuery.event.remove( this, types, fn, selector ); - } ); - } -} ); - - -var - - /* eslint-disable max-len */ - - // See https://github.com/eslint/eslint/issues/3229 - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, - - /* eslint-enable */ - - // Support: IE <=10 - 11, Edge 12 - 13 - // In IE/Edge using regex groups here causes severe slowdowns. - // See https://connect.microsoft.com/IE/feedback/details/1736512/ - rnoInnerhtml = /\s*$/g; - -// Prefer a tbody over its parent table for containing new rows -function manipulationTarget( elem, content ) { - if ( nodeName( elem, "table" ) && - nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { - - return jQuery( ">tbody", elem )[ 0 ] || elem; - } - - return elem; -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; - return elem; -} -function restoreScript( elem ) { - var match = rscriptTypeMasked.exec( elem.type ); - - if ( match ) { - elem.type = match[ 1 ]; - } else { - elem.removeAttribute( "type" ); - } - - return elem; -} - -function cloneCopyEvent( src, dest ) { - var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; - - if ( dest.nodeType !== 1 ) { - return; - } - - // 1. Copy private data: events, handlers, etc. - if ( dataPriv.hasData( src ) ) { - pdataOld = dataPriv.access( src ); - pdataCur = dataPriv.set( dest, pdataOld ); - events = pdataOld.events; - - if ( events ) { - delete pdataCur.handle; - pdataCur.events = {}; - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } - } - - // 2. Copy user data - if ( dataUser.hasData( src ) ) { - udataOld = dataUser.access( src ); - udataCur = jQuery.extend( {}, udataOld ); - - dataUser.set( dest, udataCur ); - } -} - -// Fix IE bugs, see support tests -function fixInput( src, dest ) { - var nodeName = dest.nodeName.toLowerCase(); - - // Fails to persist the checked state of a cloned checkbox or radio button. - if ( nodeName === "input" && rcheckableType.test( src.type ) ) { - dest.checked = src.checked; - - // Fails to return the selected option to the default selected state when cloning options - } else if ( nodeName === "input" || nodeName === "textarea" ) { - dest.defaultValue = src.defaultValue; - } -} - -function domManip( collection, args, callback, ignored ) { - - // Flatten any nested arrays - args = concat.apply( [], args ); - - var fragment, first, scripts, hasScripts, node, doc, - i = 0, - l = collection.length, - iNoClone = l - 1, - value = args[ 0 ], - isFunction = jQuery.isFunction( value ); - - // We can't cloneNode fragments that contain checked, in WebKit - if ( isFunction || - ( l > 1 && typeof value === "string" && - !support.checkClone && rchecked.test( value ) ) ) { - return collection.each( function( index ) { - var self = collection.eq( index ); - if ( isFunction ) { - args[ 0 ] = value.call( this, index, self.html() ); - } - domManip( self, args, callback, ignored ); - } ); - } - - if ( l ) { - fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - // Require either new content or an interest in ignored elements to invoke the callback - if ( first || ignored ) { - scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); - hasScripts = scripts.length; - - // Use the original fragment for the last item - // instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). - for ( ; i < l; i++ ) { - node = fragment; - - if ( i !== iNoClone ) { - node = jQuery.clone( node, true, true ); - - // Keep references to cloned scripts for later restoration - if ( hasScripts ) { - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( collection[ i ], node, i ); - } - - if ( hasScripts ) { - doc = scripts[ scripts.length - 1 ].ownerDocument; - - // Reenable scripts - jQuery.map( scripts, restoreScript ); - - // Evaluate executable scripts on first document insertion - for ( i = 0; i < hasScripts; i++ ) { - node = scripts[ i ]; - if ( rscriptType.test( node.type || "" ) && - !dataPriv.access( node, "globalEval" ) && - jQuery.contains( doc, node ) ) { - - if ( node.src ) { - - // Optional AJAX dependency, but won't run scripts if not present - if ( jQuery._evalUrl ) { - jQuery._evalUrl( node.src ); - } - } else { - DOMEval( node.textContent.replace( rcleanScript, "" ), doc ); - } - } - } - } - } - } - - return collection; -} - -function remove( elem, selector, keepData ) { - var node, - nodes = selector ? jQuery.filter( selector, elem ) : elem, - i = 0; - - for ( ; ( node = nodes[ i ] ) != null; i++ ) { - if ( !keepData && node.nodeType === 1 ) { - jQuery.cleanData( getAll( node ) ); - } - - if ( node.parentNode ) { - if ( keepData && jQuery.contains( node.ownerDocument, node ) ) { - setGlobalEval( getAll( node, "script" ) ); - } - node.parentNode.removeChild( node ); - } - } - - return elem; -} - -jQuery.extend( { - htmlPrefilter: function( html ) { - return html.replace( rxhtmlTag, "<$1>" ); - }, - - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var i, l, srcElements, destElements, - clone = elem.cloneNode( true ), - inPage = jQuery.contains( elem.ownerDocument, elem ); - - // Fix IE cloning issues - if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && - !jQuery.isXMLDoc( elem ) ) { - - // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 - destElements = getAll( clone ); - srcElements = getAll( elem ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - fixInput( srcElements[ i ], destElements[ i ] ); - } - } - - // Copy the events from the original to the clone - if ( dataAndEvents ) { - if ( deepDataAndEvents ) { - srcElements = srcElements || getAll( elem ); - destElements = destElements || getAll( clone ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - cloneCopyEvent( srcElements[ i ], destElements[ i ] ); - } - } else { - cloneCopyEvent( elem, clone ); - } - } - - // Preserve script evaluation history - destElements = getAll( clone, "script" ); - if ( destElements.length > 0 ) { - setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); - } - - // Return the cloned set - return clone; - }, - - cleanData: function( elems ) { - var data, elem, type, - special = jQuery.event.special, - i = 0; - - for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { - if ( acceptData( elem ) ) { - if ( ( data = elem[ dataPriv.expando ] ) ) { - if ( data.events ) { - for ( type in data.events ) { - if ( special[ type ] ) { - jQuery.event.remove( elem, type ); - - // This is a shortcut to avoid jQuery.event.remove's overhead - } else { - jQuery.removeEvent( elem, type, data.handle ); - } - } - } - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataPriv.expando ] = undefined; - } - if ( elem[ dataUser.expando ] ) { - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataUser.expando ] = undefined; - } - } - } - } -} ); - -jQuery.fn.extend( { - detach: function( selector ) { - return remove( this, selector, true ); - }, - - remove: function( selector ) { - return remove( this, selector ); - }, - - text: function( value ) { - return access( this, function( value ) { - return value === undefined ? - jQuery.text( this ) : - this.empty().each( function() { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - this.textContent = value; - } - } ); - }, null, value, arguments.length ); - }, - - append: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - } ); - }, - - prepend: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.insertBefore( elem, target.firstChild ); - } - } ); - }, - - before: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - } ); - }, - - after: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - } ); - }, - - empty: function() { - var elem, - i = 0; - - for ( ; ( elem = this[ i ] ) != null; i++ ) { - if ( elem.nodeType === 1 ) { - - // Prevent memory leaks - jQuery.cleanData( getAll( elem, false ) ); - - // Remove any remaining nodes - elem.textContent = ""; - } - } - - return this; - }, - - clone: function( dataAndEvents, deepDataAndEvents ) { - dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; - - return this.map( function() { - return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); - } ); - }, - - html: function( value ) { - return access( this, function( value ) { - var elem = this[ 0 ] || {}, - i = 0, - l = this.length; - - if ( value === undefined && elem.nodeType === 1 ) { - return elem.innerHTML; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { - - value = jQuery.htmlPrefilter( value ); - - try { - for ( ; i < l; i++ ) { - elem = this[ i ] || {}; - - // Remove element nodes and prevent memory leaks - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - elem.innerHTML = value; - } - } - - elem = 0; - - // If using innerHTML throws an exception, use the fallback method - } catch ( e ) {} - } - - if ( elem ) { - this.empty().append( value ); - } - }, null, value, arguments.length ); - }, - - replaceWith: function() { - var ignored = []; - - // Make the changes, replacing each non-ignored context element with the new content - return domManip( this, arguments, function( elem ) { - var parent = this.parentNode; - - if ( jQuery.inArray( this, ignored ) < 0 ) { - jQuery.cleanData( getAll( this ) ); - if ( parent ) { - parent.replaceChild( elem, this ); - } - } - - // Force callback invocation - }, ignored ); - } -} ); - -jQuery.each( { - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" -}, function( name, original ) { - jQuery.fn[ name ] = function( selector ) { - var elems, - ret = [], - insert = jQuery( selector ), - last = insert.length - 1, - i = 0; - - for ( ; i <= last; i++ ) { - elems = i === last ? this : this.clone( true ); - jQuery( insert[ i ] )[ original ]( elems ); - - // Support: Android <=4.0 only, PhantomJS 1 only - // .get() because push.apply(_, arraylike) throws on ancient WebKit - push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -} ); -var rmargin = ( /^margin/ ); - -var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); - -var getStyles = function( elem ) { - - // Support: IE <=11 only, Firefox <=30 (#15098, #14150) - // IE throws on elements created in popups - // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" - var view = elem.ownerDocument.defaultView; - - if ( !view || !view.opener ) { - view = window; - } - - return view.getComputedStyle( elem ); - }; - - - -( function() { - - // Executing both pixelPosition & boxSizingReliable tests require only one layout - // so they're executed at the same time to save the second computation. - function computeStyleTests() { - - // This is a singleton, we need to execute it only once - if ( !div ) { - return; - } - - div.style.cssText = - "box-sizing:border-box;" + - "position:relative;display:block;" + - "margin:auto;border:1px;padding:1px;" + - "top:1%;width:50%"; - div.innerHTML = ""; - documentElement.appendChild( container ); - - var divStyle = window.getComputedStyle( div ); - pixelPositionVal = divStyle.top !== "1%"; - - // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 - reliableMarginLeftVal = divStyle.marginLeft === "2px"; - boxSizingReliableVal = divStyle.width === "4px"; - - // Support: Android 4.0 - 4.3 only - // Some styles come back with percentage values, even though they shouldn't - div.style.marginRight = "50%"; - pixelMarginRightVal = divStyle.marginRight === "4px"; - - documentElement.removeChild( container ); - - // Nullify the div so it wouldn't be stored in the memory and - // it will also be a sign that checks already performed - div = null; - } - - var pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal, - container = document.createElement( "div" ), - div = document.createElement( "div" ); - - // Finish early in limited (non-browser) environments - if ( !div.style ) { - return; - } - - // Support: IE <=9 - 11 only - // Style of cloned element affects source element cloned (#8908) - div.style.backgroundClip = "content-box"; - div.cloneNode( true ).style.backgroundClip = ""; - support.clearCloneStyle = div.style.backgroundClip === "content-box"; - - container.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;" + - "padding:0;margin-top:1px;position:absolute"; - container.appendChild( div ); - - jQuery.extend( support, { - pixelPosition: function() { - computeStyleTests(); - return pixelPositionVal; - }, - boxSizingReliable: function() { - computeStyleTests(); - return boxSizingReliableVal; - }, - pixelMarginRight: function() { - computeStyleTests(); - return pixelMarginRightVal; - }, - reliableMarginLeft: function() { - computeStyleTests(); - return reliableMarginLeftVal; - } - } ); -} )(); - - -function curCSS( elem, name, computed ) { - var width, minWidth, maxWidth, ret, - - // Support: Firefox 51+ - // Retrieving style before computed somehow - // fixes an issue with getting wrong values - // on detached elements - style = elem.style; - - computed = computed || getStyles( elem ); - - // getPropertyValue is needed for: - // .css('filter') (IE 9 only, #12537) - // .css('--customProperty) (#3144) - if ( computed ) { - ret = computed.getPropertyValue( name ) || computed[ name ]; - - if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { - ret = jQuery.style( elem, name ); - } - - // A tribute to the "awesome hack by Dean Edwards" - // Android Browser returns percentage for some values, - // but width seems to be reliably pixels. - // This is against the CSSOM draft spec: - // https://drafts.csswg.org/cssom/#resolved-values - if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) { - - // Remember the original values - width = style.width; - minWidth = style.minWidth; - maxWidth = style.maxWidth; - - // Put in the new values to get a computed value out - style.minWidth = style.maxWidth = style.width = ret; - ret = computed.width; - - // Revert the changed values - style.width = width; - style.minWidth = minWidth; - style.maxWidth = maxWidth; - } - } - - return ret !== undefined ? - - // Support: IE <=9 - 11 only - // IE returns zIndex value as an integer. - ret + "" : - ret; -} - - -function addGetHookIf( conditionFn, hookFn ) { - - // Define the hook, we'll check on the first run if it's really needed. - return { - get: function() { - if ( conditionFn() ) { - - // Hook not needed (or it's not possible to use it due - // to missing dependency), remove it. - delete this.get; - return; - } - - // Hook needed; redefine it so that the support test is not executed again. - return ( this.get = hookFn ).apply( this, arguments ); - } - }; -} - - -var - - // Swappable if display is none or starts with table - // except "table", "table-cell", or "table-caption" - // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display - rdisplayswap = /^(none|table(?!-c[ea]).+)/, - rcustomProp = /^--/, - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: "0", - fontWeight: "400" - }, - - cssPrefixes = [ "Webkit", "Moz", "ms" ], - emptyStyle = document.createElement( "div" ).style; - -// Return a css property mapped to a potentially vendor prefixed property -function vendorPropName( name ) { - - // Shortcut for names that are not vendor prefixed - if ( name in emptyStyle ) { - return name; - } - - // Check for vendor prefixed names - var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in emptyStyle ) { - return name; - } - } -} - -// Return a property mapped along what jQuery.cssProps suggests or to -// a vendor prefixed property. -function finalPropName( name ) { - var ret = jQuery.cssProps[ name ]; - if ( !ret ) { - ret = jQuery.cssProps[ name ] = vendorPropName( name ) || name; - } - return ret; -} - -function setPositiveNumber( elem, value, subtract ) { - - // Any relative (+/-) values have already been - // normalized at this point - var matches = rcssNum.exec( value ); - return matches ? - - // Guard against undefined "subtract", e.g., when used as in cssHooks - Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : - value; -} - -function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { - var i, - val = 0; - - // If we already have the right measurement, avoid augmentation - if ( extra === ( isBorderBox ? "border" : "content" ) ) { - i = 4; - - // Otherwise initialize for horizontal or vertical properties - } else { - i = name === "width" ? 1 : 0; - } - - for ( ; i < 4; i += 2 ) { - - // Both box models exclude margin, so add it if we want it - if ( extra === "margin" ) { - val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); - } - - if ( isBorderBox ) { - - // border-box includes padding, so remove it if we want content - if ( extra === "content" ) { - val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - } - - // At this point, extra isn't border nor margin, so remove border - if ( extra !== "margin" ) { - val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } else { - - // At this point, extra isn't content, so add padding - val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - - // At this point, extra isn't content nor padding, so add border - if ( extra !== "padding" ) { - val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } - } - - return val; -} - -function getWidthOrHeight( elem, name, extra ) { - - // Start with computed style - var valueIsBorderBox, - styles = getStyles( elem ), - val = curCSS( elem, name, styles ), - isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; - - // Computed unit is not pixels. Stop here and return. - if ( rnumnonpx.test( val ) ) { - return val; - } - - // Check for style in case a browser which returns unreliable values - // for getComputedStyle silently falls back to the reliable elem.style - valueIsBorderBox = isBorderBox && - ( support.boxSizingReliable() || val === elem.style[ name ] ); - - // Fall back to offsetWidth/Height when value is "auto" - // This happens for inline elements with no explicit setting (gh-3571) - if ( val === "auto" ) { - val = elem[ "offset" + name[ 0 ].toUpperCase() + name.slice( 1 ) ]; - } - - // Normalize "", auto, and prepare for extra - val = parseFloat( val ) || 0; - - // Use the active box-sizing model to add/subtract irrelevant styles - return ( val + - augmentWidthOrHeight( - elem, - name, - extra || ( isBorderBox ? "border" : "content" ), - valueIsBorderBox, - styles - ) - ) + "px"; -} - -jQuery.extend( { - - // Add in style property hooks for overriding the default - // behavior of getting and setting a style property - cssHooks: { - opacity: { - get: function( elem, computed ) { - if ( computed ) { - - // We should always get a number back from opacity - var ret = curCSS( elem, "opacity" ); - return ret === "" ? "1" : ret; - } - } - } - }, - - // Don't automatically add "px" to these possibly-unitless properties - cssNumber: { - "animationIterationCount": true, - "columnCount": true, - "fillOpacity": true, - "flexGrow": true, - "flexShrink": true, - "fontWeight": true, - "lineHeight": true, - "opacity": true, - "order": true, - "orphans": true, - "widows": true, - "zIndex": true, - "zoom": true - }, - - // Add in properties whose names you wish to fix before - // setting or getting the value - cssProps: { - "float": "cssFloat" - }, - - // Get and set the style property on a DOM Node - style: function( elem, name, value, extra ) { - - // Don't set styles on text and comment nodes - if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { - return; - } - - // Make sure that we're working with the right name - var ret, type, hooks, - origName = jQuery.camelCase( name ), - isCustomProp = rcustomProp.test( name ), - style = elem.style; - - // Make sure that we're working with the right name. We don't - // want to query the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Gets hook for the prefixed version, then unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // Check if we're setting a value - if ( value !== undefined ) { - type = typeof value; - - // Convert "+=" or "-=" to relative numbers (#7345) - if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { - value = adjustCSS( elem, name, ret ); - - // Fixes bug #9237 - type = "number"; - } - - // Make sure that null and NaN values aren't set (#7116) - if ( value == null || value !== value ) { - return; - } - - // If a number was passed in, add the unit (except for certain CSS properties) - if ( type === "number" ) { - value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); - } - - // background-* props affect original clone's values - if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { - style[ name ] = "inherit"; - } - - // If a hook was provided, use that value, otherwise just set the specified value - if ( !hooks || !( "set" in hooks ) || - ( value = hooks.set( elem, value, extra ) ) !== undefined ) { - - if ( isCustomProp ) { - style.setProperty( name, value ); - } else { - style[ name ] = value; - } - } - - } else { - - // If a hook was provided get the non-computed value from there - if ( hooks && "get" in hooks && - ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { - - return ret; - } - - // Otherwise just get the value from the style object - return style[ name ]; - } - }, - - css: function( elem, name, extra, styles ) { - var val, num, hooks, - origName = jQuery.camelCase( name ), - isCustomProp = rcustomProp.test( name ); - - // Make sure that we're working with the right name. We don't - // want to modify the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Try prefixed name followed by the unprefixed name - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // If a hook was provided get the computed value from there - if ( hooks && "get" in hooks ) { - val = hooks.get( elem, true, extra ); - } - - // Otherwise, if a way to get the computed value exists, use that - if ( val === undefined ) { - val = curCSS( elem, name, styles ); - } - - // Convert "normal" to computed value - if ( val === "normal" && name in cssNormalTransform ) { - val = cssNormalTransform[ name ]; - } - - // Make numeric if forced or a qualifier was provided and val looks numeric - if ( extra === "" || extra ) { - num = parseFloat( val ); - return extra === true || isFinite( num ) ? num || 0 : val; - } - - return val; - } -} ); - -jQuery.each( [ "height", "width" ], function( i, name ) { - jQuery.cssHooks[ name ] = { - get: function( elem, computed, extra ) { - if ( computed ) { - - // Certain elements can have dimension info if we invisibly show them - // but it must have a current display style that would benefit - return rdisplayswap.test( jQuery.css( elem, "display" ) ) && - - // Support: Safari 8+ - // Table columns in Safari have non-zero offsetWidth & zero - // getBoundingClientRect().width unless display is changed. - // Support: IE <=11 only - // Running getBoundingClientRect on a disconnected node - // in IE throws an error. - ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? - swap( elem, cssShow, function() { - return getWidthOrHeight( elem, name, extra ); - } ) : - getWidthOrHeight( elem, name, extra ); - } - }, - - set: function( elem, value, extra ) { - var matches, - styles = extra && getStyles( elem ), - subtract = extra && augmentWidthOrHeight( - elem, - name, - extra, - jQuery.css( elem, "boxSizing", false, styles ) === "border-box", - styles - ); - - // Convert to pixels if value adjustment is needed - if ( subtract && ( matches = rcssNum.exec( value ) ) && - ( matches[ 3 ] || "px" ) !== "px" ) { - - elem.style[ name ] = value; - value = jQuery.css( elem, name ); - } - - return setPositiveNumber( elem, value, subtract ); - } - }; -} ); - -jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, - function( elem, computed ) { - if ( computed ) { - return ( parseFloat( curCSS( elem, "marginLeft" ) ) || - elem.getBoundingClientRect().left - - swap( elem, { marginLeft: 0 }, function() { - return elem.getBoundingClientRect().left; - } ) - ) + "px"; - } - } -); - -// These hooks are used by animate to expand properties -jQuery.each( { - margin: "", - padding: "", - border: "Width" -}, function( prefix, suffix ) { - jQuery.cssHooks[ prefix + suffix ] = { - expand: function( value ) { - var i = 0, - expanded = {}, - - // Assumes a single number if not a string - parts = typeof value === "string" ? value.split( " " ) : [ value ]; - - for ( ; i < 4; i++ ) { - expanded[ prefix + cssExpand[ i ] + suffix ] = - parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; - } - - return expanded; - } - }; - - if ( !rmargin.test( prefix ) ) { - jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; - } -} ); - -jQuery.fn.extend( { - css: function( name, value ) { - return access( this, function( elem, name, value ) { - var styles, len, - map = {}, - i = 0; - - if ( Array.isArray( name ) ) { - styles = getStyles( elem ); - len = name.length; - - for ( ; i < len; i++ ) { - map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); - } - - return map; - } - - return value !== undefined ? - jQuery.style( elem, name, value ) : - jQuery.css( elem, name ); - }, name, value, arguments.length > 1 ); - } -} ); - - -function Tween( elem, options, prop, end, easing ) { - return new Tween.prototype.init( elem, options, prop, end, easing ); -} -jQuery.Tween = Tween; - -Tween.prototype = { - constructor: Tween, - init: function( elem, options, prop, end, easing, unit ) { - this.elem = elem; - this.prop = prop; - this.easing = easing || jQuery.easing._default; - this.options = options; - this.start = this.now = this.cur(); - this.end = end; - this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); - }, - cur: function() { - var hooks = Tween.propHooks[ this.prop ]; - - return hooks && hooks.get ? - hooks.get( this ) : - Tween.propHooks._default.get( this ); - }, - run: function( percent ) { - var eased, - hooks = Tween.propHooks[ this.prop ]; - - if ( this.options.duration ) { - this.pos = eased = jQuery.easing[ this.easing ]( - percent, this.options.duration * percent, 0, 1, this.options.duration - ); - } else { - this.pos = eased = percent; - } - this.now = ( this.end - this.start ) * eased + this.start; - - if ( this.options.step ) { - this.options.step.call( this.elem, this.now, this ); - } - - if ( hooks && hooks.set ) { - hooks.set( this ); - } else { - Tween.propHooks._default.set( this ); - } - return this; - } -}; - -Tween.prototype.init.prototype = Tween.prototype; - -Tween.propHooks = { - _default: { - get: function( tween ) { - var result; - - // Use a property on the element directly when it is not a DOM element, - // or when there is no matching style property that exists. - if ( tween.elem.nodeType !== 1 || - tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { - return tween.elem[ tween.prop ]; - } - - // Passing an empty string as a 3rd parameter to .css will automatically - // attempt a parseFloat and fallback to a string if the parse fails. - // Simple values such as "10px" are parsed to Float; - // complex values such as "rotate(1rad)" are returned as-is. - result = jQuery.css( tween.elem, tween.prop, "" ); - - // Empty strings, null, undefined and "auto" are converted to 0. - return !result || result === "auto" ? 0 : result; - }, - set: function( tween ) { - - // Use step hook for back compat. - // Use cssHook if its there. - // Use .style if available and use plain properties where available. - if ( jQuery.fx.step[ tween.prop ] ) { - jQuery.fx.step[ tween.prop ]( tween ); - } else if ( tween.elem.nodeType === 1 && - ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || - jQuery.cssHooks[ tween.prop ] ) ) { - jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); - } else { - tween.elem[ tween.prop ] = tween.now; - } - } - } -}; - -// Support: IE <=9 only -// Panic based approach to setting things on disconnected nodes -Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { - set: function( tween ) { - if ( tween.elem.nodeType && tween.elem.parentNode ) { - tween.elem[ tween.prop ] = tween.now; - } - } -}; - -jQuery.easing = { - linear: function( p ) { - return p; - }, - swing: function( p ) { - return 0.5 - Math.cos( p * Math.PI ) / 2; - }, - _default: "swing" -}; - -jQuery.fx = Tween.prototype.init; - -// Back compat <1.8 extension point -jQuery.fx.step = {}; - - - - -var - fxNow, inProgress, - rfxtypes = /^(?:toggle|show|hide)$/, - rrun = /queueHooks$/; - -function schedule() { - if ( inProgress ) { - if ( document.hidden === false && window.requestAnimationFrame ) { - window.requestAnimationFrame( schedule ); - } else { - window.setTimeout( schedule, jQuery.fx.interval ); - } - - jQuery.fx.tick(); - } -} - -// Animations created synchronously will run synchronously -function createFxNow() { - window.setTimeout( function() { - fxNow = undefined; - } ); - return ( fxNow = jQuery.now() ); -} - -// Generate parameters to create a standard animation -function genFx( type, includeWidth ) { - var which, - i = 0, - attrs = { height: type }; - - // If we include width, step value is 1 to do all cssExpand values, - // otherwise step value is 2 to skip over Left and Right - includeWidth = includeWidth ? 1 : 0; - for ( ; i < 4; i += 2 - includeWidth ) { - which = cssExpand[ i ]; - attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; - } - - if ( includeWidth ) { - attrs.opacity = attrs.width = type; - } - - return attrs; -} - -function createTween( value, prop, animation ) { - var tween, - collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), - index = 0, - length = collection.length; - for ( ; index < length; index++ ) { - if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { - - // We're done with this property - return tween; - } - } -} - -function defaultPrefilter( elem, props, opts ) { - var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, - isBox = "width" in props || "height" in props, - anim = this, - orig = {}, - style = elem.style, - hidden = elem.nodeType && isHiddenWithinTree( elem ), - dataShow = dataPriv.get( elem, "fxshow" ); - - // Queue-skipping animations hijack the fx hooks - if ( !opts.queue ) { - hooks = jQuery._queueHooks( elem, "fx" ); - if ( hooks.unqueued == null ) { - hooks.unqueued = 0; - oldfire = hooks.empty.fire; - hooks.empty.fire = function() { - if ( !hooks.unqueued ) { - oldfire(); - } - }; - } - hooks.unqueued++; - - anim.always( function() { - - // Ensure the complete handler is called before this completes - anim.always( function() { - hooks.unqueued--; - if ( !jQuery.queue( elem, "fx" ).length ) { - hooks.empty.fire(); - } - } ); - } ); - } - - // Detect show/hide animations - for ( prop in props ) { - value = props[ prop ]; - if ( rfxtypes.test( value ) ) { - delete props[ prop ]; - toggle = toggle || value === "toggle"; - if ( value === ( hidden ? "hide" : "show" ) ) { - - // Pretend to be hidden if this is a "show" and - // there is still data from a stopped show/hide - if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { - hidden = true; - - // Ignore all other no-op show/hide data - } else { - continue; - } - } - orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); - } - } - - // Bail out if this is a no-op like .hide().hide() - propTween = !jQuery.isEmptyObject( props ); - if ( !propTween && jQuery.isEmptyObject( orig ) ) { - return; - } - - // Restrict "overflow" and "display" styles during box animations - if ( isBox && elem.nodeType === 1 ) { - - // Support: IE <=9 - 11, Edge 12 - 13 - // Record all 3 overflow attributes because IE does not infer the shorthand - // from identically-valued overflowX and overflowY - opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; - - // Identify a display type, preferring old show/hide data over the CSS cascade - restoreDisplay = dataShow && dataShow.display; - if ( restoreDisplay == null ) { - restoreDisplay = dataPriv.get( elem, "display" ); - } - display = jQuery.css( elem, "display" ); - if ( display === "none" ) { - if ( restoreDisplay ) { - display = restoreDisplay; - } else { - - // Get nonempty value(s) by temporarily forcing visibility - showHide( [ elem ], true ); - restoreDisplay = elem.style.display || restoreDisplay; - display = jQuery.css( elem, "display" ); - showHide( [ elem ] ); - } - } - - // Animate inline elements as inline-block - if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { - if ( jQuery.css( elem, "float" ) === "none" ) { - - // Restore the original display value at the end of pure show/hide animations - if ( !propTween ) { - anim.done( function() { - style.display = restoreDisplay; - } ); - if ( restoreDisplay == null ) { - display = style.display; - restoreDisplay = display === "none" ? "" : display; - } - } - style.display = "inline-block"; - } - } - } - - if ( opts.overflow ) { - style.overflow = "hidden"; - anim.always( function() { - style.overflow = opts.overflow[ 0 ]; - style.overflowX = opts.overflow[ 1 ]; - style.overflowY = opts.overflow[ 2 ]; - } ); - } - - // Implement show/hide animations - propTween = false; - for ( prop in orig ) { - - // General show/hide setup for this element animation - if ( !propTween ) { - if ( dataShow ) { - if ( "hidden" in dataShow ) { - hidden = dataShow.hidden; - } - } else { - dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); - } - - // Store hidden/visible for toggle so `.stop().toggle()` "reverses" - if ( toggle ) { - dataShow.hidden = !hidden; - } - - // Show elements before animating them - if ( hidden ) { - showHide( [ elem ], true ); - } - - /* eslint-disable no-loop-func */ - - anim.done( function() { - - /* eslint-enable no-loop-func */ - - // The final step of a "hide" animation is actually hiding the element - if ( !hidden ) { - showHide( [ elem ] ); - } - dataPriv.remove( elem, "fxshow" ); - for ( prop in orig ) { - jQuery.style( elem, prop, orig[ prop ] ); - } - } ); - } - - // Per-property setup - propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); - if ( !( prop in dataShow ) ) { - dataShow[ prop ] = propTween.start; - if ( hidden ) { - propTween.end = propTween.start; - propTween.start = 0; - } - } - } -} - -function propFilter( props, specialEasing ) { - var index, name, easing, value, hooks; - - // camelCase, specialEasing and expand cssHook pass - for ( index in props ) { - name = jQuery.camelCase( index ); - easing = specialEasing[ name ]; - value = props[ index ]; - if ( Array.isArray( value ) ) { - easing = value[ 1 ]; - value = props[ index ] = value[ 0 ]; - } - - if ( index !== name ) { - props[ name ] = value; - delete props[ index ]; - } - - hooks = jQuery.cssHooks[ name ]; - if ( hooks && "expand" in hooks ) { - value = hooks.expand( value ); - delete props[ name ]; - - // Not quite $.extend, this won't overwrite existing keys. - // Reusing 'index' because we have the correct "name" - for ( index in value ) { - if ( !( index in props ) ) { - props[ index ] = value[ index ]; - specialEasing[ index ] = easing; - } - } - } else { - specialEasing[ name ] = easing; - } - } -} - -function Animation( elem, properties, options ) { - var result, - stopped, - index = 0, - length = Animation.prefilters.length, - deferred = jQuery.Deferred().always( function() { - - // Don't match elem in the :animated selector - delete tick.elem; - } ), - tick = function() { - if ( stopped ) { - return false; - } - var currentTime = fxNow || createFxNow(), - remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), - - // Support: Android 2.3 only - // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) - temp = remaining / animation.duration || 0, - percent = 1 - temp, - index = 0, - length = animation.tweens.length; - - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( percent ); - } - - deferred.notifyWith( elem, [ animation, percent, remaining ] ); - - // If there's more to do, yield - if ( percent < 1 && length ) { - return remaining; - } - - // If this was an empty animation, synthesize a final progress notification - if ( !length ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - } - - // Resolve the animation and report its conclusion - deferred.resolveWith( elem, [ animation ] ); - return false; - }, - animation = deferred.promise( { - elem: elem, - props: jQuery.extend( {}, properties ), - opts: jQuery.extend( true, { - specialEasing: {}, - easing: jQuery.easing._default - }, options ), - originalProperties: properties, - originalOptions: options, - startTime: fxNow || createFxNow(), - duration: options.duration, - tweens: [], - createTween: function( prop, end ) { - var tween = jQuery.Tween( elem, animation.opts, prop, end, - animation.opts.specialEasing[ prop ] || animation.opts.easing ); - animation.tweens.push( tween ); - return tween; - }, - stop: function( gotoEnd ) { - var index = 0, - - // If we are going to the end, we want to run all the tweens - // otherwise we skip this part - length = gotoEnd ? animation.tweens.length : 0; - if ( stopped ) { - return this; - } - stopped = true; - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( 1 ); - } - - // Resolve when we played the last frame; otherwise, reject - if ( gotoEnd ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - deferred.resolveWith( elem, [ animation, gotoEnd ] ); - } else { - deferred.rejectWith( elem, [ animation, gotoEnd ] ); - } - return this; - } - } ), - props = animation.props; - - propFilter( props, animation.opts.specialEasing ); - - for ( ; index < length; index++ ) { - result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); - if ( result ) { - if ( jQuery.isFunction( result.stop ) ) { - jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = - jQuery.proxy( result.stop, result ); - } - return result; - } - } - - jQuery.map( props, createTween, animation ); - - if ( jQuery.isFunction( animation.opts.start ) ) { - animation.opts.start.call( elem, animation ); - } - - // Attach callbacks from options - animation - .progress( animation.opts.progress ) - .done( animation.opts.done, animation.opts.complete ) - .fail( animation.opts.fail ) - .always( animation.opts.always ); - - jQuery.fx.timer( - jQuery.extend( tick, { - elem: elem, - anim: animation, - queue: animation.opts.queue - } ) - ); - - return animation; -} - -jQuery.Animation = jQuery.extend( Animation, { - - tweeners: { - "*": [ function( prop, value ) { - var tween = this.createTween( prop, value ); - adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); - return tween; - } ] - }, - - tweener: function( props, callback ) { - if ( jQuery.isFunction( props ) ) { - callback = props; - props = [ "*" ]; - } else { - props = props.match( rnothtmlwhite ); - } - - var prop, - index = 0, - length = props.length; - - for ( ; index < length; index++ ) { - prop = props[ index ]; - Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; - Animation.tweeners[ prop ].unshift( callback ); - } - }, - - prefilters: [ defaultPrefilter ], - - prefilter: function( callback, prepend ) { - if ( prepend ) { - Animation.prefilters.unshift( callback ); - } else { - Animation.prefilters.push( callback ); - } - } -} ); - -jQuery.speed = function( speed, easing, fn ) { - var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { - complete: fn || !fn && easing || - jQuery.isFunction( speed ) && speed, - duration: speed, - easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing - }; - - // Go to the end state if fx are off - if ( jQuery.fx.off ) { - opt.duration = 0; - - } else { - if ( typeof opt.duration !== "number" ) { - if ( opt.duration in jQuery.fx.speeds ) { - opt.duration = jQuery.fx.speeds[ opt.duration ]; - - } else { - opt.duration = jQuery.fx.speeds._default; - } - } - } - - // Normalize opt.queue - true/undefined/null -> "fx" - if ( opt.queue == null || opt.queue === true ) { - opt.queue = "fx"; - } - - // Queueing - opt.old = opt.complete; - - opt.complete = function() { - if ( jQuery.isFunction( opt.old ) ) { - opt.old.call( this ); - } - - if ( opt.queue ) { - jQuery.dequeue( this, opt.queue ); - } - }; - - return opt; -}; - -jQuery.fn.extend( { - fadeTo: function( speed, to, easing, callback ) { - - // Show any hidden elements after setting opacity to 0 - return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() - - // Animate to the value specified - .end().animate( { opacity: to }, speed, easing, callback ); - }, - animate: function( prop, speed, easing, callback ) { - var empty = jQuery.isEmptyObject( prop ), - optall = jQuery.speed( speed, easing, callback ), - doAnimation = function() { - - // Operate on a copy of prop so per-property easing won't be lost - var anim = Animation( this, jQuery.extend( {}, prop ), optall ); - - // Empty animations, or finishing resolves immediately - if ( empty || dataPriv.get( this, "finish" ) ) { - anim.stop( true ); - } - }; - doAnimation.finish = doAnimation; - - return empty || optall.queue === false ? - this.each( doAnimation ) : - this.queue( optall.queue, doAnimation ); - }, - stop: function( type, clearQueue, gotoEnd ) { - var stopQueue = function( hooks ) { - var stop = hooks.stop; - delete hooks.stop; - stop( gotoEnd ); - }; - - if ( typeof type !== "string" ) { - gotoEnd = clearQueue; - clearQueue = type; - type = undefined; - } - if ( clearQueue && type !== false ) { - this.queue( type || "fx", [] ); - } - - return this.each( function() { - var dequeue = true, - index = type != null && type + "queueHooks", - timers = jQuery.timers, - data = dataPriv.get( this ); - - if ( index ) { - if ( data[ index ] && data[ index ].stop ) { - stopQueue( data[ index ] ); - } - } else { - for ( index in data ) { - if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { - stopQueue( data[ index ] ); - } - } - } - - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && - ( type == null || timers[ index ].queue === type ) ) { - - timers[ index ].anim.stop( gotoEnd ); - dequeue = false; - timers.splice( index, 1 ); - } - } - - // Start the next in the queue if the last step wasn't forced. - // Timers currently will call their complete callbacks, which - // will dequeue but only if they were gotoEnd. - if ( dequeue || !gotoEnd ) { - jQuery.dequeue( this, type ); - } - } ); - }, - finish: function( type ) { - if ( type !== false ) { - type = type || "fx"; - } - return this.each( function() { - var index, - data = dataPriv.get( this ), - queue = data[ type + "queue" ], - hooks = data[ type + "queueHooks" ], - timers = jQuery.timers, - length = queue ? queue.length : 0; - - // Enable finishing flag on private data - data.finish = true; - - // Empty the queue first - jQuery.queue( this, type, [] ); - - if ( hooks && hooks.stop ) { - hooks.stop.call( this, true ); - } - - // Look for any active animations, and finish them - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && timers[ index ].queue === type ) { - timers[ index ].anim.stop( true ); - timers.splice( index, 1 ); - } - } - - // Look for any animations in the old queue and finish them - for ( index = 0; index < length; index++ ) { - if ( queue[ index ] && queue[ index ].finish ) { - queue[ index ].finish.call( this ); - } - } - - // Turn off finishing flag - delete data.finish; - } ); - } -} ); - -jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) { - var cssFn = jQuery.fn[ name ]; - jQuery.fn[ name ] = function( speed, easing, callback ) { - return speed == null || typeof speed === "boolean" ? - cssFn.apply( this, arguments ) : - this.animate( genFx( name, true ), speed, easing, callback ); - }; -} ); - -// Generate shortcuts for custom animations -jQuery.each( { - slideDown: genFx( "show" ), - slideUp: genFx( "hide" ), - slideToggle: genFx( "toggle" ), - fadeIn: { opacity: "show" }, - fadeOut: { opacity: "hide" }, - fadeToggle: { opacity: "toggle" } -}, function( name, props ) { - jQuery.fn[ name ] = function( speed, easing, callback ) { - return this.animate( props, speed, easing, callback ); - }; -} ); - -jQuery.timers = []; -jQuery.fx.tick = function() { - var timer, - i = 0, - timers = jQuery.timers; - - fxNow = jQuery.now(); - - for ( ; i < timers.length; i++ ) { - timer = timers[ i ]; - - // Run the timer and safely remove it when done (allowing for external removal) - if ( !timer() && timers[ i ] === timer ) { - timers.splice( i--, 1 ); - } - } - - if ( !timers.length ) { - jQuery.fx.stop(); - } - fxNow = undefined; -}; - -jQuery.fx.timer = function( timer ) { - jQuery.timers.push( timer ); - jQuery.fx.start(); -}; - -jQuery.fx.interval = 13; -jQuery.fx.start = function() { - if ( inProgress ) { - return; - } - - inProgress = true; - schedule(); -}; - -jQuery.fx.stop = function() { - inProgress = null; -}; - -jQuery.fx.speeds = { - slow: 600, - fast: 200, - - // Default speed - _default: 400 -}; - - -// Based off of the plugin by Clint Helfers, with permission. -// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ -jQuery.fn.delay = function( time, type ) { - time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; - type = type || "fx"; - - return this.queue( type, function( next, hooks ) { - var timeout = window.setTimeout( next, time ); - hooks.stop = function() { - window.clearTimeout( timeout ); - }; - } ); -}; - - -( function() { - var input = document.createElement( "input" ), - select = document.createElement( "select" ), - opt = select.appendChild( document.createElement( "option" ) ); - - input.type = "checkbox"; - - // Support: Android <=4.3 only - // Default value for a checkbox should be "on" - support.checkOn = input.value !== ""; - - // Support: IE <=11 only - // Must access selectedIndex to make default options select - support.optSelected = opt.selected; - - // Support: IE <=11 only - // An input loses its value after becoming a radio - input = document.createElement( "input" ); - input.value = "t"; - input.type = "radio"; - support.radioValue = input.value === "t"; -} )(); - - -var boolHook, - attrHandle = jQuery.expr.attrHandle; - -jQuery.fn.extend( { - attr: function( name, value ) { - return access( this, jQuery.attr, name, value, arguments.length > 1 ); - }, - - removeAttr: function( name ) { - return this.each( function() { - jQuery.removeAttr( this, name ); - } ); - } -} ); - -jQuery.extend( { - attr: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set attributes on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === "undefined" ) { - return jQuery.prop( elem, name, value ); - } - - // Attribute hooks are determined by the lowercase version - // Grab necessary hook if one is defined - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - hooks = jQuery.attrHooks[ name.toLowerCase() ] || - ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); - } - - if ( value !== undefined ) { - if ( value === null ) { - jQuery.removeAttr( elem, name ); - return; - } - - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - elem.setAttribute( name, value + "" ); - return value; - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - ret = jQuery.find.attr( elem, name ); - - // Non-existent attributes return null, we normalize to undefined - return ret == null ? undefined : ret; - }, - - attrHooks: { - type: { - set: function( elem, value ) { - if ( !support.radioValue && value === "radio" && - nodeName( elem, "input" ) ) { - var val = elem.value; - elem.setAttribute( "type", value ); - if ( val ) { - elem.value = val; - } - return value; - } - } - } - }, - - removeAttr: function( elem, value ) { - var name, - i = 0, - - // Attribute names can contain non-HTML whitespace characters - // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 - attrNames = value && value.match( rnothtmlwhite ); - - if ( attrNames && elem.nodeType === 1 ) { - while ( ( name = attrNames[ i++ ] ) ) { - elem.removeAttribute( name ); - } - } - } -} ); - -// Hooks for boolean attributes -boolHook = { - set: function( elem, value, name ) { - if ( value === false ) { - - // Remove boolean attributes when set to false - jQuery.removeAttr( elem, name ); - } else { - elem.setAttribute( name, name ); - } - return name; - } -}; - -jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { - var getter = attrHandle[ name ] || jQuery.find.attr; - - attrHandle[ name ] = function( elem, name, isXML ) { - var ret, handle, - lowercaseName = name.toLowerCase(); - - if ( !isXML ) { - - // Avoid an infinite loop by temporarily removing this function from the getter - handle = attrHandle[ lowercaseName ]; - attrHandle[ lowercaseName ] = ret; - ret = getter( elem, name, isXML ) != null ? - lowercaseName : - null; - attrHandle[ lowercaseName ] = handle; - } - return ret; - }; -} ); - - - - -var rfocusable = /^(?:input|select|textarea|button)$/i, - rclickable = /^(?:a|area)$/i; - -jQuery.fn.extend( { - prop: function( name, value ) { - return access( this, jQuery.prop, name, value, arguments.length > 1 ); - }, - - removeProp: function( name ) { - return this.each( function() { - delete this[ jQuery.propFix[ name ] || name ]; - } ); - } -} ); - -jQuery.extend( { - prop: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set properties on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - - // Fix name and attach hooks - name = jQuery.propFix[ name ] || name; - hooks = jQuery.propHooks[ name ]; - } - - if ( value !== undefined ) { - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - return ( elem[ name ] = value ); - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - return elem[ name ]; - }, - - propHooks: { - tabIndex: { - get: function( elem ) { - - // Support: IE <=9 - 11 only - // elem.tabIndex doesn't always return the - // correct value when it hasn't been explicitly set - // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ - // Use proper attribute retrieval(#12072) - var tabindex = jQuery.find.attr( elem, "tabindex" ); - - if ( tabindex ) { - return parseInt( tabindex, 10 ); - } - - if ( - rfocusable.test( elem.nodeName ) || - rclickable.test( elem.nodeName ) && - elem.href - ) { - return 0; - } - - return -1; - } - } - }, - - propFix: { - "for": "htmlFor", - "class": "className" - } -} ); - -// Support: IE <=11 only -// Accessing the selectedIndex property -// forces the browser to respect setting selected -// on the option -// The getter ensures a default option is selected -// when in an optgroup -// eslint rule "no-unused-expressions" is disabled for this code -// since it considers such accessions noop -if ( !support.optSelected ) { - jQuery.propHooks.selected = { - get: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent && parent.parentNode ) { - parent.parentNode.selectedIndex; - } - return null; - }, - set: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent ) { - parent.selectedIndex; - - if ( parent.parentNode ) { - parent.parentNode.selectedIndex; - } - } - } - }; -} - -jQuery.each( [ - "tabIndex", - "readOnly", - "maxLength", - "cellSpacing", - "cellPadding", - "rowSpan", - "colSpan", - "useMap", - "frameBorder", - "contentEditable" -], function() { - jQuery.propFix[ this.toLowerCase() ] = this; -} ); - - - - - // Strip and collapse whitespace according to HTML spec - // https://html.spec.whatwg.org/multipage/infrastructure.html#strip-and-collapse-whitespace - function stripAndCollapse( value ) { - var tokens = value.match( rnothtmlwhite ) || []; - return tokens.join( " " ); - } - - -function getClass( elem ) { - return elem.getAttribute && elem.getAttribute( "class" ) || ""; -} - -jQuery.fn.extend( { - addClass: function( value ) { - var classes, elem, cur, curValue, clazz, j, finalValue, - i = 0; - - if ( jQuery.isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - if ( typeof value === "string" && value ) { - classes = value.match( rnothtmlwhite ) || []; - - while ( ( elem = this[ i++ ] ) ) { - curValue = getClass( elem ); - cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - j = 0; - while ( ( clazz = classes[ j++ ] ) ) { - if ( cur.indexOf( " " + clazz + " " ) < 0 ) { - cur += clazz + " "; - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - elem.setAttribute( "class", finalValue ); - } - } - } - } - - return this; - }, - - removeClass: function( value ) { - var classes, elem, cur, curValue, clazz, j, finalValue, - i = 0; - - if ( jQuery.isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - if ( !arguments.length ) { - return this.attr( "class", "" ); - } - - if ( typeof value === "string" && value ) { - classes = value.match( rnothtmlwhite ) || []; - - while ( ( elem = this[ i++ ] ) ) { - curValue = getClass( elem ); - - // This expression is here for better compressibility (see addClass) - cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - j = 0; - while ( ( clazz = classes[ j++ ] ) ) { - - // Remove *all* instances - while ( cur.indexOf( " " + clazz + " " ) > -1 ) { - cur = cur.replace( " " + clazz + " ", " " ); - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - elem.setAttribute( "class", finalValue ); - } - } - } - } - - return this; - }, - - toggleClass: function( value, stateVal ) { - var type = typeof value; - - if ( typeof stateVal === "boolean" && type === "string" ) { - return stateVal ? this.addClass( value ) : this.removeClass( value ); - } - - if ( jQuery.isFunction( value ) ) { - return this.each( function( i ) { - jQuery( this ).toggleClass( - value.call( this, i, getClass( this ), stateVal ), - stateVal - ); - } ); - } - - return this.each( function() { - var className, i, self, classNames; - - if ( type === "string" ) { - - // Toggle individual class names - i = 0; - self = jQuery( this ); - classNames = value.match( rnothtmlwhite ) || []; - - while ( ( className = classNames[ i++ ] ) ) { - - // Check each className given, space separated list - if ( self.hasClass( className ) ) { - self.removeClass( className ); - } else { - self.addClass( className ); - } - } - - // Toggle whole class name - } else if ( value === undefined || type === "boolean" ) { - className = getClass( this ); - if ( className ) { - - // Store className if set - dataPriv.set( this, "__className__", className ); - } - - // If the element has a class name or if we're passed `false`, - // then remove the whole classname (if there was one, the above saved it). - // Otherwise bring back whatever was previously saved (if anything), - // falling back to the empty string if nothing was stored. - if ( this.setAttribute ) { - this.setAttribute( "class", - className || value === false ? - "" : - dataPriv.get( this, "__className__" ) || "" - ); - } - } - } ); - }, - - hasClass: function( selector ) { - var className, elem, - i = 0; - - className = " " + selector + " "; - while ( ( elem = this[ i++ ] ) ) { - if ( elem.nodeType === 1 && - ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { - return true; - } - } - - return false; - } -} ); - - - - -var rreturn = /\r/g; - -jQuery.fn.extend( { - val: function( value ) { - var hooks, ret, isFunction, - elem = this[ 0 ]; - - if ( !arguments.length ) { - if ( elem ) { - hooks = jQuery.valHooks[ elem.type ] || - jQuery.valHooks[ elem.nodeName.toLowerCase() ]; - - if ( hooks && - "get" in hooks && - ( ret = hooks.get( elem, "value" ) ) !== undefined - ) { - return ret; - } - - ret = elem.value; - - // Handle most common string cases - if ( typeof ret === "string" ) { - return ret.replace( rreturn, "" ); - } - - // Handle cases where value is null/undef or number - return ret == null ? "" : ret; - } - - return; - } - - isFunction = jQuery.isFunction( value ); - - return this.each( function( i ) { - var val; - - if ( this.nodeType !== 1 ) { - return; - } - - if ( isFunction ) { - val = value.call( this, i, jQuery( this ).val() ); - } else { - val = value; - } - - // Treat null/undefined as ""; convert numbers to string - if ( val == null ) { - val = ""; - - } else if ( typeof val === "number" ) { - val += ""; - - } else if ( Array.isArray( val ) ) { - val = jQuery.map( val, function( value ) { - return value == null ? "" : value + ""; - } ); - } - - hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; - - // If set returns undefined, fall back to normal setting - if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { - this.value = val; - } - } ); - } -} ); - -jQuery.extend( { - valHooks: { - option: { - get: function( elem ) { - - var val = jQuery.find.attr( elem, "value" ); - return val != null ? - val : - - // Support: IE <=10 - 11 only - // option.text throws exceptions (#14686, #14858) - // Strip and collapse whitespace - // https://html.spec.whatwg.org/#strip-and-collapse-whitespace - stripAndCollapse( jQuery.text( elem ) ); - } - }, - select: { - get: function( elem ) { - var value, option, i, - options = elem.options, - index = elem.selectedIndex, - one = elem.type === "select-one", - values = one ? null : [], - max = one ? index + 1 : options.length; - - if ( index < 0 ) { - i = max; - - } else { - i = one ? index : 0; - } - - // Loop through all the selected options - for ( ; i < max; i++ ) { - option = options[ i ]; - - // Support: IE <=9 only - // IE8-9 doesn't update selected after form reset (#2551) - if ( ( option.selected || i === index ) && - - // Don't return options that are disabled or in a disabled optgroup - !option.disabled && - ( !option.parentNode.disabled || - !nodeName( option.parentNode, "optgroup" ) ) ) { - - // Get the specific value for the option - value = jQuery( option ).val(); - - // We don't need an array for one selects - if ( one ) { - return value; - } - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - }, - - set: function( elem, value ) { - var optionSet, option, - options = elem.options, - values = jQuery.makeArray( value ), - i = options.length; - - while ( i-- ) { - option = options[ i ]; - - /* eslint-disable no-cond-assign */ - - if ( option.selected = - jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 - ) { - optionSet = true; - } - - /* eslint-enable no-cond-assign */ - } - - // Force browsers to behave consistently when non-matching value is set - if ( !optionSet ) { - elem.selectedIndex = -1; - } - return values; - } - } - } -} ); - -// Radios and checkboxes getter/setter -jQuery.each( [ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = { - set: function( elem, value ) { - if ( Array.isArray( value ) ) { - return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); - } - } - }; - if ( !support.checkOn ) { - jQuery.valHooks[ this ].get = function( elem ) { - return elem.getAttribute( "value" ) === null ? "on" : elem.value; - }; - } -} ); - - - - -// Return jQuery for attributes-only inclusion - - -var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/; - -jQuery.extend( jQuery.event, { - - trigger: function( event, data, elem, onlyHandlers ) { - - var i, cur, tmp, bubbleType, ontype, handle, special, - eventPath = [ elem || document ], - type = hasOwn.call( event, "type" ) ? event.type : event, - namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; - - cur = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } - - if ( type.indexOf( "." ) > -1 ) { - - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split( "." ); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf( ":" ) < 0 && "on" + type; - - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) - event.isTrigger = onlyHandlers ? 2 : 3; - event.namespace = namespaces.join( "." ); - event.rnamespace = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) - if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === ( elem.ownerDocument || document ) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { - - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] && - dataPriv.get( cur, "handle" ); - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && handle.apply && acceptData( cur ) ) { - event.result = handle.apply( cur, data ); - if ( event.result === false ) { - event.preventDefault(); - } - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( ( !special._default || - special._default.apply( eventPath.pop(), data ) === false ) && - acceptData( elem ) ) { - - // Call a native DOM method on the target with the same name as the event. - // Don't do default actions on window, that's where global variables be (#6170) - if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - elem[ type ](); - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - // Piggyback on a donor event to simulate a different one - // Used only for `focus(in | out)` events - simulate: function( type, elem, event ) { - var e = jQuery.extend( - new jQuery.Event(), - event, - { - type: type, - isSimulated: true - } - ); - - jQuery.event.trigger( e, null, elem ); - } - -} ); - -jQuery.fn.extend( { - - trigger: function( type, data ) { - return this.each( function() { - jQuery.event.trigger( type, data, this ); - } ); - }, - triggerHandler: function( type, data ) { - var elem = this[ 0 ]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } - } -} ); - - -jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " + - "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + - "change select submit keydown keypress keyup contextmenu" ).split( " " ), - function( i, name ) { - - // Handle event binding - jQuery.fn[ name ] = function( data, fn ) { - return arguments.length > 0 ? - this.on( name, null, data, fn ) : - this.trigger( name ); - }; -} ); - -jQuery.fn.extend( { - hover: function( fnOver, fnOut ) { - return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); - } -} ); - - - - -support.focusin = "onfocusin" in window; - - -// Support: Firefox <=44 -// Firefox doesn't have focus(in | out) events -// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 -// -// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 -// focus(in | out) events fire after focus & blur events, -// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order -// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 -if ( !support.focusin ) { - jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler on the document while someone wants focusin/focusout - var handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - var doc = this.ownerDocument || this, - attaches = dataPriv.access( doc, fix ); - - if ( !attaches ) { - doc.addEventListener( orig, handler, true ); - } - dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); - }, - teardown: function() { - var doc = this.ownerDocument || this, - attaches = dataPriv.access( doc, fix ) - 1; - - if ( !attaches ) { - doc.removeEventListener( orig, handler, true ); - dataPriv.remove( doc, fix ); - - } else { - dataPriv.access( doc, fix, attaches ); - } - } - }; - } ); -} -var location = window.location; - -var nonce = jQuery.now(); - -var rquery = ( /\?/ ); - - - -// Cross-browser xml parsing -jQuery.parseXML = function( data ) { - var xml; - if ( !data || typeof data !== "string" ) { - return null; - } - - // Support: IE 9 - 11 only - // IE throws on parseFromString with invalid input. - try { - xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); - } catch ( e ) { - xml = undefined; - } - - if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { - jQuery.error( "Invalid XML: " + data ); - } - return xml; -}; - - -var - rbracket = /\[\]$/, - rCRLF = /\r?\n/g, - rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, - rsubmittable = /^(?:input|select|textarea|keygen)/i; - -function buildParams( prefix, obj, traditional, add ) { - var name; - - if ( Array.isArray( obj ) ) { - - // Serialize array item. - jQuery.each( obj, function( i, v ) { - if ( traditional || rbracket.test( prefix ) ) { - - // Treat each array item as a scalar. - add( prefix, v ); - - } else { - - // Item is non-scalar (array or object), encode its numeric index. - buildParams( - prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", - v, - traditional, - add - ); - } - } ); - - } else if ( !traditional && jQuery.type( obj ) === "object" ) { - - // Serialize object item. - for ( name in obj ) { - buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); - } - - } else { - - // Serialize scalar item. - add( prefix, obj ); - } -} - -// Serialize an array of form elements or a set of -// key/values into a query string -jQuery.param = function( a, traditional ) { - var prefix, - s = [], - add = function( key, valueOrFunction ) { - - // If value is a function, invoke it and use its return value - var value = jQuery.isFunction( valueOrFunction ) ? - valueOrFunction() : - valueOrFunction; - - s[ s.length ] = encodeURIComponent( key ) + "=" + - encodeURIComponent( value == null ? "" : value ); - }; - - // If an array was passed in, assume that it is an array of form elements. - if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { - - // Serialize the form elements - jQuery.each( a, function() { - add( this.name, this.value ); - } ); - - } else { - - // If traditional, encode the "old" way (the way 1.3.2 or older - // did it), otherwise encode params recursively. - for ( prefix in a ) { - buildParams( prefix, a[ prefix ], traditional, add ); - } - } - - // Return the resulting serialization - return s.join( "&" ); -}; - -jQuery.fn.extend( { - serialize: function() { - return jQuery.param( this.serializeArray() ); - }, - serializeArray: function() { - return this.map( function() { - - // Can add propHook for "elements" to filter or add form elements - var elements = jQuery.prop( this, "elements" ); - return elements ? jQuery.makeArray( elements ) : this; - } ) - .filter( function() { - var type = this.type; - - // Use .is( ":disabled" ) so that fieldset[disabled] works - return this.name && !jQuery( this ).is( ":disabled" ) && - rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && - ( this.checked || !rcheckableType.test( type ) ); - } ) - .map( function( i, elem ) { - var val = jQuery( this ).val(); - - if ( val == null ) { - return null; - } - - if ( Array.isArray( val ) ) { - return jQuery.map( val, function( val ) { - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ); - } - - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ).get(); - } -} ); - - -var - r20 = /%20/g, - rhash = /#.*$/, - rantiCache = /([?&])_=[^&]*/, - rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, - - // #7653, #8125, #8152: local protocol detection - rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, - rnoContent = /^(?:GET|HEAD)$/, - rprotocol = /^\/\//, - - /* Prefilters - * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) - * 2) These are called: - * - BEFORE asking for a transport - * - AFTER param serialization (s.data is a string if s.processData is true) - * 3) key is the dataType - * 4) the catchall symbol "*" can be used - * 5) execution will start with transport dataType and THEN continue down to "*" if needed - */ - prefilters = {}, - - /* Transports bindings - * 1) key is the dataType - * 2) the catchall symbol "*" can be used - * 3) selection will start with transport dataType and THEN go to "*" if needed - */ - transports = {}, - - // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression - allTypes = "*/".concat( "*" ), - - // Anchor tag for parsing the document origin - originAnchor = document.createElement( "a" ); - originAnchor.href = location.href; - -// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport -function addToPrefiltersOrTransports( structure ) { - - // dataTypeExpression is optional and defaults to "*" - return function( dataTypeExpression, func ) { - - if ( typeof dataTypeExpression !== "string" ) { - func = dataTypeExpression; - dataTypeExpression = "*"; - } - - var dataType, - i = 0, - dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; - - if ( jQuery.isFunction( func ) ) { - - // For each dataType in the dataTypeExpression - while ( ( dataType = dataTypes[ i++ ] ) ) { - - // Prepend if requested - if ( dataType[ 0 ] === "+" ) { - dataType = dataType.slice( 1 ) || "*"; - ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); - - // Otherwise append - } else { - ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); - } - } - } - }; -} - -// Base inspection function for prefilters and transports -function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { - - var inspected = {}, - seekingTransport = ( structure === transports ); - - function inspect( dataType ) { - var selected; - inspected[ dataType ] = true; - jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { - var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); - if ( typeof dataTypeOrTransport === "string" && - !seekingTransport && !inspected[ dataTypeOrTransport ] ) { - - options.dataTypes.unshift( dataTypeOrTransport ); - inspect( dataTypeOrTransport ); - return false; - } else if ( seekingTransport ) { - return !( selected = dataTypeOrTransport ); - } - } ); - return selected; - } - - return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); -} - -// A special extend for ajax options -// that takes "flat" options (not to be deep extended) -// Fixes #9887 -function ajaxExtend( target, src ) { - var key, deep, - flatOptions = jQuery.ajaxSettings.flatOptions || {}; - - for ( key in src ) { - if ( src[ key ] !== undefined ) { - ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; - } - } - if ( deep ) { - jQuery.extend( true, target, deep ); - } - - return target; -} - -/* Handles responses to an ajax request: - * - finds the right dataType (mediates between content-type and expected dataType) - * - returns the corresponding response - */ -function ajaxHandleResponses( s, jqXHR, responses ) { - - var ct, type, finalDataType, firstDataType, - contents = s.contents, - dataTypes = s.dataTypes; - - // Remove auto dataType and get content-type in the process - while ( dataTypes[ 0 ] === "*" ) { - dataTypes.shift(); - if ( ct === undefined ) { - ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); - } - } - - // Check if we're dealing with a known content-type - if ( ct ) { - for ( type in contents ) { - if ( contents[ type ] && contents[ type ].test( ct ) ) { - dataTypes.unshift( type ); - break; - } - } - } - - // Check to see if we have a response for the expected dataType - if ( dataTypes[ 0 ] in responses ) { - finalDataType = dataTypes[ 0 ]; - } else { - - // Try convertible dataTypes - for ( type in responses ) { - if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { - finalDataType = type; - break; - } - if ( !firstDataType ) { - firstDataType = type; - } - } - - // Or just use first one - finalDataType = finalDataType || firstDataType; - } - - // If we found a dataType - // We add the dataType to the list if needed - // and return the corresponding response - if ( finalDataType ) { - if ( finalDataType !== dataTypes[ 0 ] ) { - dataTypes.unshift( finalDataType ); - } - return responses[ finalDataType ]; - } -} - -/* Chain conversions given the request and the original response - * Also sets the responseXXX fields on the jqXHR instance - */ -function ajaxConvert( s, response, jqXHR, isSuccess ) { - var conv2, current, conv, tmp, prev, - converters = {}, - - // Work with a copy of dataTypes in case we need to modify it for conversion - dataTypes = s.dataTypes.slice(); - - // Create converters map with lowercased keys - if ( dataTypes[ 1 ] ) { - for ( conv in s.converters ) { - converters[ conv.toLowerCase() ] = s.converters[ conv ]; - } - } - - current = dataTypes.shift(); - - // Convert to each sequential dataType - while ( current ) { - - if ( s.responseFields[ current ] ) { - jqXHR[ s.responseFields[ current ] ] = response; - } - - // Apply the dataFilter if provided - if ( !prev && isSuccess && s.dataFilter ) { - response = s.dataFilter( response, s.dataType ); - } - - prev = current; - current = dataTypes.shift(); - - if ( current ) { - - // There's only work to do if current dataType is non-auto - if ( current === "*" ) { - - current = prev; - - // Convert response if prev dataType is non-auto and differs from current - } else if ( prev !== "*" && prev !== current ) { - - // Seek a direct converter - conv = converters[ prev + " " + current ] || converters[ "* " + current ]; - - // If none found, seek a pair - if ( !conv ) { - for ( conv2 in converters ) { - - // If conv2 outputs current - tmp = conv2.split( " " ); - if ( tmp[ 1 ] === current ) { - - // If prev can be converted to accepted input - conv = converters[ prev + " " + tmp[ 0 ] ] || - converters[ "* " + tmp[ 0 ] ]; - if ( conv ) { - - // Condense equivalence converters - if ( conv === true ) { - conv = converters[ conv2 ]; - - // Otherwise, insert the intermediate dataType - } else if ( converters[ conv2 ] !== true ) { - current = tmp[ 0 ]; - dataTypes.unshift( tmp[ 1 ] ); - } - break; - } - } - } - } - - // Apply converter (if not an equivalence) - if ( conv !== true ) { - - // Unless errors are allowed to bubble, catch and return them - if ( conv && s.throws ) { - response = conv( response ); - } else { - try { - response = conv( response ); - } catch ( e ) { - return { - state: "parsererror", - error: conv ? e : "No conversion from " + prev + " to " + current - }; - } - } - } - } - } - } - - return { state: "success", data: response }; -} - -jQuery.extend( { - - // Counter for holding the number of active queries - active: 0, - - // Last-Modified header cache for next request - lastModified: {}, - etag: {}, - - ajaxSettings: { - url: location.href, - type: "GET", - isLocal: rlocalProtocol.test( location.protocol ), - global: true, - processData: true, - async: true, - contentType: "application/x-www-form-urlencoded; charset=UTF-8", - - /* - timeout: 0, - data: null, - dataType: null, - username: null, - password: null, - cache: null, - throws: false, - traditional: false, - headers: {}, - */ - - accepts: { - "*": allTypes, - text: "text/plain", - html: "text/html", - xml: "application/xml, text/xml", - json: "application/json, text/javascript" - }, - - contents: { - xml: /\bxml\b/, - html: /\bhtml/, - json: /\bjson\b/ - }, - - responseFields: { - xml: "responseXML", - text: "responseText", - json: "responseJSON" - }, - - // Data converters - // Keys separate source (or catchall "*") and destination types with a single space - converters: { - - // Convert anything to text - "* text": String, - - // Text to html (true = no transformation) - "text html": true, - - // Evaluate text as a json expression - "text json": JSON.parse, - - // Parse text as xml - "text xml": jQuery.parseXML - }, - - // For options that shouldn't be deep extended: - // you can add your own custom options here if - // and when you create one that shouldn't be - // deep extended (see ajaxExtend) - flatOptions: { - url: true, - context: true - } - }, - - // Creates a full fledged settings object into target - // with both ajaxSettings and settings fields. - // If target is omitted, writes into ajaxSettings. - ajaxSetup: function( target, settings ) { - return settings ? - - // Building a settings object - ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : - - // Extending ajaxSettings - ajaxExtend( jQuery.ajaxSettings, target ); - }, - - ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), - ajaxTransport: addToPrefiltersOrTransports( transports ), - - // Main method - ajax: function( url, options ) { - - // If url is an object, simulate pre-1.5 signature - if ( typeof url === "object" ) { - options = url; - url = undefined; - } - - // Force options to be an object - options = options || {}; - - var transport, - - // URL without anti-cache param - cacheURL, - - // Response headers - responseHeadersString, - responseHeaders, - - // timeout handle - timeoutTimer, - - // Url cleanup var - urlAnchor, - - // Request state (becomes false upon send and true upon completion) - completed, - - // To know if global events are to be dispatched - fireGlobals, - - // Loop variable - i, - - // uncached part of the url - uncached, - - // Create the final options object - s = jQuery.ajaxSetup( {}, options ), - - // Callbacks context - callbackContext = s.context || s, - - // Context for global events is callbackContext if it is a DOM node or jQuery collection - globalEventContext = s.context && - ( callbackContext.nodeType || callbackContext.jquery ) ? - jQuery( callbackContext ) : - jQuery.event, - - // Deferreds - deferred = jQuery.Deferred(), - completeDeferred = jQuery.Callbacks( "once memory" ), - - // Status-dependent callbacks - statusCode = s.statusCode || {}, - - // Headers (they are sent all at once) - requestHeaders = {}, - requestHeadersNames = {}, - - // Default abort message - strAbort = "canceled", - - // Fake xhr - jqXHR = { - readyState: 0, - - // Builds headers hashtable if needed - getResponseHeader: function( key ) { - var match; - if ( completed ) { - if ( !responseHeaders ) { - responseHeaders = {}; - while ( ( match = rheaders.exec( responseHeadersString ) ) ) { - responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ]; - } - } - match = responseHeaders[ key.toLowerCase() ]; - } - return match == null ? null : match; - }, - - // Raw string - getAllResponseHeaders: function() { - return completed ? responseHeadersString : null; - }, - - // Caches the header - setRequestHeader: function( name, value ) { - if ( completed == null ) { - name = requestHeadersNames[ name.toLowerCase() ] = - requestHeadersNames[ name.toLowerCase() ] || name; - requestHeaders[ name ] = value; - } - return this; - }, - - // Overrides response content-type header - overrideMimeType: function( type ) { - if ( completed == null ) { - s.mimeType = type; - } - return this; - }, - - // Status-dependent callbacks - statusCode: function( map ) { - var code; - if ( map ) { - if ( completed ) { - - // Execute the appropriate callbacks - jqXHR.always( map[ jqXHR.status ] ); - } else { - - // Lazy-add the new callbacks in a way that preserves old ones - for ( code in map ) { - statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; - } - } - } - return this; - }, - - // Cancel the request - abort: function( statusText ) { - var finalText = statusText || strAbort; - if ( transport ) { - transport.abort( finalText ); - } - done( 0, finalText ); - return this; - } - }; - - // Attach deferreds - deferred.promise( jqXHR ); - - // Add protocol if not provided (prefilters might expect it) - // Handle falsy url in the settings object (#10093: consistency with old signature) - // We also use the url parameter if available - s.url = ( ( url || s.url || location.href ) + "" ) - .replace( rprotocol, location.protocol + "//" ); - - // Alias method option to type as per ticket #12004 - s.type = options.method || options.type || s.method || s.type; - - // Extract dataTypes list - s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; - - // A cross-domain request is in order when the origin doesn't match the current origin. - if ( s.crossDomain == null ) { - urlAnchor = document.createElement( "a" ); - - // Support: IE <=8 - 11, Edge 12 - 13 - // IE throws exception on accessing the href property if url is malformed, - // e.g. http://example.com:80x/ - try { - urlAnchor.href = s.url; - - // Support: IE <=8 - 11 only - // Anchor's host property isn't correctly set when s.url is relative - urlAnchor.href = urlAnchor.href; - s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== - urlAnchor.protocol + "//" + urlAnchor.host; - } catch ( e ) { - - // If there is an error parsing the URL, assume it is crossDomain, - // it can be rejected by the transport if it is invalid - s.crossDomain = true; - } - } - - // Convert data if not already a string - if ( s.data && s.processData && typeof s.data !== "string" ) { - s.data = jQuery.param( s.data, s.traditional ); - } - - // Apply prefilters - inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); - - // If request was aborted inside a prefilter, stop there - if ( completed ) { - return jqXHR; - } - - // We can fire global events as of now if asked to - // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) - fireGlobals = jQuery.event && s.global; - - // Watch for a new set of requests - if ( fireGlobals && jQuery.active++ === 0 ) { - jQuery.event.trigger( "ajaxStart" ); - } - - // Uppercase the type - s.type = s.type.toUpperCase(); - - // Determine if request has content - s.hasContent = !rnoContent.test( s.type ); - - // Save the URL in case we're toying with the If-Modified-Since - // and/or If-None-Match header later on - // Remove hash to simplify url manipulation - cacheURL = s.url.replace( rhash, "" ); - - // More options handling for requests with no content - if ( !s.hasContent ) { - - // Remember the hash so we can put it back - uncached = s.url.slice( cacheURL.length ); - - // If data is available, append data to url - if ( s.data ) { - cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; - - // #9682: remove data so that it's not used in an eventual retry - delete s.data; - } - - // Add or update anti-cache param if needed - if ( s.cache === false ) { - cacheURL = cacheURL.replace( rantiCache, "$1" ); - uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached; - } - - // Put hash and anti-cache on the URL that will be requested (gh-1732) - s.url = cacheURL + uncached; - - // Change '%20' to '+' if this is encoded form body content (gh-2658) - } else if ( s.data && s.processData && - ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { - s.data = s.data.replace( r20, "+" ); - } - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - if ( jQuery.lastModified[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); - } - if ( jQuery.etag[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); - } - } - - // Set the correct header, if data is being sent - if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { - jqXHR.setRequestHeader( "Content-Type", s.contentType ); - } - - // Set the Accepts header for the server, depending on the dataType - jqXHR.setRequestHeader( - "Accept", - s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? - s.accepts[ s.dataTypes[ 0 ] ] + - ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : - s.accepts[ "*" ] - ); - - // Check for headers option - for ( i in s.headers ) { - jqXHR.setRequestHeader( i, s.headers[ i ] ); - } - - // Allow custom headers/mimetypes and early abort - if ( s.beforeSend && - ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { - - // Abort if not done already and return - return jqXHR.abort(); - } - - // Aborting is no longer a cancellation - strAbort = "abort"; - - // Install callbacks on deferreds - completeDeferred.add( s.complete ); - jqXHR.done( s.success ); - jqXHR.fail( s.error ); - - // Get transport - transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); - - // If no transport, we auto-abort - if ( !transport ) { - done( -1, "No Transport" ); - } else { - jqXHR.readyState = 1; - - // Send global event - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); - } - - // If request was aborted inside ajaxSend, stop there - if ( completed ) { - return jqXHR; - } - - // Timeout - if ( s.async && s.timeout > 0 ) { - timeoutTimer = window.setTimeout( function() { - jqXHR.abort( "timeout" ); - }, s.timeout ); - } - - try { - completed = false; - transport.send( requestHeaders, done ); - } catch ( e ) { - - // Rethrow post-completion exceptions - if ( completed ) { - throw e; - } - - // Propagate others as results - done( -1, e ); - } - } - - // Callback for when everything is done - function done( status, nativeStatusText, responses, headers ) { - var isSuccess, success, error, response, modified, - statusText = nativeStatusText; - - // Ignore repeat invocations - if ( completed ) { - return; - } - - completed = true; - - // Clear timeout if it exists - if ( timeoutTimer ) { - window.clearTimeout( timeoutTimer ); - } - - // Dereference transport for early garbage collection - // (no matter how long the jqXHR object will be used) - transport = undefined; - - // Cache response headers - responseHeadersString = headers || ""; - - // Set readyState - jqXHR.readyState = status > 0 ? 4 : 0; - - // Determine if successful - isSuccess = status >= 200 && status < 300 || status === 304; - - // Get response data - if ( responses ) { - response = ajaxHandleResponses( s, jqXHR, responses ); - } - - // Convert no matter what (that way responseXXX fields are always set) - response = ajaxConvert( s, response, jqXHR, isSuccess ); - - // If successful, handle type chaining - if ( isSuccess ) { - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - modified = jqXHR.getResponseHeader( "Last-Modified" ); - if ( modified ) { - jQuery.lastModified[ cacheURL ] = modified; - } - modified = jqXHR.getResponseHeader( "etag" ); - if ( modified ) { - jQuery.etag[ cacheURL ] = modified; - } - } - - // if no content - if ( status === 204 || s.type === "HEAD" ) { - statusText = "nocontent"; - - // if not modified - } else if ( status === 304 ) { - statusText = "notmodified"; - - // If we have data, let's convert it - } else { - statusText = response.state; - success = response.data; - error = response.error; - isSuccess = !error; - } - } else { - - // Extract error from statusText and normalize for non-aborts - error = statusText; - if ( status || !statusText ) { - statusText = "error"; - if ( status < 0 ) { - status = 0; - } - } - } - - // Set data for the fake xhr object - jqXHR.status = status; - jqXHR.statusText = ( nativeStatusText || statusText ) + ""; - - // Success/Error - if ( isSuccess ) { - deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); - } else { - deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); - } - - // Status-dependent callbacks - jqXHR.statusCode( statusCode ); - statusCode = undefined; - - if ( fireGlobals ) { - globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", - [ jqXHR, s, isSuccess ? success : error ] ); - } - - // Complete - completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); - - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); - - // Handle the global AJAX counter - if ( !( --jQuery.active ) ) { - jQuery.event.trigger( "ajaxStop" ); - } - } - } - - return jqXHR; - }, - - getJSON: function( url, data, callback ) { - return jQuery.get( url, data, callback, "json" ); - }, - - getScript: function( url, callback ) { - return jQuery.get( url, undefined, callback, "script" ); - } -} ); - -jQuery.each( [ "get", "post" ], function( i, method ) { - jQuery[ method ] = function( url, data, callback, type ) { - - // Shift arguments if data argument was omitted - if ( jQuery.isFunction( data ) ) { - type = type || callback; - callback = data; - data = undefined; - } - - // The url can be an options object (which then must have .url) - return jQuery.ajax( jQuery.extend( { - url: url, - type: method, - dataType: type, - data: data, - success: callback - }, jQuery.isPlainObject( url ) && url ) ); - }; -} ); - - -jQuery._evalUrl = function( url ) { - return jQuery.ajax( { - url: url, - - // Make this explicit, since user can override this through ajaxSetup (#11264) - type: "GET", - dataType: "script", - cache: true, - async: false, - global: false, - "throws": true - } ); -}; - - -jQuery.fn.extend( { - wrapAll: function( html ) { - var wrap; - - if ( this[ 0 ] ) { - if ( jQuery.isFunction( html ) ) { - html = html.call( this[ 0 ] ); - } - - // The elements to wrap the target around - wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); - - if ( this[ 0 ].parentNode ) { - wrap.insertBefore( this[ 0 ] ); - } - - wrap.map( function() { - var elem = this; - - while ( elem.firstElementChild ) { - elem = elem.firstElementChild; - } - - return elem; - } ).append( this ); - } - - return this; - }, - - wrapInner: function( html ) { - if ( jQuery.isFunction( html ) ) { - return this.each( function( i ) { - jQuery( this ).wrapInner( html.call( this, i ) ); - } ); - } - - return this.each( function() { - var self = jQuery( this ), - contents = self.contents(); - - if ( contents.length ) { - contents.wrapAll( html ); - - } else { - self.append( html ); - } - } ); - }, - - wrap: function( html ) { - var isFunction = jQuery.isFunction( html ); - - return this.each( function( i ) { - jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html ); - } ); - }, - - unwrap: function( selector ) { - this.parent( selector ).not( "body" ).each( function() { - jQuery( this ).replaceWith( this.childNodes ); - } ); - return this; - } -} ); - - -jQuery.expr.pseudos.hidden = function( elem ) { - return !jQuery.expr.pseudos.visible( elem ); -}; -jQuery.expr.pseudos.visible = function( elem ) { - return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); -}; - - - - -jQuery.ajaxSettings.xhr = function() { - try { - return new window.XMLHttpRequest(); - } catch ( e ) {} -}; - -var xhrSuccessStatus = { - - // File protocol always yields status code 0, assume 200 - 0: 200, - - // Support: IE <=9 only - // #1450: sometimes IE returns 1223 when it should be 204 - 1223: 204 - }, - xhrSupported = jQuery.ajaxSettings.xhr(); - -support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); -support.ajax = xhrSupported = !!xhrSupported; - -jQuery.ajaxTransport( function( options ) { - var callback, errorCallback; - - // Cross domain only allowed if supported through XMLHttpRequest - if ( support.cors || xhrSupported && !options.crossDomain ) { - return { - send: function( headers, complete ) { - var i, - xhr = options.xhr(); - - xhr.open( - options.type, - options.url, - options.async, - options.username, - options.password - ); - - // Apply custom fields if provided - if ( options.xhrFields ) { - for ( i in options.xhrFields ) { - xhr[ i ] = options.xhrFields[ i ]; - } - } - - // Override mime type if needed - if ( options.mimeType && xhr.overrideMimeType ) { - xhr.overrideMimeType( options.mimeType ); - } - - // X-Requested-With header - // For cross-domain requests, seeing as conditions for a preflight are - // akin to a jigsaw puzzle, we simply never set it to be sure. - // (it can always be set on a per-request basis or even using ajaxSetup) - // For same-domain requests, won't change header if already provided. - if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { - headers[ "X-Requested-With" ] = "XMLHttpRequest"; - } - - // Set headers - for ( i in headers ) { - xhr.setRequestHeader( i, headers[ i ] ); - } - - // Callback - callback = function( type ) { - return function() { - if ( callback ) { - callback = errorCallback = xhr.onload = - xhr.onerror = xhr.onabort = xhr.onreadystatechange = null; - - if ( type === "abort" ) { - xhr.abort(); - } else if ( type === "error" ) { - - // Support: IE <=9 only - // On a manual native abort, IE9 throws - // errors on any property access that is not readyState - if ( typeof xhr.status !== "number" ) { - complete( 0, "error" ); - } else { - complete( - - // File: protocol always yields status 0; see #8605, #14207 - xhr.status, - xhr.statusText - ); - } - } else { - complete( - xhrSuccessStatus[ xhr.status ] || xhr.status, - xhr.statusText, - - // Support: IE <=9 only - // IE9 has no XHR2 but throws on binary (trac-11426) - // For XHR2 non-text, let the caller handle it (gh-2498) - ( xhr.responseType || "text" ) !== "text" || - typeof xhr.responseText !== "string" ? - { binary: xhr.response } : - { text: xhr.responseText }, - xhr.getAllResponseHeaders() - ); - } - } - }; - }; - - // Listen to events - xhr.onload = callback(); - errorCallback = xhr.onerror = callback( "error" ); - - // Support: IE 9 only - // Use onreadystatechange to replace onabort - // to handle uncaught aborts - if ( xhr.onabort !== undefined ) { - xhr.onabort = errorCallback; - } else { - xhr.onreadystatechange = function() { - - // Check readyState before timeout as it changes - if ( xhr.readyState === 4 ) { - - // Allow onerror to be called first, - // but that will not handle a native abort - // Also, save errorCallback to a variable - // as xhr.onerror cannot be accessed - window.setTimeout( function() { - if ( callback ) { - errorCallback(); - } - } ); - } - }; - } - - // Create the abort callback - callback = callback( "abort" ); - - try { - - // Do send the request (this may raise an exception) - xhr.send( options.hasContent && options.data || null ); - } catch ( e ) { - - // #14683: Only rethrow if this hasn't been notified as an error yet - if ( callback ) { - throw e; - } - } - }, - - abort: function() { - if ( callback ) { - callback(); - } - } - }; - } -} ); - - - - -// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) -jQuery.ajaxPrefilter( function( s ) { - if ( s.crossDomain ) { - s.contents.script = false; - } -} ); - -// Install script dataType -jQuery.ajaxSetup( { - accepts: { - script: "text/javascript, application/javascript, " + - "application/ecmascript, application/x-ecmascript" - }, - contents: { - script: /\b(?:java|ecma)script\b/ - }, - converters: { - "text script": function( text ) { - jQuery.globalEval( text ); - return text; - } - } -} ); - -// Handle cache's special case and crossDomain -jQuery.ajaxPrefilter( "script", function( s ) { - if ( s.cache === undefined ) { - s.cache = false; - } - if ( s.crossDomain ) { - s.type = "GET"; - } -} ); - -// Bind script tag hack transport -jQuery.ajaxTransport( "script", function( s ) { - - // This transport only deals with cross domain requests - if ( s.crossDomain ) { - var script, callback; - return { - send: function( _, complete ) { - script = jQuery( " - - - - - - - {{#rememberusername}} -
- - -
- {{/rememberusername}} - - - - - -
- - -
- {{#str}} cookiesenabled {{/str}} - {{{cookieshelpiconformatted}}} -
- {{#canloginasguest}} -
-

{{#str}}someallowguest{{/str}}

-
- - - -
-
- {{/canloginasguest}} - - {{#hasidentityproviders}} -
{{#str}} potentialidps, auth {{/str}}
-
- {{#identityproviders}} - - {{/identityproviders}} -
- {{/hasidentityproviders}} -
- - - - - - - -{{#hasinstructions}} -
-
-
-
-
-

{{#str}}firsttime{{/str}}

-
-
- {{{instructions}}} - {{#cansignup}} -
- -
- {{/cansignup}} -
-
-
-
-
-{{/hasinstructions}} - -{{#js}} - {{#error}} - require(['jquery'], function($) { - $('#loginerrormessage').focus(); - }); - {{/error}} - {{^error}} - {{#autofocusform}} - require(['jquery'], function($) { - if ($('#username').val()) { - $('#password').focus(); - } else { - $('#username').focus(); - } - }); - {{/autofocusform}} - {{/error}} -{{/js}} diff --git a/templates/core/modal.mustache b/templates/core/modal.mustache deleted file mode 100644 index 235d2d0..0000000 --- a/templates/core/modal.mustache +++ /dev/null @@ -1,66 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core/modal - - Moodle modal template. - - The purpose of this template is to render a modal - - Classes required for JS: - * none - - Data attributes required for JS: - * none - - Context variables required for this template: - * title A cleaned string (use clean_text()) to display. - * body HTML content for the boday - * footer HTML content for the footer - - Example context (json): - { - "title": "Example modal", - "body": "Some example content for the body", - "footer": "Footer text, right here!" - } -}} - - diff --git a/templates/core/modal_backdrop.mustache b/templates/core/modal_backdrop.mustache deleted file mode 100644 index 6b12f22..0000000 --- a/templates/core/modal_backdrop.mustache +++ /dev/null @@ -1,36 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core/modal_backdrop - - Moodle modal backdrop template. - - The purpose of this template is to render a modal - - Classes required for JS: - * none - - Data attributes required for JS: - * none - - Context variables required for this template: - * none - - Example context (json): - {} -}} - diff --git a/templates/core/navbar.mustache b/templates/core/navbar.mustache deleted file mode 100644 index 0f2c157..0000000 --- a/templates/core/navbar.mustache +++ /dev/null @@ -1,72 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core/navbar - - Navbar template. - - Classes required for JS: - * none - - Data attributes required for JS: - * none - - Context variables required for this template: - * get_items - array of items - * has_action - boolean - * action - string - * get_title - string - * text - HTML - - Example context (json): - { - "get_items": [ - { - "has_action": true, - "action": "#", - "get_title": "Test title", - "text": "First & fresh" - }, - { - "has_action": true, - "action": "#", - "get_title": "Second item & a title", - "text": "Second item" - }, - { - "has_action": false, - "text": "Third item" - }, - { - "has_action": false, - "text": "Fourth & last" - } - ] - } -}} - diff --git a/templates/core/notification_error.mustache b/templates/core/notification_error.mustache deleted file mode 100644 index 02d8798..0000000 --- a/templates/core/notification_error.mustache +++ /dev/null @@ -1,44 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core/notification_error - - Moodle notification template. - - The purpose of this template is to render an error notification. - - Classes required for JS: - * none - - Data attributes required for JS: - * none - - Context variables required for this template: - * message A cleaned string (use clean_text()) to display. - * extraclasses Additional classes to apply to the notification. - * closebutton Whether a close button should be displayed to dismiss the message. - * announce Whether the notification should be announced to screen readers. - - Example context (json): - { "message": "Your pants are on fire!", "closebutton": 1, "announce": 1, "extraclasses": "foo bar"} -}} - diff --git a/templates/core/notification_info.mustache b/templates/core/notification_info.mustache deleted file mode 100644 index bc7393d..0000000 --- a/templates/core/notification_info.mustache +++ /dev/null @@ -1,45 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core/notification_info - - Moodle notification template. - - The purpose of this template is to render an info notification. - - Classes required for JS: - * none - - Data attributes required for JS: - * none - - Context variables required for this template: - * message A cleaned string (use clean_text()) to display. - * extraclasses Additional classes to apply to the notification. - * closebutton Whether a close button should be displayed to dismiss the message. - * announce Whether the notification should be announced to screen readers. - - Example context (json): - { "message": "Your pants are on fire!", "closebutton": 1, "announce": 1, "extraclasses": "foo bar"} -}} - - diff --git a/templates/core/notification_success.mustache b/templates/core/notification_success.mustache deleted file mode 100644 index 74227e3..0000000 --- a/templates/core/notification_success.mustache +++ /dev/null @@ -1,44 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core/notification_success - - Moodle notification template. - - The purpose of this template is to render a success notification. - - Classes required for JS: - * none - - Data attributes required for JS: - * none - - Context variables required for this template: - * message A cleaned string (use clean_text()) to display. - * extraclasses Additional classes to apply to the notification. - * closebutton Whether a close button should be displayed to dismiss the message. - * announce Whether the notification should be announced to screen readers. - - Example context (json): - { "message": "Your pants are on fire!", "closebutton": 1, "announce": 1, "extraclasses": "foo bar"} -}} - diff --git a/templates/core/notification_warning.mustache b/templates/core/notification_warning.mustache deleted file mode 100644 index c0a2f06..0000000 --- a/templates/core/notification_warning.mustache +++ /dev/null @@ -1,44 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core/notification_warning - - Moodle notification template. - - The purpose of this template is to render a warning notification. - - Classes required for JS: - * none - - Data attributes required for JS: - * none - - Context variables required for this template: - * message A cleaned string (use clean_text()) to display. - * extraclasses Additional classes to apply to the notification. - * closebutton Whether a close button should be displayed to dismiss the message. - * announce Whether the notification should be announced to screen readers. - - Example context (json): - { "message": "Your pants are on fire!", "closebutton": 1, "announce": 1, "extraclasses": "foo bar"} -}} - \ No newline at end of file diff --git a/templates/core/paging_bar.mustache b/templates/core/paging_bar.mustache deleted file mode 100644 index d8423c5..0000000 --- a/templates/core/paging_bar.mustache +++ /dev/null @@ -1,48 +0,0 @@ -{{#haspages}} - -{{/haspages}} diff --git a/templates/core/preferences_groups.mustache b/templates/core/preferences_groups.mustache deleted file mode 100644 index 2913ab8..0000000 --- a/templates/core/preferences_groups.mustache +++ /dev/null @@ -1,18 +0,0 @@ -
-
- {{#groups}} -
-
-
-

{{title}}

-
- {{#nodes}} - - {{/nodes}} -
-
-
-
- {{/groups}} -
-
\ No newline at end of file diff --git a/templates/core/progress_bar.mustache b/templates/core/progress_bar.mustache deleted file mode 100644 index 56f8212..0000000 --- a/templates/core/progress_bar.mustache +++ /dev/null @@ -1,64 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core/progress_bar - - Progress bar. - - Example context (json): - { - "id": "progressbar_test", - "width": "500" - } -}} -
-
-

- -

-
-
- -{{! We must not use the JS helper otherwise this gets executed too late. }} - diff --git a/templates/core/select_time.mustache b/templates/core/select_time.mustache deleted file mode 100644 index f2c9029..0000000 --- a/templates/core/select_time.mustache +++ /dev/null @@ -1,38 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core/select_time - - Select time. - - Example context (json): - { - "id": "test-id", - "name": "test-name", - "label": "Test label", - "options": [ - {"name": "Option 1", "value": "1"}, - {"name": "Option 2", "value": "2"} - ] - } -}} - - diff --git a/templates/core/settings_link_page.mustache b/templates/core/settings_link_page.mustache deleted file mode 100644 index 5fe79eb..0000000 --- a/templates/core/settings_link_page.mustache +++ /dev/null @@ -1,153 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core/settings_link_page - - Displays the admin tree as a list of grouped links. - - Example context (json): - { - "node": { - "text": "Root of menu", - "key": "test0", - "display": true, - "children": [ - { - "text": "Child of menu", - "key": "test1", - "display": true, - "children": [] - } - ] - } - } -}} - - - -
-
-
-
-
-
-
-
    - {{#node.children}} - {{^children.count}} - {{#display}} -
  • {{text}}
  • - {{/display}} - {{/children.count}} - {{/node.children}} -
-
-
- - {{#node.children}} - {{#display}} - {{#children.count}} - {{#is_short_branch}} -
-
-
- {{#action}}

{{text}}

{{/action}} - {{^action}}

{{text}}

{{/action}} -

-
-
    - {{#children}} - {{> core/settings_link_page_single }} - {{/children}} -
-
-
- {{/is_short_branch}} - {{/children.count}} - {{/display}} - {{/node.children}} -
-
-
-
- {{#node.children}} - {{#children.count}} -
-
-
-
-
-
- {{#action}}

{{text}}

{{/action}} - {{^action}}

{{text}}

{{/action}} -

-
-
    - {{#children}} - {{#display}} - {{^children.count}} -
  • {{text}}
  • - {{/children.count}} - {{/display}} - {{/children}} -
-
-
- {{#children}} - {{#display}} - {{#children.count}} -
-
-
- {{#action}}

{{text}}

{{/action}} - {{^action}}

{{text}}

{{/action}} -

-
-
    - {{#children}} - {{> core/settings_link_page_single }} - {{/children}} -
-
-
- {{/children.count}} - {{/display}} - {{/children}} -
-
-
-
- {{/children.count}} - {{/node.children}} -
diff --git a/templates/core/settings_link_page_single.mustache b/templates/core/settings_link_page_single.mustache deleted file mode 100644 index beae54a..0000000 --- a/templates/core/settings_link_page_single.mustache +++ /dev/null @@ -1,46 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core/settings_link_page_single - - Displays the admin tree as a list of grouped links. - - Example context (json): - { - "text": "Root of menu", - "key": "test0", - "display": true, - "children": [] - } -}} -{{#display}} - {{#action}} -
  • {{text}}
  • - {{/action}} - {{^action}} -
  • {{text}}
  • - {{/action}} - {{#children.count}} -
  • -
      - {{#children}} - {{> core/settings_link_page_single }} - {{/children}} -
    -
  • - {{/children.count}} -{{/display}} diff --git a/templates/core/signup_form_layout.mustache b/templates/core/signup_form_layout.mustache deleted file mode 100644 index f62655e..0000000 --- a/templates/core/signup_form_layout.mustache +++ /dev/null @@ -1,33 +0,0 @@ -{{! - @template core/signup_form_layout - - Example context (json): - { - "logourl": "https://moodle.org/logo/moodle-logo.svg", - "sitename": "Site name", - "formhtml": "

    (Form html would go here)

    " - } -}} -
    -
    -
    -
    -
    -
    - {{#logourl}} -

    {{sitename}}

    - {{/logourl}} - {{^logourl}} -

    {{sitename}}

    - {{/logourl}} -
    -
    -
    -

    {{#str}}newaccount{{/str}}

    -
    - {{{formhtml}}} -
    -
    -
    -
    -
    diff --git a/templates/core/single_button.mustache b/templates/core/single_button.mustache deleted file mode 100644 index 265cc1d..0000000 --- a/templates/core/single_button.mustache +++ /dev/null @@ -1,61 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core/single_button - - Moodle template for a single button submit form. - - Classes required for JS: - * none - - Data attributes required for JS: - * none - - Context variables required for this template: - * classes - a list of classes to wrap the form. - * method - get or post - * url - the action url to submit to - * formid - optional id value for the form - * params - array of params with name and value attributes - * primary - true if this is a primary action button - * id - id for the element - * tooltip - tooltip text for the button - * disabled - true if this element is disabled - * label - text to show on the button - - Example context (json): - { "method" : "get", - "url" : "#", - "primary" : true, - "tooltip" : "This is a tooltip", - "label" : "This is a the button text" - } -}} -
    -
    - {{#params}} - - {{/params}} - -
    -
    -{{#hasactions}} - {{> core/actions }} -{{/hasactions}} diff --git a/templates/core/skip_links.mustache b/templates/core/skip_links.mustache deleted file mode 100644 index d8c49a7..0000000 --- a/templates/core/skip_links.mustache +++ /dev/null @@ -1,16 +0,0 @@ -{{! - @template core/skip_links - - Example context (json): - { - "links": [ - {"url": "http://example.com/link1", "text": "Link 1"}, - {"url": "http://example.com/link2", "text": "Link 2"} - ] - } -}} -
    -{{#links}} - {{{text}}} -{{/links}} -
    \ No newline at end of file diff --git a/templates/core/tabtree.mustache b/templates/core/tabtree.mustache deleted file mode 100644 index 73d112a..0000000 --- a/templates/core/tabtree.mustache +++ /dev/null @@ -1,44 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core/tabtree - - Tab tree. - - Example context (json): - { - "tabs": [{ - "active": "true", - "inactive": "false", - "link": [{ - "link": "http://moodle.org" - }], - "title": "Moodle.org", - "text": "Moodle community" - }] - } -}} - -{{#secondrow}} - {{>core/tabtree}} -{{/secondrow}} diff --git a/templates/core_admin/setting.mustache b/templates/core_admin/setting.mustache deleted file mode 100644 index bcbd735..0000000 --- a/templates/core_admin/setting.mustache +++ /dev/null @@ -1,43 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Setting. -}} -
    -
    - - {{{name}}} -
    -
    - {{#error}} -
    {{error}}
    - {{/error}} - {{{element}}} - {{#default}} -
    {{{default}}}
    - {{/default}} -
    {{{description}}}
    -
    -
    diff --git a/templates/core_admin/setting_configcolourpicker.mustache b/templates/core_admin/setting_configcolourpicker.mustache deleted file mode 100644 index a938721..0000000 --- a/templates/core_admin/setting_configcolourpicker.mustache +++ /dev/null @@ -1,30 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Setting configcolourpicker. -}} -
    -
    - {{#icon}} - {{>core/pix_icon}} - {{/icon}} -
    - - {{#haspreviewconfig}} - - {{/haspreviewconfig}} -
    diff --git a/templates/core_admin/setting_configduration.mustache b/templates/core_admin/setting_configduration.mustache deleted file mode 100644 index 50c355d..0000000 --- a/templates/core_admin/setting_configduration.mustache +++ /dev/null @@ -1,31 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Setting configduration. -}} -
    -
    - - - -
    -
    - diff --git a/templates/core_admin/setting_configfile.mustache b/templates/core_admin/setting_configfile.mustache deleted file mode 100644 index d382a8a..0000000 --- a/templates/core_admin/setting_configfile.mustache +++ /dev/null @@ -1,33 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Setting configfile. -}} -
    -
    - - {{#showvalidity}} - {{#valid}} - - {{/valid}} - {{^valid}} - - {{/valid}} - {{/showvalidity}} -
    -
    - diff --git a/templates/core_admin/setting_configmultiselect.mustache b/templates/core_admin/setting_configmultiselect.mustache deleted file mode 100644 index 149f16b..0000000 --- a/templates/core_admin/setting_configmultiselect.mustache +++ /dev/null @@ -1,28 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Setting configmultiselect. -}} -
    - - -
    - diff --git a/templates/core_admin/setting_configmultiselect_optgroup.mustache b/templates/core_admin/setting_configmultiselect_optgroup.mustache deleted file mode 100644 index 6398e75..0000000 --- a/templates/core_admin/setting_configmultiselect_optgroup.mustache +++ /dev/null @@ -1,35 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Setting configmultiselect with optgroup support. -}} -
    - - -
    - diff --git a/templates/core_admin/setting_configselect.mustache b/templates/core_admin/setting_configselect.mustache deleted file mode 100644 index 0f5c8ed..0000000 --- a/templates/core_admin/setting_configselect.mustache +++ /dev/null @@ -1,27 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Setting configselect. -}} -
    - -
    - diff --git a/templates/core_admin/setting_configselect_optgroup.mustache b/templates/core_admin/setting_configselect_optgroup.mustache deleted file mode 100644 index 6628240..0000000 --- a/templates/core_admin/setting_configselect_optgroup.mustache +++ /dev/null @@ -1,35 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Setting configselect with optgroup support. -}} -
    - -
    - - diff --git a/templates/core_admin/setting_configtext.mustache b/templates/core_admin/setting_configtext.mustache deleted file mode 100644 index dba4fd7..0000000 --- a/templates/core_admin/setting_configtext.mustache +++ /dev/null @@ -1,22 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Setting configtext. -}} -
    - -
    diff --git a/templates/core_admin/setting_configtextarea.mustache b/templates/core_admin/setting_configtextarea.mustache deleted file mode 100644 index f8430b8..0000000 --- a/templates/core_admin/setting_configtextarea.mustache +++ /dev/null @@ -1,22 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Setting configtextarea. -}} -
    - -
    diff --git a/templates/core_admin/setting_configtime.mustache b/templates/core_admin/setting_configtime.mustache deleted file mode 100644 index b8e9666..0000000 --- a/templates/core_admin/setting_configtime.mustache +++ /dev/null @@ -1,36 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Setting configtime. -}} -
    -
    - - : - - -
    -
    - diff --git a/templates/core_admin/setting_courselist_frontpage.mustache b/templates/core_admin/setting_courselist_frontpage.mustache deleted file mode 100644 index de5d342..0000000 --- a/templates/core_admin/setting_courselist_frontpage.mustache +++ /dev/null @@ -1,29 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Setting courselist_frontpage. -}} -
    - {{#selects}} - -
    - {{/selects}} -
    diff --git a/templates/core_admin/setting_devicedetectregex.mustache b/templates/core_admin/setting_devicedetectregex.mustache deleted file mode 100644 index 7f3ac48..0000000 --- a/templates/core_admin/setting_devicedetectregex.mustache +++ /dev/null @@ -1,39 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Setting devicedetectregex. -}} - - - - - - - - - {{#expressions}} - - - - - {{/expressions}} - -
    {{#str}}devicedetectregexexpression, admin{{/str}}{{#str}}devicedetectregexvalue, admin{{/str}}
    - - - -
    diff --git a/templates/core_admin/setting_emoticons.mustache b/templates/core_admin/setting_emoticons.mustache deleted file mode 100644 index fe2c75c..0000000 --- a/templates/core_admin/setting_emoticons.mustache +++ /dev/null @@ -1,51 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Setting emoticons. -}} -
    - - - - - - - - - - - - {{#emoticons}} - - {{#fields}} - - {{/fields}} - - - {{/emoticons}} - -
    {{#str}}emoticontext, admin{{/str}}{{#str}}emoticonimagename, admin{{/str}}{{#str}}emoticoncomponent, admin{{/str}}{{#str}}emoticonalt, admin{{/str}}
    - - - {{#icon}} - {{>core/pix_icon}} - {{/icon}} -
    -
    - diff --git a/templates/core_admin/setting_gradecat_combo.mustache b/templates/core_admin/setting_gradecat_combo.mustache deleted file mode 100644 index b06d29d..0000000 --- a/templates/core_admin/setting_gradecat_combo.mustache +++ /dev/null @@ -1,31 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Setting configselect. -}} -
    - - - - - -
    - diff --git a/templates/core_admin/settings.mustache b/templates/core_admin/settings.mustache deleted file mode 100644 index 1de9250..0000000 --- a/templates/core_admin/settings.mustache +++ /dev/null @@ -1,39 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Settings. -}} -
    -
    - {{#params}} - - {{/params}} - - - {{#title}} -

    {{title}}

    - {{/title}} - {{{settings}}} - {{#showsave}} -
    -
    - -
    -
    - {{/showsave}} -
    -
    diff --git a/templates/core_admin/settings_search_results.mustache b/templates/core_admin/settings_search_results.mustache deleted file mode 100644 index 4ecdcd6..0000000 --- a/templates/core_admin/settings_search_results.mustache +++ /dev/null @@ -1,49 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Settings. -}} -
    -
    - - -
    -
    -
    - {{#hasresults}} - {{#results}} -

    {{#str}}searchresults, admin{{/str}} - {{{title}}}

    -
    - {{#settings}} -
    - {{{.}}} - {{/settings}} -
    - {{/results}} - {{#showsave}} -
    -
    - -
    -
    - {{/showsave}} - {{/hasresults}} - {{^hasresults}} - {{#str}}noresults, admin{{/str}} - {{/hasresults}} -
    -
    diff --git a/templates/core_calendar/minicalendar_day_link.mustache b/templates/core_calendar/minicalendar_day_link.mustache deleted file mode 100644 index 072345d..0000000 --- a/templates/core_calendar/minicalendar_day_link.mustache +++ /dev/null @@ -1,64 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core_calendar/minicalendar_day_link - - Displays link to calendar day in mini calendar, with hover tooltip. - - Example context (json): - { - "day": "Today", - "url": "http://example.com/", - "title": "Monday 2nd January", - "content": "Test site event" - } -}} -{{$day}}{{day}}{{/day}} - -{{#js}} -require(['jquery'], function($) { - require(['theme_boost/popover'], function() { - var target = $("#calendar-day-popover-link-{{courseid}}-{{year}}-{{yday}}-{{uniqid}}"); - target.popover({ - content: function() { - var source = target.next().find("> *:not('.hidden')"); - var content = $('
    '); - - if (source.length) { - content.html(source.clone(false)); - } else { - content.html(target.data('alternate')); - } - - return content.html(); - } - }); - }); -}); -{{/js}} diff --git a/templates/core_form/editor_textarea.mustache b/templates/core_form/editor_textarea.mustache deleted file mode 100644 index 22ed026..0000000 --- a/templates/core_form/editor_textarea.mustache +++ /dev/null @@ -1,47 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core_form/editor_textarea - - Displays an editor field in a form. - - Example context (json): - { - "name": "test", - "id": "test0", - "rows": 4, - "cols": 20, - "value": "Sample text", - "format": 3 - } -}} -
    - -
    -
    - {{#hasformats}} - - {{/hasformats}} - {{^hasformats}} - - {{/hasformats}} -
    diff --git a/templates/core_form/element-advcheckbox-inline.mustache b/templates/core_form/element-advcheckbox-inline.mustache deleted file mode 100644 index d22db82..0000000 --- a/templates/core_form/element-advcheckbox-inline.mustache +++ /dev/null @@ -1,39 +0,0 @@ - -{{#text}} - {{{.}}} -{{/text}} -{{{helpbutton}}} - -{{^element.frozen}} -{{#js}} -require(['theme_boost/form-display-errors'], function(module) { - module.enhance({{#quote}}{{element.id}}{{/quote}}); -}); -{{/js}} -{{/element.frozen}} diff --git a/templates/core_form/element-advcheckbox.mustache b/templates/core_form/element-advcheckbox.mustache deleted file mode 100644 index 8ec8fe9..0000000 --- a/templates/core_form/element-advcheckbox.mustache +++ /dev/null @@ -1,55 +0,0 @@ -
    -
    - {{#text}} - - {{/text}} -
    -
    - - - {{#advanced}}!{{/advanced}} - {{{helpbutton}}} - - -
    -
    -{{^element.frozen}} -{{#js}} -require(['theme_boost/form-display-errors'], function(module) { - module.enhance({{#quote}}{{element.id}}{{/quote}}); -}); -{{/js}} -{{/element.frozen}} diff --git a/templates/core_form/element-autocomplete-inline.mustache b/templates/core_form/element-autocomplete-inline.mustache deleted file mode 100644 index 2305512..0000000 --- a/templates/core_form/element-autocomplete-inline.mustache +++ /dev/null @@ -1,40 +0,0 @@ -{{< core_form/element-template-inline }} - {{$element}} - {{^element.frozen}} - - {{/element.frozen}} - {{#element.frozen}} - {{#element.options}} - {{#selected}} - {{{text}}} - {{^element.hardfrozen}} - - {{/element.hardfrozen}} - {{/selected}} - {{/element.options}} - {{/element.frozen}} - {{/element}} -{{/ core_form/element-template-inline }} -{{^element.frozen}} -{{#js}} -require(['core/form-autocomplete'], function(module) { - module.enhance({{#quote}}#{{element.id}}{{/quote}}, - {{element.tags}}, - {{#quote}}{{element.ajax}}{{/quote}}, - {{#quote}}{{element.placeholder}}{{/quote}}, - {{element.casesensitive}}, - {{element.showsuggestions}}, - {{#quote}}{{element.noselectionstring}}{{/quote}}); -}); -{{/js}} -{{/element.frozen}} diff --git a/templates/core_form/element-autocomplete.mustache b/templates/core_form/element-autocomplete.mustache deleted file mode 100644 index 4ed7613..0000000 --- a/templates/core_form/element-autocomplete.mustache +++ /dev/null @@ -1,40 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{^element.frozen}} - - {{/element.frozen}} - {{#element.frozen}} - {{#element.options}} - {{#selected}} - {{{text}}} - {{^element.hardfrozen}} - - {{/element.hardfrozen}} - {{/selected}} - {{/element.options}} - {{/element.frozen}} - {{/element}} -{{/ core_form/element-template }} -{{^element.frozen}} -{{#js}} -require(['core/form-autocomplete'], function(module) { - module.enhance({{#quote}}#{{element.id}}{{/quote}}, - {{element.tags}}, - {{#quote}}{{element.ajax}}{{/quote}}, - {{#quote}}{{element.placeholder}}{{/quote}}, - {{element.casesensitive}}, - {{element.showsuggestions}}, - {{#quote}}{{element.noselectionstring}}{{/quote}}); -}); -{{/js}} -{{/element.frozen}} diff --git a/templates/core_form/element-button-inline.mustache b/templates/core_form/element-button-inline.mustache deleted file mode 100644 index fff81f9..0000000 --- a/templates/core_form/element-button-inline.mustache +++ /dev/null @@ -1,18 +0,0 @@ -{{< core_form/element-template-inline }} - {{$element}} - {{^element.frozen}} - - {{/element.frozen}} - {{/element}} -{{/ core_form/element-template-inline }} diff --git a/templates/core_form/element-button.mustache b/templates/core_form/element-button.mustache deleted file mode 100644 index 10d4851..0000000 --- a/templates/core_form/element-button.mustache +++ /dev/null @@ -1,17 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{^element.frozen}} - - {{/element.frozen}} - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-checkbox-inline.mustache b/templates/core_form/element-checkbox-inline.mustache deleted file mode 100644 index 150d2a0..0000000 --- a/templates/core_form/element-checkbox-inline.mustache +++ /dev/null @@ -1,39 +0,0 @@ - -{{#text}} - {{{.}}} -{{/text}} -{{{helpbutton}}} - -{{^element.frozen}} -{{#js}} -require(['theme_boost/form-display-errors'], function(module) { - module.enhance({{#quote}}{{element.id}}{{/quote}}); -}); -{{/js}} -{{/element.frozen}} diff --git a/templates/core_form/element-checkbox.mustache b/templates/core_form/element-checkbox.mustache deleted file mode 100644 index ad55331..0000000 --- a/templates/core_form/element-checkbox.mustache +++ /dev/null @@ -1,55 +0,0 @@ -
    -
    - {{#text}} - - {{/text}} -
    -
    - - - {{#advanced}}!{{/advanced}} - {{{helpbutton}}} - - -
    -
    -{{^element.frozen}} -{{#js}} -require(['theme_boost/form-display-errors'], function(module) { - module.enhance({{#quote}}{{element.id}}{{/quote}}); -}); -{{/js}} -{{/element.frozen}} diff --git a/templates/core_form/element-date_selector-inline.mustache b/templates/core_form/element-date_selector-inline.mustache deleted file mode 100644 index 8a06ef7..0000000 --- a/templates/core_form/element-date_selector-inline.mustache +++ /dev/null @@ -1,10 +0,0 @@ -{{< core_form/element-template-inline }} - {{$element}} - - {{#element.elements}} - {{{separator}}} - {{{html}}} - {{/element.elements}} - - {{/element}} -{{/ core_form/element-template-inline }} diff --git a/templates/core_form/element-date_selector.mustache b/templates/core_form/element-date_selector.mustache deleted file mode 100644 index 470fa81..0000000 --- a/templates/core_form/element-date_selector.mustache +++ /dev/null @@ -1,10 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - - {{#element.elements}} - {{{separator}}} - {{{html}}} - {{/element.elements}} - - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-date_time_selector-inline.mustache b/templates/core_form/element-date_time_selector-inline.mustache deleted file mode 100644 index ee510a3..0000000 --- a/templates/core_form/element-date_time_selector-inline.mustache +++ /dev/null @@ -1,10 +0,0 @@ -{{< core_form/element-template-inline }} - {{$element}} -
    - {{#element.elements}} - {{{separator}}} - {{{html}}} - {{/element.elements}} -
    - {{/element}} -{{/ core_form/element-template-inline }} diff --git a/templates/core_form/element-date_time_selector.mustache b/templates/core_form/element-date_time_selector.mustache deleted file mode 100644 index f93459e..0000000 --- a/templates/core_form/element-date_time_selector.mustache +++ /dev/null @@ -1,10 +0,0 @@ -{{< core_form/element-template }} - {{$element}} -
    - {{#element.elements}} - {{{separator}}} - {{{html}}} - {{/element.elements}} -
    - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-defaultcustom-inline.mustache b/templates/core_form/element-defaultcustom-inline.mustache deleted file mode 100644 index 8ca388e..0000000 --- a/templates/core_form/element-defaultcustom-inline.mustache +++ /dev/null @@ -1,43 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core_form/element-defaultcustom-inline - - Defaultcustom form element template. - - Example context (json): - { - "element": { - "elements": [ - {"html": "", - "separator": ""}, - {"html": "", - "separator": ""} - ] - } - } -}} -{{< core_form/element-template-inline }} - {{$element}} - - {{#element.elements}} - {{{separator}}} - {{{html}}} - {{/element.elements}} - - {{/element}} -{{/ core_form/element-template-inline }} diff --git a/templates/core_form/element-defaultcustom.mustache b/templates/core_form/element-defaultcustom.mustache deleted file mode 100644 index 3c6fbda..0000000 --- a/templates/core_form/element-defaultcustom.mustache +++ /dev/null @@ -1,43 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core_form/element-defaultcustom - - Defaultcustom form element template. - - Example context (json): - { - "element": { - "elements": [ - {"html": "", - "separator": ""}, - {"html": "", - "separator": ""} - ] - } - } -}} -{{< core_form/element-template }} - {{$element}} - - {{#element.elements}} - {{{separator}}} - {{{html}}} - {{/element.elements}} - - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-duration-inline.mustache b/templates/core_form/element-duration-inline.mustache deleted file mode 100644 index 4acfd0c..0000000 --- a/templates/core_form/element-duration-inline.mustache +++ /dev/null @@ -1 +0,0 @@ -{{> core_form/element-group-inline }} diff --git a/templates/core_form/element-duration.mustache b/templates/core_form/element-duration.mustache deleted file mode 100644 index 9a4e5cb..0000000 --- a/templates/core_form/element-duration.mustache +++ /dev/null @@ -1 +0,0 @@ -{{> core_form/element-group }} diff --git a/templates/core_form/element-editor.mustache b/templates/core_form/element-editor.mustache deleted file mode 100644 index 6f02ca0..0000000 --- a/templates/core_form/element-editor.mustache +++ /dev/null @@ -1,5 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{{element.html}}} - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-filemanager.mustache b/templates/core_form/element-filemanager.mustache deleted file mode 100644 index 6f02ca0..0000000 --- a/templates/core_form/element-filemanager.mustache +++ /dev/null @@ -1,5 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{{element.html}}} - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-filepicker.mustache b/templates/core_form/element-filepicker.mustache deleted file mode 100644 index 6f02ca0..0000000 --- a/templates/core_form/element-filepicker.mustache +++ /dev/null @@ -1,5 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{{element.html}}} - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-filetypes.mustache b/templates/core_form/element-filetypes.mustache deleted file mode 100644 index 9a4e5cb..0000000 --- a/templates/core_form/element-filetypes.mustache +++ /dev/null @@ -1 +0,0 @@ -{{> core_form/element-group }} diff --git a/templates/core_form/element-grading.mustache b/templates/core_form/element-grading.mustache deleted file mode 100644 index 6f02ca0..0000000 --- a/templates/core_form/element-grading.mustache +++ /dev/null @@ -1,5 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{{element.html}}} - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-group-inline.mustache b/templates/core_form/element-group-inline.mustache deleted file mode 100644 index 504ff4b..0000000 --- a/templates/core_form/element-group-inline.mustache +++ /dev/null @@ -1,8 +0,0 @@ -{{< core_form/element-template-inline }} - {{$element}} - {{#element.elements}} - {{{separator}}} - {{{html}}} - {{/element.elements}} - {{/element}} -{{/ core_form/element-template-inline }} diff --git a/templates/core_form/element-group.mustache b/templates/core_form/element-group.mustache deleted file mode 100644 index 9af767f..0000000 --- a/templates/core_form/element-group.mustache +++ /dev/null @@ -1,8 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{#element.elements}} - {{{separator}}} - {{{html}}} - {{/element.elements}} - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-modgrade.mustache b/templates/core_form/element-modgrade.mustache deleted file mode 100644 index 9a4e5cb..0000000 --- a/templates/core_form/element-modgrade.mustache +++ /dev/null @@ -1 +0,0 @@ -{{> core_form/element-group }} diff --git a/templates/core_form/element-modvisible.mustache b/templates/core_form/element-modvisible.mustache deleted file mode 100644 index e918676..0000000 --- a/templates/core_form/element-modvisible.mustache +++ /dev/null @@ -1 +0,0 @@ -{{> core_form/element-select }} diff --git a/templates/core_form/element-password.mustache b/templates/core_form/element-password.mustache deleted file mode 100644 index a5c734e..0000000 --- a/templates/core_form/element-password.mustache +++ /dev/null @@ -1,15 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{^element.frozen}} - - {{/element.frozen}} - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-passwordunmask.mustache b/templates/core_form/element-passwordunmask.mustache deleted file mode 100644 index 56a5eeb..0000000 --- a/templates/core_form/element-passwordunmask.mustache +++ /dev/null @@ -1,88 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core_form/element-passwordunmask - - Moodle passwordunmask form element template. - - The purpose of this template is to render a passwordunmask form element. - - Classes required for JS: - * none - - Data attributes required for JS: - * none - - Context variables required for this template: - * element - * id - * name - * value - * size - - Example context (json): - { - "element": { - "id": "example_password_unmask", - "name": "example", - "value": "Password1!", - "size": 40 - } - } - -}} -{{< core_form/element-template }} - {{$ element }} - - - - - {{^ element.frozen }} - - {{/ element.frozen }} - {{> core_form/element-passwordunmask-fill }} - {{^ element.frozen }} - {{# pix }} t/passwordunmask-edit, core, {{# str }} passwordunmaskedithint, form {{/ str }}{{/ pix }} - - {{/ element.frozen }} - - {{# pix }} t/passwordunmask-reveal, core, {{# str }} passwordunmaskrevealhint, form {{/ str }}{{/ pix }} - - - - {{/ element }} -{{/ core_form/element-template }} -{{#js}} -require(['core_form/passwordunmask'], function(PasswordUnmask) { - new PasswordUnmask("{{ element.id }}"); -}); -{{/ js }} diff --git a/templates/core_form/element-questioncategory-inline.mustache b/templates/core_form/element-questioncategory-inline.mustache deleted file mode 100644 index d9b9025..0000000 --- a/templates/core_form/element-questioncategory-inline.mustache +++ /dev/null @@ -1 +0,0 @@ -{{> core_form/element-selectgroups-inline }} diff --git a/templates/core_form/element-questioncategory.mustache b/templates/core_form/element-questioncategory.mustache deleted file mode 100644 index 8d7f75c..0000000 --- a/templates/core_form/element-questioncategory.mustache +++ /dev/null @@ -1 +0,0 @@ -{{> core_form/element-selectgroups }} diff --git a/templates/core_form/element-radio-inline.mustache b/templates/core_form/element-radio-inline.mustache deleted file mode 100644 index 6b57bba..0000000 --- a/templates/core_form/element-radio-inline.mustache +++ /dev/null @@ -1,40 +0,0 @@ -{{! -@template theme_ilb/core_form/element-radio-online - - Example context (json): - { - "element": { - "id": "id_test_radio0", - "name": "test_radio_button" - } - } - -}} - -{{#text}} - {{{.}}} -{{/text}} -{{{helpbutton}}} - -{{^element.frozen}} -{{#js}} -require(['theme_boost/form-display-errors'], function(module) { - module.enhance({{#quote}}{{element.id}}{{/quote}}); -}); -{{/js}} -{{/element.frozen}} diff --git a/templates/core_form/element-radio.mustache b/templates/core_form/element-radio.mustache deleted file mode 100644 index 8347af2..0000000 --- a/templates/core_form/element-radio.mustache +++ /dev/null @@ -1,56 +0,0 @@ -{{! - @template theme_ilb/core_form/element-radio - - Example context (json): - { - "element": { - "id": "id_test_radio0", - "name": "test_radio_button" - } - } - -}} -
    -
    - {{#text}} - - {{/text}} -
    -
    - - - {{#required}}{{#pix}}req, core, {{#str}}required{{/str}}{{/pix}}{{/required}} - {{#advanced}}!{{/advanced}} - {{{helpbutton}}} - - -
    -
    -{{^element.frozen}} -{{#js}} -require(['theme_boost/form-display-errors'], function(module) { - module.enhance({{#quote}}{{element.id}}{{/quote}}); -}); -{{/js}} -{{/element.frozen}} diff --git a/templates/core_form/element-recaptcha.mustache b/templates/core_form/element-recaptcha.mustache deleted file mode 100644 index 6f02ca0..0000000 --- a/templates/core_form/element-recaptcha.mustache +++ /dev/null @@ -1,5 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{{element.html}}} - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-select-inline.mustache b/templates/core_form/element-select-inline.mustache deleted file mode 100644 index 4035b67..0000000 --- a/templates/core_form/element-select-inline.mustache +++ /dev/null @@ -1,30 +0,0 @@ -{{< core_form/element-template-inline }} - {{$element}} - {{^element.frozen}} - - {{/element.frozen}} - {{#element.frozen}} - {{#element.options}} - {{#selected}} - {{{text}}} - {{^element.hardfrozen}} - - {{/element.hardfrozen}} - {{/selected}} - {{/element.options}} - {{/element.frozen}} - {{/element}} -{{/ core_form/element-template-inline }} diff --git a/templates/core_form/element-select.mustache b/templates/core_form/element-select.mustache deleted file mode 100644 index ac43dd8..0000000 --- a/templates/core_form/element-select.mustache +++ /dev/null @@ -1,122 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core_form/element-select - - Simple select form element template. - - Context variables required for this template: - * id - Element id, - * name - Element name, - * label - Element label, - * multiple - multi select?, - * checked - checked?, - * error - Is there an error associated with this element?, - * size - Element size, - * value - Element value, - * helpbutton - Helpbutton, - * hiddenlabel - Element hidden flag, - * frozen - Element frozen flag, - * hardfrozen - Element hard fronzen flag, - * extraclasses - Extra classes assocaited, - * type - Element type, - * attributes - Element attributes, - * options - [ - { - text - Option text, - value - Option value, - selected - Selected?, - disabled - Disabled?, - optionattributes - Option attributes - } - ] - - Example context (json): - { - "element": { - "id": "id_maildisplay", - "name": "maildisplay", - "label": null, - "multiple": null, - "checked": null, - "error": null, - "size": null, - "value": null, - "helpbutton": "", - "hiddenlabel": false, - "frozen": false, - "hardfrozen": false, - "extraclasses": null, - "type": "select", - "attributes": "", - "options": [ - { - "text": "Hide my email address from everyone", - "value": 0, - "selected": false, - "disabled": false, - "optionattributes": "" - }, - { - "text": "Allow everyone to see my email address", - "value": 1, - "selected": true, - "disabled": false, - "optionattributes": "" - }, - { - "text": "Allow only other course members to see my email address", - "value": 2, - "selected": false, - "disabled": false, - "optionattributes": "" - } - ] - } - } -}} -{{< core_form/element-template }} - {{$element}} - {{^element.frozen}} - - {{/element.frozen}} - {{#element.frozen}} - {{#element.options}} - {{#selected}} - {{{text}}} - {{^element.hardfrozen}} - - {{/element.hardfrozen}} - {{/selected}} - {{/element.options}} - {{/element.frozen}} - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-selectgroups-inline.mustache b/templates/core_form/element-selectgroups-inline.mustache deleted file mode 100644 index 72e767a..0000000 --- a/templates/core_form/element-selectgroups-inline.mustache +++ /dev/null @@ -1,32 +0,0 @@ -{{< core_form/element-template-inline }} - {{$element}} - {{^element.frozen}} - - {{/element.frozen}} - {{#element.frozen}} - {{#element.optiongroups}} - {{#options}} - {{#selected}}{{{text}}}{{/selected}} - {{/options}} - {{/element.optiongroups}} - {{/element.frozen}} - {{/element}} -{{/ core_form/element-template-inline }} diff --git a/templates/core_form/element-selectgroups.mustache b/templates/core_form/element-selectgroups.mustache deleted file mode 100644 index 88fef74..0000000 --- a/templates/core_form/element-selectgroups.mustache +++ /dev/null @@ -1,32 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{^element.frozen}} - - {{/element.frozen}} - {{#element.frozen}} - {{#element.optiongroups}} - {{#options}} - {{#selected}}{{{text}}}{{/selected}} - {{/options}} - {{/element.optiongroups}} - {{/element.frozen}} - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-selectwithlink.mustache b/templates/core_form/element-selectwithlink.mustache deleted file mode 100644 index 4abf0aa..0000000 --- a/templates/core_form/element-selectwithlink.mustache +++ /dev/null @@ -1,23 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{^element.frozen}} - - {{/element.frozen}} - {{#element.frozen}} - {{#element.options}} - {{#selected}}{{{text}}}{{/selected}} - {{/element.options}} - {{/element.frozen}} - {{element.linklabel}} - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-selectyesno-inline.mustache b/templates/core_form/element-selectyesno-inline.mustache deleted file mode 100644 index f2366e0..0000000 --- a/templates/core_form/element-selectyesno-inline.mustache +++ /dev/null @@ -1 +0,0 @@ -{{> core_form/element-select-inline }} diff --git a/templates/core_form/element-selectyesno.mustache b/templates/core_form/element-selectyesno.mustache deleted file mode 100644 index e918676..0000000 --- a/templates/core_form/element-selectyesno.mustache +++ /dev/null @@ -1 +0,0 @@ -{{> core_form/element-select }} diff --git a/templates/core_form/element-static.mustache b/templates/core_form/element-static.mustache deleted file mode 100644 index 7368c41..0000000 --- a/templates/core_form/element-static.mustache +++ /dev/null @@ -1,44 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core_form/element-static - - Static form element template. A static form element is an element that just outputs raw HTML. - - Classes required for JS: - * none - - Data attributes required for JS: - * none - - Context variables required for this template: - * element - A context exported from an mform element. - * element.html - The raw html to display. - - Example context (json): - { - "label": "Example label", - "element": { "html": "Example HTML", "staticlabel": true } - } -}} -{{< core_form/element-template }} - {{$element}} -
    - {{{element.html}}} -
    - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-submit-inline.mustache b/templates/core_form/element-submit-inline.mustache deleted file mode 100644 index 7115850..0000000 --- a/templates/core_form/element-submit-inline.mustache +++ /dev/null @@ -1,15 +0,0 @@ -{{< core_form/element-template-inline }} - {{$element}} - {{^element.frozen}} - - {{/element.frozen}} - {{/element}} -{{/ core_form/element-template-inline }} diff --git a/templates/core_form/element-submit.mustache b/templates/core_form/element-submit.mustache deleted file mode 100644 index eca4f2b..0000000 --- a/templates/core_form/element-submit.mustache +++ /dev/null @@ -1,18 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{^element.frozen}} - - {{/element.frozen}} - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-tags-inline.mustache b/templates/core_form/element-tags-inline.mustache deleted file mode 100644 index 5552bac..0000000 --- a/templates/core_form/element-tags-inline.mustache +++ /dev/null @@ -1,39 +0,0 @@ -{{< core_form/element-template-inline }} - {{$element}} - {{^element.frozen}} - - - {{/element.frozen}} - {{#element.frozen}} - {{#element.options}} - {{#selected}}{{{text}}}{{/selected}} - {{/element.options}} - {{/element.frozen}} - {{#element.managestandardtagsurl}} - {{#str}}managestandardtags, core_tag{{/str}} - {{/element.managestandardtagsurl}} - {{/element}} -{{/ core_form/element-template-inline }} -{{^element.frozen}} -{{#js}} -require(['core/form-autocomplete'], function(module) { - module.enhance({{#quote}}#{{element.id}}{{/quote}}, - {{element.tags}}, - {{#quote}}{{element.ajax}}{{/quote}}, - {{#quote}}{{element.placeholder}}{{/quote}}, - {{element.casesensitive}}, - {{element.showsuggestions}}, - {{#quote}}{{element.noselectionstring}}{{/quote}}); -}); -{{/js}} -{{/element.frozen}} diff --git a/templates/core_form/element-tags.mustache b/templates/core_form/element-tags.mustache deleted file mode 100644 index 5f95675..0000000 --- a/templates/core_form/element-tags.mustache +++ /dev/null @@ -1,39 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{^element.frozen}} - - - {{/element.frozen}} - {{#element.frozen}} - {{#element.options}} - {{#selected}}{{{text}}}{{/selected}} - {{/element.options}} - {{/element.frozen}} - {{#element.managestandardtagsurl}} - {{#str}}managestandardtags, core_tag{{/str}} - {{/element.managestandardtagsurl}} - {{/element}} -{{/ core_form/element-template }} -{{^element.frozen}} -{{#js}} -require(['core/form-autocomplete'], function(module) { - module.enhance({{#quote}}#{{element.id}}{{/quote}}, - {{element.tags}}, - {{#quote}}{{element.ajax}}{{/quote}}, - {{#quote}}{{element.placeholder}}{{/quote}}, - {{element.casesensitive}}, - {{element.showsuggestions}}, - {{#quote}}{{element.noselectionstring}}{{/quote}}); -}); -{{/js}} -{{/element.frozen}} diff --git a/templates/core_form/element-template-inline.mustache b/templates/core_form/element-template-inline.mustache deleted file mode 100644 index 95f1fa7..0000000 --- a/templates/core_form/element-template-inline.mustache +++ /dev/null @@ -1,20 +0,0 @@ -
    - - - {{$ element }} - - {{/ element }} - - -
    -{{#js}} -require(['theme_boost/form-display-errors'], function(module) { - module.enhance({{#quote}}{{element.id}}{{/quote}}); -}); -{{/js}} diff --git a/templates/core_form/element-template.mustache b/templates/core_form/element-template.mustache deleted file mode 100644 index 2588e2c..0000000 --- a/templates/core_form/element-template.mustache +++ /dev/null @@ -1,75 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template core_form/element-template - - Template for the form element wrapper template. - - Context variables required for this template: - * label - * required - * advanced - * helpbutton - * error - * element - * id - * name - - Example context (json): - { - "label": "Course full name", - "required": true, - "advanced": false, - "error": null, - "element": { - "id": "id_fullname", - "name": "fullname" - } - } -}} -
    -
    - - {{#required}}{{#pix}}req, core, {{#str}}required{{/str}}{{/pix}}{{/required}} - {{#advanced}}!{{/advanced}} - {{{helpbutton}}} - - {{^element.staticlabel}} - - {{/element.staticlabel}} - {{#element.staticlabel}} - - {{{label}}} - - {{/element.staticlabel}} -
    -
    - {{$ element }} - - {{/ element }} - -
    -
    -{{#js}} -require(['theme_boost/form-display-errors'], function(module) { - module.enhance({{#quote}}{{element.id}}{{/quote}}); -}); -{{/js}} diff --git a/templates/core_form/element-text-inline.mustache b/templates/core_form/element-text-inline.mustache deleted file mode 100644 index abccc3a..0000000 --- a/templates/core_form/element-text-inline.mustache +++ /dev/null @@ -1,17 +0,0 @@ -{{< core_form/element-template-inline }} - {{$element}} - - {{/element}} -{{/ core_form/element-template-inline }} diff --git a/templates/core_form/element-text.mustache b/templates/core_form/element-text.mustache deleted file mode 100644 index e57ffbf..0000000 --- a/templates/core_form/element-text.mustache +++ /dev/null @@ -1,17 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-textarea.mustache b/templates/core_form/element-textarea.mustache deleted file mode 100644 index 774c3f9..0000000 --- a/templates/core_form/element-textarea.mustache +++ /dev/null @@ -1,17 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{^element.frozen}} - - {{/element.frozen}} - {{#element.frozen}} - {{element.value}} - {{/element.frozen}} - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-url.mustache b/templates/core_form/element-url.mustache deleted file mode 100644 index 8bce68d..0000000 --- a/templates/core_form/element-url.mustache +++ /dev/null @@ -1,20 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - - {{^element.frozen}} - {{{element.filepickerhtml}}} - {{/element.frozen}} - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_form/element-warning.mustache b/templates/core_form/element-warning.mustache deleted file mode 100644 index 9006137..0000000 --- a/templates/core_form/element-warning.mustache +++ /dev/null @@ -1,5 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{{element.html}}} - {{/element}} -{{/ core_form/element-template }} \ No newline at end of file diff --git a/templates/core_form/element-wikieditor.mustache b/templates/core_form/element-wikieditor.mustache deleted file mode 100644 index 6f02ca0..0000000 --- a/templates/core_form/element-wikieditor.mustache +++ /dev/null @@ -1,5 +0,0 @@ -{{< core_form/element-template }} - {{$element}} - {{{element.html}}} - {{/element}} -{{/ core_form/element-template }} diff --git a/templates/core_grades/edit_tree.mustache b/templates/core_grades/edit_tree.mustache deleted file mode 100644 index 34f7662..0000000 --- a/templates/core_grades/edit_tree.mustache +++ /dev/null @@ -1,45 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Edit tree. -}} - -
    -
    - - {{#notification}} - {{>core/notification_info}} - {{/notification}} - {{{table}}} -
    - {{#showsave}} - - {{/showsave}} - {{#showbulkmove}} -
    - - - -
    - {{/showbulkmove}} -
    -
    -
    diff --git a/templates/core_grades/weight_field.mustache b/templates/core_grades/weight_field.mustache deleted file mode 100644 index 3ee641b..0000000 --- a/templates/core_grades/weight_field.mustache +++ /dev/null @@ -1,23 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Weight field. -}} - - diff --git a/templates/core_grades/weight_override_field.mustache b/templates/core_grades/weight_override_field.mustache deleted file mode 100644 index 0ed8292..0000000 --- a/templates/core_grades/weight_override_field.mustache +++ /dev/null @@ -1,31 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Weight field. -}} -
    - - - - - - -
    diff --git a/templates/course_search_form.mustache b/templates/course_search_form.mustache deleted file mode 100644 index 0ac59df..0000000 --- a/templates/course_search_form.mustache +++ /dev/null @@ -1,29 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} - - -
    -
    - -
    -
    - - - -
    -
    - diff --git a/templates/custom_menu_footer.mustache b/templates/custom_menu_footer.mustache index a0984da..8bcf5dc 100644 --- a/templates/custom_menu_footer.mustache +++ b/templates/custom_menu_footer.mustache @@ -8,8 +8,10 @@ {{/url}} {{/divider}} {{#haschildren}} -
      - {{> theme_ilb/custom_menu_footer }} -
    +
  • +
      + {{> theme_boost/custom_menu_footer }} +
    +
  • {{/haschildren}} {{/children}} diff --git a/templates/embedded.mustache b/templates/embedded.mustache index e87ae83..a9a419f 100644 --- a/templates/embedded.mustache +++ b/templates/embedded.mustache @@ -15,21 +15,30 @@ along with Moodle. If not, see . }} {{! - @template theme_ilb/maintenance + @template theme_boost/maintenance - Ilb maintenance layout template. + Boost maintenance layout template. Context variables required for this template: * output - The core renderer for the page + * hasfakeblocks - true if there are fake blocks on this page + * fakeblocks - HTML for the fake blocks Example context (json): { "output": { "doctype": "", + "htmlattributes": "The attributes that should be added to the tag", "page_title": "Test page", "favicon": "favicon.ico", - "main_content": "

    Headings make html validators happier

    " - } + "standard_head_html": "The standard tags that should be included in the tag", + "body_attributes": "The attributes to use within the body tag", + "standard_top_of_body_html": "The standard tags that should be output just inside the start of the tag", + "main_content": "

    Headings make html validators happier

    ", + "standard_end_of_body_html": "The standard tags that should be output after everything else" + }, + "hasfakeblocks": true, + "fakeblocks": "

    Fake blocks html goes here

    " } }} {{{ output.doctype }}} @@ -42,16 +51,25 @@ +{{> core/local/toast/wrapper}} {{{ output.standard_top_of_body_html }}} -
    -
    +
    + {{#hasfakeblocks}} +
    + {{{ fakeblocks }}} +
    + {{/hasfakeblocks}} +
    {{{ output.main_content }}} -
    +
    {{{ output.standard_end_of_body_html }}} {{#js}} -require(['theme_boost/loader']); +M.util.js_pending('theme_boost/loader'); +require(['theme_boost/loader'], function() { + M.util.js_complete('theme_boost/loader'); +}); {{/js}} diff --git a/templates/flat_navigation.mustache b/templates/flat_navigation.mustache index 36e1eca..e6fef27 100644 --- a/templates/flat_navigation.mustache +++ b/templates/flat_navigation.mustache @@ -15,9 +15,9 @@ along with Moodle. If not, see . }} {{! - @template theme_ilb/flat_navigation + @template theme_boost/flat_navigation - Display the flat navigation for the ilb theme + Display the flat navigation for the boost theme Classes required for JS: * none @@ -55,38 +55,47 @@ ] } }} - - diff --git a/templates/footer.mustache b/templates/footer.mustache index 2975536..fca4e06 100644 --- a/templates/footer.mustache +++ b/templates/footer.mustache @@ -1,68 +1,47 @@ - diff --git a/templates/footerSimples.mustache b/templates/footerSimples.mustache deleted file mode 100644 index d8069e4..0000000 --- a/templates/footerSimples.mustache +++ /dev/null @@ -1,5 +0,0 @@ -
    -
    - Senado Federal - Praça dos Três Poderes - Brasília DF - CEP 70165-900 -
    -
    diff --git a/templates/frontpage_ilb.mustache b/templates/frontpage_ilb.mustache deleted file mode 100644 index 023c886..0000000 --- a/templates/frontpage_ilb.mustache +++ /dev/null @@ -1,1017 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template theme_ilb/frontpage_ilb - - Frontpage ILB layout template. - - Context variables required for this template: - - * sitename - The name of the site - * output - The core renderer for the page - * bodyattributes - attributes for the body tag as a string of html attributes - - Example context (json): - { - "sitename": "Moodle", - "output": { - "doctype": "", - "page_title": "Test page", - "favicon": "favicon_saberes.ico", - "main_content": "

    Headings make html validators happier

    " - }, - "bodyattributes":"" - } -}} - - - - -{{{ output.doctype }}} - - - - - - - - - - - - - Instituto Legislativo Brasileiro - ILB - {{>theme_ilb/head}} - - - - -{{>theme_ilb/header}} - -
    -
    -
    - -
    -
    -
    - - -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    - - -
    - -
    -
    - - -
    - -
    -
    -
    -

    Validar Certificado

    -

    Digite o código do certificado para verificar:

    -
    - - -
    - -
    -
    -
    -
    - -
    -
    -

    Obter Certificados

    -

    Para obter o certificado de cursos já concluídos, clique no botão abaixo.

    - -
    -
    - -
    -
    -

    Certificados antigos

    -

    Emissão de certificados para alunos inscritos no período de 2010/2013.

    - -
    -
    -
    -
    - -
    - - -
    - -
    -
    -
    - -
    - -
    -
    Nos cursos EaD sem tutoria, podem se matricular servidores dos legislativos federal, estadual, municipal e distrital, dos órgãos conveniados e o público em geral. Nos cursos EaD com tutoria, o público em geral poderá fazer a pré-matrícula, porém só serão selecionados se houver disponibilidade de vagas.
    -
    -
    -
    - -
    -
    Todos os cursos oferecidos pelo ILB, na modalidade a distância, com e sem tutoria, são sem custo para os alunos.
    -
    -
    -
    - -
    -
    - O aluno pode realizar até 02 (dois) cursos simultaneamente, sem tutoria, e um curso com tutoria, desde que haja vaga. -
    -
    -
    -
    - -
    -
    Os cursos a distância ofertados pelo ILB são considerados cursos de educação continuada e, por isso, não estão sujeitos ao reconhecimento do MEC, conforme a lei nº. 9394/96; Decreto nº. 5.154/04; Deliberação CEE 14/97 (Indicação CEE 14/97).
    -
    -
    -
    - -
    -
    Os cursos podem ser acessados por computador, tablet e celular, com configurações básicas e acesso à internet banda larga. - Caso tenha dúvidas em relação ao acesso e à utilização do material on-line, você pode pedir ajuda à equipe de EaD enviando um e-mail para ilbead@senado.leg.br. -
    -
    -
    -
    - -
    -
    O Saberes é um Ambiente Virtual de Aprendizagem – AVA, baseado no Moodle, que visa facilitar a aprendizagem. É nesse ambiente que o participante dos cursos a distância do ILB terá acesso aos conteúdos, realizará as atividades, enviará e receberá mensagens e terá acesso às suas notas e certificado. É também por meio desse ambiente que professores tutores e coordenadores de cursos interagem com os participantes e têm acesso a informações e relatórios. O ILB passou a utilizar o Saberes em fevereiro de 2014.
    -
    -
    -
    - -
    -
    -

    O que devo fazer

    - -
      -
    1. 1. Caso você não tenha cadastro na nossa plataforma, acesse pelo endereço eletrônico http://saberes.senado.leg.br, clique em Cadastre-se, localizado no bloco Acesso, à direita da tela.
    2. -
    3. 2. Preencha as informações solicitadas e, ao final, clique em Cadastrar este novo usuário.
    4. -
    5. 3. Uma mensagem será enviada para o endereço eletrônico que foi informado, para que o seu cadastro seja confirmado.
    6. -
    7. 4. Após a confirmação, acesse a plataforma, escolha o curso do seu interesse e efetive a sua matrícula.
    8. -
    9. 5. Você receberá uma mensagem confirmando sua matrícula no curso.
    10. -
    -
    -
    -
    -
    - -
    -
    -
      -
    1. 1. Cheque a caixa de spam do seu correio eletrônico.
    2. -
    3. 2. Não localizou? Solicite a liberação pelo endereço eletrônico ilbead@senado.leg.br ou entre em contato pelo telefone (61) 3303-1475.
    4. -
    -
    -
    -
    -
    - -
    -
    -
      -
    1. 1. Você terá até 60 (sessenta) dias para a conclusão do curso.
    2. -
    3. 2. O curso poderá ser concluído antes desse prazo, mas o certificado só será emitido 21 (vinte e um) dias após a data de matrícula.
    4. -
    -
    -
    -
    -
    - - -
    -
    -
      -
    1. 1. Ao acessar a página inicial do curso, clique na opção Guia do Estudante.
    2. -
    3. 2. Nele você encontrará informações importantes para que você entenda os ícones existentes e sua respectiva função.
    4. -
    5. 3. É importante que sua leitura seja feita na íntegra para a completa informação quanto à navegação dentro da plataforma.
    6. -
    -
    -
    -
    - -
    - - -
    -
    -
      -
    1. 1. Acesse o Saberes no endereço http://saberes.senado.leg.br, digitando sua identificação de usuário e senha.
    2. -
    3. 2. Nessa página, clique na sua foto ou na imagem .
    4. -
    5. 3. Clique em Modificar Perfil.
    6. -
    7. 4. Faça as alterações necessárias e, ao final da página, clique em Atualizar perfil.
    8. -
    9. 5. Você pode alterar todos os seus dados, com exceção do CPF.
    10. -
    -
    -
    -
    - -
    - - -
    -
    -
      -
    1. 1. Acesse o Saberes no endereço http://saberes .senado.leg.br.
    2. -
    3. 2. Nessa página, no bloco Acesso, clique em: Perdeu a senha?
    4. -
    5. 3. Preencha as informações solicitadas (Identificação de Usuário ou E-mail).
    6. -
    7. 4. Clique em Buscar.
    8. -
    9. 5. Será encaminhado um link para o seu correio eletrônico, cadastrado na plataforma para a criação de uma nova senha.
    10. -
    11. 6. Não recebeu o link? Entre em contato com o ILB pelo endereço eletrônico ilbead@senado.leg.br ou pelo telefone (61) 3303-1475.
    12. -
    -
    -
    -
    - -
    - - -
    -
    - Provavelmente você excedeu o prazo de conclusão do curso, que é de 60 (sessenta) dias a contar da data de matrícula. Seu status no curso ficará como abandono. Por isso, sua vaga ficará bloqueada por 30 (trinta) dias a contar da data limite para finalização do curso. Caso você não saiba a data limite, solicite a informação via e-mail para ilbead@senado.leg.br ou pelo telefone (61) 3303-1475. -
    -
    -
    - -
    - - -
    -
    - É preciso aguardar a abertura de uma nova turma para que você possa se matricular novamente. Não é possível a rematrícula dentro da turma em que o aluno não obteve êxito. -
    -
    -
    - -
    - - -
    -
    -
      -
    1. 1. Acesse o Saberes pelo endereço eletrônico http://saberes.senado.leg.br, digitando sua Identificação de usuário e senha.
    2. -
    3. 2. Entre no curso em questão.
    4. -
    5. 3. Você poderá identificar quanto tempo tem para concluir o curso no bloco Meu Progresso, localizado na lateral direita da página inicial do curso.
    6. -
    -
    -
    -
    - -
    - - -
    -
    -
      -
    1. 1. Acesse a plataforma Saberes, http://saberes.senado.leg.br, digitando sua Identificação de Usuário e Senha.
    2. -
    3. 2. Nessa página, clique na imagem , no bloco Bem-vindo ao Saberes.
    4. -
    5. 3. Clique em Modificar perfil.
    6. -
    7. 4. Nessa página, vá a opção Imagem do Usuário.
    8. -
    9. 5. Arraste o arquivo de sua foto, diretamente para o campo indicado com a flecha.
    10. -
    11. 6. Caso tenha dificuldade em arrastar a foto, clique no campo com a flecha.
    12. -
    13. 7. Clique em Enviar um arquivo.
    14. -
    15. 8. Em seguida em Escolher arquivo.
    16. -
    17. 9. Depois de inserido o arquivo, clique no botão Enviar este arquivo.
    18. -
    19. 10. Em seguida, vá até o final da página e clique em Atualizar perfil.
    20. -
    -
    -
    -
    - -
    - - -
    -
    -
      -
    1. 1. Matrículas não podem ser canceladas. -
    2. -
    3. 2. Você terá que aguardar o prazo de finalização do curso e cumprir a punição, que é de 30 (trinta) dias a contar da data final do curso, para ter a sua vaga liberada para uma nova matrícula. -
    4. -
    -
    -
    -
    - -
    - - -
    -
    Você terá uma segunda oportunidade para fazer a avaliação final, dentro do prazo limite de realização do curso. Em caso de nova reprovação, deverá cumprir uma suspenção de 30 (trinta) dias a contar da data final de realização do curso. Após esse prazo, você deve aguardar a abertura de uma nova turma para se matricular novamente no curso. -
    -
    -
    - -
    - - -
    -
    -

    "Curso com tutoria" é aquele que conta com o acompanhamento de tutores e tem a duração de 40 dias. A carga horária é de 60 horas e o público-alvo são os servidores do legislativo federal, estadual e municipal e distrital. O cidadão comum poderá se candidatar, mas só será inscrito caso o número de vagas não tenha sido atingido.

    -

    "Curso semtutoria" tem a característica de ser autoinstrucional, isto é, não conta com o acompanhamento e orientação de tutores. A carga horária dos cursos é variável e cada usuário pode se candidatar a até dois cursos simultaneamente.

    -
    -
    -
    - -
    - - -
    -
    -

    Os cursos com tutoria são específicos para os servidores do legislativo federal, estadual, municipal e distrital, ou para órgãos conveniados. Havendo a disponibilidade de vagas, as mesmas serão ofertadas à população em geral.

    -

    Nesse caso, existe um período de pré-matrícula no qual todas as inscrições serão recebidas. Na fase de matrícula, a plataforma realiza a seleção dos candidatos. Havendo a disponibilidade de vagas, a população será contemplada de acordo com a ordem de chegada das pré-matrículas.

    -

    Ao final do período de matrícula, haverá a emissão de uma mensagem e confirmação ou de negativa de matrícula.

    -

    Se você realizou uma pré-matrícula, fique atendo ao cronograma do curso para verificar o recebimento das referidas cartas. Após a conclusão do curso eu recebo algum certificado de participação?

    -

    Sim. Todos os cursos são certificados. Para tanto, o aluno deverá obter 70 pontos, como nota mínima, na avaliação e estar matriculado no curso há, no mínimo, 20 dias.

    -
    -
    -
    - -
    - - -
    -
    No certificado constam o nome e CPF do aluno; modalidade do curso, nome do curso; nota de aprovação; período de realização; carga horária; conteúdo programático; código de verificação do certificado e CNPJ do Senado Federal. -
    -
    -
    - -
    - - -
    -
    - Ao concluir o curso com média superior a 70 pontos e 21 dias de matrícula no curso, seu certificado é emitido automaticamente. Para imprimi-lo, faça o seguinte: -
      -
    1. 1. Entre na plataforma Saberes, http://saberes.senado.leg.br, digitando Identificação de Usuário e Senha.
    2. -
    3. 2. Nessa página, clique em Certificados, localizado na barra superior.
    4. -
    5. 3. Clique no botão azul Obter certificados e, em seguida, no ícone Impressora ao lado do nome do curso
    6. -
    -
    -
    -
    - -
    - - -
    -
    - Todos os certificados emitidos pela plataforma Saberes possuem um código de validação. Esse código possibilita que qualquer pessoa verifique a autenticidade do documento. Para confirmar sua veracidade, faça o seguinte. -
      -
    1. 1. Acesse a plataforma pelo endereço http://saberes.senado.leg.br.
    2. -
    3. 2. Não é necessário possuir identificação de usuário e senha.
    4. -
    5. 3. Nessa página, clique em Certificados, localizado na barra superior.
    6. -
    7. 4. Na opção Validar Certificado, digite o código constante no verso do certificado.
    8. -
    9. 5. Em seguida, clique em Verificar.
    10. -
    11. 6. Na tela seguinte, serão exibidos o código de verificação, o nome do aluno, o CPF, o nome do curso realizado, data de emissão do certificado, o período de realização, a carga horária e o programa do curso.
    12. -
    13. 7. Este documento poderá ser impresso. Para isso, clique no ícone da impressora que aparece no início da tela.
    14. -
    -
    -
    -
    - -
    - - -
    -
    - Sim. -
      -
    1. 1. Acesse a plataforma pelo endereço http://saberes.senado.leg.br.
    2. -
    3. 2. Não é necessário digitar sua identificação de usuário e senha.
    4. -
    5. 3. Clique em Certificados, localizado na barra superior da página.
    6. -
    7. 4. Clique no botão laranja Certificados antigos.
    8. -
    9. 5. Você será direcionado para o endereço eletrônico da plataforma Trilhas que é http://www17.senado.gov.br/user/login.
    10. -
    11. 6. Clique na opção Autenticar Certificado. Não é necessária identificação de usuário ou senha.
    12. -
    13. 7. Digite o código de validação na caixa de digitação. Em seguida, clique em OK.
    14. -
    - É possível validar, também, fora da plataforma Saberes. Digite, no seu navegador, o endereço eletrônico constante no passo 5. -
    -
    -
    - -
    - - -
    -
    - As dúvidas deverão ser encaminhadas via o endereço eletrônico ilbead@senado.leg.br. Para maior agilidade, informe o curso, a turma, a cópia do conteúdo com a localização do módulo, unidade e página, ou questão a serem investigados, acompanhados do número do CPF e o endereço de eletrônico cadastrado. -
    -
    -
    - -
    - - -
    -
    - Para acessar a versão em PDF com o conteúdo do curso acesse a página inicial do curso, na seção Módulo de Apoio/ Biblioteca e clique em Conteúdo do curso em PDF. Após o término do curso você não terá mais acesso ao conteúdo tanto em PDF quanto ao curso inteiro. -
    -
    -
    - -
    - -
    -
    - -
    - - -
    - -
    - -
    -

    Serviço de Ensino a Distância – SEED

    -
    -

    +55 (61) 3303-1475

    -

    ilbead@senado.leg.br

    -

    Facebook

    -

    https://www.facebook.com/ilbsenado

    -
    - -
    -
    - -
    -
    - - -
    -
    - -
    -
    - - -
    -
    - -
    -
    -
    -

    - Cursos abertos e sem custo para a comunidade legislativa e os cidadãos -

    -
    -
    -
    - - - -
    - -
    - - - - {{^username}} -
    -
    -
    -

    ACESSO

    -
    - -
    -
    - -
    -
    -
    - -
    -
    - -
    -
    -
    - - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    - {{/username}} - - {{#username}} - - {{#cpf2}} - {{! Inserir modal do aviso caso o CPF seja duplicado e válido e o login foi migrado }} - - {{/cpf2}} - - {{#cpf3}} - {{! Inserir modal do aviso caso o CPF seja duplicado e inválido, o usuário foi cancelado }} - - {{/cpf3}} - - - - {{#loginChangeNotification}} - - - - - - - - {{/loginChangeNotification}} - - - - -
    -
    -
    -

    Bem-vindo ao Saberes!

    -
    -
    -
    -

    - Nome: -
    - {{{ firstname }}} {{{ lastname }}} -

    -
    -
    - Foto do Perfil -
    -
    -
    - -
    - - -
    - Sair -
    -
    -
    -
    -
    - - - - - - - -
    -
    -

    Bem-vindo ao Saberes!

    -
    -

    - Nome -
    - {{{ firstname }}} {{{ lastname }}} -

    -
    -
    - Foto do Perfil -
    - -
    - - -
    - Sair -
    -
    -
    -
    - - - - - - - - - - - - - - - - - -
    -{{/username}} -
    -
    -
    -
    - -
    -
    -
    -
    -
    -

    Categoria de cursos

    -
    -
    -
    -
    -
    -
    - -

    Cursos on-line sem tutoria

    -
    -
    - -

    Cursos on-line com tutoria

    -
    -
    - -

    Formação interna

    -
    -
    - -

    Pós-graduação

    -
    - -
    -
    -
    - -

    Oficinas Interlegis

    -
    -
    - -

    Videoaulas

    -
    -
    - -

    Projetos Especiais

    -
    -
    - -

    Conheça o Senado

    -
    -
    -
    -
    -
    -
    - -
    {{>theme_ilb/footer}} - - -{{#js}} -require(['theme_boost/loader']); -{{/js}} diff --git a/templates/frontpage_ilblogado.mustache b/templates/frontpage_ilblogado.mustache deleted file mode 100644 index 92660fc..0000000 --- a/templates/frontpage_ilblogado.mustache +++ /dev/null @@ -1,241 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template theme_ilb/columns2 - - Admin time setting template. - - Ilb 2 column layout template. - - Context variables required for this template: - * sitename - The name of the site - * output - The core renderer for the page - * bodyattributes - attributes for the body tag as a string of html attributes - * sidepreblocks - HTML for the blocks - * hasblocks - true if there are blocks on this page - * navdraweropen - true if the nav drawer should be open on page load - * regionmainsettingsmenu - HTML for the region main settings menu - * hasregionmainsettingsmenu - There is a region main settings menu on this page. - - Example context (json): - { - "sitename": "Moodle", - "output": { - "doctype": "", - "page_title": "Test page", - "favicon": "favicon.ico", - "main_content": "

    Headings make html validators happier

    " - }, - "bodyattributes":"", - "sidepreblocks": "

    Blocks html goes here

    ", - "hasblocks":true, - "navdraweropen":true, - "regionmainsettingsmenu": "", - "hasregionmainsettingsmenu": false - } -}} -{{{ output.doctype }}} - - - - - {{{ output.page_title }}} - - {{{ output.standard_head_html }}} - - - - - - - - - - - - - - - - {{>theme_ilb/head}} - - - - - - {{>theme_ilb/headerLogado}} - -
    - - - - - -
    - - -
    -
    -
    -

    Navegação

    -
    - -
    -

    Cursos

    -
    -
    -
    -
    - - -
    -
    Lista de cursos
    -
    -
    -
    - -
    -
    Conteudo educação cidadã
    -
    -
    -
    - -
    -

    Lista de cursos

    Lista de cursos

    Lista de cursos

    Lista de cursos

    Lista de cursos

    Lista de cursos

    -
    -
    -
    -
    -
    -
    -
    -

    Ensino a Distância

    -
    Informações
    -
    Matriculas Abertas
    -
    Matriculas Encerradas
    -
    -
    - -
    -


    - -
    - - - - -
    - {{{ output.full_header }}} - -
    -
    - {{#hasregionmainsettingsmenu}} -
    -
    {{{ output.region_main_settings_menu }}}
    -
    - {{/hasregionmainsettingsmenu}} -
    -
    - {{#hasregionmainsettingsmenu}} -
    - {{/hasregionmainsettingsmenu}} - {{{ output.course_content_header }}} - {{{ output.main_content }}} - {{{ output.course_content_footer }}} -
    -
    - {{#hasblocks}} -
    - {{{ sidepreblocks }}} -
    - {{/hasblocks}} -
    -
    -
    - {{> theme_ilb/nav-drawer }} -
    - -
    -
    -
    -
    -{{>theme_ilb/footerSimples}} - - - - - - - - - - - - -{{#js}} -require(['theme_boost/loader']); -require(['theme_boost/drawer'], function(mod) { - mod.init(); -}); -{{/js}} diff --git a/templates/gradereport_history/user_button.mustache b/templates/gradereport_history/user_button.mustache deleted file mode 100644 index 90e8b70..0000000 --- a/templates/gradereport_history/user_button.mustache +++ /dev/null @@ -1,21 +0,0 @@ -
    -
    - {{#params}} - - {{/params}} - -
    -
    -{{#hasactions}} - {{#js}} - require(['core/yui'], function(Y) { - {{#actions}} - Y.on('{{event}}', {{{jsfunction}}}, '#{{id}}', null{{#jsfunctionargs}}, {{{jsfunctionargs}}}{{/jsfunctionargs}}); - {{/actions}} - }); - {{/js}} -{{/hasactions}} diff --git a/templates/gradereport_singleview/bulk_insert.mustache b/templates/gradereport_singleview/bulk_insert.mustache deleted file mode 100644 index abe592a..0000000 --- a/templates/gradereport_singleview/bulk_insert.mustache +++ /dev/null @@ -1,34 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Bulk insert attribute. -}} -
    - - -
    -
    - {{label}} - - - - {{{valuefield}}} -
    diff --git a/templates/gradereport_singleview/button.mustache b/templates/gradereport_singleview/button.mustache deleted file mode 100644 index 43fdbcf..0000000 --- a/templates/gradereport_singleview/button.mustache +++ /dev/null @@ -1,20 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Button. -}} - diff --git a/templates/gradereport_singleview/dropdown_attribute.mustache b/templates/gradereport_singleview/dropdown_attribute.mustache deleted file mode 100644 index 9f3be1a..0000000 --- a/templates/gradereport_singleview/dropdown_attribute.mustache +++ /dev/null @@ -1,25 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Dropdown attribute. -}} - - diff --git a/templates/gradereport_singleview/text_attribute.mustache b/templates/gradereport_singleview/text_attribute.mustache deleted file mode 100644 index ffd06e9..0000000 --- a/templates/gradereport_singleview/text_attribute.mustache +++ /dev/null @@ -1,22 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Text attribute. -}} - - - diff --git a/templates/gradingform_guide/comment_chooser.mustache b/templates/gradingform_guide/comment_chooser.mustache deleted file mode 100644 index 1199a1e..0000000 --- a/templates/gradingform_guide/comment_chooser.mustache +++ /dev/null @@ -1,57 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template gradingform_guide/comment_chooser - - Moodle comment chooser template for marking guide. - - The purpose of this template is to render a list of frequently used comments that can be used by the comment chooser dialog. - - Classes required for JS: - * none - - Data attributes required for JS: - * none - - Context variables required for this template: - * criterionId The criterion ID this chooser template is being generated for. - * comments Array of id / description pairs. - - Example context (json): - { - "criterionId": "1", - "comments": [ - { - "id": "1", - "description": "Test comment description 1" - }, - { - "id": "2", - "description": "Test comment description 2" - } - ] - } -}} -
    -
    - {{#comments}} - - {{/comments}} -
    -
    diff --git a/templates/head.mustache b/templates/head.mustache index 3e1d4d0..2a121e5 100644 --- a/templates/head.mustache +++ b/templates/head.mustache @@ -1,150 +1,27 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +{{! + This file is part of Moodle - http://moodle.org/ + + Moodle is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Moodle 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Moodle. If not, see . +}} +{{! + Page header. +}} +{{{ output.doctype }}} + + + {{{ output.page_title }}} + + {{{ output.standard_head_html }}} + + \ No newline at end of file diff --git a/templates/head2.mustache b/templates/head2.mustache deleted file mode 100644 index 8c83a73..0000000 --- a/templates/head2.mustache +++ /dev/null @@ -1,51 +0,0 @@ -{{! - @template theme_ilb/maintenance - - ILB maintenance layout template. - - Context variables required for this template: - * output - The core renderer for the page - - Example context (json): - { - "output": { - "doctype": "", - "page_title": "Test page", - "favicon": "favicon.ico", - "main_content": "

    Headings make html validators happier

    " - } - } -}} - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/templates/header-secure.mustache b/templates/header-secure.mustache deleted file mode 100644 index ab0c88f..0000000 --- a/templates/header-secure.mustache +++ /dev/null @@ -1,43 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Page header. -}} - - diff --git a/templates/header.mustache b/templates/header.mustache deleted file mode 100644 index 70eb20c..0000000 --- a/templates/header.mustache +++ /dev/null @@ -1,109 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Page header. -}} - - - - - - - -
    - -
    -
    -
    -
    - 1 Ir - para o conteúdo -
    - 2 Ir para o - menu -
    - 4 Ir para o - rodapé -
    -
    - - -
    - Acessibilidade -
    -
    -
    -
    -
    -
    - diff --git a/templates/headerLogado.mustache b/templates/headerLogado.mustache deleted file mode 100644 index 703f45f..0000000 --- a/templates/headerLogado.mustache +++ /dev/null @@ -1,60 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - Page header. -}} - diff --git a/templates/login.mustache b/templates/login.mustache index b8e0b96..2cbea46 100644 --- a/templates/login.mustache +++ b/templates/login.mustache @@ -15,7 +15,7 @@ along with Moodle. If not, see . }} {{! - @template theme_ilb/login + @template theme_boost/login Login page template @@ -29,25 +29,19 @@ } } }} -{{{ output.doctype }}} - - - {{{ output.page_title }}} - - {{{ output.standard_head_html }}} - - +{{> theme_boost/head }} +{{> core/local/toast/wrapper}}
    {{{ output.standard_top_of_body_html }}} -
    +
    -
    -
    +
    +
    {{{ output.course_content_header }}} {{{ output.main_content }}} {{{ output.course_content_footer }}} @@ -55,11 +49,27 @@
    +
    +
    + + + {{# output.page_doc_link }} + + {{/ output.page_doc_link }} + + {{{ output.login_info }}} + {{{ output.home_link }}} + {{{ output.standard_footer_html }}} + {{{ output.standard_end_of_body_html }}} +
    +
    -{{{ output.standard_end_of_body_html }}} {{#js}} -require(['theme_boost/loader']); +M.util.js_pending('theme_boost/loader'); +require(['theme_boost/loader'], function() { + M.util.js_complete('theme_boost/loader'); +}); {{/js}} diff --git a/templates/maintenance.mustache b/templates/maintenance.mustache index caa5f18..f5feac7 100644 --- a/templates/maintenance.mustache +++ b/templates/maintenance.mustache @@ -15,9 +15,9 @@ along with Moodle. If not, see . }} {{! - @template theme_ilb/maintenance + @template theme_boost/maintenance - Ilb maintenance layout template. + Boost maintenance layout template. Context variables required for this template: * output - The core renderer for the page @@ -42,37 +42,40 @@ +{{> core/local/toast/wrapper}}
    {{{ output.standard_top_of_body_html }}} -
    +
    -
    +
    {{{ output.page_heading }}}
    -
    +
    {{{ output.main_content }}}
    +
    +
    + {{{ output.standard_footer_html }}} + {{{ output.standard_end_of_body_html }}} +
    +
    -
    -
    - {{{ output.standard_footer_html }}} - {{{ output.standard_end_of_body_html }}} -
    -
    - {{#js}} -require(['theme_boost/loader']); +M.util.js_pending('theme_boost/loader'); +require(['theme_boost/loader'], function() { + M.util.js_complete('theme_boost/loader'); +}); {{/js}} diff --git a/templates/mod_assign/grading_actions.mustache b/templates/mod_assign/grading_actions.mustache deleted file mode 100644 index 5d0818e..0000000 --- a/templates/mod_assign/grading_actions.mustache +++ /dev/null @@ -1,55 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template mod_assign/grading_actions - - Actions panel at the bottom of the assignment grading UI. - - Classes required for JS: - * none - - Data attributes required for JS: - * data-region - - Context variables required for this template: - * see mod/assign/classes/output/grading_app.php - - This template is initially hidden, and is only displayed after the current user info has been loaded. -}} -{{#showreview}} -
    -
    - - - -
    -
    -{{/showreview}} -
    - - - - -
    -{{#js}} -require(['mod_assign/grading_actions'], function(GradingActions) { - new GradingActions('[data-region="grade-actions"]'); -}); -{{/js}} diff --git a/templates/mod_assign/grading_navigation.mustache b/templates/mod_assign/grading_navigation.mustache deleted file mode 100644 index c6809b3..0000000 --- a/templates/mod_assign/grading_navigation.mustache +++ /dev/null @@ -1,99 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template mod_assign/grading_navigation - - Actions panel at the bottom of the assignment grading UI. - - Classes required for JS: - * none - - Data attributes required for JS: - * data-region, data-assignmentid, data-groupid - - Context variables required for this template: - * see mod/assign/classes/output/grading_app.php - - This template includes ajax functionality, so it cannot be shown in the template library. -}} -
    -
    - -{{! - There are three chunks, which appear side-by-side at large screen sizes. - A) Assignment info, which has 3 rows: -}} - -
    - -{{! - Row 1) course name & link. -}} -{{{coursename}}}
    - -{{! - Row 2) Assignment name & link. -}} -{{name}} - -{{! - Row 3) Edit settings, due date, with tool-tip thing. -}} - - -
    -{{#caneditsettings}} -{{#pix}}t/edit, core,{{#str}}editsettings{{/str}}{{/pix}} -{{/caneditsettings}} - -
    - -{{! - B) Current user name and info. -}} -
    - {{> mod_assign/grading_navigation_user_info }} -
    - -{{! - C) User selector widget. -}} -
    -
    - {{> mod_assign/grading_navigation_user_selector }} -
    -
    -
    -
    -{{#js}} -require(['mod_assign/grading_navigation', 'core/tooltip'], function(GradingNavigation, ToolTip) { - var nav = new GradingNavigation('[data-region="user-selector"]'); - var tooltip = new ToolTip('[data-region="assignment-tooltip"]'); -}); -{{/js}} diff --git a/templates/mod_assign/grading_navigation_user_selector.mustache b/templates/mod_assign/grading_navigation_user_selector.mustache deleted file mode 100644 index ab80917..0000000 --- a/templates/mod_assign/grading_navigation_user_selector.mustache +++ /dev/null @@ -1,66 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template mod_assign/grading_navigation_user_selector - - The template HTML for the user selector in the top right corner. - - Classes required for JS: - * none - - Data attributes required for JS: - * data-action, data-assignmentid, data-groupid, data-region - - Context variables required for this template: - * see mod/assign/classes/output/grading_app.php - - This template uses ajax functionality, so it cannot be shown in the template library. -}} -{{{larrow}}} - - - -{{{rarrow}}} - -
    - - - - {{#str}}xofy, mod_assign, { "x": "{{index}}", "y": "{{count}}" }{{/str}} - - - - -
    - - - - -
    -
    - - diff --git a/templates/mod_forum/big_search_form.mustache b/templates/mod_forum/big_search_form.mustache deleted file mode 100644 index 5c05e5c..0000000 --- a/templates/mod_forum/big_search_form.mustache +++ /dev/null @@ -1,188 +0,0 @@ -{{! - This file is part of Moodle - http://moodle.org/ - - Moodle is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Moodle 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Moodle. If not, see . -}} -{{! - @template mod_forum/big_search_form - - Big search form. - - Example context (json): - { - "actionurl": "https://example.com/mod/forum/search.php", - "courseid": "2", - "words": "apples", - "phrase": "Lorem ipsum dolor", - "notwords": "Not these words", - "showfullwords": [ - { - "fullwords": "Exactly" - } - ], - "datefromchecked": 1, - "datetochecked": "", - "forumoptions": [ - { - "name": "Forum One", - "value": "23" - }, - { - "name": "Forum Two", - "value": "34" - } - ], - "subject": "Help me please", - "user": "Helpy McUser" - } -}} - -
    -
    - - - - - - - - - - - - - - {{#showfullwords}} - - - - - {{/showfullwords}} - - - - - - - - - - - - - - - - - - - - - {{#tagsenabled}} - - - - - {{/tagsenabled}} - - - - - -
    -
    -{{#js}} -require(['jquery'], function($) { - var toggleDateFields = function(prefix, disabled) { - $('#searchform select[name^=' + prefix + ']').prop('disabled', disabled); - $('#searchform input[name^=h' + prefix + ']').val(disabled ? 1 : 0); - }; - - toggleDateFields('from', !$("#searchform input[name='timefromrestrict']").prop('checked')); - $("#searchform input[name='timefromrestrict']").click(function() { - toggleDateFields('from', !this.checked); - }); - - toggleDateFields('to', !$("#searchform input[name='timetorestrict']").prop('checked')); - $("#searchform input[name='timetorestrict']").click(function() { - toggleDateFields('to', !this.checked); - }); -}); -{{/js}} diff --git a/templates/mod_forum/quick_search_form.mustache b/templates/mod_forum/quick_search_form.mustache deleted file mode 100644 index a5c8767..0000000 --- a/templates/mod_forum/quick_search_form.mustache +++ /dev/null @@ -1,13 +0,0 @@ -
    -
    - -
    - {{#helpicon}} - {{>core/help_icon}} - {{/helpicon}} - - -
    - -
    -
    diff --git a/templates/nav-drawer.mustache b/templates/nav-drawer.mustache index 4c58f0b..ef13145 100644 --- a/templates/nav-drawer.mustache +++ b/templates/nav-drawer.mustache @@ -1,9 +1,9 @@ {{! - @template theme_ilb/nav-drawer + @template theme_boost/nav-drawer Example context (json): {} }} -