Skip to content
This repository
Browse code

Fixed widget test

  • Loading branch information...
commit 81a57bbf3e5a6359e9f8b51644c0fd612cd730ce 1 parent 3555453
Dave Cross authored

Showing 1 changed file with 7 additions and 6 deletions. Show diff stats Hide diff stats

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

0 notes on commit 81a57bb

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