mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
21 lines
498 B
JavaScript
21 lines
498 B
JavaScript
BorderAnimation = function(color) {
|
|
this._color = color;
|
|
}
|
|
|
|
BorderAnimation.prototype = {
|
|
animate: function(panelElement) {
|
|
var s = panelElement.style;
|
|
s.borderWidth = '2px';
|
|
s.borderColor = this._color;
|
|
s.borderStyle = 'solid';
|
|
|
|
window.setTimeout(
|
|
function() {{
|
|
s.borderWidth = 0;
|
|
}},
|
|
500);
|
|
}
|
|
}
|
|
|
|
if(typeof(Sys) !== "undefined")Sys.Application.notifyScriptLoaded();
|