Skip to content

Commit

Permalink
Add collapsible buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
patacca committed Jun 12, 2024
1 parent e9bd96e commit 3af7fb3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tutorials/binexport_quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,38 @@
"source": [
"This can gives us an idea of which functions to look at when searching for a vulnerability."
]
},
{
"cell_type": "raw",
"metadata": {},
"source": [
"<script>\n",
"var coll = document.getElementsByClassName(\"collapsible\");\n",
"var i;\n",
"\n",
"for (i = 0; i < coll.length; i++) {\n",
"\n",
" var tmp = coll[i].nextElementSibling;\n",
" tmp.style.display = \"none\";\n",
" tmp.nextElementSibling.style.display = \"none\";\n",
"\n",
" coll[i].addEventListener(\"click\", function() {\n",
" this.classList.toggle(\"active\");\n",
" var content = this.nextElementSibling;\n",
" var content2 = content.nextElementSibling;\n",
" if (content.style.display === \"none\") {\n",
" content.style.display = \"\";\n",
" content2.style.display = \"\";\n",
" this.innerHTML = \"Hide Solution\";\n",
" } else {\n",
" content.style.display = \"none\";\n",
" content2.style.display = \"none\";\n",
" this.innerHTML = \"Show Solution\";\n",
" }\n",
" });\n",
"}\n",
"</script>"
]
}
],
"metadata": {
Expand Down

0 comments on commit 3af7fb3

Please sign in to comment.