onami-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1444424 [2/25] - in /incubator/onami/site/converters: ./ apidocs/ apidocs/assets/ apidocs/assets/images/ apidocs/reference/ apidocs/reference/org/ apidocs/reference/org/apache/ apidocs/reference/org/apache/onami/ apidocs/reference/org/apac...
Date Sat, 09 Feb 2013 20:25:59 GMT
Added: incubator/onami/site/converters/apidocs/assets/android-developer-docs.js
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/android-developer-docs.js?rev=1444424&view=auto
==============================================================================
--- incubator/onami/site/converters/apidocs/assets/android-developer-docs.js (added)
+++ incubator/onami/site/converters/apidocs/assets/android-developer-docs.js Sat Feb  9 20:25:51 2013
@@ -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 += '&nbsp;<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();
+}
\ No newline at end of file

Propchange: incubator/onami/site/converters/apidocs/assets/android-developer-docs.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/onami/site/converters/apidocs/assets/android-developer-docs.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/onami/site/converters/apidocs/assets/android-developer-docs.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/onami/site/converters/apidocs/assets/android-developer-reference.js
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/android-developer-reference.js?rev=1444424&view=auto
==============================================================================
--- incubator/onami/site/converters/apidocs/assets/android-developer-reference.js (added)
+++ incubator/onami/site/converters/apidocs/assets/android-developer-reference.js Sat Feb  9 20:25:51 2013
@@ -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();
+  }
+});
\ No newline at end of file

Propchange: incubator/onami/site/converters/apidocs/assets/android-developer-reference.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/onami/site/converters/apidocs/assets/android-developer-reference.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/onami/site/converters/apidocs/assets/android-developer-reference.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/onami/site/converters/apidocs/assets/customizations.css
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/customizations.css?rev=1444424&view=auto
==============================================================================
--- incubator/onami/site/converters/apidocs/assets/customizations.css (added)
+++ incubator/onami/site/converters/apidocs/assets/customizations.css Sat Feb  9 20:25:51 2013
@@ -0,0 +1,7 @@
+#header {
+  border-bottom: 3px solid #0767a4;
+}
+
+#search_filtered .jd-selected {
+  background-color: #0767a4;
+}
\ No newline at end of file

Propchange: incubator/onami/site/converters/apidocs/assets/customizations.css
------------------------------------------------------------------------------
    svn:mime-type = text/css

Added: incubator/onami/site/converters/apidocs/assets/customizations.js
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/customizations.js?rev=1444424&view=auto
==============================================================================
    (empty)

Propchange: incubator/onami/site/converters/apidocs/assets/customizations.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/onami/site/converters/apidocs/assets/customizations.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/onami/site/converters/apidocs/assets/customizations.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/onami/site/converters/apidocs/assets/images/bg_fade.jpg
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/bg_fade.jpg?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/bg_fade.jpg
------------------------------------------------------------------------------
    svn:mime-type = image/jpeg

Added: incubator/onami/site/converters/apidocs/assets/images/bg_logo.png
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/bg_logo.png?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/bg_logo.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/onami/site/converters/apidocs/assets/images/body-gradient-tab.png
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/body-gradient-tab.png?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/body-gradient-tab.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/onami/site/converters/apidocs/assets/images/body-gradient.png
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/body-gradient.png?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/body-gradient.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/onami/site/converters/apidocs/assets/images/grad-rule-qv.png
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/grad-rule-qv.png?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/grad-rule-qv.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/onami/site/converters/apidocs/assets/images/hr_gray_main.jpg
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/hr_gray_main.jpg?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/hr_gray_main.jpg
------------------------------------------------------------------------------
    svn:mime-type = image/jpeg

Added: incubator/onami/site/converters/apidocs/assets/images/hr_gray_side.jpg
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/hr_gray_side.jpg?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/hr_gray_side.jpg
------------------------------------------------------------------------------
    svn:mime-type = image/jpeg

Added: incubator/onami/site/converters/apidocs/assets/images/left_off.jpg
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/left_off.jpg?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/left_off.jpg
------------------------------------------------------------------------------
    svn:mime-type = image/jpeg

Added: incubator/onami/site/converters/apidocs/assets/images/left_on.jpg
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/left_on.jpg?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/left_on.jpg
------------------------------------------------------------------------------
    svn:mime-type = image/jpeg

Added: incubator/onami/site/converters/apidocs/assets/images/preliminary.png
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/preliminary.png?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/preliminary.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/onami/site/converters/apidocs/assets/images/resizable-e.gif
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/resizable-e.gif?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/resizable-e.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/onami/site/converters/apidocs/assets/images/resizable-e2.gif
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/resizable-e2.gif?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/resizable-e2.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/onami/site/converters/apidocs/assets/images/resizable-eg.gif
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/resizable-eg.gif?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/resizable-eg.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/onami/site/converters/apidocs/assets/images/resizable-s.gif
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/resizable-s.gif?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/resizable-s.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/onami/site/converters/apidocs/assets/images/resizable-s2.gif
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/resizable-s2.gif?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/resizable-s2.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/onami/site/converters/apidocs/assets/images/resizable-sg.gif
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/resizable-sg.gif?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/resizable-sg.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/onami/site/converters/apidocs/assets/images/right_off.jpg
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/right_off.jpg?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/right_off.jpg
------------------------------------------------------------------------------
    svn:mime-type = image/jpeg

Added: incubator/onami/site/converters/apidocs/assets/images/right_on.jpg
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/right_on.jpg?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/right_on.jpg
------------------------------------------------------------------------------
    svn:mime-type = image/jpeg

Added: incubator/onami/site/converters/apidocs/assets/images/sidenav-rule.png
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/sidenav-rule.png?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/sidenav-rule.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/onami/site/converters/apidocs/assets/images/spacer.gif
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/spacer.gif?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/spacer.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/onami/site/converters/apidocs/assets/images/triangle-closed-small.png
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/triangle-closed-small.png?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/triangle-closed-small.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/onami/site/converters/apidocs/assets/images/triangle-closed.png
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/triangle-closed.png?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/triangle-closed.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/onami/site/converters/apidocs/assets/images/triangle-opened-small.png
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/triangle-opened-small.png?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/triangle-opened-small.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/onami/site/converters/apidocs/assets/images/triangle-opened.png
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/images/triangle-opened.png?rev=1444424&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/onami/site/converters/apidocs/assets/images/triangle-opened.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/onami/site/converters/apidocs/assets/jquery-history.js
URL: http://svn.apache.org/viewvc/incubator/onami/site/converters/apidocs/assets/jquery-history.js?rev=1444424&view=auto
==============================================================================
--- incubator/onami/site/converters/apidocs/assets/jquery-history.js (added)
+++ incubator/onami/site/converters/apidocs/assets/jquery-history.js Sat Feb  9 20:25:51 2013
@@ -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);
\ No newline at end of file

Propchange: incubator/onami/site/converters/apidocs/assets/jquery-history.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/onami/site/converters/apidocs/assets/jquery-history.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/onami/site/converters/apidocs/assets/jquery-history.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message