summaryrefslogtreecommitdiffstats
path: root/tools/droiddoc/templates-sdk/assets/js
Commit message (Collapse)AuthorAgeFilesLines
...
* update the init_google_navtree2 method to handle new format for sample nav ↵Scott Main2013-09-131-11/+36
| | | | | | | | tree data. and update highlighting logic to handle hashtags Change-Id: I77de8faaaeed12317aa83086df8273648a1ff00a
* Merge "clean up the sample template files to remove unused stuff and fix the ↵Scott Main2013-08-221-6/+8
|\ | | | | | | collapsible project list and highlight the Samples nav" into jb-mr2-docs
| * clean up the sample template files to remove unused stuffScott Main2013-08-221-5/+7
| | | | | | | | | | | | | | and fix the collapsible project list and highlight the Samples nav Change-Id: I8baf5874ae709c914aae47ffb04fc8e0b84e8dea
* | fix a couple bugs in sidenav for samples.Scott Main2013-08-221-9/+12
|/ | | | | | | Previously, clicking a link still invoked the expand collapse behavior. Previously, collapsing a parent item did not also collapse its children. Change-Id: Iac0b9208bfbab79e9715850f9a192c22250d0673
* modify sample template and add new css/script for new numbered code.Scott Main2013-08-211-2/+61
| | | | | | | | | | The line numbers are included inside the <pre> block initially, but hidden, so this script moves the numbers to a separate block on the left and makes them non-selectable. Also includes script for features like single-click to highlight a line of code and double-click to invoke the link for that line. Change-Id: I17ebb1255ff036948028b4722cc8e9758fb96553
* new version of script to build sidenav lists dynamically.Scott Main2013-08-201-28/+87
| | | | | | | This is currently used only by the samples nav, but we'll later update to handle the Google reference nav as well Change-Id: I907ea8cb096148ba50808623ed872c8defc9a135
* doc change: Samples browsing: basic support in templates and js/css.Dirk Dougherty2013-08-191-7/+25
| | | | Change-Id: Ie2323f5323c624420c90c8c782b840f183238f7c
* fix two bugs in site script.Scott Main2013-08-151-13/+11
| | | | | | | | | | | 1. Fix URL path check for reference docs to initalize api level and sidenav. Previously, this condition was never true, so the sidenav would not be initialized under default conditions and the reference drag bar would not appear. 2. Fix the recent change to the 'scroll into view' script so that it works properly in a multi-pane sidenav (reference docs) by again making the offset measurement relative to the parent container (but much better than was done before). Change-Id: I2a31ed59d772346651c2432f0ed26530983c49ff
* add fixed size to training icons (and remove whitespaces)Scott Main2013-08-011-119/+121
| | | | Change-Id: Iad8b597b9f181833d9f1d63e128abb49486fa543
* fix sidebar autoscroll when the selected doc is not visible.Scott Main2013-07-301-7/+12
| | | | | | | | | | | | bug: 9676913 This was not working for third generation list items. Switching the position measurement to be relative to the entire page rather than the parent container fixes it. I then added 125px to account for the site header and set the threshold and placement of scrolled items to be at 80% the nav height. Change-Id: Idda1896d11069e56325ba830ed745dae9e0fc483
* fix the api level filter (wasn't greying out APIs on page load)Scott Main2013-07-231-0/+1
| | | | Change-Id: Iaafe8c0652856eaff6725491f21581969e94f430
* add new script to toggle visibility of nested list items.Scott Main2013-06-171-50/+14
| | | | | | call hideNestedItems(), giving it the parent list to toggle and the <a> element that performs the toggle Change-Id: I6f1ee74b957f88c23550145c6ed057d8e7797c99
* provide search suggestions for api guides, training, etc.Scott Main2013-05-021-84/+308
| | | | | | | | also: - demote deprecated APIs in suggestions - focus search bar with / and exit search with ESC Change-Id: I78818d76375d63b9eb42922d6c20ebbea30c353b
* load google API navtree ondemand (remove request from <head>).Scott Main2013-04-011-14/+42
| | | | | | | Also move the code for highlighting the sidenav into a separate method that we can call at a later time, such as after the gms reference is loaded into nav. Change-Id: I924d68b2b9dbfed83f81d1fd418e06b6c79a9010
* load the navtree javascript on demand; don't try setting up the tree until ↵Scott Main2013-03-271-1/+11
| | | | | | it's loaded Change-Id: I1f209869a17099dd853a2f4cae766481a6cd03eb
* add javascript action events to search suggestions and search results.Scott Main2013-03-251-1/+23
| | | | | | Allows us to track and compare the success of suggested results and results from Google Change-Id: I64750e3b96ea585de415969cad8ab46c3bbbcaf4
* docs: update templates to remove global content for devsite buildsScott Main2013-03-211-2/+4
| | | | Change-Id: I8c8d052248cebe6408d8c18b44baadd03f3bc96c
* docs: fix suggestions due to file name change for js filesScott Main2013-02-261-2/+2
| | | | Change-Id: I4037c80f79f37f7a80d0977b4e07f992e3de61e1
* docs: update search suggest with google services apisScott Main2013-02-261-73/+137
| | | | | | including some optimizations for loading javascript resources Change-Id: Idfea12bbb70a24a7853d997e8376e3db50e56760
* docs: switch templates to dynamic tab highlighting; prep for devsite ↵Scott Main2013-02-121-4/+38
| | | | | | template migration Change-Id: I5785c63603d8da5dfa1118fe28a3106aa20835a6
* docs: fix lang switcher for gae by deleting obsolete method callScott Main2013-01-301-1/+0
| | | | Change-Id: I8d91d18e89d539960c93748557cccc5aabb0a263
* docs: delete obsolete asset filesScott Main2013-01-293-348/+0
| | | | Change-Id: I1aa8a8fa757dbc81180c0585eacb68df5fe0ceb1
* docs: update template files with those from the templates-ds directoryScott Main2013-01-291-0/+2766
| | | | Change-Id: I47b07b17ea79d0b00300492ba7854e37f1ab00d0
* docs: use devsite hdf bool as a javascript condition for managing the lang ↵Scott Main2013-01-291-31/+50
| | | | | | | | toggle. sync the sdk and ds templates so we can move toward one template set Change-Id: I5316d4cd085734a47953beba203ba8beeb64549e
* docs: add the ability to pause the carouselScott Main2013-01-141-0/+19
| | | | Change-Id: I1ffc929cf93217b578397d825e1eb41369d2666c
* docs: don't allow setting the sidenav fixed if the doc body isScott Main2012-12-191-0/+6
| | | | | | | | shorter than the sidenav. Scrolling won't be possible in this case anyway, but this change fixes a glitch that happens on OSX Lion because it will allow scrolling anyway for the overscroll bounce. Change-Id: I1be1c170e327f3cdfe81076a473f74425b8bd080
* Merge "fix docs.js bug where changeApiLevel is getting called" into jb-mr1-devRobert Ly2012-12-031-9/+10
|\
| * fix docs.js bug where changeApiLevel is getting calledRobert Ly2012-12-031-9/+10
| | | | | | | | Change-Id: Ic250afc792d7e4174bd987ce31df384dad3831ca
* | docs: add "Google Services" search tabScott Main2012-12-031-0/+5
|/ | | | Change-Id: I624f99aeb2f760d646f37d783ebb31b5d7d372b8
* docs: revisions for google reference navScott Main2012-11-301-46/+6
| | | | Change-Id: I9befa502a3ce30ab6cca7d45ce1bb469930c14ed
* add support for gms javadocsRobert Ly2012-11-301-8/+142
| | | | Change-Id: Ieecf09794373a176430f554f39e1c632a7013519
* docs: add support for an infinite number of nested lists in side navScott Main2012-11-271-5/+6
| | | | Change-Id: I9e0fa672e20067f3e09f56560e7d11847d0b9388
* docs: revise message when api level for docs is too low;Scott Main2012-11-161-5/+12
| | | | | | make the message appear on package pages as well Change-Id: I9e71d4054e2e14efe9646029ac0a18022ec24fb2
* am 9efb6b09: am be264b6d: am 5a1123ef: add script to generate list of ↵Scott Main2012-11-141-48/+87
|\ | | | | | | | | | | | | classes for each training course landing page * commit '9efb6b09c4a32cc5cd190a224d15022968859ddb': add script to generate list of classes for each training course landing page
| * add script to generate list of classes for each training course landing pageScott Main2012-11-141-48/+87
| | | | | | | | Change-Id: Ieac8a97a8d6fda41a3682241901150cfe16afc4d
* | docs: changes to sdk page and script for togglesScott Main2012-11-121-0/+1
|/ | | | Change-Id: Idef0c6099885cada3a4866ed7b5ec5b6f5078e39
* add ADT Bundle to the download pageScott Main2012-11-121-3/+18
| | | | Change-Id: Ife533a32e29f2d5f1c58a42ad0b91c5053b44da4
* DO NOT MERGEScott Main2012-10-021-25/+7
| | | | | | | | | | | cherypick from jb-dev Change-Id: Ifcae4fcf716c8bb48f3ff18f17313b3f131c3f73 refactor the logic for changing languages in global strings. instead of using separate <span> elements for each language, provide a unique attribute in each <a> element for each localized version of that link's title. Change-Id: I09c65a8dce9b3d9623e32fe17876b055e452618b
* DO NOT MERGEScott Main2012-10-021-1/+1
| | | | | | | cherrypick from jb-dev Change-Id: I90412e1e03a2676d927796187fe811481bf38455 add localize langs for global strings Change-Id: I02b6c5b5d83247a352dc041e9885befe82502adc
* DO NOT MERGEScott Main2012-10-021-1/+1
| | | | | | | | cherrypick from jb-devChange-Id: I6eb11d3629dd13d2c7ac297cc9fa3828ed59f170 add style for code captions; ignore sidenav headers for HRs Change-Id: Ic7768dc388a3871be8b02634e2b70f360a62e407
* fix script bug. we were running some scripts that are only used in the referenceScott Main2012-09-071-7/+8
| | | | Change-Id: I0693a7a7af5e41283942b387e53a254903b83427
* docs: combine all possible js files into one to reduce the number of requestsScott Main2012-08-159-1779/+1186
| | | | | | | Also make change to doc template and css to fix footer layout bug introduced by change 9edfa6db8c53ef9515aaeed734bea02c5d65e1e5 Change-Id: Icfb1b499abfca6a39b5bff8fab576b14a1cf960a
* add script to create links on topic landing page for first doc that use the ↵Scott Main2012-07-301-1/+5
| | | | | | doc's title Change-Id: Iec86a5b9fa7dcd9246d6e8958f17e0022e0963a8
* docs: add check in hash-change callback to be sure we're only dealing with ↵Scott Main2012-07-181-6/+10
| | | | | | | | hash-tags that are search queries. bug: 6843654 Change-Id: I5fee7426d8ad404a5f03f37297fe72009df30de7
* docs: upgrades to search.Scott Main2012-07-161-98/+41
| | | | | | | | | Fix history navigation functionality. Faster ajax requery while typing. Ignore ENTER key when performing requery to avoid reload. Improve results reveal with minimum height for proper div. Change-Id: Ie50a6d7bdf58ad3e17dd15d30dcec973a123b7bf
* docs: fix search suggestions and other script bugs for offline docsScott Main2012-07-032-8/+5
| | | | Change-Id: I3f9404695966b99be1c8ed36249788e448399296
* Massive clobber of all template files in developer site for new designScott Main2012-06-2112-0/+3264
Change-Id: I5f243dcb377a8b2e573c404a9e685cc64e0e06d2