From 9254942423a3d26316d4cdf105377aa73d780d77 Mon Sep 17 00:00:00 2001 From: isaiah robinson <95643215+internetisaiah@users.noreply.github.com> Date: Tue, 24 Sep 2024 09:49:34 -0700 Subject: [PATCH 1/3] Removing developer nav --- assets/js/developer_nav.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/js/developer_nav.js b/assets/js/developer_nav.js index a56f4fc2b78..f92d16352f4 100644 --- a/assets/js/developer_nav.js +++ b/assets/js/developer_nav.js @@ -1,7 +1,8 @@ $(document).ready(function () { - if (page_collection !== "developer_guide") { + if (page_collection == "") { return; } + /* var exclusion_list = [ "parent_nav_top_platformintegrationguides_sdkprimer", "parent_nav_top_platformintegrationguides_sdkchangelogs", @@ -115,5 +116,5 @@ $(document).ready(function () { navigation_id.trigger("click"); } } - +*/ }); From 279aae214a94fbe48802eb57ad0ab3ea34f0c764 Mon Sep 17 00:00:00 2001 From: isaiah robinson <95643215+internetisaiah@users.noreply.github.com> Date: Tue, 24 Sep 2024 11:18:56 -0700 Subject: [PATCH 2/3] Update html_include.html --- _includes/html_include.html | 1 - 1 file changed, 1 deletion(-) diff --git a/_includes/html_include.html b/_includes/html_include.html index df4fa3322ae..3e5530f30c1 100644 --- a/_includes/html_include.html +++ b/_includes/html_include.html @@ -93,7 +93,6 @@ - /assets/js/contentcards.js {% endjavascript_asset_tag %} - From 5557a694ef3bc00273361a77727895cf2c7a846a Mon Sep 17 00:00:00 2001 From: isaiah robinson <95643215+internetisaiah@users.noreply.github.com> Date: Tue, 24 Sep 2024 11:19:51 -0700 Subject: [PATCH 3/3] Delete assets/js/developer_nav.js --- assets/js/developer_nav.js | 120 ------------------------------------- 1 file changed, 120 deletions(-) delete mode 100644 assets/js/developer_nav.js diff --git a/assets/js/developer_nav.js b/assets/js/developer_nav.js deleted file mode 100644 index f92d16352f4..00000000000 --- a/assets/js/developer_nav.js +++ /dev/null @@ -1,120 +0,0 @@ -$(document).ready(function () { - if (page_collection == "") { - return; - } - /* - var exclusion_list = [ - "parent_nav_top_platformintegrationguides_sdkprimer", - "parent_nav_top_platformintegrationguides_sdkchangelogs", - ]; - - var url_selected = (location.pathname.split("/")[4] || "").replace(/_/g, ""); - if (site_language != 'en') { - url_selected = (location.pathname.split("/")[5] || "").replace(/_/g, ""); - } - var dev_selected = (url_selected - ? `parent_nav_top_platformintegrationguides_${url_selected}` - : Cookies.get("__dev_selected") || "").toLowerCase(); - var platform_objects = $("#nav_top_platformintegrationguides > div.nav-item"); - var platform_list = []; - var hide_list = []; - var show_list = []; - var select_html = - '
"; - $("#parent_nav_home div .nav_block").append(select_html); - $("#dev_select").change(function (e) { - var $this = $(this); - var cur_sel = $this.val(); - Cookies.set("__dev_selected", cur_sel); - if (!cur_sel) { - $(platform_list).each(function (i, v) { - $("#" + v).show(); - }); - } else { - $(platform_list).each(function (i, v) { - if (exclusion_list.indexOf(v) == -1) { - if ($("#" + v + " a").attr("aria-expanded") == "true") { - $("#" + v + " a").trigger("click"); - } - $("#" + v).hide(); - } - }); - show(cur_sel); - } - }); - $("#guide_featured_list a, #guide_list a").click(function (e) { - var $this = $(this); - var navlink = $this.attr("data-navlink"); - if (navlink) { - navlink = "parent_nav_top_platformintegrationguides_" + navlink; - if (platform_list.indexOf(navlink) > -1) { - Cookies.set("__dev_selected", navlink); - } - } - }); - - function hide(dropdown_id) { - var navigation_id = $("#" + dropdown_id + " a"); - $("#" + dropdown_id).hide(); - if (navigation_id.attr("aria-expanded") === "true") { - navigation_id.trigger("click"); - } - } - - function show(dropdown_id) { - var navigation_id = $("#" + dropdown_id + " a"); - $("#" + dropdown_id).show(); - if (navigation_id.attr("aria-expanded") === "false") { - navigation_id.trigger("click"); - } - } -*/ -});