Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix js script include v1 #25

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions website_generator/generate_source.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,6 @@ extract_names <- function(listOfContributorsData) {
return(lapply(listOfContributorsData, function(x) x$name))
}

# badge_series <- function(x, type = 'badgeDefault') {
# if (length(x) > 0) {
# prefix <- paste0('<span class="badge" id="', type, '">')
# return(paste(prefix, x, '</span>', collapse = '&nbsp;'))
# } else {
# return('')
# }
# }
# badge_series <- function(x, type = 'badgeDefault') {
# if (length(x) > 0) {
# prefix <- paste0('<span class="badge" id="', type, '" onclick="filterByKeyword(\'', x, '\')">')
# return(paste(prefix, x, '</span>', collapse = '&nbsp;'))
# } else {
# return('')
# }
# }
badge_series <- function(x, type = 'badgeDefault') {
if (length(x) > 0) {
prefix <- paste0('<span class="badge" id="', type, '" data-keyword="', x, '">')
Expand Down
2 changes: 1 addition & 1 deletion website_generator/website_source/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ DT::datatable(nassa_table_print,
```
</div>

<script src='js/selectKeyword.js'></script>
<script src='../js/selectKeyword.js'></script>

<table class='legend'>
<tr>
Expand Down
Loading