Wagon: Deploying site to repository
1198
apidocs/assets/android-developer-core.css
Normal file
19
apidocs/assets/android-developer-docs-devguide.css
Normal file
|
@ -0,0 +1,19 @@
|
|||
|
||||
@import url("android-developer-docs.css");
|
||||
|
||||
/* Page title */
|
||||
|
||||
#jd-header h1 {
|
||||
padding: 8px 0 0 0;
|
||||
}
|
||||
|
||||
/* Page content container */
|
||||
|
||||
#jd-header table {
|
||||
margin: 0 0 1em 1em;
|
||||
}
|
||||
|
||||
#jd-content table table,
|
||||
#jd-content table img {
|
||||
margin:1em 0;
|
||||
}
|
1297
apidocs/assets/android-developer-docs.css
Normal file
595
apidocs/assets/android-developer-docs.js
Normal file
|
@ -0,0 +1,595 @@
|
|||
var resizePackagesNav;
|
||||
var classesNav;
|
||||
var devdocNav;
|
||||
var sidenav;
|
||||
var content;
|
||||
var HEADER_HEIGHT = -1;
|
||||
var cookie_namespace = 'android_developer';
|
||||
var NAV_PREF_TREE = "tree";
|
||||
var NAV_PREF_PANELS = "panels";
|
||||
var nav_pref;
|
||||
var toRoot;
|
||||
var toAssets;
|
||||
var isMobile = false; // true if mobile, so we can adjust some layout
|
||||
var isIE6 = false; // true if IE6
|
||||
|
||||
// TODO: use $(document).ready instead
|
||||
function addLoadEvent(newfun) {
|
||||
var current = window.onload;
|
||||
if (typeof window.onload != 'function') {
|
||||
window.onload = newfun;
|
||||
} else {
|
||||
window.onload = function() {
|
||||
current();
|
||||
newfun();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var agent = navigator['userAgent'].toLowerCase();
|
||||
// If a mobile phone, set flag and do mobile setup
|
||||
if ((agent.indexOf("mobile") != -1) || // android, iphone, ipod
|
||||
(agent.indexOf("blackberry") != -1) ||
|
||||
(agent.indexOf("webos") != -1) ||
|
||||
(agent.indexOf("mini") != -1)) { // opera mini browsers
|
||||
isMobile = true;
|
||||
addLoadEvent(mobileSetup);
|
||||
// If not a mobile browser, set the onresize event for IE6, and others
|
||||
} else if (agent.indexOf("msie 6") != -1) {
|
||||
isIE6 = true;
|
||||
addLoadEvent(function() {
|
||||
window.onresize = resizeAll;
|
||||
});
|
||||
} else {
|
||||
addLoadEvent(function() {
|
||||
window.onresize = resizeHeight;
|
||||
});
|
||||
}
|
||||
|
||||
function mobileSetup() {
|
||||
$("body").css({'overflow':'auto'});
|
||||
$("html").css({'overflow':'auto'});
|
||||
$("#body-content").css({'position':'relative', 'top':'0'});
|
||||
$("#doc-content").css({'overflow':'visible', 'border-left':'3px solid #DDD'});
|
||||
$("#side-nav").css({'padding':'0'});
|
||||
$("#nav-tree").css({'overflow-y': 'auto'});
|
||||
}
|
||||
|
||||
/* loads the lists.js file to the page.
|
||||
Loading this in the head was slowing page load time */
|
||||
addLoadEvent( function() {
|
||||
var lists = document.createElement("script");
|
||||
lists.setAttribute("type","text/javascript");
|
||||
lists.setAttribute("src", toRoot+"lists.js");
|
||||
document.getElementsByTagName("head")[0].appendChild(lists);
|
||||
} );
|
||||
|
||||
addLoadEvent( function() {
|
||||
$("pre:not(.no-pretty-print)").addClass("prettyprint");
|
||||
prettyPrint();
|
||||
} );
|
||||
|
||||
function setToRoot(root, assets) {
|
||||
toRoot = root;
|
||||
toAssets = assets;
|
||||
// note: toRoot also used by carousel.js
|
||||
}
|
||||
|
||||
function restoreWidth(navWidth) {
|
||||
var windowWidth = $(window).width() + "px";
|
||||
content.css({marginLeft:parseInt(navWidth) + 6 + "px"}); //account for 6px-wide handle-bar
|
||||
|
||||
if (isIE6) {
|
||||
content.css({width:parseInt(windowWidth) - parseInt(navWidth) - 6 + "px"}); // necessary in order for scrollbars to be visible
|
||||
}
|
||||
|
||||
sidenav.css({width:navWidth});
|
||||
resizePackagesNav.css({width:navWidth});
|
||||
classesNav.css({width:navWidth});
|
||||
$("#packages-nav").css({width:navWidth});
|
||||
}
|
||||
|
||||
function restoreHeight(packageHeight) {
|
||||
var windowHeight = ($(window).height() - HEADER_HEIGHT);
|
||||
var swapperHeight = windowHeight - 13;
|
||||
$("#swapper").css({height:swapperHeight + "px"});
|
||||
sidenav.css({height:windowHeight + "px"});
|
||||
content.css({height:windowHeight + "px"});
|
||||
resizePackagesNav.css({maxHeight:swapperHeight + "px", height:packageHeight});
|
||||
classesNav.css({height:swapperHeight - parseInt(packageHeight) + "px"});
|
||||
$("#packages-nav").css({height:parseInt(packageHeight) - 6 + "px"}); //move 6px to give space for the resize handle
|
||||
devdocNav.css({height:sidenav.css("height")});
|
||||
$("#nav-tree").css({height:swapperHeight + "px"});
|
||||
}
|
||||
|
||||
function readCookie(cookie) {
|
||||
var myCookie = cookie_namespace+"_"+cookie+"=";
|
||||
if (document.cookie) {
|
||||
var index = document.cookie.indexOf(myCookie);
|
||||
if (index != -1) {
|
||||
var valStart = index + myCookie.length;
|
||||
var valEnd = document.cookie.indexOf(";", valStart);
|
||||
if (valEnd == -1) {
|
||||
valEnd = document.cookie.length;
|
||||
}
|
||||
var val = document.cookie.substring(valStart, valEnd);
|
||||
return val;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
function writeCookie(cookie, val, section, expiration) {
|
||||
if (val==undefined) return;
|
||||
section = section == null ? "_" : "_"+section+"_";
|
||||
if (expiration == null) {
|
||||
var date = new Date();
|
||||
date.setTime(date.getTime()+(10*365*24*60*60*1000)); // default expiration is one week
|
||||
expiration = date.toGMTString();
|
||||
}
|
||||
document.cookie = cookie_namespace + section + cookie + "=" + val + "; expires=" + expiration+"; path=/";
|
||||
}
|
||||
|
||||
function getSection() {
|
||||
if (location.href.indexOf("/reference/") != -1) {
|
||||
return "reference";
|
||||
} else if (location.href.indexOf("/guide/") != -1) {
|
||||
return "guide";
|
||||
} else if (location.href.indexOf("/resources/") != -1) {
|
||||
return "resources";
|
||||
}
|
||||
var basePath = getBaseUri(location.pathname);
|
||||
return basePath.substring(1,basePath.indexOf("/",1));
|
||||
}
|
||||
|
||||
function init() {
|
||||
HEADER_HEIGHT = $("#header").height()+3;
|
||||
$("#side-nav").css({position:"absolute",left:0});
|
||||
content = $("#doc-content");
|
||||
resizePackagesNav = $("#resize-packages-nav");
|
||||
classesNav = $("#classes-nav");
|
||||
sidenav = $("#side-nav");
|
||||
devdocNav = $("#devdoc-nav");
|
||||
|
||||
var cookiePath = getSection() + "_";
|
||||
|
||||
if (!isMobile) {
|
||||
$("#resize-packages-nav").resizable({handles: "s", resize: function(e, ui) { resizePackagesHeight(); } });
|
||||
$(".side-nav-resizable").resizable({handles: "e", resize: function(e, ui) { resizeWidth(); } });
|
||||
var cookieWidth = readCookie(cookiePath+'width');
|
||||
var cookieHeight = readCookie(cookiePath+'height');
|
||||
if (cookieWidth) {
|
||||
restoreWidth(cookieWidth);
|
||||
} else if ($(".side-nav-resizable").length) {
|
||||
resizeWidth();
|
||||
}
|
||||
if (cookieHeight) {
|
||||
restoreHeight(cookieHeight);
|
||||
} else {
|
||||
resizeHeight();
|
||||
}
|
||||
}
|
||||
|
||||
if (devdocNav.length) { // only dev guide, resources, and sdk
|
||||
tryPopulateResourcesNav();
|
||||
highlightNav(location.href);
|
||||
}
|
||||
}
|
||||
|
||||
function tryPopulateResourcesNav() {
|
||||
var sampleList = $('#devdoc-nav-sample-list');
|
||||
var articleList = $('#devdoc-nav-article-list');
|
||||
var tutorialList = $('#devdoc-nav-tutorial-list');
|
||||
var topicList = $('#devdoc-nav-topic-list');
|
||||
|
||||
if (!topicList.length || !ANDROID_TAGS || !ANDROID_RESOURCES)
|
||||
return;
|
||||
|
||||
var topics = [];
|
||||
for (var topic in ANDROID_TAGS['topic']) {
|
||||
topics.push({name:topic,title:ANDROID_TAGS['topic'][topic]});
|
||||
}
|
||||
topics.sort(function(x,y){ return (x.title < y.title) ? -1 : 1; });
|
||||
for (var i = 0; i < topics.length; i++) {
|
||||
topicList.append(
|
||||
$('<li>').append(
|
||||
$('<a>')
|
||||
.attr('href', toRoot + "../resources/browser.html?tag=" + topics[i].name)
|
||||
.append($('<span>')
|
||||
.addClass('en')
|
||||
.html(topics[i].title)
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
var _renderResourceList = function(tag, listNode) {
|
||||
var resources = [];
|
||||
var tags;
|
||||
var resource;
|
||||
var i, j;
|
||||
for (i = 0; i < ANDROID_RESOURCES.length; i++) {
|
||||
resource = ANDROID_RESOURCES[i];
|
||||
tags = resource.tags || [];
|
||||
var hasTag = false;
|
||||
for (j = 0; j < tags.length; j++)
|
||||
if (tags[j] == tag) {
|
||||
hasTag = true;
|
||||
break;
|
||||
}
|
||||
if (!hasTag)
|
||||
continue;
|
||||
resources.push(resource);
|
||||
}
|
||||
//resources.sort(function(x,y){ return (x.title.en < y.title.en) ? -1 : 1; });
|
||||
for (i = 0; i < resources.length; i++) {
|
||||
resource = resources[i];
|
||||
var listItemNode = $('<li>').append(
|
||||
$('<a>')
|
||||
.attr('href', toRoot + "../resources/" + resource.path)
|
||||
.append($('<span>')
|
||||
.addClass('en')
|
||||
.html(resource.title.en)
|
||||
)
|
||||
);
|
||||
tags = resource.tags || [];
|
||||
for (j = 0; j < tags.length; j++) {
|
||||
if (tags[j] == 'new') {
|
||||
listItemNode.get(0).innerHTML += ' <span class="new">new!</span>';
|
||||
break;
|
||||
}
|
||||
}
|
||||
listNode.append(listItemNode);
|
||||
}
|
||||
};
|
||||
|
||||
_renderResourceList('sample', sampleList);
|
||||
_renderResourceList('article', articleList);
|
||||
_renderResourceList('tutorial', tutorialList);
|
||||
}
|
||||
|
||||
function highlightNav(fullPageName) {
|
||||
var lastSlashPos = fullPageName.lastIndexOf("/");
|
||||
var firstSlashPos;
|
||||
if (fullPageName.indexOf("/guide/") != -1) {
|
||||
firstSlashPos = fullPageName.indexOf("/guide/");
|
||||
} else if (fullPageName.indexOf("/sdk/") != -1) {
|
||||
firstSlashPos = fullPageName.indexOf("/sdk/");
|
||||
} else {
|
||||
firstSlashPos = fullPageName.indexOf("/resources/");
|
||||
}
|
||||
if (lastSlashPos == (fullPageName.length - 1)) { // if the url ends in slash (add 'index.html')
|
||||
fullPageName = fullPageName + "index.html";
|
||||
}
|
||||
// First check if the exact URL, with query string and all, is in the navigation menu
|
||||
var pathPageName = fullPageName.substr(firstSlashPos);
|
||||
var link = $("#devdoc-nav a[href$='"+ pathPageName+"']");
|
||||
if (link.length == 0) {
|
||||
var htmlPos = fullPageName.lastIndexOf(".html", fullPageName.length);
|
||||
pathPageName = fullPageName.slice(firstSlashPos, htmlPos + 5); // +5 advances past ".html"
|
||||
link = $("#devdoc-nav a[href$='"+ pathPageName+"']");
|
||||
if ((link.length == 0) && ((fullPageName.indexOf("/guide/") != -1) || (fullPageName.indexOf("/resources/") != -1))) {
|
||||
// if there's no match, then let's backstep through the directory until we find an index.html page
|
||||
// that matches our ancestor directories (only for dev guide and resources)
|
||||
lastBackstep = pathPageName.lastIndexOf("/");
|
||||
while (link.length == 0) {
|
||||
backstepDirectory = pathPageName.lastIndexOf("/", lastBackstep);
|
||||
link = $("#devdoc-nav a[href$='"+ pathPageName.slice(0, backstepDirectory + 1)+"index.html']");
|
||||
lastBackstep = pathPageName.lastIndexOf("/", lastBackstep - 1);
|
||||
if (lastBackstep == 0) break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// add 'selected' to the <li> or <div> that wraps this <a>
|
||||
link.parent().addClass('selected');
|
||||
|
||||
// if we're in a toggleable root link (<li class=toggle-list><div><a>)
|
||||
if (link.parent().parent().hasClass('toggle-list')) {
|
||||
toggle(link.parent().parent(), false); // open our own list
|
||||
// then also check if we're in a third-level nested list that's toggleable
|
||||
if (link.parent().parent().parent().is(':hidden')) {
|
||||
toggle(link.parent().parent().parent().parent(), false); // open the super parent list
|
||||
}
|
||||
}
|
||||
// if we're in a normal nav link (<li><a>) and the parent <ul> is hidden
|
||||
else if (link.parent().parent().is(':hidden')) {
|
||||
toggle(link.parent().parent().parent(), false); // open the parent list
|
||||
// then also check if the parent list is also nested in a hidden list
|
||||
if (link.parent().parent().parent().parent().is(':hidden')) {
|
||||
toggle(link.parent().parent().parent().parent().parent(), false); // open the super parent list
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Resize the height of the nav panels in the reference,
|
||||
* and save the new size to a cookie */
|
||||
function resizePackagesHeight() {
|
||||
var windowHeight = ($(window).height() - HEADER_HEIGHT);
|
||||
var swapperHeight = windowHeight - 13; // move 13px for swapper link at the bottom
|
||||
resizePackagesNav.css({maxHeight:swapperHeight + "px"});
|
||||
classesNav.css({height:swapperHeight - parseInt(resizePackagesNav.css("height")) + "px"});
|
||||
|
||||
$("#swapper").css({height:swapperHeight + "px"});
|
||||
$("#packages-nav").css({height:parseInt(resizePackagesNav.css("height")) - 6 + "px"}); //move 6px for handle
|
||||
|
||||
var section = getSection();
|
||||
writeCookie("height", resizePackagesNav.css("height"), section, null);
|
||||
}
|
||||
|
||||
/* Resize the height of the side-nav and doc-content divs,
|
||||
* which creates the frame effect */
|
||||
function resizeHeight() {
|
||||
var docContent = $("#doc-content");
|
||||
|
||||
// Get the window height and always resize the doc-content and side-nav divs
|
||||
var windowHeight = ($(window).height() - HEADER_HEIGHT);
|
||||
docContent.css({height:windowHeight + "px"});
|
||||
$("#side-nav").css({height:windowHeight + "px"});
|
||||
|
||||
var href = location.href;
|
||||
// If in the reference docs, also resize the "swapper", "classes-nav", and "nav-tree" divs
|
||||
if (href.indexOf("/reference/") != -1) {
|
||||
var swapperHeight = windowHeight - 13;
|
||||
$("#swapper").css({height:swapperHeight + "px"});
|
||||
$("#classes-nav").css({height:swapperHeight - parseInt(resizePackagesNav.css("height")) + "px"});
|
||||
$("#nav-tree").css({height:swapperHeight + "px"});
|
||||
|
||||
// If in the dev guide docs, also resize the "devdoc-nav" div
|
||||
} else if (href.indexOf("/guide/") != -1) {
|
||||
$("#devdoc-nav").css({height:sidenav.css("height")});
|
||||
} else if (href.indexOf("/resources/") != -1) {
|
||||
$("#devdoc-nav").css({height:sidenav.css("height")});
|
||||
}
|
||||
|
||||
// Hide the "Go to top" link if there's no vertical scroll
|
||||
if ( parseInt($("#jd-content").css("height")) <= parseInt(docContent.css("height")) ) {
|
||||
$("a[href='#top']").css({'display':'none'});
|
||||
} else {
|
||||
$("a[href='#top']").css({'display':'inline'});
|
||||
}
|
||||
}
|
||||
|
||||
/* Resize the width of the "side-nav" and the left margin of the "doc-content" div,
|
||||
* which creates the resizable side bar */
|
||||
function resizeWidth() {
|
||||
var windowWidth = $(window).width() + "px";
|
||||
if (sidenav.length) {
|
||||
var sidenavWidth = sidenav.css("width");
|
||||
} else {
|
||||
var sidenavWidth = 0;
|
||||
}
|
||||
content.css({marginLeft:parseInt(sidenavWidth) + 6 + "px"}); //account for 6px-wide handle-bar
|
||||
|
||||
if (isIE6) {
|
||||
content.css({width:parseInt(windowWidth) - parseInt(sidenavWidth) - 6 + "px"}); // necessary in order to for scrollbars to be visible
|
||||
}
|
||||
|
||||
resizePackagesNav.css({width:sidenavWidth});
|
||||
classesNav.css({width:sidenavWidth});
|
||||
$("#packages-nav").css({width:sidenavWidth});
|
||||
|
||||
if ($(".side-nav-resizable").length) { // Must check if the nav is resizable because IE6 calls resizeWidth() from resizeAll() for all pages
|
||||
var section = getSection();
|
||||
writeCookie("width", sidenavWidth, section, null);
|
||||
}
|
||||
}
|
||||
|
||||
/* For IE6 only,
|
||||
* because it can't properly perform auto width for "doc-content" div,
|
||||
* avoiding this for all browsers provides better performance */
|
||||
function resizeAll() {
|
||||
resizeHeight();
|
||||
resizeWidth();
|
||||
}
|
||||
|
||||
function getBaseUri(uri) {
|
||||
var intlUrl = (uri.substring(0,6) == "/intl/");
|
||||
if (intlUrl) {
|
||||
base = uri.substring(uri.indexOf('intl/')+5,uri.length);
|
||||
base = base.substring(base.indexOf('/')+1, base.length);
|
||||
//alert("intl, returning base url: /" + base);
|
||||
return ("/" + base);
|
||||
} else {
|
||||
//alert("not intl, returning uri as found.");
|
||||
return uri;
|
||||
}
|
||||
}
|
||||
|
||||
function requestAppendHL(uri) {
|
||||
//append "?hl=<lang> to an outgoing request (such as to blog)
|
||||
var lang = getLangPref();
|
||||
if (lang) {
|
||||
var q = 'hl=' + lang;
|
||||
uri += '?' + q;
|
||||
window.location = uri;
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function loadLast(cookiePath) {
|
||||
var location = window.location.href;
|
||||
if (location.indexOf("/"+cookiePath+"/") != -1) {
|
||||
return true;
|
||||
}
|
||||
var lastPage = readCookie(cookiePath + "_lastpage");
|
||||
if (lastPage) {
|
||||
window.location = lastPage;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
$(window).unload(function(){
|
||||
var path = getBaseUri(location.pathname);
|
||||
if (path.indexOf("/reference/") != -1) {
|
||||
writeCookie("lastpage", path, "reference", null);
|
||||
} else if (path.indexOf("/guide/") != -1) {
|
||||
writeCookie("lastpage", path, "guide", null);
|
||||
} else if (path.indexOf("/resources/") != -1) {
|
||||
writeCookie("lastpage", path, "resources", null);
|
||||
}
|
||||
});
|
||||
|
||||
function toggle(obj, slide) {
|
||||
var ul = $("ul:first", obj);
|
||||
var li = ul.parent();
|
||||
if (li.hasClass("closed")) {
|
||||
if (slide) {
|
||||
ul.slideDown("fast");
|
||||
} else {
|
||||
ul.show();
|
||||
}
|
||||
li.removeClass("closed");
|
||||
li.addClass("open");
|
||||
$(".toggle-img", li).attr("title", "hide pages");
|
||||
} else {
|
||||
ul.slideUp("fast");
|
||||
li.removeClass("open");
|
||||
li.addClass("closed");
|
||||
$(".toggle-img", li).attr("title", "show pages");
|
||||
}
|
||||
}
|
||||
|
||||
function buildToggleLists() {
|
||||
$(".toggle-list").each(
|
||||
function(i) {
|
||||
$("div:first", this).append("<a class='toggle-img' href='#' title='show pages' onClick='toggle(this.parentNode.parentNode, true); return false;'></a>");
|
||||
$(this).addClass("closed");
|
||||
});
|
||||
}
|
||||
|
||||
function getNavPref() {
|
||||
var v = readCookie('reference_nav');
|
||||
if (v != NAV_PREF_TREE) {
|
||||
v = NAV_PREF_PANELS;
|
||||
}
|
||||
return v;
|
||||
}
|
||||
|
||||
function chooseDefaultNav() {
|
||||
nav_pref = getNavPref();
|
||||
if (nav_pref == NAV_PREF_TREE) {
|
||||
$("#nav-panels").toggle();
|
||||
$("#panel-link").toggle();
|
||||
$("#nav-tree").toggle();
|
||||
$("#tree-link").toggle();
|
||||
}
|
||||
}
|
||||
|
||||
function swapNav() {
|
||||
if (nav_pref == NAV_PREF_TREE) {
|
||||
nav_pref = NAV_PREF_PANELS;
|
||||
} else {
|
||||
nav_pref = NAV_PREF_TREE;
|
||||
init_default_navtree(toRoot);
|
||||
}
|
||||
var date = new Date();
|
||||
date.setTime(date.getTime()+(10*365*24*60*60*1000)); // keep this for 10 years
|
||||
writeCookie("nav", nav_pref, "reference", date.toGMTString());
|
||||
|
||||
$("#nav-panels").toggle();
|
||||
$("#panel-link").toggle();
|
||||
$("#nav-tree").toggle();
|
||||
$("#tree-link").toggle();
|
||||
|
||||
if ($("#nav-tree").is(':visible')) scrollIntoView("nav-tree");
|
||||
else {
|
||||
scrollIntoView("packages-nav");
|
||||
scrollIntoView("classes-nav");
|
||||
}
|
||||
}
|
||||
|
||||
function scrollIntoView(nav) {
|
||||
var navObj = $("#"+nav);
|
||||
if (navObj.is(':visible')) {
|
||||
var selected = $(".selected", navObj);
|
||||
if (selected.length == 0) return;
|
||||
if (selected.is("div")) selected = selected.parent();
|
||||
|
||||
var scrolling = document.getElementById(nav);
|
||||
var navHeight = navObj.height();
|
||||
var offsetTop = selected.position().top;
|
||||
if (selected.parent().parent().is(".toggle-list")) offsetTop += selected.parent().parent().position().top;
|
||||
if(offsetTop > navHeight - 92) {
|
||||
scrolling.scrollTop = offsetTop - navHeight + 92;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function changeTabLang(lang) {
|
||||
var nodes = $("#header-tabs").find("."+lang);
|
||||
for (i=0; i < nodes.length; i++) { // for each node in this language
|
||||
var node = $(nodes[i]);
|
||||
node.siblings().css("display","none"); // hide all siblings
|
||||
if (node.not(":empty").length != 0) { //if this languages node has a translation, show it
|
||||
node.css("display","inline");
|
||||
} else { //otherwise, show English instead
|
||||
node.css("display","none");
|
||||
node.siblings().filter(".en").css("display","inline");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function changeNavLang(lang) {
|
||||
var nodes = $("#side-nav").find("."+lang);
|
||||
for (i=0; i < nodes.length; i++) { // for each node in this language
|
||||
var node = $(nodes[i]);
|
||||
node.siblings().css("display","none"); // hide all siblings
|
||||
if (node.not(":empty").length != 0) { // if this languages node has a translation, show it
|
||||
node.css("display","inline");
|
||||
} else { // otherwise, show English instead
|
||||
node.css("display","none");
|
||||
node.siblings().filter(".en").css("display","inline");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function changeDocLang(lang) {
|
||||
changeTabLang(lang);
|
||||
changeNavLang(lang);
|
||||
}
|
||||
|
||||
function changeLangPref(lang, refresh) {
|
||||
var date = new Date();
|
||||
expires = date.toGMTString(date.setTime(date.getTime()+(10*365*24*60*60*1000))); // keep this for 50 years
|
||||
//alert("expires: " + expires)
|
||||
writeCookie("pref_lang", lang, null, expires);
|
||||
//changeDocLang(lang);
|
||||
if (refresh) {
|
||||
l = getBaseUri(location.pathname);
|
||||
window.location = l;
|
||||
}
|
||||
}
|
||||
|
||||
function loadLangPref() {
|
||||
var lang = readCookie("pref_lang");
|
||||
if (lang != 0) {
|
||||
$("#language").find("option[value='"+lang+"']").attr("selected",true);
|
||||
}
|
||||
}
|
||||
|
||||
function getLangPref() {
|
||||
var lang = $("#language").find(":selected").attr("value");
|
||||
if (!lang) {
|
||||
lang = readCookie("pref_lang");
|
||||
}
|
||||
return (lang != 0) ? lang : 'en';
|
||||
}
|
||||
|
||||
|
||||
function toggleContent(obj) {
|
||||
var button = $(obj);
|
||||
var div = $(obj.parentNode);
|
||||
var toggleMe = $(".toggle-content-toggleme",div);
|
||||
if (button.hasClass("show")) {
|
||||
toggleMe.slideDown();
|
||||
button.removeClass("show").addClass("hide");
|
||||
} else {
|
||||
toggleMe.slideUp();
|
||||
button.removeClass("hide").addClass("show");
|
||||
}
|
||||
$("span", button).toggle();
|
||||
}
|
402
apidocs/assets/android-developer-reference.js
Normal file
|
@ -0,0 +1,402 @@
|
|||
var API_LEVEL_ENABLED_COOKIE = "api_level_enabled";
|
||||
var API_LEVEL_INDEX_COOKIE = "api_level_index";
|
||||
var minLevelIndex = 0;
|
||||
|
||||
function toggleApiLevelSelector(checkbox) {
|
||||
var date = new Date();
|
||||
date.setTime(date.getTime()+(10*365*24*60*60*1000)); // keep this for 10 years
|
||||
var expiration = date.toGMTString();
|
||||
if (checkbox.checked) {
|
||||
$("#apiLevelSelector").removeAttr("disabled");
|
||||
$("#api-level-toggle label").removeClass("disabled");
|
||||
writeCookie(API_LEVEL_ENABLED_COOKIE, 1, null, expiration);
|
||||
} else {
|
||||
$("#apiLevelSelector").attr("disabled","disabled");
|
||||
$("#api-level-toggle label").addClass("disabled");
|
||||
writeCookie(API_LEVEL_ENABLED_COOKIE, 0, null, expiration);
|
||||
}
|
||||
changeApiLevel();
|
||||
}
|
||||
|
||||
function buildApiLevelSelector() {
|
||||
var userApiLevelEnabled = readCookie(API_LEVEL_ENABLED_COOKIE);
|
||||
var userApiLevelIndex = readCookie(API_LEVEL_INDEX_COOKIE); // No cookie (zero) is the same as maxLevel.
|
||||
|
||||
if (userApiLevelEnabled == 0) {
|
||||
$("#apiLevelSelector").attr("disabled","disabled");
|
||||
} else {
|
||||
$("#apiLevelCheckbox").attr("checked","checked");
|
||||
$("#api-level-toggle label").removeClass("disabled");
|
||||
}
|
||||
|
||||
minLevelValue = $("body").attr("class");
|
||||
minLevelIndex = apiKeyToIndex(minLevelValue);
|
||||
var select = $("#apiLevelSelector").html("").change(changeApiLevel);
|
||||
for (var i = SINCE_DATA.length-1; i >= 0; i--) {
|
||||
var option = $("<option />").attr("value",""+SINCE_DATA[i]).append(""+SINCE_LABELS[i]);
|
||||
select.append(option);
|
||||
}
|
||||
|
||||
// get the DOM element and use setAttribute cuz IE6 fails when using jquery .attr('selected',true)
|
||||
var selectedLevelItem = $("#apiLevelSelector option").get(SINCE_DATA.length - userApiLevelIndex - 1);
|
||||
selectedLevelItem.setAttribute('selected',true);
|
||||
}
|
||||
|
||||
function changeApiLevel() {
|
||||
var userApiLevelEnabled = readCookie(API_LEVEL_ENABLED_COOKIE);
|
||||
var selectedLevelIndex = SINCE_DATA.length - 1;
|
||||
|
||||
if (userApiLevelEnabled == 0) {
|
||||
toggleVisisbleApis(selectedLevelIndex, "body");
|
||||
} else {
|
||||
selectedLevelIndex = getSelectedLevelIndex();
|
||||
toggleVisisbleApis(selectedLevelIndex, "body");
|
||||
|
||||
var date = new Date();
|
||||
date.setTime(date.getTime()+(10*365*24*60*60*1000)); // keep this for 10 years
|
||||
var expiration = date.toGMTString();
|
||||
writeCookie(API_LEVEL_INDEX_COOKIE, selectedLevelIndex, null, expiration);
|
||||
}
|
||||
|
||||
var thing = ($("#jd-header").html().indexOf("package") != -1) ? "package" : "class";
|
||||
showApiWarning(thing, selectedLevelIndex, minLevelIndex);
|
||||
}
|
||||
|
||||
function showApiWarning(thing, selectedLevelIndex, minLevelIndex) {
|
||||
if (selectedLevelIndex < minLevelIndex) {
|
||||
$("#naMessage").show().html("<div><p><strong>This " + thing
|
||||
+ " is not available with API version "
|
||||
+ SINCE_LABELS[selectedLevelIndex] + ".</strong></p>"
|
||||
+ "<p>To reveal this "
|
||||
+ "document, change the value in the API filter above.</p>");
|
||||
} else {
|
||||
$("#naMessage").hide();
|
||||
}
|
||||
}
|
||||
|
||||
function toggleVisisbleApis(selectedLevelIndex, context) {
|
||||
var apis = $(".api",context);
|
||||
apis.each(function(i) {
|
||||
var obj = $(this);
|
||||
var className = obj.attr("class");
|
||||
var apiLevelPos = className.lastIndexOf("-")+1;
|
||||
var apiLevelEndPos = className.indexOf(" ", apiLevelPos);
|
||||
apiLevelEndPos = apiLevelEndPos != -1 ? apiLevelEndPos : className.length;
|
||||
var apiLevelName = className.substring(apiLevelPos, apiLevelEndPos);
|
||||
var apiLevelIndex = apiKeyToIndex(apiLevelName);
|
||||
if (apiLevelIndex > selectedLevelIndex) {
|
||||
obj.addClass("absent").attr("title","Requires API Level "+SINCE_LABELS[apiLevelIndex]+" or higher");
|
||||
} else {
|
||||
obj.removeClass("absent").removeAttr("title");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function apiKeyToIndex(key) {
|
||||
for (i = 0; i < SINCE_DATA.length; i++) {
|
||||
if (SINCE_DATA[i] == key) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
function getSelectedLevelIndex() {
|
||||
return SINCE_DATA.length - $("#apiLevelSelector").attr("selectedIndex") - 1;
|
||||
}
|
||||
|
||||
/* NAVTREE */
|
||||
|
||||
function new_node(me, mom, text, link, children_data, api_level)
|
||||
{
|
||||
var node = new Object();
|
||||
node.children = Array();
|
||||
node.children_data = children_data;
|
||||
node.depth = mom.depth + 1;
|
||||
|
||||
node.li = document.createElement("li");
|
||||
mom.get_children_ul().appendChild(node.li);
|
||||
|
||||
node.label_div = document.createElement("div");
|
||||
node.label_div.className = "label";
|
||||
if (api_level != null) {
|
||||
$(node.label_div).addClass("api");
|
||||
$(node.label_div).addClass("api-level-"+api_level);
|
||||
}
|
||||
node.li.appendChild(node.label_div);
|
||||
node.label_div.style.paddingLeft = 10*node.depth + "px";
|
||||
|
||||
if (children_data == null) {
|
||||
// 12 is the width of the triangle and padding extra space
|
||||
node.label_div.style.paddingLeft = ((10*node.depth)+12) + "px";
|
||||
} else {
|
||||
node.label_div.style.paddingLeft = 10*node.depth + "px";
|
||||
node.expand_toggle = document.createElement("a");
|
||||
node.expand_toggle.href = "javascript:void(0)";
|
||||
node.expand_toggle.onclick = function() {
|
||||
if (node.expanded) {
|
||||
$(node.get_children_ul()).slideUp("fast");
|
||||
node.plus_img.src = toAssets + "images/triangle-closed-small.png";
|
||||
node.expanded = false;
|
||||
} else {
|
||||
expand_node(me, node);
|
||||
}
|
||||
};
|
||||
node.label_div.appendChild(node.expand_toggle);
|
||||
|
||||
node.plus_img = document.createElement("img");
|
||||
node.plus_img.src = toAssets + "images/triangle-closed-small.png";
|
||||
node.plus_img.className = "plus";
|
||||
node.plus_img.border = "0";
|
||||
node.expand_toggle.appendChild(node.plus_img);
|
||||
|
||||
node.expanded = false;
|
||||
}
|
||||
|
||||
var a = document.createElement("a");
|
||||
node.label_div.appendChild(a);
|
||||
node.label = document.createTextNode(text);
|
||||
a.appendChild(node.label);
|
||||
if (link) {
|
||||
a.href = me.toroot + link;
|
||||
} else {
|
||||
if (children_data != null) {
|
||||
a.className = "nolink";
|
||||
a.href = "javascript:void(0)";
|
||||
a.onclick = node.expand_toggle.onclick;
|
||||
// This next line shouldn't be necessary.
|
||||
node.expanded = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
node.children_ul = null;
|
||||
node.get_children_ul = function() {
|
||||
if (!node.children_ul) {
|
||||
node.children_ul = document.createElement("ul");
|
||||
node.children_ul.className = "children_ul";
|
||||
node.children_ul.style.display = "none";
|
||||
node.li.appendChild(node.children_ul);
|
||||
}
|
||||
return node.children_ul;
|
||||
};
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
function expand_node(me, node)
|
||||
{
|
||||
if (node.children_data && !node.expanded) {
|
||||
if (node.children_visited) {
|
||||
$(node.get_children_ul()).slideDown("fast");
|
||||
} else {
|
||||
get_node(me, node);
|
||||
if ($(node.label_div).hasClass("absent")) $(node.get_children_ul()).addClass("absent");
|
||||
$(node.get_children_ul()).slideDown("fast");
|
||||
}
|
||||
node.plus_img.src = toAssets + "images/triangle-opened-small.png";
|
||||
node.expanded = true;
|
||||
|
||||
// perform api level toggling because new nodes are new to the DOM
|
||||
var selectedLevel = $("#apiLevelSelector").attr("selectedIndex");
|
||||
toggleVisisbleApis(selectedLevel, "#side-nav");
|
||||
}
|
||||
}
|
||||
|
||||
function get_node(me, mom)
|
||||
{
|
||||
mom.children_visited = true;
|
||||
for (var i in mom.children_data) {
|
||||
var node_data = mom.children_data[i];
|
||||
mom.children[i] = new_node(me, mom, node_data[0], node_data[1],
|
||||
node_data[2], node_data[3]);
|
||||
}
|
||||
}
|
||||
|
||||
function this_page_relative(toroot)
|
||||
{
|
||||
var full = document.location.pathname;
|
||||
var file = "";
|
||||
if (toroot.substr(0, 1) == "/") {
|
||||
if (full.substr(0, toroot.length) == toroot) {
|
||||
return full.substr(toroot.length);
|
||||
} else {
|
||||
// the file isn't under toroot. Fail.
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
if (toroot != "./") {
|
||||
toroot = "./" + toroot;
|
||||
}
|
||||
do {
|
||||
if (toroot.substr(toroot.length-3, 3) == "../" || toroot == "./") {
|
||||
var pos = full.lastIndexOf("/");
|
||||
file = full.substr(pos) + file;
|
||||
full = full.substr(0, pos);
|
||||
toroot = toroot.substr(0, toroot.length-3);
|
||||
}
|
||||
} while (toroot != "" && toroot != "/");
|
||||
return file.substr(1);
|
||||
}
|
||||
}
|
||||
|
||||
function find_page(url, data)
|
||||
{
|
||||
var nodes = data;
|
||||
var result = null;
|
||||
for (var i in nodes) {
|
||||
var d = nodes[i];
|
||||
if (d[1] == url) {
|
||||
return new Array(i);
|
||||
}
|
||||
else if (d[2] != null) {
|
||||
result = find_page(url, d[2]);
|
||||
if (result != null) {
|
||||
return (new Array(i).concat(result));
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function load_navtree_data() {
|
||||
var navtreeData = document.createElement("script");
|
||||
navtreeData.setAttribute("type","text/javascript");
|
||||
navtreeData.setAttribute("src", toAssets + "navtree_data.js");
|
||||
$("head").append($(navtreeData));
|
||||
}
|
||||
|
||||
function init_default_navtree(toroot) {
|
||||
init_navtree("nav-tree", toroot, NAVTREE_DATA);
|
||||
|
||||
// perform api level toggling because because the whole tree is new to the DOM
|
||||
var selectedLevel = $("#apiLevelSelector").attr("selectedIndex");
|
||||
toggleVisisbleApis(selectedLevel, "#side-nav");
|
||||
}
|
||||
|
||||
function init_navtree(navtree_id, toroot, root_nodes)
|
||||
{
|
||||
var me = new Object();
|
||||
me.toroot = toroot;
|
||||
me.node = new Object();
|
||||
|
||||
me.node.li = document.getElementById(navtree_id);
|
||||
me.node.children_data = root_nodes;
|
||||
me.node.children = new Array();
|
||||
me.node.children_ul = document.createElement("ul");
|
||||
me.node.get_children_ul = function() { return me.node.children_ul; };
|
||||
//me.node.children_ul.className = "children_ul";
|
||||
me.node.li.appendChild(me.node.children_ul);
|
||||
me.node.depth = 0;
|
||||
|
||||
get_node(me, me.node);
|
||||
|
||||
me.this_page = this_page_relative(toroot);
|
||||
me.breadcrumbs = find_page(me.this_page, root_nodes);
|
||||
if (me.breadcrumbs != null && me.breadcrumbs.length != 0) {
|
||||
var mom = me.node;
|
||||
for (var i in me.breadcrumbs) {
|
||||
var j = me.breadcrumbs[i];
|
||||
mom = mom.children[j];
|
||||
expand_node(me, mom);
|
||||
}
|
||||
mom.label_div.className = mom.label_div.className + " selected";
|
||||
addLoadEvent(function() {
|
||||
scrollIntoView("nav-tree");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/* TOGGLE INHERITED MEMBERS */
|
||||
|
||||
/* Toggle an inherited class (arrow toggle)
|
||||
* @param linkObj The link that was clicked.
|
||||
* @param expand 'true' to ensure it's expanded. 'false' to ensure it's closed.
|
||||
* 'null' to simply toggle.
|
||||
*/
|
||||
function toggleInherited(linkObj, expand) {
|
||||
var base = linkObj.getAttribute("id");
|
||||
var list = document.getElementById(base + "-list");
|
||||
var summary = document.getElementById(base + "-summary");
|
||||
var trigger = document.getElementById(base + "-trigger");
|
||||
var a = $(linkObj);
|
||||
if ( (expand == null && a.hasClass("closed")) || expand ) {
|
||||
list.style.display = "none";
|
||||
summary.style.display = "block";
|
||||
trigger.src = toAssets + "images/triangle-opened.png";
|
||||
a.removeClass("closed");
|
||||
a.addClass("opened");
|
||||
} else if ( (expand == null && a.hasClass("opened")) || (expand == false) ) {
|
||||
list.style.display = "block";
|
||||
summary.style.display = "none";
|
||||
trigger.src = toAssets + "images/triangle-closed.png";
|
||||
a.removeClass("opened");
|
||||
a.addClass("closed");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Toggle all inherited classes in a single table (e.g. all inherited methods)
|
||||
* @param linkObj The link that was clicked.
|
||||
* @param expand 'true' to ensure it's expanded. 'false' to ensure it's closed.
|
||||
* 'null' to simply toggle.
|
||||
*/
|
||||
function toggleAllInherited(linkObj, expand) {
|
||||
var a = $(linkObj);
|
||||
var table = $(a.parent().parent().parent()); // ugly way to get table/tbody
|
||||
var expandos = $(".jd-expando-trigger", table);
|
||||
if ( (expand == null && a.text() == "[Expand]") || expand ) {
|
||||
expandos.each(function(i) {
|
||||
toggleInherited(this, true);
|
||||
});
|
||||
a.text("[Collapse]");
|
||||
} else if ( (expand == null && a.text() == "[Collapse]") || (expand == false) ) {
|
||||
expandos.each(function(i) {
|
||||
toggleInherited(this, false);
|
||||
});
|
||||
a.text("[Expand]");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Toggle all inherited members in the class (link in the class title)
|
||||
*/
|
||||
function toggleAllClassInherited() {
|
||||
var a = $("#toggleAllClassInherited"); // get toggle link from class title
|
||||
var toggles = $(".toggle-all", $("#doc-content"));
|
||||
if (a.text() == "[Expand All]") {
|
||||
toggles.each(function(i) {
|
||||
toggleAllInherited(this, true);
|
||||
});
|
||||
a.text("[Collapse All]");
|
||||
} else {
|
||||
toggles.each(function(i) {
|
||||
toggleAllInherited(this, false);
|
||||
});
|
||||
a.text("[Expand All]");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Expand all inherited members in the class. Used when initiating page search */
|
||||
function ensureAllInheritedExpanded() {
|
||||
var toggles = $(".toggle-all", $("#doc-content"));
|
||||
toggles.each(function(i) {
|
||||
toggleAllInherited(this, true);
|
||||
});
|
||||
$("#toggleAllClassInherited").text("[Collapse All]");
|
||||
}
|
||||
|
||||
|
||||
/* HANDLE KEY EVENTS
|
||||
* - Listen for Ctrl+F (Cmd on Mac) and expand all inherited members (to aid page search)
|
||||
*/
|
||||
var agent = navigator['userAgent'].toLowerCase();
|
||||
var mac = agent.indexOf("macintosh") != -1;
|
||||
|
||||
$(document).keydown( function(e) {
|
||||
var control = mac ? e.metaKey && !e.ctrlKey : e.ctrlKey; // get ctrl key
|
||||
if (control && e.which == 70) { // 70 is "F"
|
||||
ensureAllInheritedExpanded();
|
||||
}
|
||||
});
|
7
apidocs/assets/customizations.css
Normal file
|
@ -0,0 +1,7 @@
|
|||
#header {
|
||||
border-bottom: 3px solid #0767a4;
|
||||
}
|
||||
|
||||
#search_filtered .jd-selected {
|
||||
background-color: #0767a4;
|
||||
}
|
0
apidocs/assets/customizations.js
Normal file
BIN
apidocs/assets/images/bg_fade.jpg
Normal file
After Width: | Height: | Size: 300 B |
BIN
apidocs/assets/images/bg_logo.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
apidocs/assets/images/body-gradient-tab.png
Normal file
After Width: | Height: | Size: 192 B |
BIN
apidocs/assets/images/body-gradient.png
Normal file
After Width: | Height: | Size: 146 B |
BIN
apidocs/assets/images/grad-rule-qv.png
Normal file
After Width: | Height: | Size: 249 B |
BIN
apidocs/assets/images/hr_gray_main.jpg
Normal file
After Width: | Height: | Size: 378 B |
BIN
apidocs/assets/images/hr_gray_side.jpg
Normal file
After Width: | Height: | Size: 344 B |
BIN
apidocs/assets/images/left_off.jpg
Normal file
After Width: | Height: | Size: 592 B |
BIN
apidocs/assets/images/left_on.jpg
Normal file
After Width: | Height: | Size: 692 B |
BIN
apidocs/assets/images/preliminary.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
apidocs/assets/images/resizable-e.gif
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
apidocs/assets/images/resizable-e2.gif
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
apidocs/assets/images/resizable-eg.gif
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
apidocs/assets/images/resizable-s.gif
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
apidocs/assets/images/resizable-s2.gif
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
apidocs/assets/images/resizable-sg.gif
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
apidocs/assets/images/right_off.jpg
Normal file
After Width: | Height: | Size: 592 B |
BIN
apidocs/assets/images/right_on.jpg
Normal file
After Width: | Height: | Size: 692 B |
BIN
apidocs/assets/images/sidenav-rule.png
Normal file
After Width: | Height: | Size: 258 B |
BIN
apidocs/assets/images/spacer.gif
Normal file
After Width: | Height: | Size: 96 B |
BIN
apidocs/assets/images/triangle-closed-small.png
Normal file
After Width: | Height: | Size: 166 B |
BIN
apidocs/assets/images/triangle-closed.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
apidocs/assets/images/triangle-opened-small.png
Normal file
After Width: | Height: | Size: 170 B |
BIN
apidocs/assets/images/triangle-opened.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
78
apidocs/assets/jquery-history.js
vendored
Normal file
|
@ -0,0 +1,78 @@
|
|||
/**
|
||||
* jQuery history event v0.1
|
||||
* Copyright (c) 2008 Tom Rodenberg <tarodenberg gmail com>
|
||||
* Licensed under the GPL (http://www.gnu.org/licenses/gpl.html) license.
|
||||
*/
|
||||
(function($) {
|
||||
var currentHash, previousNav, timer, hashTrim = /^.*#/;
|
||||
|
||||
var msie = {
|
||||
iframe: null,
|
||||
getDoc: function() {
|
||||
return msie.iframe.contentWindow.document;
|
||||
},
|
||||
getHash: function() {
|
||||
return msie.getDoc().location.hash;
|
||||
},
|
||||
setHash: function(hash) {
|
||||
var d = msie.getDoc();
|
||||
d.open();
|
||||
d.close();
|
||||
d.location.hash = hash;
|
||||
}
|
||||
};
|
||||
|
||||
var historycheck = function() {
|
||||
var hash = msie.iframe ? msie.getHash() : location.hash;
|
||||
if (hash != currentHash) {
|
||||
currentHash = hash;
|
||||
if (msie.iframe) {
|
||||
location.hash = currentHash;
|
||||
}
|
||||
var current = $.history.getCurrent();
|
||||
$.event.trigger('history', [current, previousNav]);
|
||||
previousNav = current;
|
||||
}
|
||||
};
|
||||
|
||||
$.history = {
|
||||
add: function(hash) {
|
||||
hash = '#' + hash.replace(hashTrim, '');
|
||||
if (currentHash != hash) {
|
||||
var previous = $.history.getCurrent();
|
||||
location.hash = currentHash = hash;
|
||||
if (msie.iframe) {
|
||||
msie.setHash(currentHash);
|
||||
}
|
||||
$.event.trigger('historyadd', [$.history.getCurrent(), previous]);
|
||||
}
|
||||
if (!timer) {
|
||||
timer = setInterval(historycheck, 100);
|
||||
}
|
||||
},
|
||||
getCurrent: function() {
|
||||
if (currentHash) {
|
||||
return currentHash.replace(hashTrim, '');
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.history = function(fn) {
|
||||
$(this).bind('history', fn);
|
||||
};
|
||||
|
||||
$.fn.historyadd = function(fn) {
|
||||
$(this).bind('historyadd', fn);
|
||||
};
|
||||
|
||||
$(function() {
|
||||
currentHash = location.hash;
|
||||
if ($.browser.msie) {
|
||||
msie.iframe = $('<iframe style="display:none" src="javascript:false;"></iframe>').prependTo('body')[0];
|
||||
msie.setHash(currentHash);
|
||||
currentHash = msie.getHash();
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
40
apidocs/assets/jquery-resizable.min.js
vendored
Normal file
35
apidocs/assets/microtemplate.js
Normal file
|
@ -0,0 +1,35 @@
|
|||
// Simple JavaScript Templating
|
||||
// John Resig - http://ejohn.org/ - MIT Licensed
|
||||
(function(){
|
||||
var cache = {};
|
||||
|
||||
this.tmpl = function tmpl(str, data){
|
||||
// Figure out if we're getting a template, or if we need to
|
||||
// load the template - and be sure to cache the result.
|
||||
var fn = !/\W/.test(str) ?
|
||||
cache[str] = cache[str] ||
|
||||
tmpl(document.getElementById(str).innerHTML) :
|
||||
|
||||
// Generate a reusable function that will serve as a template
|
||||
// generator (and which will be cached).
|
||||
new Function("obj",
|
||||
"var p=[],print=function(){p.push.apply(p,arguments);};" +
|
||||
|
||||
// Introduce the data as local variables using with(){}
|
||||
"with(obj){p.push('" +
|
||||
|
||||
// Convert the template into pure JavaScript
|
||||
str
|
||||
.replace(/[\r\t\n]/g, " ")
|
||||
.split("<%").join("\t")
|
||||
.replace(/((^|%>)[^\t]*)'/g, "$1\r")
|
||||
.replace(/\t=(.*?)%>/g, "',$1,'")
|
||||
.split("\t").join("');")
|
||||
.split("%>").join("p.push('")
|
||||
.split("\r").join("\\'")
|
||||
+ "');}return p.join('');");
|
||||
|
||||
// Provide some basic currying to the user
|
||||
return data ? fn( data ) : fn;
|
||||
};
|
||||
})();
|
17
apidocs/assets/navtree_data.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
var NAVTREE_DATA =
|
||||
[ [ "org.rundeck.api", "org/rundeck/api/package-summary.html", [ [ "Description", "org/rundeck/api/package-descr.html", null, "" ], [ "Classes", null, [ [ "NodeFiltersBuilder", "org/rundeck/api/NodeFiltersBuilder.html", null, "" ], [ "OptionsBuilder", "org/rundeck/api/OptionsBuilder.html", null, "" ], [ "RundeckClient", "org/rundeck/api/RundeckClient.html", null, "" ] ]
|
||||
, "" ], [ "Enums", null, [ [ "FileType", "org/rundeck/api/FileType.html", null, "" ] ]
|
||||
, "" ], [ "Exceptions", null, [ [ "RundeckApiException", "org/rundeck/api/RundeckApiException.html", null, "" ], [ "RundeckApiException.RundeckApiAuthException", "org/rundeck/api/RundeckApiException.RundeckApiAuthException.html", null, "" ], [ "RundeckApiException.RundeckApiLoginException", "org/rundeck/api/RundeckApiException.RundeckApiLoginException.html", null, "" ], [ "RundeckApiException.RundeckApiTokenException", "org/rundeck/api/RundeckApiException.RundeckApiTokenException.html", null, "" ] ]
|
||||
, "" ] ]
|
||||
, "" ], [ "org.rundeck.api.domain", "org/rundeck/api/domain/package-summary.html", [ [ "Description", "org/rundeck/api/domain/package-descr.html", null, "" ], [ "Classes", null, [ [ "RundeckAbort", "org/rundeck/api/domain/RundeckAbort.html", null, "" ], [ "RundeckEvent", "org/rundeck/api/domain/RundeckEvent.html", null, "" ], [ "RundeckEvent.NodeSummary", "org/rundeck/api/domain/RundeckEvent.NodeSummary.html", null, "" ], [ "RundeckExecution", "org/rundeck/api/domain/RundeckExecution.html", null, "" ], [ "RundeckHistory", "org/rundeck/api/domain/RundeckHistory.html", null, "" ], [ "RundeckJob", "org/rundeck/api/domain/RundeckJob.html", null, "" ], [ "RundeckJobsImportResult", "org/rundeck/api/domain/RundeckJobsImportResult.html", null, "" ], [ "RundeckNode", "org/rundeck/api/domain/RundeckNode.html", null, "" ], [ "RundeckProject", "org/rundeck/api/domain/RundeckProject.html", null, "" ], [ "RundeckSystemInfo", "org/rundeck/api/domain/RundeckSystemInfo.html", null, "" ] ]
|
||||
, "" ], [ "Enums", null, [ [ "RundeckAbort.AbortStatus", "org/rundeck/api/domain/RundeckAbort.AbortStatus.html", null, "" ], [ "RundeckEvent.EventStatus", "org/rundeck/api/domain/RundeckEvent.EventStatus.html", null, "" ], [ "RundeckExecution.ExecutionStatus", "org/rundeck/api/domain/RundeckExecution.ExecutionStatus.html", null, "" ], [ "RundeckJobsImportMethod", "org/rundeck/api/domain/RundeckJobsImportMethod.html", null, "" ] ]
|
||||
, "" ] ]
|
||||
, "" ], [ "org.rundeck.api.parser", "org/rundeck/api/parser/package-summary.html", [ [ "Description", "org/rundeck/api/parser/package-descr.html", null, "" ], [ "Interfaces", null, [ [ "XmlNodeParser", "org/rundeck/api/parser/XmlNodeParser.html", null, "" ] ]
|
||||
, "" ], [ "Classes", null, [ [ "AbortParser", "org/rundeck/api/parser/AbortParser.html", null, "" ], [ "EventParser", "org/rundeck/api/parser/EventParser.html", null, "" ], [ "ExecutionParser", "org/rundeck/api/parser/ExecutionParser.html", null, "" ], [ "HistoryParser", "org/rundeck/api/parser/HistoryParser.html", null, "" ], [ "JobParser", "org/rundeck/api/parser/JobParser.html", null, "" ], [ "JobsImportResultParser", "org/rundeck/api/parser/JobsImportResultParser.html", null, "" ], [ "ListParser", "org/rundeck/api/parser/ListParser.html", null, "" ], [ "NodeParser", "org/rundeck/api/parser/NodeParser.html", null, "" ], [ "ParserHelper", "org/rundeck/api/parser/ParserHelper.html", null, "" ], [ "ProjectParser", "org/rundeck/api/parser/ProjectParser.html", null, "" ], [ "StringParser", "org/rundeck/api/parser/StringParser.html", null, "" ], [ "SystemInfoParser", "org/rundeck/api/parser/SystemInfoParser.html", null, "" ] ]
|
||||
, "" ] ]
|
||||
, "" ], [ "org.rundeck.api.util", "org/rundeck/api/util/package-summary.html", [ [ "Description", "org/rundeck/api/util/package-descr.html", null, "" ], [ "Classes", null, [ [ "AssertUtil", "org/rundeck/api/util/AssertUtil.html", null, "" ], [ "ParametersUtil", "org/rundeck/api/util/ParametersUtil.html", null, "" ] ]
|
||||
, "" ] ]
|
||||
, "" ] ]
|
||||
|
||||
;
|
||||
|
33
apidocs/assets/prettify.js
Normal file
|
@ -0,0 +1,33 @@
|
|||
(function(){
|
||||
var o=true,r=null,z=false;window.PR_SHOULD_USE_CONTINUATION=o;window.PR_TAB_WIDTH=8;window.PR_normalizedHtml=window.PR=window.prettyPrintOne=window.prettyPrint=void 0;window._pr_isIE6=function(){var N=navigator&&navigator.userAgent&&/\bMSIE 6\./.test(navigator.userAgent);window._pr_isIE6=function(){return N};return N};
|
||||
var aa="!",ba="!=",ca="!==",F="#",da="%",ea="%=",G="&",fa="&&",ja="&&=",ka="&=",H="(",la="*",ma="*=",na="+=",oa=",",pa="-=",qa="->",ra="/",sa="/=",ta=":",ua="::",va=";",I="<",wa="<<",xa="<<=",ya="<=",za="=",Aa="==",Ba="===",J=">",Ca=">=",Da=">>",Ea=">>=",Fa=">>>",Ga=">>>=",Ha="?",Ia="@",L="[",M="^",Ta="^=",Ua="^^",Va="^^=",Wa="{",O="|",Xa="|=",Ya="||",Za="||=",$a="~",ab="break",bb="case",cb="continue",db="delete",eb="do",fb="else",gb="finally",hb="instanceof",ib="return",jb="throw",kb="try",lb="typeof",
|
||||
mb="(?:^^|[+-]",nb="\\$1",ob=")\\s*",pb="&",qb="<",rb=">",sb=""",tb="&#",ub="x",vb="'",wb='"',xb=" ",yb="XMP",zb="</",Ab='="',P="",Q="\\",Bb="b",Cb="t",Db="n",Eb="v",Fb="f",Gb="r",Hb="u",Ib="0",Jb="1",Kb="2",Lb="3",Mb="4",Nb="5",Ob="6",Pb="7",Qb="\\x0",Rb="\\x",Sb="-",Tb="]",Ub="\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]",R="g",Vb="\\B",Wb="\\b",Xb="\\D",Yb="\\d",Zb="\\S",$b="\\s",ac="\\W",bc="\\w",cc="(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)",
|
||||
dc="(?:",ec=")",fc="gi",gc="PRE",hc='<!DOCTYPE foo PUBLIC "foo bar">\n<foo />',ic="\t",jc="\n",kc="[^<]+|<!--[\\s\\S]*?--\>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>|</?[a-zA-Z][^>]*>|<",lc="nocode",mc=' $1="$2$3$4"',S="pln",nc="string",T="lang-",oc="src",U="str",pc="'\"",qc="'\"`",rc="\"'",V="com",sc="lang-regex",tc="(/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/)",uc="kwd",vc="^(?:",wc=")\\b",xc=" \r\n\t\u00a0",yc="lit",zc="typ",Ac="0123456789",Y="pun",Bc="break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename typeof using virtual wchar_t where break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params partial readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try debugger eval export function get null set undefined var with Infinity NaN caller delete die do dump elsif eval exit foreach for goto if import last local my next no our print package redo require sub undef unless until use wantarray while BEGIN END break continue do else for if return while and as assert class def del elif except exec finally from global import in is lambda nonlocal not or pass print raise try with yield False True None break continue do else for if return while alias and begin case class def defined elsif end ensure false in module next nil not or redo rescue retry self super then true undef unless until when yield BEGIN END break continue do else for if return while case done elif esac eval fi function in local set then until ",
|
||||
Cc="</span>",Dc='<span class="',Ec='">',Fc="$1 ",Gc=" <br />",Hc="<br />",Ic="console",Jc="cannot override language handler %s",Kc="default-markup",Lc="default-code",Mc="dec",Z="lang-js",$="lang-css",Nc="lang-in.tag",Oc="htm",Pc="html",Qc="mxml",Rc="xhtml",Sc="xml",Tc="xsl",Uc=" \t\r\n",Vc="atv",Wc="tag",Xc="atn",Yc="lang-uq.val",Zc="in.tag",$c="uq.val",ad="break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename typeof using virtual wchar_t where ",
|
||||
bd="c",cd="cc",dd="cpp",ed="cxx",fd="cyc",gd="m",hd="null true false",id="json",jd="break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params partial readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var ",
|
||||
kd="cs",ld="break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient ",md="java",nd="break continue do else for if return while case done elif esac eval fi function in local set then until ",
|
||||
od="bsh",pd="csh",qd="sh",rd="break continue do else for if return while and as assert class def del elif except exec finally from global import in is lambda nonlocal not or pass print raise try with yield False True None ",sd="cv",td="py",ud="caller delete die do dump elsif eval exit foreach for goto if import last local my next no our print package redo require sub undef unless until use wantarray while BEGIN END ",vd="perl",wd="pl",xd="pm",yd="break continue do else for if return while alias and begin case class def defined elsif end ensure false in module next nil not or redo rescue retry self super then true undef unless until when yield BEGIN END ",
|
||||
zd="rb",Ad="break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try debugger eval export function get null set undefined var with Infinity NaN ",Bd="js",Cd="regex",Dd="pre",Ed="code",Fd="xmp",Gd="prettyprint",Hd="class",Id="br",Jd="\r";
|
||||
(function(){var N=function(){for(var a=[aa,ba,ca,F,da,ea,G,fa,ja,ka,H,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,I,wa,xa,ya,za,Aa,Ba,J,Ca,Da,Ea,Fa,Ga,Ha,Ia,L,M,Ta,Ua,Va,Wa,O,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb],b=mb,c=0;c<a.length;++c)b+=O+a[c].replace(/([^=<>:&a-z])/g,nb);b+=ob;return b}(),Ja=/&/g,Ka=/</g,La=/>/g,Kd=/\"/g;function Ld(a){return a.replace(Ja,pb).replace(Ka,qb).replace(La,rb).replace(Kd,sb)}function ga(a){return a.replace(Ja,pb).replace(Ka,qb).replace(La,rb)}var Md=/</g,Nd=/>/g,
|
||||
Od=/'/g,Pd=/"/g,Qd=/&/g,Rd=/ /g;function Sd(a){var b=a.indexOf(G);if(b<0)return a;for(--b;(b=a.indexOf(tb,b+1))>=0;){var c=a.indexOf(va,b);if(c>=0){var d=a.substring(b+3,c),g=10;if(d&&d.charAt(0)===ub){d=d.substring(1);g=16}var i=parseInt(d,g);isNaN(i)||(a=a.substring(0,b)+String.fromCharCode(i)+a.substring(c+1))}}return a.replace(Md,I).replace(Nd,J).replace(Od,vb).replace(Pd,wb).replace(Qd,G).replace(Rd,xb)}function Ma(a){return yb===a.tagName}function W(a,b){switch(a.nodeType){case 1:var c=
|
||||
a.tagName.toLowerCase();b.push(I,c);for(var d=0;d<a.attributes.length;++d){var g=a.attributes[d];if(g.specified){b.push(xb);W(g,b)}}b.push(J);for(var i=a.firstChild;i;i=i.nextSibling)W(i,b);if(a.firstChild||!/^(?:br|link|img)$/.test(c))b.push(zb,c,J);break;case 2:b.push(a.name.toLowerCase(),Ab,Ld(a.value),wb);break;case 3:case 4:b.push(ga(a.nodeValue));break}}function Na(a){for(var b=0,c=z,d=z,g=0,i=a.length;g<i;++g){var m=a[g];if(m.ignoreCase)d=o;else if(/[a-z]/i.test(m.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,
|
||||
P))){c=o;d=z;break}}function l(j){if(j.charAt(0)!==Q)return j.charCodeAt(0);switch(j.charAt(1)){case Bb:return 8;case Cb:return 9;case Db:return 10;case Eb:return 11;case Fb:return 12;case Gb:return 13;case Hb:case ub:return parseInt(j.substring(2),16)||j.charCodeAt(1);case Ib:case Jb:case Kb:case Lb:case Mb:case Nb:case Ob:case Pb:return parseInt(j.substring(1),8);default:return j.charCodeAt(1)}}function n(j){if(j<32)return(j<16?Qb:Rb)+j.toString(16);var f=String.fromCharCode(j);if(f===Q||f===Sb||
|
||||
f===L||f===Tb)f=Q+f;return f}function q(j){for(var f=j.substring(1,j.length-1).match(new RegExp(Ub,R)),s=[],k=[],h=f[0]===M,e=h?1:0,p=f.length;e<p;++e){var t=f[e];switch(t){case Vb:case Wb:case Xb:case Yb:case Zb:case $b:case ac:case bc:s.push(t);continue}var u=l(t),x;if(e+2<p&&Sb===f[e+1]){x=l(f[e+2]);e+=2}else x=u;k.push([u,x]);if(!(x<65||u>122)){x<65||u>90||k.push([Math.max(65,u)|32,Math.min(x,90)|32]);x<97||u>122||k.push([Math.max(97,u)&-33,Math.min(x,122)&-33])}}k.sort(function(Oa,Pa){return Oa[0]-
|
||||
Pa[0]||Pa[1]-Oa[1]});var B=[],E=[NaN,NaN];for(e=0;e<k.length;++e){var A=k[e];if(A[0]<=E[1]+1)E[1]=Math.max(E[1],A[1]);else B.push(E=A)}var D=[L];h&&D.push(M);D.push.apply(D,s);for(e=0;e<B.length;++e){A=B[e];D.push(n(A[0]));if(A[1]>A[0]){A[1]+1>A[0]&&D.push(Sb);D.push(n(A[1]))}}D.push(Tb);return D.join(P)}function v(j){var f=j.source.match(new RegExp(cc,R)),s=f.length,k=[],h,e=0;for(h=0;e<s;++e){var p=f[e];if(p===H)++h;else if(Q===p.charAt(0)){var t=+p.substring(1);if(t&&t<=h)k[t]=-1}}for(e=1;e<k.length;++e)if(-1===
|
||||
k[e])k[e]=++b;for(h=e=0;e<s;++e){p=f[e];if(p===H){++h;if(k[h]===undefined)f[e]=dc}else if(Q===p.charAt(0))if((t=+p.substring(1))&&t<=h)f[e]=Q+k[h]}for(h=e=0;e<s;++e)if(M===f[e]&&M!==f[e+1])f[e]=P;if(j.ignoreCase&&c)for(e=0;e<s;++e){p=f[e];var u=p.charAt(0);if(p.length>=2&&u===L)f[e]=q(p);else if(u!==Q)f[e]=p.replace(/[a-zA-Z]/g,function(x){var B=x.charCodeAt(0);return L+String.fromCharCode(B&-33,B|32)+Tb})}return f.join(P)}var w=[];g=0;for(i=a.length;g<i;++g){m=a[g];if(m.global||m.multiline)throw new Error(P+
|
||||
m);w.push(dc+v(m)+ec)}return new RegExp(w.join(O),d?fc:R)}var ha=r;function Td(a){if(r===ha){var b=document.createElement(gc);b.appendChild(document.createTextNode(hc));ha=!/</.test(b.innerHTML)}if(ha){var c=a.innerHTML;if(Ma(a))c=ga(c);return c}for(var d=[],g=a.firstChild;g;g=g.nextSibling)W(g,d);return d.join(P)}function Ud(a){var b=0;return function(c){for(var d=r,g=0,i=0,m=c.length;i<m;++i){var l=c.charAt(i);switch(l){case ic:d||(d=[]);d.push(c.substring(g,i));var n=a-b%a;for(b+=n;n>=0;n-=" ".length)d.push(" ".substring(0,
|
||||
n));g=i+1;break;case jc:b=0;break;default:++b}}if(!d)return c;d.push(c.substring(g));return d.join(P)}}var Vd=new RegExp(kc,R),Wd=/^<\!--/,Xd=/^<\[CDATA\[/,Yd=/^<br\b/i,Qa=/^<(\/?)([a-zA-Z]+)/;function Zd(a){var b=a.match(Vd),c=[],d=0,g=[];if(b)for(var i=0,m=b.length;i<m;++i){var l=b[i];if(l.length>1&&l.charAt(0)===I){if(!Wd.test(l))if(Xd.test(l)){c.push(l.substring(9,l.length-3));d+=l.length-12}else if(Yd.test(l)){c.push(jc);++d}else if(l.indexOf(lc)>=0&&$d(l)){var n=l.match(Qa)[2],q=1,v;v=i+1;a:for(;v<
|
||||
m;++v){var w=b[v].match(Qa);if(w&&w[2]===n)if(w[1]===ra){if(--q===0)break a}else++q}if(v<m){g.push(d,b.slice(i,v+1).join(P));i=v}else g.push(d,l)}else g.push(d,l)}else{var j=Sd(l);c.push(j);d+=j.length}}return{source:c.join(P),tags:g}}function $d(a){return!!a.replace(/\s(\w+)\s*=\s*(?:\"([^\"]*)\"|'([^\']*)'|(\S+))/g,mc).match(/[cC][lL][aA][sS][sS]=\"[^\"]*\bnocode\b/)}function ia(a,b,c,d){if(b){var g={source:b,b:a};c(g);d.push.apply(d,g.c)}}function K(a,b){var c={},d;(function(){for(var m=a.concat(b),
|
||||
l=[],n={},q=0,v=m.length;q<v;++q){var w=m[q],j=w[3];if(j)for(var f=j.length;--f>=0;)c[j.charAt(f)]=w;var s=w[1],k=P+s;if(!n.hasOwnProperty(k)){l.push(s);n[k]=r}}l.push(/[\0-\uffff]/);d=Na(l)})();var g=b.length,i=function(m){for(var l=m.source,n=m.b,q=[n,S],v=0,w=l.match(d)||[],j={},f=0,s=w.length;f<s;++f){var k=w[f],h=j[k],e,p;if(typeof h===nc)p=z;else{var t=c[k.charAt(0)];if(t){e=k.match(t[1]);h=t[0]}else{for(var u=0;u<g;++u){t=b[u];if(e=k.match(t[1])){h=t[0];break}}e||(h=S)}if((p=h.length>=5&&T===
|
||||
h.substring(0,5))&&!(e&&e[1])){p=z;h=oc}p||(j[k]=h)}var x=v;v+=k.length;if(p){var B=e[1],E=k.indexOf(B),A=E+B.length,D=h.substring(5);ia(n+x,k.substring(0,E),i,q);ia(n+x+E,B,Ra(D,B),q);ia(n+x+A,k.substring(A),i,q)}else q.push(n+x,h)}m.c=q};return i}function C(a){var b=[],c=[];if(a.tripleQuotedStrings)b.push([U,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,r,pc]);
|
||||
else a.multiLineStrings?b.push([U,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,r,qc]):b.push([U,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,r,rc]);if(a.hashComments)a.cStyleComments?b.push([V,/^#(?:[^\r\n\/]|\/(?!\*)|\/\*[^\r\n]*?\*\/)*/,r,F]):b.push([V,/^#[^\r\n]*/,r,F]);if(a.cStyleComments){c.push([V,/^\/\/[^\r\n]*/,r]);c.push([V,/^\/\*[\s\S]*?(?:\*\/|$)/,r])}a.regexLiterals&&c.push([sc,new RegExp(M+N+tc)]);var d=
|
||||
a.keywords.replace(/^\s+|\s+$/g,P);d.length&&c.push([uc,new RegExp(vc+d.replace(/\s+/g,O)+wc),r]);b.push([S,/^\s+/,r,xc]);c.push([yc,/^@[a-z_$][a-z_$@0-9]*/i,r,Ia],[zc,/^@?[A-Z]+[a-z][A-Za-z_$@0-9]*/,r],[S,/^[a-z_$][a-z_$@0-9]*/i,r],[yc,/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,r,Ac],[Y,/^.[^\s\w\.$@\'\"\`\/\#]*/,r]);return K(b,c)}var ae=C({keywords:Bc,hashComments:o,cStyleComments:o,multiLineStrings:o,regexLiterals:o});function be(a){var b=a.source,c=a.f,d=a.c,
|
||||
g=[],i=0,m=r,l=r,n=0,q=0,v=Ud(window.PR_TAB_WIDTH),w=/([\r\n ]) /g,j=/(^| ) /gm,f=/\r\n?|\n/g,s=/[ \r\n]$/,k=o;function h(p){if(p>i){if(m&&m!==l){g.push(Cc);m=r}if(!m&&l){m=l;g.push(Dc,m,Ec)}var t=ga(v(b.substring(i,p))).replace(k?j:w,Fc);k=s.test(t);var u=window._pr_isIE6()?Gc:Hc;g.push(t.replace(f,u));i=p}}for(;1;){var e;if(e=n<c.length?q<d.length?c[n]<=d[q]:o:z){h(c[n]);if(m){g.push(Cc);m=r}g.push(c[n+1]);n+=2}else if(q<d.length){h(d[q]);l=d[q+1];q+=2}else break}h(b.length);m&&g.push(Cc);a.a=g.join(P)}
|
||||
var X={};function y(a,b){for(var c=b.length;--c>=0;){var d=b[c];if(X.hasOwnProperty(d))Ic in window&&console.i(Jc,d);else X[d]=a}}function Ra(a,b){a&&X.hasOwnProperty(a)||(a=/^\s*</.test(b)?Kc:Lc);return X[a]}y(ae,[Lc]);y(K([],[[S,/^[^<?]+/],[Mc,/^<!\w[^>]*(?:>|$)/],[V,/^<\!--[\s\S]*?(?:-\->|$)/],[T,/^<\?([\s\S]+?)(?:\?>|$)/],[T,/^<%([\s\S]+?)(?:%>|$)/],[Y,/^(?:<[%?]|[%?]>)/],[T,/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],[Z,/^<script\b[^>]*>([\s\S]+?)<\/script\b[^>]*>/i],[$,/^<style\b[^>]*>([\s\S]+?)<\/style\b[^>]*>/i],
|
||||
[Nc,/^(<\/?[a-z][^<>]*>)/i]]),[Kc,Oc,Pc,Qc,Rc,Sc,Tc]);y(K([[S,/^[\s]+/,r,Uc],[Vc,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,r,rc]],[[Wc,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[Xc,/^(?!style\b|on)[a-z](?:[\w:-]*\w)?/],[Yc,/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[Y,/^[=<>\/]+/],[Z,/^on\w+\s*=\s*\"([^\"]+)\"/i],[Z,/^on\w+\s*=\s*\'([^\']+)\'/i],[Z,/^on\w+\s*=\s*([^\"\'>\s]+)/i],[$,/^sty\w+\s*=\s*\"([^\"]+)\"/i],[$,/^sty\w+\s*=\s*\'([^\']+)\'/i],[$,/^sty\w+\s*=\s*([^\"\'>\s]+)/i]]),[Zc]);y(K([],[[Vc,/^[\s\S]+/]]),
|
||||
[$c]);y(C({keywords:ad,hashComments:o,cStyleComments:o}),[bd,cd,dd,ed,fd,gd]);y(C({keywords:hd}),[id]);y(C({keywords:jd,hashComments:o,cStyleComments:o}),[kd]);y(C({keywords:ld,cStyleComments:o}),[md]);y(C({keywords:nd,hashComments:o,multiLineStrings:o}),[od,pd,qd]);y(C({keywords:rd,hashComments:o,multiLineStrings:o,tripleQuotedStrings:o}),[sd,td]);y(C({keywords:ud,hashComments:o,multiLineStrings:o,regexLiterals:o}),[vd,wd,xd]);y(C({keywords:yd,hashComments:o,multiLineStrings:o,regexLiterals:o}),
|
||||
[zd]);y(C({keywords:Ad,cStyleComments:o,regexLiterals:o}),[Bd]);y(K([],[[U,/^[\s\S]+/]]),[Cd]);function Sa(a){var b=a.e,c=a.d;a.a=b;try{var d=Zd(b),g=d.source;a.source=g;a.b=0;a.f=d.tags;Ra(c,g)(a);be(a)}catch(i){if(Ic in window){console.log(i);console.h()}}}function ce(a,b){var c={e:a,d:b};Sa(c);return c.a}function de(a){for(var b=window._pr_isIE6(),c=[document.getElementsByTagName(Dd),document.getElementsByTagName(Ed),document.getElementsByTagName(Fd)],d=[],g=0;g<c.length;++g)for(var i=0,m=c[g].length;i<
|
||||
m;++i)d.push(c[g][i]);c=r;var l=Date;l.now||(l={now:function(){return(new Date).getTime()}});var n=0,q;function v(){for(var j=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;n<d.length&&l.now()<j;n++){var f=d[n];if(f.className&&f.className.indexOf(Gd)>=0){var s=f.className.match(/\blang-(\w+)\b/);if(s)s=s[1];for(var k=z,h=f.parentNode;h;h=h.parentNode)if((h.tagName===Dd||h.tagName===Ed||h.tagName===Fd)&&h.className&&h.className.indexOf(Gd)>=0){k=o;break}if(!k){var e=Td(f);e=e.replace(/(?:\r\n?|\n)$/,
|
||||
P);q={e:e,d:s,g:f};Sa(q);w()}}}if(n<d.length)setTimeout(v,250);else a&&a()}function w(){var j=q.a;if(j){var f=q.g;if(Ma(f)){for(var s=document.createElement(gc),k=0;k<f.attributes.length;++k){var h=f.attributes[k];if(h.specified){var e=h.name.toLowerCase();if(e===Hd)s.className=h.value;else s.setAttribute(h.name,h.value)}}s.innerHTML=j;f.parentNode.replaceChild(s,f);f=s}else f.innerHTML=j;if(b&&f.tagName===gc)for(var p=f.getElementsByTagName(Id),t=p.length;--t>=0;){var u=p[t];u.parentNode.replaceChild(document.createTextNode(Jd),
|
||||
u)}}}v()}window.PR_normalizedHtml=W;window.prettyPrintOne=ce;window.prettyPrint=de;window.PR={combinePrefixPatterns:Na,createSimpleLexer:K,registerLangHandler:y,sourceDecorator:C,PR_ATTRIB_NAME:Xc,PR_ATTRIB_VALUE:Vc,PR_COMMENT:V,PR_DECLARATION:Mc,PR_KEYWORD:uc,PR_LITERAL:yc,PR_NOCODE:lc,PR_PLAIN:S,PR_PUNCTUATION:Y,PR_SOURCE:oc,PR_STRING:U,PR_TAG:Wc,PR_TYPE:zc}})();
|
||||
})()
|
274
apidocs/assets/search_autocomplete.js
Normal file
|
@ -0,0 +1,274 @@
|
|||
var gSelectedIndex = -1;
|
||||
var gSelectedID = -1;
|
||||
var gMatches = new Array();
|
||||
var gLastText = "";
|
||||
var ROW_COUNT = 20;
|
||||
var gInitialized = false;
|
||||
var DEFAULT_TEXT = "search developer docs";
|
||||
var HAS_SEARCH_PAGE = false;
|
||||
|
||||
function set_row_selected(row, selected)
|
||||
{
|
||||
var c1 = row.cells[0];
|
||||
// var c2 = row.cells[1];
|
||||
if (selected) {
|
||||
c1.className = "jd-autocomplete jd-selected";
|
||||
// c2.className = "jd-autocomplete jd-selected jd-linktype";
|
||||
} else {
|
||||
c1.className = "jd-autocomplete";
|
||||
// c2.className = "jd-autocomplete jd-linktype";
|
||||
}
|
||||
}
|
||||
|
||||
function set_row_values(toroot, row, match)
|
||||
{
|
||||
var link = row.cells[0].childNodes[0];
|
||||
link.innerHTML = match.__hilabel || match.label;
|
||||
link.href = toroot + match.link
|
||||
// row.cells[1].innerHTML = match.type;
|
||||
}
|
||||
|
||||
function sync_selection_table(toroot)
|
||||
{
|
||||
var filtered = document.getElementById("search_filtered");
|
||||
var r; //TR DOM object
|
||||
var i; //TR iterator
|
||||
gSelectedID = -1;
|
||||
|
||||
filtered.onmouseover = function() {
|
||||
if(gSelectedIndex >= 0) {
|
||||
set_row_selected(this.rows[gSelectedIndex], false);
|
||||
gSelectedIndex = -1;
|
||||
}
|
||||
}
|
||||
|
||||
//initialize the table; draw it for the first time (but not visible).
|
||||
if (!gInitialized) {
|
||||
for (i=0; i<ROW_COUNT; i++) {
|
||||
var r = filtered.insertRow(-1);
|
||||
var c1 = r.insertCell(-1);
|
||||
// var c2 = r.insertCell(-1);
|
||||
c1.className = "jd-autocomplete";
|
||||
// c2.className = "jd-autocomplete jd-linktype";
|
||||
var link = document.createElement("a");
|
||||
c1.onmousedown = function() {
|
||||
window.location = this.firstChild.getAttribute("href");
|
||||
}
|
||||
c1.onmouseover = function() {
|
||||
this.className = this.className + " jd-selected";
|
||||
}
|
||||
c1.onmouseout = function() {
|
||||
this.className = "jd-autocomplete";
|
||||
}
|
||||
c1.appendChild(link);
|
||||
}
|
||||
/* var r = filtered.insertRow(-1);
|
||||
var c1 = r.insertCell(-1);
|
||||
c1.className = "jd-autocomplete jd-linktype";
|
||||
c1.colSpan = 2; */
|
||||
gInitialized = true;
|
||||
}
|
||||
|
||||
//if we have results, make the table visible and initialize result info
|
||||
if (gMatches.length > 0) {
|
||||
document.getElementById("search_filtered_div").className = "showing";
|
||||
var N = gMatches.length < ROW_COUNT ? gMatches.length : ROW_COUNT;
|
||||
for (i=0; i<N; i++) {
|
||||
r = filtered.rows[i];
|
||||
r.className = "show-row";
|
||||
set_row_values(toroot, r, gMatches[i]);
|
||||
set_row_selected(r, i == gSelectedIndex);
|
||||
if (i == gSelectedIndex) {
|
||||
gSelectedID = gMatches[i].id;
|
||||
}
|
||||
}
|
||||
//start hiding rows that are no longer matches
|
||||
for (; i<ROW_COUNT; i++) {
|
||||
r = filtered.rows[i];
|
||||
r.className = "no-display";
|
||||
}
|
||||
//if there are more results we're not showing, so say so.
|
||||
/* if (gMatches.length > ROW_COUNT) {
|
||||
r = filtered.rows[ROW_COUNT];
|
||||
r.className = "show-row";
|
||||
c1 = r.cells[0];
|
||||
c1.innerHTML = "plus " + (gMatches.length-ROW_COUNT) + " more";
|
||||
} else {
|
||||
filtered.rows[ROW_COUNT].className = "hide-row";
|
||||
}*/
|
||||
//if we have no results, hide the table
|
||||
} else {
|
||||
document.getElementById("search_filtered_div").className = "no-display";
|
||||
}
|
||||
}
|
||||
|
||||
function search_changed(e, kd, toroot)
|
||||
{
|
||||
var search = document.getElementById("search_autocomplete");
|
||||
var text = search.value.replace(/(^ +)|( +$)/g, '');
|
||||
|
||||
// 13 = enter
|
||||
if (e.keyCode == 13) {
|
||||
document.getElementById("search_filtered_div").className = "no-display";
|
||||
if (kd && gSelectedIndex >= 0) {
|
||||
window.location = toroot + gMatches[gSelectedIndex].link;
|
||||
return false;
|
||||
} else if (gSelectedIndex < 0) {
|
||||
if (HAS_SEARCH_PAGE) {
|
||||
return true;
|
||||
} else {
|
||||
sync_selection_table(toroot);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 38 -- arrow up
|
||||
else if (kd && (e.keyCode == 38)) {
|
||||
if (gSelectedIndex >= 0) {
|
||||
gSelectedIndex--;
|
||||
}
|
||||
sync_selection_table(toroot);
|
||||
return false;
|
||||
}
|
||||
// 40 -- arrow down
|
||||
else if (kd && (e.keyCode == 40)) {
|
||||
if (gSelectedIndex < gMatches.length-1
|
||||
&& gSelectedIndex < ROW_COUNT-1) {
|
||||
gSelectedIndex++;
|
||||
}
|
||||
sync_selection_table(toroot);
|
||||
return false;
|
||||
}
|
||||
else if (!kd) {
|
||||
gMatches = new Array();
|
||||
matchedCount = 0;
|
||||
gSelectedIndex = -1;
|
||||
for (var i=0; i<DATA.length; i++) {
|
||||
var s = DATA[i];
|
||||
if (text.length != 0 &&
|
||||
s.label.toLowerCase().indexOf(text.toLowerCase()) != -1) {
|
||||
gMatches[matchedCount] = s;
|
||||
matchedCount++;
|
||||
}
|
||||
}
|
||||
rank_autocomplete_results(text);
|
||||
for (var i=0; i<gMatches.length; i++) {
|
||||
var s = gMatches[i];
|
||||
if (gSelectedID == s.id) {
|
||||
gSelectedIndex = i;
|
||||
}
|
||||
}
|
||||
highlight_autocomplete_result_labels(text);
|
||||
sync_selection_table(toroot);
|
||||
return true; // allow the event to bubble up to the search api
|
||||
}
|
||||
}
|
||||
|
||||
function rank_autocomplete_results(query) {
|
||||
query = query || '';
|
||||
if (!gMatches || !gMatches.length)
|
||||
return;
|
||||
|
||||
// helper function that gets the last occurence index of the given regex
|
||||
// in the given string, or -1 if not found
|
||||
var _lastSearch = function(s, re) {
|
||||
if (s == '')
|
||||
return -1;
|
||||
var l = -1;
|
||||
var tmp;
|
||||
while ((tmp = s.search(re)) >= 0) {
|
||||
if (l < 0) l = 0;
|
||||
l += tmp;
|
||||
s = s.substr(tmp + 1);
|
||||
}
|
||||
return l;
|
||||
};
|
||||
|
||||
// helper function that counts the occurrences of a given character in
|
||||
// a given string
|
||||
var _countChar = function(s, c) {
|
||||
var n = 0;
|
||||
for (var i=0; i<s.length; i++)
|
||||
if (s.charAt(i) == c) ++n;
|
||||
return n;
|
||||
};
|
||||
|
||||
var queryLower = query.toLowerCase();
|
||||
var queryAlnum = (queryLower.match(/\w+/) || [''])[0];
|
||||
var partPrefixAlnumRE = new RegExp('\\b' + queryAlnum);
|
||||
var partExactAlnumRE = new RegExp('\\b' + queryAlnum + '\\b');
|
||||
|
||||
var _resultScoreFn = function(result) {
|
||||
// scores are calculated based on exact and prefix matches,
|
||||
// and then number of path separators (dots) from the last
|
||||
// match (i.e. favoring classes and deep package names)
|
||||
var score = 1.0;
|
||||
var labelLower = result.label.toLowerCase();
|
||||
var t;
|
||||
t = _lastSearch(labelLower, partExactAlnumRE);
|
||||
if (t >= 0) {
|
||||
// exact part match
|
||||
var partsAfter = _countChar(labelLower.substr(t + 1), '.');
|
||||
score *= 200 / (partsAfter + 1);
|
||||
} else {
|
||||
t = _lastSearch(labelLower, partPrefixAlnumRE);
|
||||
if (t >= 0) {
|
||||
// part prefix match
|
||||
var partsAfter = _countChar(labelLower.substr(t + 1), '.');
|
||||
score *= 20 / (partsAfter + 1);
|
||||
}
|
||||
}
|
||||
|
||||
return score;
|
||||
};
|
||||
|
||||
for (var i=0; i<gMatches.length; i++) {
|
||||
gMatches[i].__resultScore = _resultScoreFn(gMatches[i]);
|
||||
}
|
||||
|
||||
gMatches.sort(function(a,b){
|
||||
var n = b.__resultScore - a.__resultScore;
|
||||
if (n == 0) // lexicographical sort if scores are the same
|
||||
n = (a.label < b.label) ? -1 : 1;
|
||||
return n;
|
||||
});
|
||||
}
|
||||
|
||||
function highlight_autocomplete_result_labels(query) {
|
||||
query = query || '';
|
||||
if (!gMatches || !gMatches.length)
|
||||
return;
|
||||
|
||||
var queryLower = query.toLowerCase();
|
||||
var queryAlnumDot = (queryLower.match(/[\w\.]+/) || [''])[0];
|
||||
var queryRE = new RegExp(
|
||||
'(' + queryAlnumDot.replace(/\./g, '\\.') + ')', 'ig');
|
||||
for (var i=0; i<gMatches.length; i++) {
|
||||
gMatches[i].__hilabel = gMatches[i].label.replace(
|
||||
queryRE, '<b>$1</b>');
|
||||
}
|
||||
}
|
||||
|
||||
function search_focus_changed(obj, focused)
|
||||
{
|
||||
if (focused) {
|
||||
if(obj.value == DEFAULT_TEXT){
|
||||
obj.value = "";
|
||||
obj.style.color="#000000";
|
||||
}
|
||||
} else {
|
||||
if(obj.value == ""){
|
||||
obj.value = DEFAULT_TEXT;
|
||||
obj.style.color="#aaaaaa";
|
||||
}
|
||||
document.getElementById("search_filtered_div").className = "no-display";
|
||||
}
|
||||
}
|
||||
|
||||
function submit_search() {
|
||||
if (HAS_SEARCH_PAGE) {
|
||||
var query = document.getElementById('search_autocomplete').value;
|
||||
document.location = toRoot + 'search.html#q=' + query + '&t=0';
|
||||
}
|
||||
return false;
|
||||
}
|
316
apidocs/assets/style.css
Normal file
|
@ -0,0 +1,316 @@
|
|||
.jd-toptitle {
|
||||
padding-left: 6px;
|
||||
margin-bottom: 30px;
|
||||
font-size: 160%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
div#jd-content table {
|
||||
border: none;
|
||||
}
|
||||
|
||||
div#jd-content td, div#jd-content th {
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
div#jd-content table.jd-linktable {
|
||||
margin-top: 3px;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
div#jd-content p.jd-deprecated-warning {
|
||||
margin-top: 0;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
div#jd-content table.jd-linktable th {
|
||||
vertical-align: top;
|
||||
text-align: left;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
padding-left: 7px;
|
||||
padding-right: 7px;
|
||||
border: none;
|
||||
border-top: 1px solid #d2d7d0;
|
||||
background-color: #F7FCF4;
|
||||
}
|
||||
|
||||
div#jd-content table.jd-linktable td {
|
||||
border: none;
|
||||
}
|
||||
|
||||
div#jd-content table.jd-linktable td p {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
line-height: 110%;
|
||||
}
|
||||
|
||||
div#jd-content table.jd-linktable .jd-linkcol {
|
||||
vertical-align: top;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 0;
|
||||
padding-left: 7px;
|
||||
padding-right: 7px;
|
||||
border-top: 1px solid #d2d7d0;
|
||||
background-color: #E5F1E0;
|
||||
line-height: 110%;
|
||||
}
|
||||
|
||||
div#jd-content table.jd-linktable .jd-descrcol {
|
||||
vertical-align: top;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 0;
|
||||
padding-left: 7px;
|
||||
padding-right: 7px;
|
||||
border-top: 1px solid #d2d7d0;
|
||||
background-color: #F7FCF4;
|
||||
line-height: 110%;
|
||||
}
|
||||
|
||||
div#jd-content table.jd-linktable .jd-descrcol p {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
line-height: 110%;
|
||||
}
|
||||
|
||||
div#jd-content table.jd-linktable .jd-valcol {
|
||||
vertical-align: top;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 0;
|
||||
padding-left: 7px;
|
||||
padding-right: 7px;
|
||||
border-top: 1px solid #d2d7d0;
|
||||
background-color: #E5F1E0;
|
||||
line-height: 110%;
|
||||
}
|
||||
|
||||
div#jd-content table.jd-linktable .jd-commentrow {
|
||||
vertical-align: top;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 4px;
|
||||
padding-left: 7px;
|
||||
padding-right: 7px;
|
||||
background-color: #F7FCF4;
|
||||
line-height: 110%;
|
||||
}
|
||||
|
||||
div#jd-content div.jd-inheritedlinks {
|
||||
vertical-align: top;
|
||||
margin-top: 9px;
|
||||
padding-left: 7px;
|
||||
padding-right: 7px;
|
||||
background-color: #F7FCF4;
|
||||
line-height: 110%;
|
||||
}
|
||||
|
||||
div#jd-content .jd-page_title-prefix {
|
||||
padding-top: 2em;
|
||||
margin-bottom: -14pt;
|
||||
}
|
||||
|
||||
div#jd-content {
|
||||
margin-left: 0;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
div#jd-content h1 {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
div#jd-content h2 {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
div#jd-content h4 {
|
||||
margin-top: 9px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
|
||||
div#jd-content .jd-descr h5 {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
div#jd-content .sidebox h3 {
|
||||
margin: 1em 0 0 0;
|
||||
}
|
||||
|
||||
div#jd-content .jd-letterlist {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
div#jd-content .jd-lettertable {
|
||||
margin-top: 15px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
div#jd-content .jd-letterentries {
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
}
|
||||
div#jd-content .jd-letterentrycomments {
|
||||
color: gray;
|
||||
}
|
||||
|
||||
div#jd-content table.jd-inheritance-table {
|
||||
margin-top: 0;
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
div#jd-content table.jd-inheritance-table td {
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
div#jd-content table.jd-inheritance-table .jd-inheritance-space {
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
div#jd-content table.jd-inheritance-table .jd-inheritance-interface-cell {
|
||||
padding-left: 17px;
|
||||
}
|
||||
|
||||
div#jd-content h4.jd-details-title {
|
||||
margin: 0;
|
||||
background-color: #E5F1E0;
|
||||
padding: 2px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
div#jd-content .jd-details {
|
||||
margin-top: 0;
|
||||
margin-left: -10px;
|
||||
}
|
||||
|
||||
div#jd-content .jd-details-descr {
|
||||
line-height: 120%;
|
||||
padding-left: 10px;
|
||||
padding-top: 10px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
div#jd-content .jd-descr h5,
|
||||
div#jd-content .jd-details h5 {
|
||||
font-style: normal;
|
||||
text-decoration: none;
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
div#jd-content .jd-more {
|
||||
}
|
||||
|
||||
div#jd-content .jd-descr {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
div#jd-content .jd-tagdata {
|
||||
margin-top: 6px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
div#jd-content .jd-tagtitle {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
div#jd-content .jd-tagtable {
|
||||
margin-top: 10px;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
div#jd-content .jd-tagtable th {
|
||||
background: white;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
line-height: 120%;
|
||||
}
|
||||
|
||||
div#jd-content .jd-tagtable th,
|
||||
div#jd-content .jd-tagtable td {
|
||||
line-height: 120%;
|
||||
border: none;
|
||||
margin: 0;
|
||||
text-align: left;
|
||||
padding-top: 0px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
div#jd-content .Code,code,pre,samp,var {
|
||||
color: #004000;
|
||||
}
|
||||
|
||||
div#jd-content pre.Code {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
/* XXX I would really like to apply font-size: 9pt only if var/samp
|
||||
is NOT inside of a .jd-descr div. */
|
||||
div#jd-content .jd-descr code,var,samp {
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
#search_autocomplete {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
div#jd-searchbox table.jd-autocomplete-table-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div#jd-searchbox table.jd-autocomplete-table-showing {
|
||||
z-index: 10;
|
||||
border: 1px solid #3366cc;
|
||||
position: relative;
|
||||
top: -14px;
|
||||
left: 5px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
div#jd-searchbox td.jd-autocomplete {
|
||||
font-family: Arial, sans-serif;
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
padding-top: 1px;
|
||||
padding-bottom: 1px;
|
||||
font-size: 80%;
|
||||
border: none;
|
||||
margin: 0;
|
||||
line-height: 105%;
|
||||
}
|
||||
|
||||
div#jd-searchbox td.jd-selected {
|
||||
background-color: #E5F1E0;
|
||||
}
|
||||
|
||||
div#jd-searchbox td.jd-linktype {
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
div#jd-content .jd-expando-trigger {
|
||||
margin-left: -8px;
|
||||
margin-right: 0px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
div#jd-build-id {
|
||||
color: #666;
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
padding-right: 5px;
|
||||
padding-bottom: 3px;
|
||||
}
|
||||
|
||||
@media print {
|
||||
#jd-searchbox, .jd-nav {
|
||||
display: none;
|
||||
}
|
||||
div#jd-content {
|
||||
margin-top: 0px;
|
||||
}
|
||||
}
|
||||
|
BIN
apidocs/assets/triangle-none.gif
Normal file
After Width: | Height: | Size: 240 B |