Skip to content

Commit

Permalink
Added contribute button when command not found
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnWoodman committed Dec 14, 2020
1 parent 63c7d26 commit 3a5c6d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions _includes/bin_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h3>OS:</h3>
{% endfor %}
</tbody>
<tfoot>
<tr><td id="search-message" colspan="2">No binary matches...</td></tr>
<tr><td id="search-message" colspan="2">Couldn't find the command you're looking for? <a href="/contribute/">Contribute</a> your own!</td></tr>
</tfoot>
</table>
</div>
Expand Down Expand Up @@ -257,8 +257,8 @@ <h3>OS:</h3>
});

// update the search message visibility
var searchMessage = document.getElementById('search-message');
searchMessage.style.display = noResults ? 'table-cell' : 'none';
//var searchMessage = document.getElementById('search-message');
//searchMessage.style.display = noResults ? 'table-cell' : 'none';
}

function applyFilter() {
Expand Down
2 changes: 1 addition & 1 deletion assets/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ h2, h3, h4, h5, h5 {
}

#search-message {
display: none;
display: table-cell;
text-align: center;
padding: 1em;
}
Expand Down

0 comments on commit 3a5c6d5

Please sign in to comment.