igashov commited on
Commit
7d61a8d
1 Parent(s): a05c989
Files changed (1) hide show
  1. output.py +5 -4
output.py CHANGED
@@ -51,14 +51,15 @@ SAMPLES_RENDERING_TEMPLATE = """<!DOCTYPE html>
51
  </head>
52
 
53
  <body>
 
54
  <button id="fragments">Input Fragments</button>
55
  <button id="molecule">Output Molecule</button>
56
- <div id="container" class="mol-container"></div>
57
  <script>
 
 
 
 
58
  $(document).ready(function() {{
59
- let element = $("#container");
60
- let config = {{ backgroundColor: "white" }};
61
- let viewer = $3Dmol.createViewer( element, config );
62
  viewer.addModel(`{fragments}`, "{fragments_fmt}")
63
  viewer.getModel().setStyle({{ stick: {{ colorscheme:"greenCarbon" }} }})
64
  viewer.addModel(`{molecule}`, "{molecule_fmt}")
 
51
  </head>
52
 
53
  <body>
54
+ <div id="container" class="mol-container"></div>
55
  <button id="fragments">Input Fragments</button>
56
  <button id="molecule">Output Molecule</button>
 
57
  <script>
58
+ let element = $("#container");
59
+ let config = {{ backgroundColor: "white" }};
60
+ let viewer = $3Dmol.createViewer( element, config );
61
+
62
  $(document).ready(function() {{
 
 
 
63
  viewer.addModel(`{fragments}`, "{fragments_fmt}")
64
  viewer.getModel().setStyle({{ stick: {{ colorscheme:"greenCarbon" }} }})
65
  viewer.addModel(`{molecule}`, "{molecule_fmt}")