Skip to content

Commit

Permalink
Resolved issue on just-the-docs.js bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Francis Earl Soriano Fojas/Server Solutions G /SRPH/Engineer/Samsung Electronics committed Oct 22, 2023
1 parent 68a4706 commit f5d60b2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 22 deletions.
1 change: 1 addition & 0 deletions _includes/homepage_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
if (!e.target.matches('.change-language-btn')) {
var languageDropdown = document.getElementById("language-dropdown");
var chevronIcon = document.getElementById("chevron-icon");
console.log(chevronIcon)

if (languageDropdown.classList.contains('show')) {
languageDropdown.classList.remove('show');
Expand Down
13 changes: 0 additions & 13 deletions _sass/color_schemes/dark_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,4 @@ a {

.main-header {
background-color: $body-background-color !important;
}

@media (max-width: 799.4px) {

.shared-language-btn,
.chevron-icon {
color: $teal;
}

.homepage-dropdown-content a,
.header-dropdown-content a {
color: $teal !important;
}
}
8 changes: 0 additions & 8 deletions _sass/color_schemes/light_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,4 @@ $hover-sidebar-links-color: #ebedf5;

.main-header {
background-color: $white !important;
}

@media (max-width: 799.4px) {

.shared-language-btn,
.chevron-icon {
color: $purple-000;
}
}
7 changes: 6 additions & 1 deletion assets/js/just-the-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,12 @@ jtd.onReady(function(){
})(window.jtd = window.jtd || {});

window.onload = (event) => {
var isSearchEnabled = document.getElementById('is-search-enabled').value != 'false';
var tempIsSearchEnabled = document.getElementById('is-search-enabled').value != 'false';
var isSearchEnabled = false;

if (tempIsSearchEnabled && tempIsSearchEnabled.value && tempIsSearchEnabled.value != 'false') {
isSearchEnabled = true;
}

if (isSearchEnabled) {
var baseurl = document.getElementById('baseurl').value;
Expand Down

0 comments on commit f5d60b2

Please sign in to comment.