1$(document).ready(function () { 2 var topNavHamburberButtonFlip = 0; 3 var topNavSearchButtonFlip = 0; 4 $("#topNavHamburberButton").on("click", function () { 5 topNavHamburberButtonFlip++; 6 if (topNavHamburberButtonFlip % 2 === 0) { 7 $(this).removeClass("btn-adbs-gray-646466"); 8 $(this).removeClass("border-bottom-0"); 9 $(this).find("#header-menu-icon").removeClass("d-none"); 10 $(this).find("#header-close-icon").addClass("d-none"); 11 } else { 12 $(this).addClass("btn-adbs-gray-646466"); 13 $(this).addClass("border-bottom-0"); 14 $(this).find("#header-menu-icon").addClass("d-none"); 15 $(this).find("#header-close-icon").removeClass("d-none"); 16 } 17 18 if ($("#topNavSearchCollapse").hasClass("show")) { 19 $("#topNavSearchButton").click(); 20 } 21 }); 22 $("#topNavSearchButton").on("click", function () { 23 topNavSearchButtonFlip++; 24 if (topNavSearchButtonFlip % 2 === 0) { 25 $(this).removeClass("btn-adbs-blue-f7f7f7"); 26 $(this).removeClass("border-bottom-0"); 27 } else { 28 $(this).addClass("btn-adbs-blue-f7f7f7"); 29 $(this).addClass("border-bottom-0"); 30 } 31 32 if ($("#leftSidebarCollapse").hasClass("show")) { 33 $("#topNavHamburberButton").click(); 34 } 35 }); 36 37 let navbarToggleFlip = 0; 38 new window.onClickOutside(document.getElementById("leftSidebarCollapse"), () => { 39 if ($("#leftSidebarCollapse").hasClass("show")) { 40 $("#topNavHamburberButton").click(); 41 } 42 }); 43 44 $(".navbar-toggler-icon").on("click", function () { 45 navbarToggleFlip++; 46 if (navbarToggleFlip % 2 === 0) { 47 $(".navbar-toggler-icon").css( 48 "background-image", 49 `url( 50 "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e" 51 )` 52 ); 53 } else { 54 $(".navbar-toggler-icon").css( 55 "background-image", 56 `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' viewBox='0 -960 960 960' width='48' fill='%237f7f7f'%3E%3Cpath d='m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231-231 231Z'/%3E%3C/svg%3E")` 57 ); 58 } 59 }); 60 61 function name(selectedColor) { 62 $( 63 "[class*='primary'], [class*='adbs_colTheme1'], [class*='adbs_colTheme2']" 64 ).each(function () { 65 let cn = $(this).attr("class"); 66 if (!cn.includes("color-item")) { 67 let cnArray = cn.split(" "); 68 let newcn = ""; 69 let newcnColor = []; 70 let elArray = []; 71 72 cnArray.forEach((el) => { 73 if ( 74 el.includes("adbs_colTheme1") || 75 el.includes("adbs_colTheme2") || 76 el.includes("primary") 77 ) { 78 elArray = el.split("-"); 79 80 elArray.forEach((e) => { 81 if ( 82 e.includes("adbs_colTheme1") || 83 e.includes("adbs_colTheme2") || 84 e.includes("primary") 85 ) { 86 newcnColor.push(selectedColor); 87 } else { 88 newcnColor.push(e); 89 } 90 }); 91 newcnColor = newcnColor.join("-"); 92 93 newcn += newcnColor + " "; 94 } else { 95 newcn += el + " "; 96 } 97 }); 98 $(this).attr("class", newcn); 99 } 100 }); 101 } 102 103 $(".color-item").click(function () { 104 let selectedColor = $(this).attr("data-theme-color"); 105 name(selectedColor); 106 $(".color-item").removeClass("focus"); 107 $(this).addClass("focus"); 108 }); 109 110 /** 111 * Login Modal show password and hide password 112 */ 113 $(".hide-password").hide(); 114 $(".input-pass").attr("type", "password"); 115 $(".show-password").click(function () { 116 $(this).hide(); 117 $(this) 118 .parent(".showhidebtn-group") 119 .siblings(".input-pass") 120 .attr("type", "text"); 121 $(this).siblings(".hide-password").show(); 122 }); 123 $(".hide-password").click(function () { 124 $(this).hide(); 125 $(this) 126 .parent(".showhidebtn-group") 127 .siblings(".input-pass") 128 .attr("type", "password"); 129 $(this).siblings(".show-password").show(); 130 }); 131 132 /** 133 * End 134 */ 135});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.