diff options
| author | Kristian Lyngstol <kly@kly.no> | 2016-03-14 18:17:36 +0000 | 
|---|---|---|
| committer | Kristian Lyngstol <kly@kly.no> | 2016-03-14 18:17:36 +0000 | 
| commit | 783096cef942a275f23f7c7cb63bbca175cff0ba (patch) | |
| tree | 2da1c2ccf82756c584b36c0bb791d36d7067a2c5 /web/nms.gathering.org/js/nms-info-box.js | |
| parent | fc4d300490d896124036c523ec731a56797ec844 (diff) | |
NMS: Tweak search with blinking pink!
I'm proud of this silliness.
Diffstat (limited to 'web/nms.gathering.org/js/nms-info-box.js')
| -rw-r--r-- | web/nms.gathering.org/js/nms-info-box.js | 22 | 
1 files changed, 16 insertions, 6 deletions
diff --git a/web/nms.gathering.org/js/nms-info-box.js b/web/nms.gathering.org/js/nms-info-box.js index 2ef4c3b..58beea5 100644 --- a/web/nms.gathering.org/js/nms-info-box.js +++ b/web/nms.gathering.org/js/nms-info-box.js @@ -150,14 +150,24 @@ nmsInfoBox._search = function() {  		id = el.value;  	}  	if (id && nmsData.switches.switches[id] != undefined) { -		nmsMap.setSwitchColor(id, "pink"); +		nmsMap.setSwitchColor(id, "red"); +		window.setTimeout(function(){ +			nmsMap.setSwitchColor(id, "pink"); +			window.setTimeout(function(){ +				nmsMap.setSwitchColor(id, "red"); +				window.setTimeout(function(){ +					nmsMap.setSwitchColor(id, "pink"); +					window.setTimeout(function(){ +						nmsMap.setSwitchColor(id, "red"); +						window.setTimeout(function(){ +							nmsMap.setSwitchColor(id, "pink"); +						},300); +					},300); +				},300); +			},300); +		},300);  		el.parentElement.classList.remove("has-error");  		el.parentElement.classList.add("has-success"); -		setTimeout(function(){ -			nmsInfoBox.show(id); -			var el = document.getElementById("searchbox"); -			el.parentElement.classList.remove("has-success"); -			},1000);  	} else {  		el.parentElement.classList.add("has-error");  	}  | 
