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

Fixes #606 : This Pull Request resolves the bug that was preventing the ML kit help-guide from functioning properly. #683

Merged
merged 1 commit into from
Mar 14, 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
1 change: 1 addition & 0 deletions apps/dev-workbench/workbench.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
href="#"
data-toggle="modal"
data-target="#helpModal"
onClick="displayUserGuide()"
>
<i class="fas fa-question-circle"></i>
&nbsp;&nbsp;Help/User Guide</a
Expand Down
6 changes: 3 additions & 3 deletions apps/dev-workbench/workbench.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,14 +494,14 @@ function importWork() {
}

// getting markdown from readme.md and parsing/displaying it as user-guide
$('.helpButton').click(function() {
function displayUserGuide() {
fetch('./readme.md').then((res) => res.blob()).then((blob) => {
let f = new FileReader();
f.onload = function(e) {
$('#helpModal .modal-body').html(marked(e.target.result));
$('#helpModal .modal-body').html(marked.marked(e.target.result));
$('#helpModal .modal-body td, #helpModal .modal-body th')
.css('border', '2px solid #dddddd').css('padding', '5px');
};
f.readAsText(blob);
});
});
}