blob: 52589024ca41af967fd9335c2f8f5ba0c5692307 [file] [log] [blame]
Ben Dodsond3191f02010-08-24 14:39:58 -07001function showApiWarning(thing, selectedLevel, minLevel) {
2 if (selectedLevel < minLevel) {
3 $("#naMessage").show().html("<div><p><strong>This " + thing + " is not available with API Level " + selectedLevel + ".</strong></p>"
4 + "<p>To use this " + thing + ", your application must specify API Level " + minLevel + " or higher in its manifest "
5 + "and be compiled against a version of the Android library that supports an equal or higher API Level. To reveal this "
6 + "document, change the value of the API Level filter above.</p>"
7 + "<p><a href='" +toRoot+ "guide/appendix/api-levels.html'>What is the API Level?</a></p></div>");
8 } else {
9 $("#naMessage").hide();
10 }
11}
Ben Dodson07aebf32010-08-24 17:13:08 -070012
13// Direct searches to search.html
14HAS_SEARCH_PAGE = true;