Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/frontend/editor-templates.ts
Views: 687
/*1* This file is part of CoCalc: Copyright © 2024 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45const console = `6<div id="webapp-console-templates" class="hide">7<div class="webapp-console smc-vfill webapp-console-blur">89<!-- The bar across the top -->10<!-- increase font, decrease font, refresh, paste spot, then title ... font indicator-->11<div class="webapp-console-topbar">12<div class="smc-users-viewing-document webapp-editor-chat-title">13<!--to be filled with react component for users viewing the document-->14</div>1516 1718<div class="pull-left">19<span class="btn-group visible-xs">20<a href="#decrease-font" class="btn btn-default"><i class="fa fa-font" style="font-size:8pt"> </i> </a>21<a href="#increase-font" class="btn btn-default"><i class="fa fa-font" style="font-size:13pt"> </i></a>22<a href="#refresh" class='btn btn-default'><i class="fa fa-repeat" style="font-size:14pt"> </i></a>23</span>2425<span class="hidden-xs">26<span class="btn-group">27<a href="#decrease-font" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="right" title="Smaller"><i class="fa fa-font" style="font-size:7pt"> </i> </a>28<a href="#increase-font" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="right" title="Bigger"><i class="fa fa-font" style="font-size:10pt"> </i> </a>29<a href="#refresh" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="right" title="Reconnect"><i class="fa fa-repeat"> </i> </a>30<a href="#pause" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="right" title="Pause"><i class="fa fa-pause"> </i> </a>31<a href="#paste" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="right" title="History"><i class="fa fa-paste"> </i> </a>32<a href="#initfile" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="right" title="Init file"><i class="fa fa-rocket"> </i> </a>33<a href="#boot" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="right" title="Boot others"><i class="fa fa-sign-out-alt"> </i> </a>3435</span>36 37<span>38<span class="webapp-console-font-indicator hide"><i class="fa fa-font"> </i>39<span class="webapp-console-font-indicator-size"></span>pt40<a class="btn btn-success btn-sm" href="#font-make-default">make default</a>41</span>42</span>43</span>44</div>4546<div class="webapp-console-title pull-left"></div>47 48<div class="pull-right webapp-burst-indicator hide" style="background: red;color: white; padding: 5px 15px;49font-weight: bold;">50WARNING: Large burst of output! (May try to interrupt.)51</div>5253<div class="webapp-console-mobile-input">5455<input class="webapp-console-input-line form-control" type="text" style="width:98%" placeholder="Type input or paste here...">56<span class="btn-group">57<a class="btn webapp-console-submit-esc btn-default">esc</a>58<a class="btn webapp-console-submit-line btn-default">return</a>59<a class="btn webapp-console-submit-submit btn-default">submit</a>60<a class="btn webapp-console-submit-ctrl-b btn-default">ctrl-b</a>61<a class="btn webapp-console-submit-ctrl-c btn-default">ctrl-c</a>62<a class="btn webapp-console-submit-tab btn-default">tab</a>63<a class="btn webapp-console-submit-up btn-default"><i class="fa fa-arrow-up"></i></a>64<a class="btn webapp-console-submit-down btn-default"><i class="fa fa-arrow-down"></i></a>65<a class="btn webapp-console-submit-left btn-default"><i class="fa fa-arrow-left"></i></a>66<a class="btn webapp-console-submit-right btn-default"><i class="fa fa-arrow-right"></i></a>67</span>68</div>6970<textarea class="webapp-console-textarea"></textarea>71<!--72<a class="btn btn-info webapp-console-esc hide">esc</a>73<a class="btn btn-info webapp-console-tab hide">tab</a>74<a class="btn btn-info webapp-console-control hide">control</a>75<a class="btn webapp-console-up"><i class="fa fa-arrow-up"></i></a>76<a class="btn webapp-console-down"><i class="fa fa-arrow-down"></i></a>77-->78</div>7980<!-- The actual terminal -->81<!-- I tried autocomplete="false" in the textarea, but this is not valid HTML, and I think didn't work anyways.82Jason Grout suggests: autocapitalize="off" autocorrect="off" autocomplete="off"83-->84<div class="smc-vfill" style="position:relative">85<textarea class="webapp-console-for-mobile hide"></textarea>86<div style="flex:1; display:flex; overflow:hidden" class="webapp-console-terminal-container">87<div style="flex:1; position:relative">88<div class="smc-vfill webapp-console-terminal"></div>89</div>90<div class="webapp-console-scrollbar"></div>91</div>92</div>93</div>94</div>9596`;9798const editor = `99<div id="webapp-editor-templates" class="hide">100<!-- Template for the entire editor, both tabs and the actual content -->101<div class="webapp-editor">102<div class="row">103<div class="col-xs-12">104<!-- The editor content gets displayed here -->105<div class="webapp-editor-content"></div>106</div>107</div>108</div>109110<!-- Template for the tab at the top of the editor with filename and an x -->111<ul>112<!-- ul so is valid html -->113<li class="super-menu webapp-editor-filename-pill">114<div class="webapp-editor-close-button-x pull-right lighten">115<i class="fa fa-times"></i>116</div>117<a>118<span class="webapp-editor-tab-filename"></span>119</a>120</li>121</ul>122123<!-- Template for the codemirror text editor -->124<div class="webapp-editor-codemirror smc-vfill">125<textarea class="webapp-editor-textarea-0 hide"></textarea>126<textarea class="webapp-editor-textarea-1 hide"></textarea>127<div class="webapp-editor-codemirror-content smc-vfill">128<div class="webapp-editor-codemirror-button-row">129<div class="webapp-editor-codemirror-button-container">130<div131class="hidden-xs webapp-editor-chat-title webapp-editor-write-only pull-right"132>133<div class="smc-users-viewing-document">134<!--to be filled with react component for users viewing the document-->135</div>136</div>137138<div class="smc-editor-file-info-dropdown" style="float: left; margin-top:7px"></div>139140<span class="visible-xs">141<span class="btn-group">142<!-- <a href="#close" class="btn btn-default btn-lg"><i class="fa fa-toggle-up"></i> <span>Files...</span></a>-->143<a href="#save" class="btn btn-success btn-lg"144><i class="fa fa-save"></i> Save</a145>146<a href="#goto-line" class="btn btn-default btn-lg"147><i class="fa fa-bolt"> </i148></a>149</span>150151<span152class="btn-group webapp-editor-codemirror-worksheet-buttons hide"153>154<a href="#execute" class="btn btn-success btn-lg">155<i class="fa fa-play"></i> Run</a156>157<a href="#interrupt" class="btn btn-warning btn-lg">158<i class="fa fa-stop"></i159></a>160<a href="#kill" class="btn btn-warning btn-lg"161><i class="fa fa-refresh"></i162></a>163<a href="#tab" class="btn btn-info btn-lg">164<i class="fa fa-step-forward"></i165></a>166</span>167168<span class="btn-group">169<a href="#decrease-font" class="btn btn-default btn-lg"170><i class="fa fa-font" style="font-size: 8pt"> </i>171</a>172<a href="#increase-font" class="btn btn-default btn-lg"173><i class="fa fa-font" style="font-size: 13pt"> </i>174</a>175</span>176177<a178class="btn btn-primary btn-lg hide"179href="#copy-to-another-project"180><i class="fa fa-paper-plane"> </i>181<span>Copy To Your Project...</span></a182>183</span>184185<span class="btn-group webapp-editor-write-only">186<a187href="#save"188class="hidden-xs btn btn-success webapp-editor-save-group"189data-toggle="tooltip"190data-placement="bottom"191title="Save file to disk."192>193<i class="fa fa-save primary-icon"></i>194<i class="fa fa-cocalc-ring hide"></i>195Save196<span197class="smc-uncommitted hide"198data-toggle="tooltip"199data-placement="bottom"200title="DANGER: File NOT sent to server and not saved to disk. You will lose work if you close this file."201>202NOT saved!</span203>204</a>205<a206href="#history"207class="hidden-xs btn btn-info webapp-editor-history-button hide"208data-toggle="tooltip"209data-placement="bottom"210title="View the history of this file."211>212<i class="fa fa-history"></i>213<span class="hidden-sm">TimeTravel</span>214</a>215<!-- <a216href="#chatgpt"217style="background:#10a37f;color:white"218class="hidden-xs btn btn-default hide"219data-toggle="tooltip"220data-placement="bottom"221title="Get assistance from ChatGPT."222>223<i class="fa fa-robot"></i>224<span class="hidden-sm hidden-md">ChatGPT</span>225</a> -->226</span>227228<span class="hidden-xs">229<span class="webapp-editor-codemirror-worksheet-buttons hide">230<span class="btn-group webapp-editor-write-only">231<a232href="#execute"233class="btn btn-default"234data-toggle="tooltip"235data-placement="bottom"236title="Execute current or selected cells (unless input hidden)."237><i class="fa fa-play"></i> Run</a238>239<a240href="#tab"241class="btn btn-default"242data-toggle="tooltip"243data-placement="bottom"244title="Tab completion."245>246<i class="fa fa-step-forward"></i>247<span class="hidden-sm hidden-md">Tab</span></a248>249<a250href="#interrupt"251class="btn btn-default"252data-toggle="tooltip"253data-placement="bottom"254title="Stop the running calculation."255><i class="fa fa-stop"></i>256<span class="hidden-sm hidden-md">Stop</span></a257>258<a259href="#kill"260class="btn btn-default"261data-toggle="tooltip"262data-placement="bottom"263title="Restart the running Sage process (all variables reset)."264><i class="fa fa-refresh"></i>265<span class="hidden-sm hidden-md">Restart</span></a266>267</span>268<span class="btn-group webapp-editor-write-only hidden-sm">269<a270href="#toggle-input"271class="btn btn-default"272data-toggle="tooltip"273data-placement="bottom"274title="Toggle display of input of selected cells."275><i class="fa fa-toggle-on"></i>276<span class="hidden-sm hidden-md">in</span></a277>278<a279href="#toggle-output"280class="btn btn-default"281data-toggle="tooltip"282data-placement="bottom"283title="Toggle display of output of selected cells."284><i class="fa fa-toggle-on"></i>285<span class="hidden-sm hidden-md">out</span></a286>287<a288href="#delete-output"289class="btn btn-default"290data-toggle="tooltip"291data-placement="bottom"292title="Delete output of selected cells (unless input hidden)."293><i class="fa fa-times-circle"></i294></a>295</span>296</span>297</span>298<span class="hidden-xs btn-group editor-btn-group">299<a300href="#vim-mode-toggle"301class="btn btn-default webapp-editor-write-only"302data-toggle="tooltip"303data-placement="bottom"304title="Toggle VIM mode"305style="width: 4em"306>esc</a307>308<a309href="#autoindent"310class="btn btn-default webapp-editor-write-only"311data-toggle="tooltip"312data-placement="bottom"313title="Autoindent selected text"314><i class="fa fa-indent"></i315></a>316<a317href="#undo"318class="btn btn-default webapp-editor-write-only"319data-toggle="tooltip"320data-placement="bottom"321title="Undo"322><i class="fa fa-undo"></i323></a>324<a325href="#redo"326class="btn btn-default webapp-editor-write-only"327data-toggle="tooltip"328data-placement="bottom"329title="Redo"330><i class="fa fa-repeat"></i331></a>332<a333href="#search"334class="btn btn-default btn-history"335data-toggle="tooltip"336data-placement="bottom"337title="Search"338><i class="fa fa-search"></i339></a>340<!-- <a href="#prev" class="btn btn-default btn-history" data-toggle="tooltip" data-placement="bottom" title="Previous"><i class="fa fa-chevron-up"></i></a>341<a href="#next" class="btn btn-default btn-history" data-toggle="tooltip" data-placement="bottom" title="Next"><i class="fa fa-chevron-down"></i></a>-->342<a343href="#replace"344class="btn btn-default webapp-editor-write-only"345data-toggle="tooltip"346data-placement="bottom"347title="Replace"348><i class="fa fa-exchange"></i349></a>350<a351href="#split-view"352class="btn btn-default"353data-toggle="tooltip"354data-placement="bottom"355title="Split view of document"356>357<i class="fa fa-horizontal-split webapp-editor-layout-0 hide"></i>358<i class="fa fa-vertical-split webapp-editor-layout-1 hide"></i>359<i360class="fa fa-window-maximize webapp-editor-layout-2 hide"361style="font-size: 12pt"362></i>363</a>364<a365href="#decrease-font"366class="btn btn-default btn-history"367data-toggle="tooltip"368data-placement="bottom"369title="Decrease text size"370><i class="fa fa-font" style="font-size: 7pt"> </i>371</a>372<a373href="#increase-font"374class="btn btn-default btn-history"375data-toggle="tooltip"376data-placement="bottom"377title="Increase text size"378><i class="fa fa-font" style="font-size: 11pt"> </i>379</a>380<a381href="#goto-line"382class="btn btn-default btn-history"383data-toggle="tooltip"384data-placement="bottom"385title="Go to line"386><i class="fa fa-bolt"> </i>387</a>388<a389href="#copy"390class="btn btn-default btn-history webapp-editor-write-only"391data-toggle="tooltip"392data-placement="bottom"393title="Copy"394><i class="fa fa-copy"> </i>395</a>396<a397href="#paste"398class="btn btn-default btn-history webapp-editor-write-only"399data-toggle="tooltip"400data-placement="bottom"401title="Paste"402><i class="fa fa-paste"> </i>403</a>404<a405href="#sagews2pdf"406class="hidden-sm btn btn-default webapp-editor-write-only hide"407data-toggle="tooltip"408data-placement="bottom"409title="Convert to PDF"410><i class="fa fa-file-pdf-o"> </i>411</a>412<a413href="#print"414class="hidden-sm btn btn-default webapp-editor-write-only hide"415data-toggle="tooltip"416data-placement="bottom"417title="Print"418><i class="fa fa-print"> </i>419<i class="fa fa-cocalc-ring hide"></i420></a>421<a422href="#sagews2ipynb"423class="hidden-sm btn btn-default webapp-editor-write-only hide"424data-toggle="tooltip"425data-placement="bottom"426title="Convert to ipynb"427><i class="fa fa-ipynb"> </i>428<span class="hidden-sm hidden-md">Jupyter</span></a429>430</span>431432<span class="btn-group webapp-editor-read-only hide">433<a434href="#readonly"435class="hidden-xs btn btn-success webapp-editor-save-group disabled"436data-toggle="tooltip"437data-placement="bottom"438title="File is read only."439>440<i class="fa fa-save"></i>441<span class="hidden-sm">Readonly</span>442</a>443<a444href="#history"445class="hidden-xs btn btn-info webapp-editor-history-button hide"446data-toggle="tooltip"447data-placement="bottom"448title="View the history of this file."449>450<i class="fa fa-history"></i>451<span class="hidden-sm hidden-md">TimeTravel</span>452</a>453</span>454455<span class="hidden-xs">456<a class="btn btn-primary hide" href="#copy-to-another-project"457><i class="fa fa-paper-plane"> </i>458<span>Copy To Your Project...</span></a459>460<!--<a class="btn btn-success" href="#download-file"><i class="fa fa-cloud-download"> </i> <span class="hidden-sm">Download</span></a>-->461</span>462463<span class="webapp-editor-codemirror-loading hide">464<i class="fa fa-cocalc-ring"></i> load…465</span>466467<span class="webapp-editor-codemirror-sync">468<span class="webapp-editor-codemirror-not-synced hide"469><i class="fa fa-cocalc-ring"></i> sync…</span470>471<span class="webapp-editor-codemirror-synced hide"472><i class="fa fa-check"></i473></span>474</span>475476<span class="webapp-editor-codemirror-message"></span>477<span class="webapp-editor-codemirror-filename pull-right"></span>478</div>479480<div class="webapp-editor-buttonbars webapp-editor-write-only">481<div class="webapp-editor-latex-buttonbar hide"></div>482<div483class="webapp-editor-codemirror-textedit-buttons hide visible-sm-block visible-md-block visible-lg-block"484>485<code486class="webapp-editor-codeedit-buttonbar-mode pull-right hide"487></code>488<span class="react-target"></span>489<span490class="webapp-editor-codeedit-buttonbar-assistant pull-right hide"491>492<a493href="#assistant"494class="btn btn-default"495data-toggle="tooltip"496data-placement="bottom"497title="Insert examples"498>499<i class="fa fa-magic"></i>500<span class="hidden-sm">Snippets</span>501</a>502</span>503</div>504<div class="webapp-editor-codemirror-worksheet-editable-buttons hide">505<span class="btn-group">506<a507href="#bold"508class="btn btn-default"509data-toggle="tooltip"510data-placement="top"511title="Bold"512><i class="fa fa-bold"></i513></a>514<a515href="#italic"516class="btn btn-default"517data-toggle="tooltip"518data-placement="top"519title="Italic"520><i class="fa fa-italic"></i521></a>522<a523href="#underline"524class="btn btn-default"525data-toggle="tooltip"526data-placement="top"527title="Underline"528><i class="fa fa-underline"></i529></a>530<a531href="#strikethrough"532class="btn btn-default"533data-toggle="tooltip"534data-placement="top"535title="Strike through"536><i class="fa fa-strikethrough"></i537></a>538<a539href="#subscript"540class="btn btn-default"541data-toggle="tooltip"542data-placement="top"543title="Subscript (use LaTeX for serious equations)"544><i class="fa fa-subscript"></i545></a>546<a547href="#superscript"548class="btn btn-default"549data-toggle="tooltip"550data-placement="top"551title="Superscript"552><i class="fa fa-superscript"></i553></a>554</span>555<span class="btn-group">556<a557href="#equation"558data-args="special"559class="btn btn-default"560data-toggle="tooltip"561data-placement="top"562title="Inline equation..."563>564$565</a>566<a567href="#display_equation"568data-args="special"569class="btn btn-default"570data-toggle="tooltip"571data-placement="top"572title="Displayed equation..."573>574$$575</a>576<a577href="#insertunorderedlist"578class="btn btn-default"579data-toggle="tooltip"580data-placement="top"581title="Insert unordered list"582><i class="fa fa-list"></i583></a>584<a585href="#insertorderedlist"586class="btn btn-default"587data-toggle="tooltip"588data-placement="top"589title="Insert ordered list"590><i class="fa fa-list-ol"></i591></a>592<a593href="#link"594data-args="special"595class="btn btn-default"596data-toggle="tooltip"597data-placement="top"598title="Insert link..."599><i class="fa fa-link"></i600></a>601<a602href="#image"603data-args="special"604class="btn btn-default"605data-toggle="tooltip"606data-placement="top"607title="Insert image..."608><i class="fa fa-image"></i609></a>610<!-- <a href="#insertHorizontalRule" class="btn btn-default"><hr></a> -->611</span>612<span class="btn-group">613<a614href="#justifyleft"615class="btn btn-default"616data-toggle="tooltip"617data-placement="top"618title="Left justify"619><i class="fa fa-align-left"></i620></a>621<a622href="#justifycenter"623class="btn btn-default"624data-toggle="tooltip"625data-placement="top"626title="Justify center"627><i class="fa fa-align-center"></i628></a>629<a630href="#justifyright"631class="btn btn-default"632data-toggle="tooltip"633data-placement="top"634title="Right justify"635><i class="fa fa-align-right"></i636></a>637<a638href="#justifyfull"639class="btn btn-default"640data-toggle="tooltip"641data-placement="top"642title="Justify full"643><i class="fa fa-align-justify"></i644></a>645<a646href="#outdent"647class="btn btn-default"648data-toggle="tooltip"649data-placement="top"650title="Outdent"651><i class="fa fa-outdent"></i652></a>653<a654href="#indent"655class="btn btn-default"656data-toggle="tooltip"657data-placement="top"658title="Indent"659><i class="fa fa-indent"></i660></a>661</span>662<span class="btn-group">663<a664href="#undo"665class="btn btn-default"666data-toggle="tooltip"667data-placement="top"668title="Undo"669><i class="fa fa-undo"></i670></a>671<a672href="#redo"673class="btn btn-default"674data-toggle="tooltip"675data-placement="top"676title="Redo"677><i class="fa fa-repeat"></i678></a>679</span>680<span class="btn-group">681<span682class="btn-group sagews-output-editor-font smc-tooltip"683data-toggle="tooltip"684data-placement="top"685title="Fonts"686>687<span688class="btn btn-default dropdown-toggle"689data-toggle="dropdown"690title="Font"691>692<i class="fa fa-font"></i> <b class="caret"></b>693</span>694<ul class="dropdown-menu"></ul>695</span>696<span697class="btn-group sagews-output-editor-font-size smc-tooltip"698data-toggle="tooltip"699data-placement="top"700title="Font size"701>702<span703class="btn btn-default dropdown-toggle"704data-toggle="dropdown"705title="Text height"706>707<i class="fa fa-text-height"></i> <b class="caret"></b>708</span>709<ul class="dropdown-menu"></ul>710</span>711<span712class="btn-group sagews-output-editor-block-type smc-tooltip"713data-toggle="tooltip"714data-placement="top"715title="Format type"716>717<span718class="btn btn-default dropdown-toggle"719data-toggle="dropdown"720title="Header"721>722<i class="fa fa-header"></i> <b class="caret"></b>723</span>724<ul class="dropdown-menu"></ul>725</span>726</span>727<span class="btn-group">728<!-- not implemented yet -->729<span730class="sagews-output-editor-foreground-color-selector input-group color smc-tooltip"731data-color-format="rgb"732data-toggle="tooltip"733data-placement="top"734title="Text color"735>736<input737type="text"738style="cursor: pointer"739class="form-control"740/>741<span class="input-group-addon" style="padding: 3px"742><i class="fa fa-font" style="height: 16px; width: 16px"></i743><b class="caret"></b744></span>745</span>746</span>747<span class="btn-group">748<!-- not implemented yet -->749<span750class="sagews-output-editor-background-color-selector input-group color smc-tooltip"751data-color-format="rgb"752data-toggle="tooltip"753data-placement="top"754title="Text background highlight color"755>756<input757type="text"758style="cursor: pointer"759class="form-control"760/>761<span class="input-group-addon" style="padding: 3px"762><i class="fa fa-font" style="height: 16px; width: 16px"></i763><b class="caret"></b764></span>765</span>766</span>767</div>768</div>769</div>770771<div772class="webapp-editor-codemirror-input-container-layout-0 hide"773style="flex: 1; display: flex; flex-direction: column"774>775<!-- See https://github.com/codemirror/CodeMirror/issues/3679 for why we do this nesting776(to work around a chrome bug, and/or avoid major slowdown doing layout?) -->777<div778class="webapp-editor-codemirror-input-box"779style="display: flex; flex-direction: column; position: relative"780>781<div style="position: absolute; height: 100%; width: 100%"></div>782</div>783<div class="webapp-editor-codemirror-input-box-1 hide">784<div></div>785</div>786</div>787788<div789class="webapp-editor-codemirror-input-container-layout-1 hide"790style="flex: 1; display: flex; flex-direction: column"791>792<!-- See https://github.com/codemirror/CodeMirror/issues/3679 for why we do this nesting793(to work around a chrome bug, and/or avoid major slowdown doing layout?) -->794<div795class="webapp-editor-codemirror-input-box"796style="display: flex; flex-direction: column; position: relative"797>798<div style="position: absolute; height: 100%; width: 100%"></div>799</div>800<div class="webapp-editor-resize-bar-layout-1"></div>801<!-- flex: 1 so expands to what is left after editor above is placed. -->802<div803class="webapp-editor-codemirror-input-box-1"804style="805flex: 1;806display: flex;807flex-direction: column;808position: relative;809"810>811<div style="position: absolute; height: 100%; width: 100%"></div>812</div>813</div>814815<div816class="webapp-editor-codemirror-input-container-layout-2 hide"817style="flex: 1; display: flex; flex-direction: row"818>819<!-- See https://github.com/codemirror/CodeMirror/issues/3679 for why we do this nesting820(to work around a chrome bug, and/or avoid major slowdown doing layout?) -->821<div822class="webapp-editor-codemirror-input-box"823style="display: flex; flex-direction: column; position: relative"824>825<div style="position: absolute; height: 100%; width: 100%"></div>826</div>827<div class="webapp-editor-resize-bar-layout-2"></div>828<!-- flex: 1 so expands to what is left after editor above is placed. -->829<div830class="webapp-editor-codemirror-input-box-1"831style="832flex: 1;833display: flex;834flex-direction: column;835position: relative;836"837>838<div style="position: absolute; height: 100%; width: 100%"></div>839</div>840</div>841</div>842<div843class="webapp-editor-codemirror-startup-message alert alert-warning hide"844role="alert"845></div>846</div>847848<!-- Template for the codemirror text editor other user cursors -->849<div class="webapp-editor-codemirror-cursor">850<span class="webapp-editor-codemirror-cursor-label"></span>851<div class="webapp-editor-codemirror-cursor-inside"> </div>852</div>853854<div class="smc-editor-codemirror-cursor">855<span class="smc-editor-codemirror-cursor-label"></span>856<div class="smc-editor-codemirror-cursor-inside"> </div>857</div>858859<!-- Static HTML viewer -->860<div class="webapp-editor-static-html">861<div class="webapp-editor-static-html-content">862<iframe style="width: 100%; border: 0px"> </iframe>863</div>864</div>865866<!-- Templates for the png-based PDF previewer; this is designed for the pdf changes in little ways locally. -->867<div class="webapp-editor-pdf-preview smc-vfill">868<div class="webapp-editor-pdf-preview-spinner hide"></div>869<div class="webapp-editor-pdf-preview-highlight hide"></div>870<div class="webapp-editor-pdf-preview-buttons">871<span class="btn-group">872<a873href="#zoom-preview-out"874class="btn btn-sm btn-default"875data-toggle="tooltip"876data-placement="bottom"877title="Zoom out some"878><i class="fa fa-search-minus"></i879></a>880<a881href="#zoom-preview-in"882class="btn btn-sm btn-default"883data-toggle="tooltip"884data-placement="bottom"885title="Zoom in some"886><i class="fa fa-search-plus"></i887></a>888<a889href="#zoom-preview-fullpage"890class="btn btn-sm btn-default"891data-toggle="tooltip"892data-placement="bottom"893title="Zoom so page width matches viewport"894><i class="fa fa-file-o"></i895></a>896<a897href="#zoom-preview-width"898class="btn btn-sm btn-default"899data-toggle="tooltip"900data-placement="bottom"901title="Zoom in close"902><i class="fa fa-arrows-alt"></i903></a>904<a905href="#preview-resolution"906class="btn btn-sm btn-default"907data-toggle="tooltip"908data-placement="bottom"909title="Change the preview resolution"910><i class="fa fa-th"></i911></a>912<a913href="#pdf-download"914class="btn btn-sm btn-default"915data-toggle="tooltip"916data-placement="bottom"917title="Download the PDF file"918><i class="fa fa-download"></i919></a>920</span>921<span class="btn-group pull-right">922<a923href="#toggle-preview"924class="btn btn-sm btn-default"925data-toggle="tooltip"926data-placement="bottom"927title="If enabled, the LaTeX file is compiled and a preview is rendered."928>929<i class="fa fa-check-square-o"></i> Build preview930</a>931</span>932</div>933<div934style="flex: 1; overflow-y: auto; overflow-x: auto"935class="webapp-editor-pdf-preview-output"936>937<div class="webapp-editor-pdf-preview-page"></div>938<div class="webapp-editor-pdf-preview-message hide"></div>939</div>940</div>941942<!-- Templates for the embedded PDF previewer: just uses the built-in renderer; can't cope with file updates, inverse search, etc. -->943<div class="webapp-editor-pdf-preview-embed smc-vfill">944<div class="webapp-editor-codemirror-button-row">945<span class="webapp-editor-pdf-preview-embed-spinner hide"></span>946<span class="btn-group">947<a class="btn btn-default btn-lg visible-xs" href="#close"948><i class="fa fa-toggle-up"></i>949<span class="hidden-xs">Files...</span></a950>951<a class="btn btn-default btn-lg visible-xs" href="#refresh"952><i class="fa fa-refresh"></i>953<span class="hidden-xs"> Refresh</span></a954>955<a class="btn btn-default hidden-xs" href="#refresh"956><i class="fa fa-refresh"></i>957<span class="hidden-xs"> Refresh</span></a958>959</span>960<span class="btn-group pull-right">961<a class="btn btn-default webapp-editor-pdf-title hidden-xs">962<i class="fa fa-external-link"></i>963<span></span>964</a>965</span>966</div>967<div class="webapp-editor-pdf-preview-embed-page smc-vfill">968<iframe frameborder="0" scrolling="no" style="width: 100%; height: 100%">969<br />970<br />971 Your browser doesn't support embedded PDF's, but you972can <a target="_blank">download <span></span></a>...973</iframe>974</div>975</div>976977<div class="webapp-editor-history smc-vfill">978<div979class="webapp-editor-history-controls"980style="981display: flex;982padding-left: 10px;983padding-right: 10px;984border-bottom: 1px solid lightgrey;985background-color: #efefef;986"987>988<span989style="990color: #666;991font-size: 14pt;992font-weight: bold;993margin-right: 1em;994"995>996<i class="fa fa-history"></i>997TimeTravel998</span>999<span>1000<a1001href="#show-diff"1002class="btn btn-default"1003data-toggle="tooltip"1004data-placement="bottom"1005title="Show changes"1006><i class="fa fa-square-o"></i> Changes</a1007>1008<a1009href="#hide-diff"1010class="btn btn-default hide"1011data-toggle="tooltip"1012data-placement="bottom"1013title="Show what changed"1014><i class="fa fa-check-square-o"></i> Changes</a1015>1016</span>1017<span1018class="webapp-editor-history-control-button-container btn-group smc-btn-group-nobreak"1019style="margin-left: 1em"1020>1021<a1022href="#back"1023class="btn btn-default"1024data-toggle="tooltip"1025data-placement="bottom"1026title="Back"1027><i class="fa fa-step-backward"></i1028></a>1029<a1030href="#forward"1031class="btn btn-default disabled"1032data-toggle="tooltip"1033data-placement="bottom"1034title="Forward"1035><i class="fa fa-step-forward"></i1036></a>1037</span>1038<span class="btn-group smc-btn-group-nobreak">1039<a1040href="#file"1041class="btn btn-info"1042style="margin-left: 1em"1043data-toggle="tooltip"1044data-placement="bottom"1045title="Show full file"1046><i class="fa fa-file-code-o"></i> Open File</a1047>1048<a1049href="#revert"1050class="btn btn-warning hide"1051data-toggle="tooltip"1052data-placement="bottom"1053title="Revert the live file to the displayed revision"1054><i class="fa fa-undo"></i> Revert live version to this </a1055>1056<a href="#snapshots" class="btn btn-default">1057<i class="fa fa-life-saver"></i>1058<span class="hidden-sm" style="font-size: 12px">Backups</span>1059</a>1060<a1061href="#all"1062class="btn btn-default hide"1063data-toggle="tooltip"1064data-placement="bottom"1065title="Load complete history"1066><i class="fa fa-floppy-o"></i> Load All History1067</a>1068<a1069href="#export"1070class="btn btn-default"1071data-toggle="tooltip"1072data-placement="bottom"1073title="Export to file"1074><i class="fa fa-file-export"></i> Export</a1075>1076</span>1077<div style="color: #666; margin-left: 1em">1078<span1079class="webapp-editor-history-revision-time"1080style="font-weight: bold; font-size: 12pt"1081></span1082><span class="webapp-editor-history-diff-mode hide"1083> to </span1084><span1085class="hide webapp-editor-history-diff-mode webapp-editor-history-revision-time2"1086style="font-weight: bold; font-size: 12pt"1087></span1088><span class="webapp-editor-history-revision-number"> </span>1089</div>1090</div>1091<div style="margin-top: 7px; margin-right: 15px">1092 1093<span1094class="webapp-editor-history-revision-user lighten pull-right"1095></span>1096</div>1097<div1098class="webapp-editor-history-sliders"1099style="border-bottom: 1px solid lightgrey"1100>1101<div1102class="webapp-editor-history-slider webapp-editor-history-slider-style"1103></div>1104<div1105class="webapp-editor-history-diff-slider hide webapp-editor-history-slider-style"1106></div>1107</div>11081109<div class="webapp-editor-history-no-viewer hide" style="margin-left: 15px">1110<b>WARNING: </b> History viewer for this file type not implemented, so1111showing underlying raw file instead.1112</div>11131114<div class="webapp-editor-history-history_editor smc-vfill"></div>1115</div>11161117<span class="sagews-input">1118<span class="sagews-input-hr sagews-input-eval-state"></span>1119<span class="sagews-input-hr sagews-input-run-state"></span>1120<span class="sagews-input-hr sagews-input-newcell"></span>1121</span>11221123<span class="sagews-output">1124<span class="sagews-output-container">1125<span class="sagews-output-messages"></span>1126</span>1127</span>11281129<div class="webapp-ipython-notebook">1130<!--<h3 style="margin-left:1em">IPython Notebook: <span class="webapp-ipython-filename"></span></h3>-->1131<div class="webapp-ipython-notebook-buttons hidden-xs">1132<span class="webapp-ipython-notebook-status-messages lighten"> </span>1133<span class="hide webapp-ipython-notebook-danger"1134>DANGER: Users on this VM could connect unless you stop your1135ipython-notebook server (they would have to know secret internal1136project-id).</span1137>1138<span class="btn-group">1139<a1140href="#save"1141class="btn btn-sm btn-success"1142data-toggle="tooltip"1143data-placement="bottom"1144title="Save .ipynb file to disk (file is constantly sync'd with server)."1145>1146<i class="fa fa-save primary-icon"></i1147><i class="fa fa-cocalc-ring hide"></i> Save1148</a>1149<a1150href="#history"1151class="btn btn-sm btn-info webapp-editor-history-button hide"1152data-toggle="tooltip"1153data-placement="bottom"1154title="View the history of this file."1155>1156<i class="fa fa-history"></i>1157<span class="hidden-sm">TimeTravel</span>1158</a>1159<a1160href="#reload"1161class="btn btn-sm btn-warning"1162data-toggle="tooltip"1163data-placement="bottom"1164title="Reload this Notebook; use if the IPython server is killed or restarted on another port"1165>1166<i class="fa fa-refresh"></i> Reload</a1167>1168<a1169href="#publish"1170class="btn btn-primary btn-sm"1171data-toggle="tooltip"1172data-placement="bottom"1173title="Publish this notebook for anybody to see"1174>1175<i class="fa fa-refresh fa-spin hide"> </i>1176<i class="fa fa-share-square"></i> Publish</a1177>1178<a1179href="#info"1180class="btn btn-sm btn-info"1181data-toggle="tooltip"1182data-placement="bottom"1183title="Extra information about the IPython notebook"1184>1185<i class="fa fa-info-circle"></i> About1186</a>1187</span>1188</div>1189<div class="visible-xs">1190<span class="btn-group">1191<a href="#save" class="btn btn-success btn-lg">1192<i class="fa fa-save"></i> Save</a1193>1194</span>1195<span class="btn-group webapp-editor-codemirror-worksheet-buttons hide">1196<a href="#execute" class="btn btn-default btn-lg">1197<i class="fa fa-play"></i>1198<span>Run</span>1199</a>1200<a href="#interrupt" class="btn btn-default btn-lg">1201<i class="fa fa-stop"></i>1202<span>Stop</span>1203</a>1204<a href="#tab" class="btn btn-default btn-lg">1205<i class="fa fa-info-circle"></i>1206<span>Tab</span>1207</a>1208</span>1209<span class="btn-group">1210<a href="#reload" class="btn btn-warning btn-lg">1211<i class="fa fa-refresh"></i> Reload</a1212>1213<a href="#info" class="btn btn-info btn-lg">1214<i class="fa fa-info-circle"></i>1215</a>1216</span>1217</div>1218<h31219class="webapp-ipython-notebook-connecting hide"1220style="margin-left: 2em"1221>1222Opening...1223</h3>1224<div class="webapp-ipython-notebook-notebook"></div>1225</div>12261227<div1228class="modal webapp-file-print-dialog"1229data-backdrop="static"1230tabindex="-1"1231role="dialog"1232aria-hidden="true"1233>1234<div class="modal-dialog">1235<div class="modal-content">1236<div class="modal-header">1237<button type="button" class="close btn-close" aria-hidden="true">1238<span style="font-size: 20pt">×</span>1239</button>1240<h3>1241<i class="fa fa-print"> </i> Printable PDF version of1242<span class="webapp-file-print-filename"></span>1243</h3>1244</div>1245<div class="well">1246<h4>Heading <span class="lighten">(click to edit)</span></h4>1247<div class="well" style="background-color: white; text-align: center">1248<h4 class="webapp-file-print-title" contenteditable="true"></h4>1249<h5 class="webapp-file-print-author" contenteditable="true"></h5>1250<h5 class="webapp-file-print-date" contenteditable="true"></h5>1251</div>1252<div class="webapp-file-options-sagews hide">1253<h4>Worksheet Options</h4>1254<div class="well" style="background-color: white">1255<div class="checkbox">1256<label class="" rel="tooltip" title="Table of contents">1257<input1258type="checkbox"1259class="webapp-file-print-contents"1260rel="tooltip"1261/>Table of contents1262</label>1263</div>1264<div class="checkbox">1265<label class="" rel="tooltip" title="Keep generated files">1266<input1267type="checkbox"1268class="webapp-file-print-keepfiles"1269rel="tooltip"1270/>Keep generated files in a sub-directory. This is useful for1271debugging printing issues or additional editing.1272<div class="smc-file-printing-tempdir hide"></div>1273</label>1274</div>1275</div>1276</div>1277</div>1278<div class="modal-footer">1279<button class="btn btn-close pull-left btn-default btn-lg">1280Close1281</button>1282<button class="btn btn-primary btn-submit pull-left btn-lg">1283<i class="fa fa-bolt primary-icon"> </i>1284<i class="fa fa-cocalc-ring hide"></i> Generate PDF1285</button>1286<span class="webapp-file-printing-progress hide"1287>Preparing PDF version...</span1288>1289<a class="webapp-file-printing-link hide" target="_blank"1290>link to PDF version</a1291>1292</div>1293</div>1294</div>1295</div>1296<div1297class="modal webapp-goto-line-dialog"1298data-backdrop="static"1299tabindex="-1"1300role="dialog"1301aria-hidden="true"1302>1303<div class="modal-dialog">1304<div class="modal-content">1305<div class="modal-header">1306<button type="button" class="close btn-close" aria-hidden="true">1307<span style="font-size: 20pt">×</span>1308</button>1309<h3><i class="fa fa-bolt"> </i> Goto Line</h3>1310</div>1311<div class="well" style="margin: 1em">1312<div class="lighten">1313Enter <span class="webapp-goto-line-range"></span>1314</div>1315<input1316class="webapp-goto-line-input form-control"1317style="width: 95%; margin-top: 1ex"1318type="text"1319placeholder=""1320/>1321</div>1322<div class="modal-footer">1323<button class="btn btn-close btn-default">Cancel</button>1324<button class="btn btn-primary btn-submit">OK</button>1325</div>1326</div>1327</div>1328</div>13291330<div class="webapp-editor-textedit-buttonbar">1331<span class="btn-group">1332<a1333href="#bold"1334class="btn btn-default"1335data-toggle="tooltip"1336data-placement="bottom"1337title="Bold"1338><i class="fa fa-bold"></i1339></a>1340<a1341href="#italic"1342class="btn btn-default"1343data-toggle="tooltip"1344data-placement="bottom"1345title="Italic"1346><i class="fa fa-italic"></i1347></a>1348<a1349href="#underline"1350class="btn btn-default"1351data-toggle="tooltip"1352data-placement="bottom"1353title="Underline"1354><i class="fa fa-underline"></i1355></a>1356<a1357href="#strikethrough"1358class="btn btn-default"1359data-toggle="tooltip"1360data-placement="bottom"1361title="Strike through"1362><i class="fa fa-strikethrough"></i1363></a>1364<a1365href="#subscript"1366class="btn btn-default"1367data-toggle="tooltip"1368data-placement="bottom"1369title="Subscript (use LaTeX for serious equations)"1370><i class="fa fa-subscript"></i1371></a>1372<a1373href="#superscript"1374class="btn btn-default"1375data-toggle="tooltip"1376data-placement="bottom"1377title="Superscript"1378><i class="fa fa-superscript"></i1379></a>1380<a1381href="#comment"1382class="btn btn-default"1383data-toggle="tooltip"1384data-placement="bottom"1385title="Comment out selection"1386><i class="fa fa-comment-o"></i1387></a>1388</span>1389<span class="btn-group">1390<a1391href="#equation"1392class="btn btn-default"1393data-toggle="tooltip"1394data-placement="bottom"1395title="Inline equation..."1396>1397$1398</a>1399<a1400href="#display_equation"1401class="btn btn-default"1402data-toggle="tooltip"1403data-placement="bottom"1404title="Displayed equation..."1405>1406$$1407</a>1408<a1409href="#insertunorderedlist"1410class="btn btn-default"1411data-toggle="tooltip"1412data-placement="bottom"1413title="Insert unordered list"1414><i class="fa fa-list"></i1415></a>1416<a1417href="#insertorderedlist"1418class="btn btn-default"1419data-toggle="tooltip"1420data-placement="bottom"1421title="Insert ordered list"1422><i class="fa fa-list-ol"></i1423></a>1424<a1425href="#link"1426data-args="special"1427class="btn btn-default"1428data-toggle="tooltip"1429data-placement="bottom"1430title="Insert link..."1431><i class="fa fa-link"></i1432></a>1433<a1434href="#image"1435data-args="special"1436class="btn btn-default"1437data-toggle="tooltip"1438data-placement="bottom"1439title="Insert image..."1440><i class="fa fa-image"></i1441></a>1442<a1443href="#table"1444data-args="special"1445class="btn btn-default"1446data-toggle="tooltip"1447data-placement="bottom"1448title="Insert table"1449><i class="fa fa-table"></i1450></a>1451<a1452href="#horizontalRule"1453data-args="special"1454class="btn btn-default"1455data-toggle="tooltip"1456data-placement="bottom"1457title="Insert horizontal line"1458>—</a1459>1460<a1461href="#SpecialChar"1462data-args="special"1463class="btn btn-default"1464data-toggle="tooltip"1465data-placement="bottom"1466title="Insert Special Character ..."1467>Ω</a1468>1469</span>1470<span class="btn-group">1471<a1472href="#justifyleft"1473class="btn btn-default"1474data-toggle="tooltip"1475data-placement="bottom"1476title="Left justify"1477><i class="fa fa-align-left"></i1478></a>1479<a1480href="#justifycenter"1481class="btn btn-default"1482data-toggle="tooltip"1483data-placement="bottom"1484title="Justify center"1485><i class="fa fa-align-center"></i1486></a>1487<a1488href="#justifyright"1489class="btn btn-default"1490data-toggle="tooltip"1491data-placement="bottom"1492title="Right justify"1493><i class="fa fa-align-right"></i1494></a>1495<a1496href="#justifyfull"1497class="btn btn-default"1498data-toggle="tooltip"1499data-placement="bottom"1500title="Justify full"1501><i class="fa fa-align-justify"></i1502></a>1503<a1504href="#indent"1505class="btn btn-default"1506data-toggle="tooltip"1507data-placement="bottom"1508title="Indent/quote selected text"1509><i class="fa fa-indent"></i1510></a>1511<a1512href="#unformat"1513class="btn btn-default"1514data-toggle="tooltip"1515data-placement="bottom"1516title="Remove formatting"1517><i class="fa fa-remove"></i1518></a>1519<a1520href="#clean"1521class="btn btn-default"1522data-toggle="tooltip"1523data-placement="bottom"1524title="Make selected HTML valid"1525><i class="fa fa-code"></i1526></a>1527</span>1528<span class="btn-group">1529<span1530class="btn-group sagews-output-editor-font-face smc-tooltip"1531data-toggle="tooltip"1532data-placement="bottom"1533title="Fonts"1534>1535<span1536class="btn btn-default dropdown-toggle"1537data-toggle="dropdown"1538title="Font"1539>1540<i class="fa fa-font"></i> <b class="caret"></b>1541</span>1542<ul class="dropdown-menu"></ul>1543</span>1544<span1545class="btn-group sagews-output-editor-font-size smc-tooltip"1546data-toggle="tooltip"1547data-placement="bottom"1548title="Font size"1549>1550<span1551class="btn btn-default dropdown-toggle"1552data-toggle="dropdown"1553title="Text height"1554>1555<i class="fa fa-text-height"></i> <b class="caret"></b>1556</span>1557<ul class="dropdown-menu"></ul>1558</span>1559<span1560class="btn-group sagews-output-editor-block-type smc-tooltip"1561data-toggle="tooltip"1562data-placement="bottom"1563title="Format type"1564>1565<span1566class="btn btn-default dropdown-toggle"1567data-toggle="dropdown"1568title="Header"1569>1570<i class="fa fa-header"></i> <b class="caret"></b>1571</span>1572<ul class="dropdown-menu"></ul>1573</span>1574</span>1575<!-- color menus disabled/broken: see https://github.com/sagemathinc/cocalc/issues/1167 for re-implementing them -->1576<span class="btn-group">1577<span1578class="hide sagews-output-editor-foreground-color-selector input-group color smc-tooltip"1579data-color-format="rgb"1580data-toggle="tooltip"1581data-placement="bottom"1582title="Text color"1583>1584<input type="text" style="cursor: pointer" class="form-control" />1585<span class="input-group-addon" style="padding: 3px"1586><i class="fa fa-font" style="height: 16px; width: 16px"></i1587><b class="caret"></b1588></span>1589</span>1590</span>1591<span class="btn-group">1592<span1593class="hide sagews-output-editor-background-color-selector input-group color smc-tooltip"1594data-color-format="rgb"1595data-toggle="tooltip"1596data-placement="bottom"1597title="Text background highlight color"1598>1599<input type="text" style="cursor: pointer" class="form-control" />1600<span class="input-group-addon" style="padding: 3px"1601><i class="fa fa-font" style="height: 16px; width: 16px"></i1602><b class="caret"></b1603></span>1604</span>1605</span>1606</div>16071608<div class="webapp-editor-codeedit-buttonbar hide" style="margin: 2px">1609<!-- buttonbar.coffee populates all entries -->1610</div>16111612<div class="webapp-editor-redit-buttonbar hide" style="margin: 2px">1613<!-- buttonbar.coffee populates the entries -->1614</div>1615<div class="webapp-editor-julia-edit-buttonbar hide" style="margin: 2px">1616<!-- buttonbar.coffee populates the entries -->1617</div>1618<div class="webapp-editor-sh-edit-buttonbar hide" style="margin: 2px">1619<!-- buttonbar.coffee populates the entries -->1620</div>1621<div class="webapp-editor-fricas-edit-buttonbar hide" style="margin: 2px">1622<!-- buttonbar.coffee populates the entries -->1623</div>1624<div class="webapp-editor-fallback-edit-buttonbar hide" style="margin: 2px">1625<a class="btn btn-default" href="#todo">…</a>1626</div>16271628<div class="sagews-output-raw_input">1629<div class="form-inline">1630<div class="form-group">1631<label1632class="sagews-output-raw_input-prompt"1633style="margin-right: 10px"1634>1635</label>1636<div class="input-group">1637<input class="sagews-output-raw_input-value form-control" />1638<span class="input-group-btn">1639<button1640class="btn btn-success sagews-output-raw_input-submit"1641type="button"1642>1643<i class="fa fa-check"></i>1644</button>1645</span>1646</div>1647</div>1648</div>1649</div>1650</div>16511652`;16531654const sagews_interact = `1655<div class="webapp-interact-templates hide">16561657<!-- Interact -->1658<div class="webapp-interact-container container-fluid">1659</div>16601661<!-- Interact: input-box -->1662<div class="webapp-interact-control-input-box">1663<div class="row">1664<div class="col-sm-4">1665<span class="webapp-interact-label pull-right"></span>1666</div>1667<div class="col-sm-8">1668<input type="text" class="hide webapp-interact-input-box-font form-control">1669<textarea class="hide webapp-interact-input-box-font" spellcheck="false"></textarea>1670<span class="webapp-interact-control-input-box-submit-button hide">1671<a class="btn btn-default">Submit</a>1672<br><br>1673</span>1674</div>1675</div>1676</div>167716781679<!-- Interact: checkbox -->1680<div class="webapp-interact-control-checkbox">1681<div class="row">1682<div class="col-sm-4">1683<span class="webapp-interact-label pull-right" style=" padding-top: 2px;"></span>1684</div>1685<div class="col-sm-8">1686<input type="checkbox">1687</div>1688</div>1689</div>16901691<!-- Interact: selector -->1692<div class="webapp-interact-control-selector">1693<div class="row">1694<div class="col-sm-4">1695<span class="webapp-interact-label pull-right"></span>1696</div>1697<div class="col-sm-8">1698<div class="webapp-interact-control-content"></div>1699</div>1700</div>1701</div>17021703<!-- Interact: button -->1704<div class="webapp-interact-control-button">1705<div class="row">1706<div class="col-sm-4">1707<span class="webapp-interact-label pull-right"></span>1708</div>1709<div class="col-sm-8">1710<a class="btn btn-default"><i class="fa"> </i> <span></span></a>1711</div>1712</div>1713</div>17141715<!-- Interact: text -->1716<div class="webapp-interact-control-text">1717<div class="row">1718<div class="col-sm-4">1719<span class="webapp-interact-label pull-right"></span>1720</div>1721<div class="col-sm-8">1722<span class="webapp-interact-control-content"></span>1723</div>1724</div>1725</div>17261727<!-- Interact: color-selector -->1728<div class="webapp-interact-control-color-selector">1729<div class="row">1730<div class="col-sm-4">1731<span class="webapp-interact-label pull-right"></span>1732</div>1733<div class="col-sm-8">1734<div class="input-group color" data-color-format="rgb">1735<input type="text" value="" style="font-family:monospace" class="form-control">1736<span class="input-group-addon"><i class="fa" style="height: 16px; width: 16px"></i></span>1737</div>1738</div>1739</div>1740</div>17411742<!-- Interact: slider -->1743<div class="webapp-interact-control-slider">1744<div class=" webapp-interact-control-content">1745<div class="row">1746<div class="col-sm-4">1747<div class="webapp-interact-label pull-right"></div>1748</div>1749<div class="pull-left col-sm-6">1750<div class="webapp-interact-control-slider"></div>1751</div>1752<div class="col-sm-2">1753<div class="webapp-interact-control-value"></div>1754</div>1755</div>1756</div>1757</div>175817591760<!-- Interact: range-slider -->1761<div class="webapp-interact-control-range-slider">1762<div class="webapp-interact-control-content">1763<div class="row">1764<div class="col-sm-4">1765<div class="webapp-interact-label pull-right"></div>1766</div>1767<div class="pull-left col-sm-6">1768<div class="webapp-interact-control-slider"></div>1769</div>1770<div class="col-sm-2">1771<div class="webapp-interact-control-value"></div>1772</div>1773</div>1774</div>1775</div>17761777<!-- Interact: input_grid -->1778<div class="webapp-interact-control-input-grid">1779<div class="row">1780<div class="col-sm-4">1781<span class="webapp-interact-label pull-right"></span>1782</div>1783<div class="col-sm-8">1784<span class="webapp-interact-control-grid well"></span>1785<a class="btn btn-success btn-sm"><i class="fa fa-check"> </i><span></span></a>1786</div>1787</div>1788</div>17891790</div>1791`;17921793const sagews_3d = `1794<div class="webapp-3d-templates hide">1795<span class="webapp-3d-loading">1796<i class="fa fa-cube fa-spin" style="font-size:16pt"></i>1797Loading 3D scene...1798</span>1799<span class="webapp-3d-viewer">1800<span class="webapp-3d-note hide">1801Evaluate to see 3d plot.1802</span>1803<span class="webapp-3d-canvas">1804</span>1805<span class="webapp-3d-canvas-warning lighten hide" style="margin-top: -1em" data-toggle="tooltip" data-placement="top" title="WARNING: using slow non-WebGL canvas renderer">canvas</span>1806</span>1807</div>1808`;18091810const sagews_d3 = `1811<div class="webapp-d3-templates hide">1812<span class="webapp-d3-graph-viewer">1813</span>1814</div>1815`;18161817export const TEMPLATES_HTML =1818console + editor + sagews_interact + sagews_3d + sagews_d3;181918201821