Skip to content
This repository
Browse code

First attempts at a Travis-CI widget.

  • Loading branch information...
commit cf0f6ae457821bc3af35d3382df612594de6b691 1 parent 77de341
Dave Cross authored February 03, 2014

Showing 1 changed file with 26 additions and 0 deletions. Show diff stats Hide diff stats

  1. 26  test.html
26  test.html
... ...
@@ -0,0 +1,26 @@
  1
+<html>
  2
+  <head>
  3
+    <title>Travis-CI Widget Test</title>
  4
+    <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  5
+  </head>
  6
+  <body>
  7
+    <h1>Travis-CI Widget Test</h1>
  8
+    <div id="here"></div>
  9
+    <script type="text/javascript">
  10
+(function() {
  11
+  alert("Hello");
  12
+  $.getJSON( "https://api.travis-ci.org/repos/davorg/lystyng/builds", function( data ) {
  13
+    var items = [];
  14
+    $.each( data, function( build ) {
  15
+      items.push( "<li id='" + build.id + "'>" + build.number + "</li>" );
  16
+    });
  17
+    $( "<ul/>", {
  18
+      "class": "my-new-list",
  19
+      html: items.join( "" )
  20
+    }).appendTo( "body" );
  21
+  });
  22
+  alert("Goodbye");
  23
+})();
  24
+    </script>
  25
+  </body>
  26
+</html>

0 notes on commit cf0f6ae

Please sign in to comment.
Something went wrong with that request. Please try again.