Skip to content

Commit

Permalink
set the null values as N/A
Browse files Browse the repository at this point in the history
  • Loading branch information
YogeshSharma01 committed Mar 4, 2021
1 parent 9ac4641 commit 0851399
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ document.addEventListener('DOMContentLoaded', function () {
$.each(data, function (i, status) {
statusHTML += '<div class="conatiner-language">';
statusHTML += '<div class="repo-name"><a href="' + status.html_url + '">' + status.name + '</a></div>';
if(status.language == null){
statusHTML += '<span class="badge">' + 'N/A' + '</span>';
}else{
statusHTML += '<span class="badge">' + status.language + '</span>';
}
statusHTML += '</div>';
});
$('#tbody').html(statusHTML);
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ <h3>3.<br />Create a welcoming issue for someone else</h3>

<br />
<!-- Langauge section -->
<h2><span id="fto-issue">Languages</span> Uses</h2>
<h2><span id="fto-issue">Languages</span> Used</h2>
<p>This is the section of all the repositories of <a href="https://github.com/publiclab">PUBLIC LAB</a> we've made especially for first-timers. We're here to help, so just click on it if one looks interesting.</p>
<div id="tbody" class="row language "></div>
<!-- langauge section ends -->
Expand Down

0 comments on commit 0851399

Please sign in to comment.