Skip to content

Commit

Permalink
First attempts at a Travis-CI widget.
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Feb 3, 2014
1 parent 77de341 commit cf0f6ae
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<html>
<head>
<title>Travis-CI Widget Test</title>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
<h1>Travis-CI Widget Test</h1>
<div id="here"></div>
<script type="text/javascript">
(function() {
alert("Hello");
$.getJSON( "https://api.travis-ci.org/repos/davorg/lystyng/builds", function( data ) {
var items = [];
$.each( data, function( build ) {
items.push( "<li id='" + build.id + "'>" + build.number + "</li>" );
});
$( "<ul/>", {
"class": "my-new-list",
html: items.join( "" )
}).appendTo( "body" );
});
alert("Goodbye");
})();
</script>
</body>
</html>

0 comments on commit cf0f6ae

Please sign in to comment.