Server IP : 195.201.23.43 / Your IP : 18.218.75.143 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1 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, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/kdecoratie/public_html/media/system/js/ |
Upload File : |
/* name: Fx.ProgressBar description: Creates a progressbar with WAI-ARIA and optional HTML5 support. license: MIT-style authors: - Harald Kirschner <mail [at] digitarald [dot] de> - Rouven Weßling <me [at] rouvenwessling [dot] de> requires: [Core/Fx, Core/Class, Core/Element] provides: Fx.ProgressBar */ Fx.ProgressBar = function(_element, _options) { var $, useHtml5, now, $element, indeterminate, options = { onComplete : function() { }, text : null, html5 : true }, initialize = function(_element, _options) { $ = jQuery.noConflict(); $.extend(options, _options); var element, classes = $(_element).attr('class'), id = $(_element).attr('id'), progress; element = $(_element).get(0); useHtml5 = options.html5 && supportsHtml5(); if (useHtml5) { progress = $('<progress></progress>', { 'value' : 10, 'max' : 100, 'class' : classes, 'id' : id }); $(element).replaceWith(progress); element = progress; } else { progress = $('<div>', { 'id' : id, 'class' : classes, 'class' : 'progress progress-striped', 'role' : 'progressbar', 'aria-valuenow' : '0', // WAI-ARIA 'aria-valuemin' : '0', 'aria-valuemax' : '100' }).html($('<div>', { 'class' : 'bar' })).get(0); $(element).replaceWith(progress); element = progress; } $element = $(element); set(0); }, supportsHtml5 = function() { return 'value' in document.createElement('progress'); }, setIndeterminate = function() { indeterminate = true; if (useHtml5) { $element.removeAttr('value'); } else { $element.find('.bar').css('width', '100%').addClass('active'); $element.removeAttr('aria-valuenow').attr('title', ''); } }, set = function(to) { var $text = $(options.text); if (to >= 100) { to = 100; } now = to; if (useHtml5) { $element.val(to); } else { $element.find('.bar').css('width', to + '%'); $element.removeAttr('aria-valuenow').attr('title', Math.round(to) + '%'); } if ($text.length) { $text.text(Math.round(to) + '%'); } if (to >= 100) { options.onComplete('complete'); } return this; }; initialize(_element, _options); return { set : set, setIndeterminate : setIndeterminate, element : $element.get(0) }; }Private