1. Sachirou Inoue
  2. UserControl

Commits

Sachirou Inoue  committed e0be826

Fadeout bug fix.

  • Participants
  • Parent commits e1d1eba
  • Branches master

Comments (0)

Files changed (2)

File UserControl/script/script.js

View file
  • Ignore whitespace
   if (!notifyNode || notifyNode.innerHTML.trim() === '') return;
   notifyNode.style.display = 'block';
   notifyNode.style.opacity = 0.9;
-  _window.setTimeout(function () { fadeout(notifyNode); }, 2000);
+  _window.setTimeout(function () { hideFadeout(notifyNode); }, 2000);
 }
 
 function toggleHeaderMenu () {

File UserControl/script/script.min.js

View file
  • Ignore whitespace
-(function(a,h){function j(b){var d,c,f;if(e){f=function(){b();e(f)};d=e(f);c=function(){g(d)}}else{f=function(){b()};d=setInterval(f,16);c=function(){clearInterval(d)}}return c}function k(b){var d,c=0;b.style.display="block";b.style.overflow="hidden";b.style.height="0%";d=j(function(){c+=10;b.style.height=c+"%";c>=100&&d()})}function l(b){var d,c=parseInt(a.getComputedStyle(b).height),f=~~(c/10);b.style.overflow="hidden";d=j(function(){c-=f;b.style.height=c+"px";if(c<=0){d();b.style.display="none"}})}
-var e,g;if(a.requestAnimationFrame&&a.cancelAnimationFrame){e=a.requestAnimationFrame;g=a.cancelAnimationFrame}else if(a.mozRequestAnimationFrame&&a.mozCancelAnimationFrame){e=a.mozRequestAnimationFrame;g=a.mozCancelAnimationFrame}else if(a.msRequestAnimationFrame&&a.msCancelAnimationFrame){e=a.msRequestAnimationFrame;g=a.msCancelAnimationFrame}else if(a.webkitRequestAnimationFrame&&a.webkitCancelAnimationFrame){e=a.webkitRequestAnimationFrame;g=a.webkitCancelAnimationFrame}else if(a.oRequestAnimationFrame&&
-a.oCancelAnimationFrame){e=a.oRequestAnimationFrame;g=a.oCancelAnimationFrame}if(!String.prototype.trim)String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")};var m=h.getElementById("headerMenu"),i=h.getElementById("headerMenuSlidedown");(function(){var b=h.getElementById("LabelNotification");if(!(!b||b.innerHTML.trim()==="")){b.style.display="block";b.style.opacity=0.9;a.setTimeout(function(){fadeout(b)},2E3)}})();m.addEventListener("click",function(){i.style.display===
-"block"?l(i):k(i)})})(window,document);
+(function(a,h){function i(b){var d,c,f;if(e){f=function(){b();e(f)};d=e(f);c=function(){g(d)}}else{f=function(){b()};d=setInterval(f,16);c=function(){clearInterval(d)}}return c}function k(b){var d,c=parseFloat(b.style.opacity)||1;d=i(function(){c-=0.01;b.style.opacity=c;if(c<=0){d();b.style.display="none"}})}function l(b){var d,c=0;b.style.display="block";b.style.overflow="hidden";b.style.height="0%";d=i(function(){c+=10;b.style.height=c+"%";c>=100&&d()})}function m(b){var d,c=parseInt(a.getComputedStyle(b).height),
+f=~~(c/10);b.style.overflow="hidden";d=i(function(){c-=f;b.style.height=c+"px";if(c<=0){d();b.style.display="none"}})}var e,g;if(a.requestAnimationFrame&&a.cancelAnimationFrame){e=a.requestAnimationFrame;g=a.cancelAnimationFrame}else if(a.mozRequestAnimationFrame&&a.mozCancelAnimationFrame){e=a.mozRequestAnimationFrame;g=a.mozCancelAnimationFrame}else if(a.msRequestAnimationFrame&&a.msCancelAnimationFrame){e=a.msRequestAnimationFrame;g=a.msCancelAnimationFrame}else if(a.webkitRequestAnimationFrame&&
+a.webkitCancelAnimationFrame){e=a.webkitRequestAnimationFrame;g=a.webkitCancelAnimationFrame}else if(a.oRequestAnimationFrame&&a.oCancelAnimationFrame){e=a.oRequestAnimationFrame;g=a.oCancelAnimationFrame}if(!String.prototype.trim)String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")};var n=h.getElementById("headerMenu"),j=h.getElementById("headerMenuSlidedown");(function(){var b=h.getElementById("LabelNotification");if(!(!b||b.innerHTML.trim()==="")){b.style.display=
+"block";b.style.opacity=0.9;a.setTimeout(function(){k(b)},2E3)}})();n.addEventListener("click",function(){j.style.display==="block"?m(j):l(j)})})(window,document);