These are chat archives for damianavila/RISE

Nov 2015
Simon Biggs
Nov 03 2015 02:23

I ended up making the following toggle button:

function code_toggle() {
 if (code_show){
 $('div.cell').css("flex-direction", "row");
 $('div.output').css("width", "700px");
 } else {
 $('div.cell').css("flex-direction", "column");
 $('div.output').css("width", "100%");
 code_show = !code_show
$( document ).ready(code_toggle);
<form action="javascript:code_toggle()">
    <input type="submit" value="Slide setup (on/off)">

With this I was able to hide code and display the output alongside the widgets... not sure if this is a good way to go about it...