Skip to content

Commit

Permalink
More controls on Notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
Baohong Zhang committed Sep 14, 2020
1 parent cc4ee49 commit 049a62a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions interface.html
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,9 @@ <h3>Brushed ranges</h3>
<button class="CLIbt" onclick="editor.getSession().setValue($('#CLIVignetteCode1').text().trim());">Vignette 1</button>
<button class="CLIbt" onclick="editor.getSession().setValue($('#CLIVignetteCode2').text().trim());">Vignette 2</button>
<button onclick="hideShow($('#CLIinput'),$(this));">Hide Input</button>
<button onclick="printNotebook();">Print Notebook</button>
<button onclick="hideShow($('.input'),$(this),'Code');">Hide Code</button>
<button onclick="hideShow($('.output_text'),$(this),'Output');">Hide Output</button>
<div id="CLIsvg"></div>
<p id="CLInote" style="color:red;"></p>
<div id="CLIspin" class="loading style-2" style="visibility: hidden;"><div class="loading-wheel"></div></div>
Expand All @@ -845,6 +848,19 @@ <h3>Brushed ranges</h3>
<script type="text/javascript">
var heatCell = 10000;
var editor;

function printNotebook(){
var html = $('#CLIresize').html();
var w=window.open('','_blank');
w.document.write('<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script\>\n');
w.document.write('<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script\>\n');
w.document.write('<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha512-iztkobsvnjKfAtTNdHkGVjAYTrrtlC7mGp/54c40wowO7LhURYl3gVzzcEqGl/qKXQltJ2HwMrdLcNUdo+N/RQ==" crossorigin="anonymous"></script\>\n');
w.document.write('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css" integrity="sha512-pli9aKq758PMdsqjNA+Au4CJ7ZatLCCXinnlSfv023z4xmzl8s+Jbj2qNR7RI8DsxFp5e8OvbYGDACzKntZE9w==" crossorigin="anonymous" />\n');
w.document.write
w.document.write(html);
w.document.close();
}

function checkLoading(){
if(!window.store || !window.store.getState().categoricalSelection){
return false;
Expand Down

0 comments on commit 049a62a

Please sign in to comment.