p006/api/jquery/plugins/an-skill-bar/build/scripts/an-skill-bar.js

12 lines
682 B
JavaScript
Executable File

"use strict";/*
* Plugin: an-progress-bar
* Version: 1.0.1
* Description: A plugin that fills bars with a percentage you set.
* Author: Hasan Misbah
* Copyright 2018, Hasan Misbah
* Free to use and abuse under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
!function(i){i.fn.skillbar=function(t){var e=i.extend({speed:1e3,bg:""},t),n=e.bg,d=i(this).find(".filled"),s=i(this).find(".title");return n?(d.css({"background-color":n}),s.css({"background-color":"rgba(0,0,0,0.5)"})):this.each(function(t){i(this).find(".filled").animate({width:i(this).find(".filled").data("width")},e.speed)}),this}}(jQuery);
//# sourceMappingURL=an-skill-bar.js.map