(function () { var localStorage = {}, sessionStorage = {}; try { localStorage = window.localStorage; } catch (e) {} try { sessionStorage = window.sessionStorage; } catch (e) {} function createSourceLinks() { $(".method_details_list .source_code").before( "[View source]" ); $(".toggleSource").toggle( function () { $(this).parent().nextAll(".source_code").slideDown(100); $(this).text("Hide source"); }, function () { $(this).parent().nextAll(".source_code").slideUp(100); $(this).text("View source"); } ); } function createDefineLinks() { var tHeight = 0; $(".defines").after(" more..."); $(".toggleDefines").toggle( function () { tHeight = $(this).parent().prev().height(); $(this).prev().css("display", "inline"); $(this).parent().prev().height($(this).parent().height()); $(this).text("(less)"); }, function () { $(this).prev().hide(); $(this).parent().prev().height(tHeight); $(this).text("more..."); } ); } function createFullTreeLinks() { var tHeight = 0; $(".inheritanceTree").toggle( function () { tHeight = $(this).parent().prev().height(); $(this).parent().toggleClass("showAll"); $(this).text("(hide)"); $(this).parent().prev().height($(this).parent().height()); }, function () { $(this).parent().toggleClass("showAll"); $(this).parent().prev().height(tHeight); $(this).text("show all"); } ); } function searchFrameButtons() { $(".full_list_link").click(function () { toggleSearchFrame(this, $(this).attr("href")); return false; }); window.addEventListener("message", function (e) { if (e.data === "navEscape") { $("#nav").slideUp(100); $("#search a").removeClass("active inactive"); $(window).focus(); } }); $(window).resize(function () { if ($("#search:visible").length === 0) { $("#nav").removeAttr("style"); $("#search a").removeClass("active inactive"); $(window).focus(); } }); } function toggleSearchFrame(id, link) { var frame = $("#nav"); $("#search a").removeClass("active").addClass("inactive"); if (frame.attr("src") === link && frame.css("display") !== "none") { frame.slideUp(100); $("#search a").removeClass("active inactive"); } else { $(id).addClass("active").removeClass("inactive"); if (frame.attr("src") !== link) frame.attr("src", link); frame.slideDown(100); } } function linkSummaries() { $(".summary_signature").click(function () { document.location = $(this).find("a").attr("href"); }); } function summaryToggle() { $(".summary_toggle").click(function (e) { e.preventDefault(); localStorage.summaryCollapsed = $(this).text(); $(".summary_toggle").each(function () { $(this).text($(this).text() == "collapse" ? "expand" : "collapse"); var next = $(this).parent().parent().nextAll("ul.summary").first(); if (next.hasClass("compact")) { next.toggle(); next.nextAll("ul.summary").first().toggle(); } else if (next.hasClass("summary")) { var list = $('