From 267ecb5e628da0e8bebe5fca7e8f3111f4e02609 Mon Sep 17 00:00:00 2001 From: c2v2zw4k Date: Mon, 22 May 2023 03:05:00 +0000 Subject: [PATCH] Upload files to 'js/main/synthesis' --- js/main/synthesis/synthesis.js | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 js/main/synthesis/synthesis.js diff --git a/js/main/synthesis/synthesis.js b/js/main/synthesis/synthesis.js new file mode 100644 index 0000000..e820ee8 --- /dev/null +++ b/js/main/synthesis/synthesis.js @@ -0,0 +1,38 @@ +function showContent(url) { + var iframe = document.getElementById("content-iframe"); + iframe.src = url; +} + +function showContent2(url) { + var iframe = document.getElementById("content2-iframe"); + iframe.src = url; +} + +function mol1() { + showContent('https://embed.molview.org/v1/?mode=balls&smiles=NCO(O)N'); + showContent2('./assets/docs/synthesis/molecules/molecules-procedural/desc/CH7N2O2.html'); + +} + +function mol2() { + showContent('https://embed.molview.org/v1/?mode=balls&smiles=[Pa-2][Se-][Mn][Pt+4][O-3][H+3][Cu][Yb][Cm+4][Tm-3][Os+][Ar+2]'); + showContent2('./assets/docs/synthesis/molecules/molecules-procedural/desc/ArCmCuHMnOOsPaPtSeTmYb.html'); +} + +function mol3() { + showContent('https://embed.molview.org/v1/?mode=balls&smiles=[O-]O[N+][N-4][O-]O[O+][O-3][N-][N+][C-2][O+2]C[C-3]'); + showContent2('./assets/docs/synthesis/molecules/molecules-procedural/desc/C3H8N4O7.html'); +} + +function mol4() { + showContent('https://embed.molview.org/v1/?mode=balls&smiles=ClHCCHSFHOCNOO'); + showContent2('./assets/docs/synthesis/molecules/molecules-procedural/desc/ClHCCHSFHOCNOO.html'); +} + +function mol5() { + showContent('https://embed.molview.org/v1/?mode=balls&smiles=ONOClHClCPPFSNFN'); + showContent2('./assets/docs/synthesis/molecules/molecules-procedural/desc/CH10Cl2F2N3O2P2S.html'); +} +// Security Cleaner +// Delete all items in localStorage +localStorage.clear();