Roman Nurik | e577d72 | 2010-04-16 15:57:34 -0700 | [diff] [blame^] | 1 | page.title=Technical Resource Topics |
| 2 | @jd:body |
| 3 | |
| 4 | <style type="text/css"> |
| 5 | #resource-topic-table td { |
| 6 | border: 0; |
| 7 | padding: 0; |
| 8 | margin: 0; |
| 9 | padding-left: 1em; |
| 10 | width: 18em; |
| 11 | } |
| 12 | |
| 13 | #resource-topic-table ul { |
| 14 | padding: 0; |
| 15 | margin: 0; |
| 16 | } |
| 17 | |
| 18 | #resource-topic-table li { |
| 19 | list-style: none; |
| 20 | margin: 0; |
| 21 | padding: 0; |
| 22 | } |
| 23 | </style> |
| 24 | |
| 25 | <p> |
| 26 | You can browse the list of technical resources by topic by clicking on the |
| 27 | links below. Over time, as more topics are added, they will be added to the |
| 28 | list below. |
| 29 | </p> |
| 30 | |
| 31 | <noscript> |
| 32 | <p class="note"><strong>Error:</strong> |
| 33 | You must have JavaScript enabled to view this page. Resources are also |
| 34 | available offline in the SDK. |
| 35 | </p> |
| 36 | </noscript> |
| 37 | |
| 38 | <table id="resource-topic-table"> |
| 39 | <tr></tr> |
| 40 | </table> |
| 41 | |
| 42 | <script type="text/javascript"> |
| 43 | <!-- |
| 44 | (function() { |
| 45 | var topics = []; |
| 46 | for (var topic in ANDROID_TAGS['topic']) { |
| 47 | topics.push({name:topic,title:ANDROID_TAGS['topic'][topic]}); |
| 48 | } |
| 49 | topics.sort(function(x,y){ return (x.title < y.title) ? -1 : 1; }); |
| 50 | var topicParent = null; |
| 51 | for (var i = 0; i < topics.length; i++) { |
| 52 | if (topicParent == null || i % 10 == 0) { |
| 53 | // create a new column |
| 54 | topicParent = $('ul', $('<td><ul>').appendTo('#resource-topic-table tr')); |
| 55 | } |
| 56 | |
| 57 | topicParent.append( |
| 58 | $('<li>').append( |
| 59 | $('<h3>').append( |
| 60 | $('<a>') |
| 61 | .attr('href', toRoot + "resources/browser.html?tag=" + topics[i].name) |
| 62 | .append($('<span>') |
| 63 | .addClass('en') |
| 64 | .html(topics[i].title) |
| 65 | ) |
| 66 | ) |
| 67 | ) |
| 68 | ); |
| 69 | } |
| 70 | })(); |
| 71 | //--> |
| 72 | </script> |