From 791895423611cd026f03f3912c799f4286fd730d Mon Sep 17 00:00:00 2001 From: Yutaro Iiyama Date: Thu, 16 Nov 2017 06:10:24 -0500 Subject: [PATCH 1/2] adding spin.min.js --- web/html/dynamo/dynamo/js/spin.min.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 web/html/dynamo/dynamo/js/spin.min.js diff --git a/web/html/dynamo/dynamo/js/spin.min.js b/web/html/dynamo/dynamo/js/spin.min.js new file mode 100644 index 00000000..bd3ae4f4 --- /dev/null +++ b/web/html/dynamo/dynamo/js/spin.min.js @@ -0,0 +1,2 @@ +// http://spin.js.org/#v2.3.2 +!function(a,b){"object"==typeof module&&module.exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.Spinner=b()}(this,function(){"use strict";function a(a,b){var c,d=document.createElement(a||"div");for(c in b)d[c]=b[c];return d}function b(a){for(var b=1,c=arguments.length;c>b;b++)a.appendChild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-"),f=.01+c/d*100,g=Math.max(1-(1-a)/b*(100-f),a),h=j.substring(0,j.indexOf("Animation")).toLowerCase(),i=h&&"-"+h+"-"||"";return m[e]||(k.insertRule("@"+i+"keyframes "+e+"{0%{opacity:"+g+"}"+f+"%{opacity:"+a+"}"+(f+.01)+"%{opacity:1}"+(f+b)%100+"%{opacity:"+a+"}100%{opacity:"+g+"}}",k.cssRules.length),m[e]=1),e}function d(a,b){var c,d,e=a.style;if(b=b.charAt(0).toUpperCase()+b.slice(1),void 0!==e[b])return b;for(d=0;d',c)}k.addRule(".spin-vml","behavior:url(#default#VML)"),h.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{width:k,height:k})}function h(a,h,i){b(m,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~h}),b(e(c("roundrect",{arcsize:d.corners}),{width:j,height:d.scale*d.width,left:d.scale*d.radius,top:-d.scale*d.width>>1,filter:i}),c("fill",{color:g(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var i,j=d.scale*(d.length+d.width),k=2*d.scale*j,l=-(d.width+d.length)*d.scale*2+"px",m=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(i=1;i<=d.lines;i++)h(i,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(i=1;i<=d.lines;i++)h(i);return b(a,m)},h.prototype.opacity=function(a,b,c,d){var e=a.firstChild;d=d.shadow&&d.lines||0,e&&b+d>1)+"px"})}for(var i,k=0,l=(f.lines-1)*(1-f.direction)/2;k Date: Thu, 16 Nov 2017 06:11:14 -0500 Subject: [PATCH 2/2] and referencing it from html --- web/cgi-bin/dynamo/detox/html/detox.html | 2 +- web/cgi-bin/dynamo/inventory/html/inventory.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/cgi-bin/dynamo/detox/html/detox.html b/web/cgi-bin/dynamo/detox/html/detox.html index bda34c71..20456ad8 100644 --- a/web/cgi-bin/dynamo/detox/html/detox.html +++ b/web/cgi-bin/dynamo/detox/html/detox.html @@ -7,7 +7,7 @@ - + - +