add toolbar highlighting on hover

This commit is contained in:
Paul Ivanov 2013-12-03 18:45:09 -08:00
parent 0cef349751
commit 77165ad97a

View File

@ -34,7 +34,18 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Run a code cell using `Shift-Enter` or pressing the <button><i class=\"icon-play\" /></button> button in the toolbar above:"
"\n",
"<script type=\"text/javascript\">\n",
"var _toggle=false;\n",
"var hl = function (id, on){\n",
" $(id)[0].style.background = '';\n",
" if (on) {\n",
" $(id)[0].style.background = 'gold';\n",
" }\n",
"};\n",
"</script>\n",
"\n",
"Run a code cell using `Shift-Enter` or pressing the <button><i class=\"icon-play\" /></button> button in the <a href=\"#\" onMouseover=\"hl('#maintoolbar-container', 1)\" onMouseout=\"hl('#maintoolbar-container', 0)\">toolbar</a> above:"
]
},
{
@ -79,7 +90,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Code is run in a separate process called the IPython Kernel. The Kernel can be interrupted or restarted. Try running the following cell and then hit the <button><i class='icon-stop'/></button> button in the toolbar above."
"Code is run in a separate process called the IPython Kernel. The Kernel can be interrupted or restarted. Try running the following cell and then hit the <button><i class='icon-stop'/></button> button in the <a href=\"#\" onMouseover=\"hl('#maintoolbar-container', 1)\" onMouseout=\"hl('#maintoolbar-container', 0)\">toolbar</a> above."
]
},
{