<% if(connected){ %> <% if(dataOut==0){ %> You need to go through the Assemble workflow to setup your machine and create <%= allCamProcesses[camProcess] %> first. <% }else{ %> <% if(isStreaming){ %> <a href="#" id="pauseStream" class="btn btn-halfWidth btn-lg btn-warning">Pause</a> <a href="#" id="stopMachine" class="btn pull-right btn-halfWidth btn-lg btn-danger">Stop</a><br/> <% }else{ %> <a href="#" id="streamCommands" class="btn btn-block btn-lg btn-success">Stream</a> <% } %> <br/> <a href="#" id="openSerialMonitor" class="btn btn-block btn-lg btn-default">Open Serial Monitor</a><br/> Next Line: <input id="nextLine" value=<%= nextLine %> placeholder="##" class="intInput form-control unresponsiveInput" type="text"> <a href="#" id="previousLineButton" class="btn btn-lg btn-default"><span class="fui-triangle-up"></span></a> <a href="#" id="nextLineButton" class="btn btn-lg btn-default"><span class="fui-triangle-down"></span></a><br/><br/> <div id="gcodeEditor"><%= dataOut %></div><br/> <% } %> <% } else { %> Not connected, go back to setup tab and connect to Node server. <% } %>