Skip to content

Commit

Permalink
Replace script removal with padding collapsing
Browse files Browse the repository at this point in the history
  • Loading branch information
djsegal committed Mar 29, 2018
1 parent 23a455a commit 2cf426e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/providers/ijulia_setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ end

function main()
display(HTML("""
<script class='js-remove-script'>
<script class='js-collapse-script'>
var curMatch =
window.location.href
.match(/(.*)\\/notebooks\\/.*\\.ipynb/);
Expand All @@ -32,10 +32,14 @@ function main()
</script>
"""))

display(HTML("<script class='js-remove-script' src='pkg/WebIO/webio/dist/bundle.js'></script>"))
display(HTML("<script class='js-remove-script' src='pkg/WebIO/providers/ijulia_setup.js'></script>"))
display(HTML("<script class='js-collapse-script' src='pkg/WebIO/webio/dist/bundle.js'></script>"))
display(HTML("<script class='js-collapse-script' src='pkg/WebIO/providers/ijulia_setup.js'></script>"))

display(HTML("<script class='js-remove-script'>\$('.js-remove-script').closest('.output_area').remove();</script>"))
display(HTML("""
<script class='js-collapse-script'>
\$('.js-collapse-script').parent('.output_subarea').css('padding', '0');
</script>
"""))

comm = Comm(:webio_comm)
conn = IJuliaConnection(comm)
Expand Down

0 comments on commit 2cf426e

Please sign in to comment.