Mercurial > mozilla > hg > talosnames
comparison talosnames/templates/tbpl.html @ 49:6ccef7749b49
begin to hook up all the things
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 13 Aug 2012 16:12:59 -0700 |
parents | bfea9feb5179 |
children | 687d31c93111 |
comparison
equal
deleted
inserted
replaced
48:bfea9feb5179 | 49:6ccef7749b49 |
---|---|
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Talos names: TBPL</title> | 3 <title>Talos names: TBPL</title> |
4 <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> | |
5 | |
6 <script> | |
7 // In order to get anything working with Config.js | |
8 // We have to stub a bunch of stuff for no reason | |
9 BuildbotDBUser = null; | |
10 PushlogJSONParser = null; | |
11 </script> | |
12 <script src="http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/raw-file/tip/js/Config.js"></script> | |
13 | |
4 <script> | 14 <script> |
5 var data = {{json | html}}; | 15 var data = {{json | html}}; |
16 $(document).ready(function() { | |
17 | |
18 var reverse_mapping = {}; | |
19 | |
20 for (var i in Config.testNames) { | |
21 reverse_mapping[Config.testNames[i]] = i; | |
22 } | |
23 | |
24 $(".letter").each(function() { | |
25 var text = $(this).text() | |
26 if (text.length && reverse_mapping[text]) { | |
27 $(this).attr('title', reverse_mapping[text]); | |
28 } | |
29 | |
30 }); | |
31 | |
32 }); | |
6 </script> | 33 </script> |
7 | 34 |
8 <style> | 35 <style> |
9 * { | 36 * { |
10 font-family: sanserif; | 37 font-family: sanserif; |
19 } | 46 } |
20 | 47 |
21 .letter { | 48 .letter { |
22 color: green; | 49 color: green; |
23 } | 50 } |
24 | |
25 </style> | 51 </style> |
26 | 52 |
27 </head> | 53 </head> |
28 <body> | 54 <body> |
29 | 55 |