function doHomePage() { $("#campaignSlider").slides({ preload: !1, generateNextPrev: !1, slideEasing: "easeInCubic", play: 6E3 }); $("#eventsSlider").slides({ preload: !1, generateNextPrev: !1, slideEasing: "easeInCubic", play: 6E3 }) } function doBasic() { $("html").removeClass("no-js"); $(".equalChildHeight > li > a, #myProfile > .module, #modules > .module").equalizer({ useHeight: "height", resizeable: !0, min: 0, max: 0, overflow: "overflowed" }); $("ul.menu li:first-child").addClass("first"); $("ul.menu li:last-child").addClass("last"); $("ul.node li:first-child").addClass("first_item"); $("ul.node li:last-child").addClass("last_item"); $("ol.node li:first-child").addClass("first_item"); $("ol.node li:last-child").addClass("last_item"); $("a.loginDialogue").attr("href", "#loginDialogue"); $(".inlineDialogue").colorbox({ width: "55%", inline: !0 }); $("#colorbox").appendTo("form"); $(".closeDialogue").click(function () { $.colorbox.close() }); $("#searchFilter").is(":hidden") && $(".searchFilterHook").focus(function () { $("#searchFilter").css("display", "block") }); $(".searchFilterHook, #searchFilter, .searchButton").click(function (a) { a.stopPropagation() }); $(document).click(function () { $("#searchFilter").hide() }); $("#searchFilter").is(":visible") && $(document).click(function () { $("#searchFilter").show() }); $(".toggleMore").is(":hidden") && $(".showCategories").click(function () { $(".toggleMore").css("display", "block"); $(this).hide(); $(".hideCategories").show(); $(".equalChildHeight > li > a").equalizer({ useHeight: "height", resizeable: !0, min: 0, max: 0, overflow: "overflowed" }) }); $(".hideCategories").click(function () { $(".toggleMore").css("display", "none"); $(this).hide(); $(".showCategories").show() }); $(".pageTable.data, .results table").tablesorter({ widthFixed: !0, widgets: ["zebra"] }); $(".moduleTip").each(function () { $(this).is(":hidden") && $(this).parent().parent().find(".moduleTitle span.info").addClass("off") }); $(".moduleTitle span.info").click(function () { $(this).parent().parent().parent().find(".moduleTip").toggle(); $(this).toggleClass("off"); myReading && myReading.savePreferences(); return !1 }); $(".listenToPage audio").hide(); navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad)/) && ($(".listenToPage audio").show(), $(".listenToPage p").html("Spoken version"), $("html").addClass("iPad")); Modernizr.canvas ? $(".listen").click(function () { $(".listenToPage audio").toggle(); $("#speechmaster")[0].pause(); $("#speechmaster")[0].currentTime = 0; return !1 }) : $(".listen").removeAttr("onclick"); $("input[placeholder], textarea[placeholder]").placeholder() } function calendars() { $(".date-pick, .date-picker").datePicker(); $(".date-picker").dpSetPosition($.dpConst.POS_BOTTOM, $.dpConst.POS_RIGHT) } function tableSort() { $(".listTable table").tablesorter({ widthFixed: !0, widgets: ["zebra"] }) } $("#featureTabsContainer").show(); function tab(a) { $("#featureTabsContainer .tab").removeClass("current"); $($("#featureTabsContainer .tab")[a]).addClass("current"); $("#featureElementsContainer .feature").hide(); $($("#featureElementsContainer .feature")[a]).show() };
