p006/api/jquery/plugins/an-skill-bar/docs/assets/scripts/an-skill-bar.js.map

1 line
1.8 KiB
Plaintext
Raw Normal View History

2022-11-29 22:06:03 +05:00
{"version":3,"sources":["an-skill-bar.js"],"names":["$","fn","skillbar","options","settings","extend","speed","bg","color","this","find","$title","$filled","css","background-color","each","animate","width","data","jQuery"],"mappings":";;;;;;;;;CAUA,SAAWA,GAAVA,EAAAC,GAAAC,SAAa,SAAAC,GAKN,GAAIC,GAAWJ,EAAEK,QAETC,MADJ,IAEQC,GAAA,IAERJ,GAIAK,EAAQJ,EAASG,GAIjBC,EAAOR,EAAAS,MAAAC,KAAA,WAFPC,EAASX,EAAES,MAAMC,KAAK,SAyB1B,OApBQF,IADJI,EAAQC,KAIRF,mBAAWH,IANfG,EASME,KAFEC,mBAAoB,qBASNL,KAAdM,KAGIX,SAASE,GANjBN,EAAAS,MAAAC,KAAA,WAUJM,SAvCJC,MAAAjB,EAAAS,MAAAC,KAAA,WAAAQ,KAAA,UAmCgBd,EAASE,SAIdG,OAEZU","file":"an-skill-bar.js","sourcesContent":[" /*\n * Plugin: an-progress-bar\n * Version: 1.0.1\n * Description: A plugin that fills bars with a percentage you set.\n * Author: Hasan Misbah\n * Copyright 2018, Hasan Misbah\n * Free to use and abuse under the MIT license.\n * http://www.opensource.org/licenses/mit-license.php\n */\n\n(function ($) {\n\n $.fn.skillbar = function (options) {\n\n\n var settings = $.extend(\n {\n speed: 1000,\n bg: ''\n },\n options\n );\n\n\n var color = settings.bg;\n var $filled = $(this).find('.filled');\n var $title = $(this).find('.title');\n\n if (color) {\n\n $filled.css({\n 'background-color': color\n });\n\n $title.css({\n 'background-color': 'rgba(0,0,0,0.5)'\n });\n } else{\n\n\n\n this.each(function (i) {\n var $fill = $(this).find('.filled');\n\n $fill.animate({\n width: $(this).find('.filled').data('width')\n },\n settings.speed\n );\n });\n }\n return this;\n };\n})(jQuery);\n"]}