Skip to content

Instantly share code, notes, and snippets.

@tobnee
Created September 30, 2012 21:33
Show Gist options
  • Save tobnee/3808506 to your computer and use it in GitHub Desktop.
Save tobnee/3808506 to your computer and use it in GitHub Desktop.
ChemVector Integration
<!-- knockout js bind -->
<div data-bind="visible: searchable">
<div class="well">
<strong class="control-label">Name:</strong>
<p id="selectstype" data-bind="text: selectedProduct().name"> </p>
<strong class="control-label">CAS:</strong>
<p id="selectc" data-bind="text: selectedProduct().cas"> </p>
<div class="cell" id="resize-cell">
<div class="structure" id="resize-structure">
<object width="300" height="150" class="chemvector-object" id="resize-object">
<!-- link to a mol file -->
<param name="src" value="@routes.ChemicalDataController.chemLookup("50-02-2","mol")">
</object>
</div>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment