This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ----- Logger (mostly irrelevant for this case). | |
interface LoggerInterface { | |
info(message: string): void; | |
} | |
class Logger implements LoggerInterface { | |
info(message: string): void { | |
console.log(message); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script src="jquery.ellipsis.js"></script> | |
<script src="example.js"></script> | |
<style> | |
body { | |
font-family: Ubuntu, Calibri, Helvetica, Arial, sans-serif; | |
font-size: 14px; | |
line-height: 20px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Deferred = (function () { | |
var states = { | |
SUCCESS: 1, | |
FAILURE: 2, | |
COMPLETE: 3 | |
}, | |
Deferred; | |
function updateCallbacks(requiredStates, callback) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createTableView() { | |
var companies, table, rows, search, previousSearch; | |
// Sample data | |
companies = [{"name":"ultrices tellus aliquam","description":"egestas sapien morbi quis adipiscing maecenas praesent luctus aptent risus ligula commodo fermentum integer in scelerisque ultrices feugiat malesuada ut feugiat torquent posuere ultricies habitasse nam"},{"name":"varius","description":"nam risus egestas augue elit venenatis felis curabitur mollis lorem tincidunt sapien feugiat mauris praesent aliquet platea suscipit ligula lobortis pulvinar malesuada"},{"name":"eros","description":"pulvinar potenti phasellus quis vestibulum blandit sed dapibus praesent cursus pretium euismod"},{"name":"diam sit eleifend","description":"aenean eleifend inceptos tempor commodo aenean primis quam interdum viverra tortor fusce fames"},{"name":"pretium","description":"pharetra non platea tortor neque gravida orci volutpat taciti etiam urna tortor pellentesque dolor dapibus aenean"},{"name":"netus ut quam","descri |