Skip to content

Commit

Permalink
test without CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
jm1021 committed May 11, 2023
1 parent 97c7f6a commit cc4f45b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions _notebooks/2023-05-10-PBL-javascript_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -812,10 +812,8 @@
],
"source": [
"%%html\n",
"<!-- load jQuery and tablesorter scripts -->\n",
"<head>\n",
"<!-- load jQuery and DataTables scripts -->\n",
" <link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.datatables.net/1.10.25/css/jquery.dataTables.min.css\">\n",
" <!-- load jQuery and DataTables scripts -->\n",
" <script type=\"text/javascript\" language=\"javascript\" src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>\n",
" <script type=\"text/javascript\" language=\"javascript\" src=\"https://cdn.datatables.net/1.10.25/js/jquery.dataTables.min.js\"></script>\n",
"</head>\n",
Expand All @@ -842,13 +840,14 @@
" })\n",
" .then(data => {\n",
" for (const row of data) {\n",
" // BUG warning/resolution - DataTable requires row to be single append\n",
" $('#flaskBody').append('<tr><td>' + \n",
" row.id + '</td><td>' + \n",
" row.name + '</td><td>' + \n",
" row.dob + '</td><td>' + \n",
" row.age + '</td></tr>');\n",
" }\n",
" // BUG on Jupyter, works on Markdown in Github Pges\n",
" // BUG warning - Jupyter does not show Datatable controls, works on deployed GitHub pages\n",
" $(\"#flaskTable\").DataTable();\n",
" })\n",
" .catch(error => {\n",
Expand Down

0 comments on commit cc4f45b

Please sign in to comment.