10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 22:03:49 +01:00

Load all: molecules at start

This commit is contained in:
Mickaël Véril 2020-09-28 15:41:23 +02:00
parent 85ab5b9968
commit da4cb6e610

View File

@ -27,6 +27,9 @@ draft: false
<script src="/js/mhchemCE.js"></script> <script src="/js/mhchemCE.js"></script>
<link rel="stylesheet" href="/css/ChemDoodleWeb.css" type="text/css"> <link rel="stylesheet" href="/css/ChemDoodleWeb.css" type="text/css">
<script type="text/javascript" src="/js/ChemDoodleWeb.js"></script> <script type="text/javascript" src="/js/ChemDoodleWeb.js"></script>
<script src="/js/Geometry.js"></script>
<script src="/js/GeometriesLoader.js"></script>
<script src="/js/GeometryParseMetadataExtension.js"></script>
<script> <script>
function adjustSticky() { function adjustSticky() {
const height = $("nav").height() const height = $("nav").height()
@ -137,6 +140,15 @@ draft: false
}) })
processingIndicator.isActive = false processingIndicator.isActive = false
reloadCustomFiles() reloadCustomFiles()
reloadGeoms()
}
async function reloadGeoms(){
window.geoms = await GeometriesLoader.loadForAsync(uniq(window.defaultDats.map(d=>{
return {
set:d.set.name,
molecule:d.molecule
}
})))
} }
async function reloadCustomFiles() { async function reloadCustomFiles() {
window.dats = window.defaultDats; window.dats = window.defaultDats;