Sha256: 37248b892d5e6c0fda10488283e0256fff78176cde531991162d15b48175094b
Contents?: true
Size: 1.17 KB
Versions: 16
Compression:
Stored size: 1.17 KB
Contents
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.7.0-rc3 */ !function(){"use strict";function r(r,a,t){function n(r){return r.attr("aria-valuemin",0),r.attr("aria-valuemax",100),r.attr("role","progressbar"),i}function i(n,i,d){t(i);var u=i[0].querySelector(".md-bar1").style,c=i[0].querySelector(".md-bar2").style,s=angular.element(i[0].querySelector(".md-container"));d.$observe("value",function(r){if("query"!=d.mdMode){var t=o(r);i.attr("aria-valuenow",t),c[a.CSS.TRANSFORM]=e[t]}}),d.$observe("mdBufferValue",function(r){u[a.CSS.TRANSFORM]=e[o(r)]}),r(function(){s.addClass("md-ready")})}function o(r){return r>100?100:0>r?0:Math.ceil(r||0)}return{restrict:"E",template:'<div class="md-container"><div class="md-dashed"></div><div class="md-bar md-bar1"></div><div class="md-bar md-bar2"></div></div>',compile:n}}angular.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",r),r.$inject=["$$rAF","$mdConstant","$mdTheming"];var e=function(){function r(r){var e=r/100,a=(r-100)/2;return"translateX("+a.toString()+"%) scale("+e.toString()+", 1)"}for(var e=new Array(101),a=0;101>a;a++)e[a]=r(a);return e}()}();
Version data entries
16 entries across 16 versions & 1 rubygems