Server IP : / Your IP : 10.244.4.16 [ Web Server : nginx/1.25.3 System : Linux escuela-portal-app-54f56585bc-kst6g 5.15.0-1084-azure #93-Ubuntu SMP Sat Mar 15 14:12:29 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.2.13 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /proc/1443/cwd/app/public/contrast/js/ |
Upload File : |
/*! * Accessibility Buttons v4.0.0 * http://tiagoporto.github.io/accessibility-buttons * Copyright (c) 2014-present Tiago Porto (http://tiagoporto.com) * Released under the MIT license */ jQuery(document).ready(function($) { "use strict"; /* global accessibilityButtons */ var ready = function ready(fn) { 'use strict'; if (document.readyState !== 'loading') { fn(); } else { document.addEventListener('DOMContentLoaded', fn); } }; ready(function () { 'use strict'; accessibilityButtons({ font: { nameButtonIncrease: 'Click me and things will be big', nameButtonDecrease: 'Click me and things will be back to normal' }, contrast: { nameButtonAdd: 'Click me and things will be darken', nameButtonRemove: 'Click me and things will be lighten again' } }); document.getElementById('year').innerHTML = new Date().getFullYear(); function hasClass(element, clazz) { return " ".concat(element.className, " ").indexOf(" ".concat(clazz, " ")) > -1; } function analytics() { return function () { var $this = this; var $body = document.body; if ($this.getAttribute('id') === 'accessibility-contrast') { if (hasClass($body, $this.getAttribute('id'))) { typeof ga === 'function' && ga('send', 'event', 'accessibility', 'click', 'Add Contrast'); } else { typeof ga === 'function' && ga('send', 'event', 'accessibility', 'click', 'Remove Contrast'); } } if ($this.getAttribute('id') === 'accessibility-font') { if (hasClass($body, $this.getAttribute('id'))) { typeof ga === 'function' && ga('send', 'event', 'accessibility', 'click', 'Increase Font'); } else { typeof ga === 'function' && ga('send', 'event', 'accessibility', 'click', 'Decrease Font'); } } }; } var $accessibilityButtons = document.getElementsByClassName('js-acessibility'); for (var i = 0; i < $accessibilityButtons.length; i++) { $accessibilityButtons[i].addEventListener('click', analytics()); } }); });