class TeaspoonInterface constructor: -> @files = $u("#teaspoon-suite-list .file a") @input = $u("#teaspoon-filter-input")[0] @input.value = "" @input.onkeyup = @filter filter: => for file in @files if LiquidMetal.score(file.innerHTML, @input.value) > 0 file.parentNode.style.display = "block" else file.parentNode.style.display = "none" window.onload = -> new TeaspoonInterface() ` /*! * LiquidMetal * Copyright (c) 2009, Ryan McGeary (ryanonjavascript -[at]- mcgeary [*dot*] org) */ var LiquidMetal=function(){var l=0.0;var m=1.0;var n=0.8;var o=0.9;var p=0.85;return{score:function(a,b){if(b.length==0)return n;if(b.length>a.length)return l;var c=this.buildScoreArray(a,b);var d=0.0;for(var i=0;i