PATH:
home
/
centosnipponia
/
public_html
/
nipponiacom2
/
media
/
system
/
js
/* 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) }; }
[+]
..
[-] associations-edit-uncompressed.js
[edit]
[-] associations-edit.js
[edit]
[-] calendar-setup-uncompressed.js
[edit]
[-] calendar-setup.js
[edit]
[-] calendar-uncompressed.js
[edit]
[-] calendar.js
[edit]
[-] caption-uncompressed.js
[edit]
[-] caption.js
[edit]
[-] color-field-adv-init.js
[edit]
[-] color-field-adv-init.min.js
[edit]
[-] color-field-init.js
[edit]
[-] color-field-init.min.js
[edit]
[-] combobox-uncompressed.js
[edit]
[-] combobox.js
[edit]
[-] core-uncompressed.js
[edit]
[-] core.js
[edit]
[+]
fields
[-] frontediting-uncompressed.js
[edit]
[-] frontediting.js
[edit]
[-] helpsite.js
[edit]
[-] highlighter-uncompressed.js
[edit]
[-] highlighter.js
[edit]
[-] html5fallback-uncompressed.js
[edit]
[-] html5fallback.js
[edit]
[-] index.html
[edit]
[-] jquery.Jcrop.js
[edit]
[-] jquery.Jcrop.min.js
[edit]
[-] keepalive-uncompressed.js
[edit]
[-] keepalive.js
[edit]
[-] modal-fields-uncompressed.js
[edit]
[-] modal-fields.js
[edit]
[-] modal-uncompressed.js
[edit]
[-] modal.js
[edit]
[-] moduleorder.js
[edit]
[-] mootools-core-uncompressed.js
[edit]
[-] mootools-core.js
[edit]
[-] mootools-more-uncompressed.js
[edit]
[-] mootools-more.js
[edit]
[-] mootree-uncompressed.js
[edit]
[-] mootree.js
[edit]
[-] multiselect-uncompressed.js
[edit]
[-] multiselect.js
[edit]
[-] passwordstrength.js
[edit]
[-] permissions-uncompressed.js
[edit]
[-] permissions.js
[edit]
[-] polyfill.classlist-uncompressed.js
[edit]
[-] polyfill.classlist.js
[edit]
[-] polyfill.event-uncompressed.js
[edit]
[-] polyfill.event.js
[edit]
[-] polyfill.filter-uncompressed.js
[edit]
[-] polyfill.filter.js
[edit]
[-] polyfill.map-uncompressed.js
[edit]
[-] polyfill.map.js
[edit]
[-] polyfill.xpath-uncompressed.js
[edit]
[-] polyfill.xpath.js
[edit]
[-] progressbar-uncompressed.js
[edit]
[-] progressbar.js
[edit]
[-] punycode-uncompressed.js
[edit]
[-] punycode.js
[edit]
[-] repeatable-uncompressed.js
[edit]
[-] repeatable.js
[edit]
[-] sendtestmail-uncompressed.js
[edit]
[-] sendtestmail.js
[edit]
[-] subform-repeatable-uncompressed.js
[edit]
[-] subform-repeatable.js
[edit]
[-] switcher-uncompressed.js
[edit]
[-] switcher.js
[edit]
[-] tabs-state-uncompressed.js
[edit]
[-] tabs-state.js
[edit]
[-] tabs.js
[edit]
[-] validate-uncompressed.js
[edit]
[-] validate.js
[edit]
[-] .htaccess.disabled
[edit]